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

TFS 0.X Skill Points Scroll

Kouki

Member
Joined
Feb 5, 2016
Messages
62
Solutions
3
Reaction score
10
Hey guys, I try to make skill points scroll ( custom skills ), i have table in db "skill_point" but when i use scroll i got bugged 0 points even if i have some points. Someone can help me? TFS 0.4

Lua:
local points = 1
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if isPlayer(cid) == TRUE  then
db.executeQuery("UPDATE 'players' SET 'skill_points' = 'skill_points' + "..points.." where id="..getPlayerNameByGUID(guid))
 doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You have "..points.." Skill Points")
    doRemoveItem(item.uid)
    end
        return true
end
 
Top