Hi,
I want to update huge amounts of gold in runtime, without teleporting.
Imagine a scroll that gives you a huge amount of gold like 100B. Upon usage your gold will be updated without teleporting.
Whenever your gold amount changes there is a gold update packet (0x304E) coming from the server. If you send that to client your gold will be updated. But there's a problem, for some reason, even though your gold amount changes at your inventory (and you update from db as well), when you try to spend it you get "not enough gold". And for example if you drop 1 gold, your gold amount is back to the original value (not db value, before the 0x304E change value)
So I think I can't deceive client because something must happen first before the 0x304E? No pick up, no quest reward, just 0x304E coming from nowhere.
Any ideas?
Edit: I just found out that the reason you can't spend it is actually the gameserver says no, because gameserver uses the value stored at it's memory. When I editted the value with CE, it actually worked. So somehow I need to update gameserver's memory, without teleporting the character...
I want to update huge amounts of gold in runtime, without teleporting.
Imagine a scroll that gives you a huge amount of gold like 100B. Upon usage your gold will be updated without teleporting.
Whenever your gold amount changes there is a gold update packet (0x304E) coming from the server. If you send that to client your gold will be updated. But there's a problem, for some reason, even though your gold amount changes at your inventory (and you update from db as well), when you try to spend it you get "not enough gold". And for example if you drop 1 gold, your gold amount is back to the original value (not db value, before the 0x304E change value)
So I think I can't deceive client because something must happen first before the 0x304E? No pick up, no quest reward, just 0x304E coming from nowhere.
Any ideas?
Edit: I just found out that the reason you can't spend it is actually the gameserver says no, because gameserver uses the value stored at it's memory. When I editted the value with CE, it actually worked. So somehow I need to update gameserver's memory, without teleporting the character...