Luka Trklja
Member
Need help with this script, I have most of it (hopefully its good) but i need help with the part where it adds points to database. TFS 0.3.6 / 8.6
EDIT: Im dumb, all i had to do is add
LUA:
function onSay(cid, words, param)
if doPlayerRemoveItem(cid, 9970, 100) == TRUE then
-- this is the part i need
doCreatureSay(cid, "You exchanged 100 Buffary Coins for 5 Web Shop points!" ,19)
doSendMagicEffect(getPlayerPosition(cid), 46)
else
doCreatureSay(cid, "You do not have enough Buffary Coins, you need at least 100 to exchange for 5 Web Shop points!" ,19)
end
return TRUE
end
EDIT: Im dumb, all i had to do is add
LUA:
doPlayerAddZnotePoints(cid, 5)
Last edited: