Hello everyone.
I've made an offline trading system for players on my ot. The thing is basically:
You 'give' the item to a NPC
The NPC update the database with the new item
Other players can now buy the item from my website
Money is taken from their bank account and the seller recieve the money
And here is my problem. When players buy the item the PHP script is told to access the db and change the playerstorage for the bank account. This works if players are offline. However, if players are online the playerstorage key wont update.
I could of course change the bank db from playerstorage to another part of the db, but that would meen alot of extra work for me.
I am a total newb when it comes to PHP scripting, so I'm hoping someone else with a bit more knowledge could help me out.
I'm using TFS 028 if it matters
I've made an offline trading system for players on my ot. The thing is basically:
You 'give' the item to a NPC
The NPC update the database with the new item
Other players can now buy the item from my website
Money is taken from their bank account and the seller recieve the money
And here is my problem. When players buy the item the PHP script is told to access the db and change the playerstorage for the bank account. This works if players are offline. However, if players are online the playerstorage key wont update.
I could of course change the bank db from playerstorage to another part of the db, but that would meen alot of extra work for me.
I am a total newb when it comes to PHP scripting, so I'm hoping someone else with a bit more knowledge could help me out.
I'm using TFS 028 if it matters