Hi.
My server are crashing when Im using my action script.
The action script is exacly the same as any other lever script just that the item id is : 388/389 (inactive lavahole / active lavahole) but when I use the inactive lavahole the server crash.
I am using tfs 0.3.5
Lua script:
action.xml
Anyone know how to fix it? Rep+ to those who helped me.
My server are crashing when Im using my action script.
The action script is exacly the same as any other lever script just that the item id is : 388/389 (inactive lavahole / active lavahole) but when I use the inactive lavahole the server crash.
I am using tfs 0.3.5
Lua script:
Code:
function onUse(cid, item, frompos, item2, topos)
-- Lava hole--
stonepos = {x=9848, y=9857, z=10, stackpos=1}
getstone = getThingFromPos(stonepos)
if item.itemid == 388 and item.uid == 1014 then
doRemoveItem(getstone.uid, 1304)
doTransformItem(item.uid, 339)
elseif item.itemid == 389 and item.uid == 1014 then
doCreateItem(1304, 1, stonepos)
doTransformItem(item.uid, 338)
else
doPlayerSendCancel(cid, "Sorry, not possible.")
end
return 1
end
action.xml
Code:
<action uniqueid="1014" event="script" value="quest/DIQ_lever.lua"/>
Last edited: