• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action when use object teleport you

andrewss

Nice Member
Joined
Jun 12, 2010
Messages
122
Reaction score
1
Location
E G Y P T
............hi
............my script easy
first it's for tfs 0.3.6 and [8.54]
open data/actions/tp1.lua addfile=tp1
Code:
  function onUse(cid, item, fromPosition, itemEx, toPosition)
local newPos = {x=1000, y=1000, z=7}
        doTeleportThing(cid, newPos)
        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HEARTS)
return true
end
it's so easy :D
now go data/actions/action.xml
Code:
      <action actionid="70" script="other/volue.lua" />
now say /i id of item when do this say on item /attr action 70
or in map click x2 and write actionid= 70
now you have the script :thumbup: good luck
bye cya
25f5col.jpg
 
Last edited:
............hi
............my script easy
first it's for tfs 0.3.6 and [8.54]
open data/actions/tp1.lua addfile=tp1
Code:
  function onUse(cid, item, fromPosition, itemEx, toPosition)
local newPos = {x=1000, y=1000, z=7}
        doTeleportThing(cid, newPos)
        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HEARTS)
return true
end
it's so easy :D
now go data/actions/action.xml
Code:
      <action actionid="70" script="other/volue.lua" />
now say /i id of item when do this say on item /attr action 70
or in map click x2 and write actionid= 70
now you have the script :thumbup: good luck
bye cya
25f5col.jpg

i dont get it,first u say make a file named tp1 and then in actions u put script="other/volue.lua"

srsly dont get it :S ,sorry im noob
 
Well just change
Code:
script="other/volue.lua"
to
Code:
script="whatever the name is and wherever your file is.lua"
Just like:
Code:
<action actionid="70" script="tp1.lua" />
 
But only works if u are in protection zone not? -.-'
 
no u can use it in protection zone and in all
but there is a probleme when one in jail he can teleport
 
Back
Top