vichoko
Member
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?
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?