darkshin
New old member
- Joined
- Dec 14, 2010
- Messages
- 231
- Reaction score
- 22
Heey Guys!!
I was trying to modify items attributes using the lua function "setAttribute(key, value)" at a random items, just to see how it works, but It doesn't worked out for me. What happened was, the item supposedly got a Unique ID became immovable, the attributes remained the same.
This is the simple Lua code I used
Anyone know how to do it ? @Printer
I was trying to modify items attributes using the lua function "setAttribute(key, value)" at a random items, just to see how it works, but It doesn't worked out for me. What happened was, the item supposedly got a Unique ID became immovable, the attributes remained the same.
This is the simple Lua code I used
Code:
if tile:getItemById(1739) then
local item = tile:getItemById(7404)
if item then
player:say("Modified.", TALKTYPE_MONSTER_SAY)
item:setAttribute(10, 1) //SHOULD SET WEAPON ATK TO 1
end
Anyone know how to do it ? @Printer