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

Problem with doSetItemActionId

Xyzyk

RudziutOTS Maker
Joined
Jun 14, 2008
Messages
39
Reaction score
0
Location
Poland
Hello, I have problem with function doSetItemActionId in my script. In server console I can see this error:
[04/02/2010 12:55:51] [Error - Action Interface]
[04/02/2010 12:55:51] data/actions/scripts/quest/levers/banshee quest warlocks.lua:onUse
[04/02/2010 12:55:51] Description:
[04/02/2010 12:55:51] ...ions/scripts/quest/levers/banshee quest warlocks.lua:123: attempt to call global 'doSetItemActionId' (a nil value)
[04/02/2010 12:55:51] stack traceback:
[04/02/2010 12:55:51] ...ions/scripts/quest/levers/banshee quest warlocks.lua:123: in function <...ions/scripts/quest/levers/banshee quest warlocks.lua:1>

The part of my script:
elseif item.actionid == 8764 and item.itemid == 1946 then
if getThingFromPos(lever3).itemid == 1945 then
if doCreatureAddMana(cid, -700) then
doTransformItem(item.uid,item.itemid-1)
doSummonCreature("Warlock", warlock1)
doSummonCreature("Warlock", warlock2)
doSummonCreature("Warlock", warlock3)
doSummonCreature("Warlock", warlock4)
doSendMagicEffect(warlock1, 10)
doSendMagicEffect(warlock2, 10)
doSendMagicEffect(warlock3, 10)
doSendMagicEffect(warlock4, 10)
doSendMagicEffect(frompos, 12)
local flame = {x=50, y=878, z=14, stackpos=1}
local getflame = getThingfromPos(flame)
doCreateItem(1397,1,flame)
doSetItemActionId(getflame.uid, 8734)
doSendMagicEffect(flame, 6)
else
doSendMagicEffect(frompos, 2)
doPlayerSendCancel(cid, "You need 700 mana points.")
end
else
doSendMagicEffect(frompos, 2)
doPlayerSendCancel(cid, "You cannot pull this lever.")
end

The line 123 where is problem:
doSetItemActionId(getflame.uid, 8734)

Please help me with this. I think I tryed almost everything <_<.
 
Looks like you use TFS 0.3.6:
LUA:
doItemSetAttribute(doCreateItem(1397, 1, flame), "aid", 8734)

The command was changed from doSetItemActionId -> doItemSetAttribute(ItemID, "aid", ActionID)
 
Last edited:
Back
Top