roriscrave
Advanced OT User
- Joined
- Dec 7, 2011
- Messages
- 1,210
- Solutions
- 35
- Reaction score
- 206
hi, look this code in tfs 0.4
it set attribute "points" in this item
and this code, check the attribute "points" in this item
is possible to make this scripts for 1.3?
i tried it, dont give me error, but always return NIL:
and it too, return nil
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: