• 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!

'balance' value can not be edited while player is online...

Andrespro

New Member
Joined
Mar 18, 2009
Messages
125
Reaction score
4
Location
Santa Cruz - Bolivia
Distribution: TFS (Mystic Spirit) 0.2.13pl1 [9.54]

Well, I tried to make a Banker NPC that changes the 'balance' field value when player deposits gold :| but the value goes to normal again when player log off.... I think the market isn't available to this distribution... yet?


Please stop the 'balance' value changing when logging off, so we can actually make those Bankers to work :)
 
You shouldn't use SQL queries to update balance, there are Lua functions that you should use.

See:
getPlayerBalance(cid)
doPlayerSetBalance(cid, balance)
 
Sorry but Mystic Spirit doesn't have those functions (Read LUA_FUNCTIONS and global.lua and found nothing!) :|

Edit: LOL nvm.. found it sorry :)
 
Back
Top