• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

NPC Bank system mistery (Storage ID missmatch and still works)

vichoko

Member
Joined
Oct 9, 2008
Messages
128
Reaction score
6
Location
Santiago, Chile
My server has been running for a coulpe of weeks, and the bank system has been working great.
The thing is that today the npc stopped working. If you tried to deposit, the balance were stuck at 0.
It looked like everyone lost their money.

When i checked the script, the balance where kept in a storageid (50505). And looking in the DB, the money was still there. But it couldn't be changed by the NPC.

After hours trying to figure out what was happening, i decided to change the storageid from the NPC to 50506.
Suprisingly everyone got their money back, and the NPC now works.

I'm afraid, because in the DB the storageid that storages the money is 50505, but in the npc is 50506.
I'm afraid because this has not logic, and this can affect other systems based on storageid.
Can someone help me to understand what is happening?
 
Back
Top