Hello, I have problem with function doSetItemActionId in my script. In server console I can see this error:
The part of my script:
The line 123 where is problem:
Please help me with this. I think I tryed almost everything <_<.
[04/02/2010 12:55:51] [Error - Action Interface]
[04/02/2010 12:55:51] data/actions/scripts/quest/levers/banshee quest warlocks.luanUse
[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 <_<.