• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

How to put action id in magicforce field

Could you explain more with pictures?
sure
hlci23f.png
 
doItemSetActionId(uid, actionid) in sccript something like this

local createpos = config.tpPositions[math.random(#config.tpPositions)]
local tp = doCreateTeleport(1387, config.toPos, createpos)
doItemSetAttribute(tp, "aid", 4408)


that mean tp will creat with this actionid

if you need to add actionid from map editor you have to follow this

33ekin7.jpg
 
doItemSetActionId(uid, actionid) in sccript something like this

local createpos = config.tpPositions[math.random(#config.tpPositions)]
local tp = doCreateTeleport(1387, config.toPos, createpos)
doItemSetAttribute(tp, "aid", 4408)


that mean tp will creat with this actionid

if you need to add actionid from map editor you have to follow this

33ekin7.jpg
I've do that but it's still not working

i'm using xml server 8.1
 
Last edited by a moderator:
yeah ofc
Code:
 <movevent event="StepIn" actionid="23142" script="ratlevel.lua" />

map editor says This teleport leads nowehere, or to an invalid location. Do you want to change the destination?
 
Last edited:
Back
Top