• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved [TALKACTION] Exchange in-game coins for shop points

Luka Trklja

Member
Joined
Jul 8, 2016
Messages
121
Solutions
5
Reaction score
8
Location
Croatia
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

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:
Back
Top