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

add itens on teleport (flame) and exausted on spellrune

Dogrinha

New Member
Joined
Oct 6, 2019
Messages
206
Solutions
1
Reaction score
2
tfs 0.4

What function do I use to add fire permission to throw items and also be teleported?


LUA:
local pos = {x = 33207, y = 32590, z = 8}

function onStepIn(cid, item, position, fromPosition)
if getPlayerAccess(cid) then
doTeleportThing(cid, pos)
doSendMagicEffect(getThingPos(cid), 37)
end
return true
end
 
Solution
Try this one
XML:
<movevent type="AddItem" actionid="2001" tileitem="1" event="script" value="xxxx.lua"/>
LUA:
local pos = {x = 33207, y = 32590, z = 8}
function onAddItem(moveitem, tileitem, position)
  doTeleportThing(moveitem.uid, pos, TRUE)
  doSendMagicEffect(getThingPos(cid), 37)
  return true
end
What is fire permission? Please take your time translating and writing your thread then post as much useful information as possible so we can help you.
 
Well, just Characters are passing through the Flame, but i actually want that itens can pass through de Flame too, but this function isn't working.
 
Add this to data\movements\movements.xml
XML:
<movevent type="AddItem" actionid="2001" tileitem="1" event="script" value="xxxx.lua"/>
and add this script with your chosen name to data\movements\scripts\xxxx.lua
LUA:
function onAddItem(moveitem, tileitem, position)
  doRemoveItem(moveitem.uid)
  return true
end
 
I don't want her to remove the item, I want it to work as teleport, it works as teleport only for players, but they can't send bagloots for her for example
 
Try this one
XML:
<movevent type="AddItem" actionid="2001" tileitem="1" event="script" value="xxxx.lua"/>
LUA:
local pos = {x = 33207, y = 32590, z = 8}
function onAddItem(moveitem, tileitem, position)
  doTeleportThing(moveitem.uid, pos, TRUE)
  doSendMagicEffect(getThingPos(cid), 37)
  return true
end
 
Solution
I edited my reply on how to add it and you shouldn't remove your script you'll use both on the teleport set the actionID/uniqueID for teleport.
 
Back
Top