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

Lua Script Error: [Action Interface] HELP!

downloaded

New Member
Joined
Aug 12, 2017
Messages
7
Solutions
1
Reaction score
1
what's wrong ? xd
Engine
Emlq1hA.png

Script
rlPKRZp.png

actions.xml
RdO4nNy.png

Like+best answer for help!
 
Solution
First switch working and when click second switch this have error in engine and no work

I must make two scripts for anothers switches.
Code:
function onUse(cid, item, frompos, item2, topos)

gatepos1 = {x=32099, y=32205, z=8, stackpos=1}
getgate1 = getThingfromPos(gatepos1)
gatepos2 = {x=32100, y=32205, z=8, stackpos=1}
getgate2 = getThingfromPos(gatepos2)
gatepos3 = {x=32101, y=32205, z=8, stackpos=1}
getgate3 = getThingfromPos(gatepos2)

switchpos1 = {x=32098, y=32204, z=8}

dumppos = {x=1197, y=1245, z=5}
   
if item.itemid == 1945 then   
doCreateItem(1284,1,gatepos1)
doCreateItem(1284,1,gatepos2)
doCreateItem(1284,1,gatepos3)
doTransformItem(getTileItemById(switchpos1, 1945).uid,1946)

elseif item.itemid == 1946 then...
position example
doTransformItem(getTileItemById(position, 1945)
or
doTransformItem(getTileItemById(x=32098, y=32204, z=8, 1945)
????
 
First switch working and when click second switch this have error in engine and no work

I must make two scripts for anothers switches.
Code:
function onUse(cid, item, frompos, item2, topos)

gatepos1 = {x=32099, y=32205, z=8, stackpos=1}
getgate1 = getThingfromPos(gatepos1)
gatepos2 = {x=32100, y=32205, z=8, stackpos=1}
getgate2 = getThingfromPos(gatepos2)
gatepos3 = {x=32101, y=32205, z=8, stackpos=1}
getgate3 = getThingfromPos(gatepos2)

switchpos1 = {x=32098, y=32204, z=8}

dumppos = {x=1197, y=1245, z=5}
   
if item.itemid == 1945 then   
doCreateItem(1284,1,gatepos1)
doCreateItem(1284,1,gatepos2)
doCreateItem(1284,1,gatepos3)
doTransformItem(getTileItemById(switchpos1, 1945).uid,1946)

elseif item.itemid == 1946 then

doCreateItem(493,1,gatepos1)
doCreateItem(493,1,gatepos2)
doCreateItem(493,1,gatepos3)
doTransformItem(getTileItemById(switchpos1, 1946).uid,1945)
     
else
doPlayerSendCancel(cid,"Sorry not possible.")
end
  return 1
  end
 
Last edited by a moderator:
Solution
Back
Top