local item = player:addItem(2523) -- blessed shield :3
if not item then
return true
end
item:setActionId(value)
end
you can use ..
Code:local item = player:addItem(2523) -- blessed shield :3 if not item then return true end item:setActionId(value) end
local item = doCreateItem(pos, 1, id)
if not item then
return true
end
item:setActionId(value)
Code:local item = doCreateItem(pos, 1, id) if not item then return true end item:setActionId(value)
Could it work?
--Taken from sources
--doCreateItem(itemid, type/count, pos)
local item = doCreateItem(id, 1 pos)
if not item then
return true
end
item:setActionId(value)
here workCode:local item = doCreateItem(pos, 1, id) if not item then return true end item:setActionId(value)
Could it work?
here work
function onSay(player, words, param)
local item = doCreateItem(405, 1, {x=193, y=386, z=6})
if not item then
return true
end
item:setActionId(5401)
return true
end
local item = doCreateItem(405, 1, {x=193, y=386, z=6})
doSetItemActionId(item, 4501)
Could you pls send me your example?
Mine is not working.
Code:function onSay(player, words, param) local item = doCreateItem(405, 1, {x=193, y=386, z=6}) if not item then return true end item:setActionId(5401) return true end
item = doCreateItem(405, 1, {x=193, y=386, z=6})
doSetItemActionId(item, 5401)