DiegoRulez
Member
I would like this script to be converted so I can use it in my TFS 1.3 with Znote AAC.
Table: znote_accounts
Column: points
Thanks to whom to help
Table: znote_accounts
Column: points
Code:
local function doPlayerAddPremiumPoints(cid, count)
db.query('UPDATE accounts SET znote_accounts = znote_accounts+'.. count ..' WHERE id = ' .. getAccountNumberByPlayerName(getCreatureName(cid)))
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
doPlayerAddPremiumPoints(cid, 1)
doSendMagicEffect(getCreaturePosition(cid), 2)
doRemoveItem(item.uid,1)
return true
end
Thanks to whom to help