• 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 1.X+ [1.3] item give points

roriscrave

Advanced OT User
Joined
Dec 7, 2011
Messages
1,188
Solutions
34
Reaction score
200
hi, look this code in tfs 0.4
it set attribute "points" in this item
Lua:
local item = doPlayerAddItem(cid, 1528, 1)
    doItemSetAttribute(item, "points", param)

and this code, check the attribute "points" in this item
Lua:
function PremmyPoints(item)
    return tonumber(getItemAttribute(item.uid, "points"))
end



is possible to make this scripts for 1.3?
i tried it, dont give me error, but always return NIL:

Lua:
        local item = player:addItem(1528, 1)
        item:setAttribute("points", param)
        print(item:getAttribute("points"))

and it too, return nil
Lua:
        local item = player:addItem(1528, 1)
        item:setAttribute("points", 15)
        print(item:getAttribute("points"))
 
Last edited:
Back
Top