ivanlamega / dragon-ball-online-tw-server

Dbo Server
25 stars 27 forks source link

Zenny #18

Closed Kadaz closed 5 years ago

Kadaz commented 5 years ago

Zenny goes to 0 after relogin or after starting the server.

Kadaz commented 5 years ago

I change the valie from the database but it didnt fix this bug. I also notice that the bank doesnt load correctly and i remember that zenny updated together with the bank in akcore server. Maybe we have to do something similar in this sourse. Why the table name is zenny and not money here?

ThatOneDBOGuy commented 5 years ago

It's because we have to load the zenny from the database. I will work on that later today

Kadaz commented 5 years ago

xm ok. The same goes with exp. It only remember how match exp we have when we level up. Now i am reading the quickslot because it doent remember action skills like attack, pick up ect. I`ll try some triks i have in my mind.

ivanlamega commented 5 years ago

It's easy, just save the zenny and the exp in the database in LogoutPlayer https://github.com/ivanlamega/dragon-ball-online-tw-server/blob/4a42be52103d9397763ad925b953d190a42c51b9/GameServer/Source/CPP/Game/World/WorldSession.cpp

I would do it, but I can't prove it right now, I could modify it but not try it.

Kadaz commented 5 years ago

Intresting. Maybe we can do it for bank too. At least for the zenny.

ivanlamega commented 5 years ago

Try it now, the game should save the player's zenny.