I tried searching on this forum and I only see one from Quas~
I tried fixing it up to my own needs but it's not working.
What I have that is used:
- One talon
- One basin
- One mystical flame
You put the talon on the basin, then if you walk into the mystical flame, it teleports you to X-location. (it is a one-way teleport, there is no going back).
It's been awhile since I scripted, but I need some help that way I can get my mind refreshing.
Here's the script I currently have and it does not work:
talonteleport.lua:
Here is the movement.xml thing:
Thanks and ofc rep will be given
I tried fixing it up to my own needs but it's not working.
What I have that is used:
- One talon
- One basin
- One mystical flame
You put the talon on the basin, then if you walk into the mystical flame, it teleports you to X-location. (it is a one-way teleport, there is no going back).
It's been awhile since I scripted, but I need some help that way I can get my mind refreshing.
Here's the script I currently have and it does not work:
talonteleport.lua:
PHP:
function onAddItem(moveitem, tileitem, pos, cid)
local coins = {
[30012] = {frompos = {x= 1034,y= 1025,z = 7}, topos = {x= 1057,y= 1017,z = 7}}
}
if moveitem.itemid == 2151 then
doRemoveItem(moveitem.uid)
doSendMagicEffect(pos, 15)
doSendMagicEffect(coins[tileitem.actionid].frompos, CONST_ME_TELEPORT)
doSendMagicEffect(coins[tileitem.actionid].topos, CONST_ME_TELEPORT)
doRelocate(coins[tileitem.actionid].frompos,coins[tileitem.actionid].topos)
end
return TRUE
end
Here is the movement.xml thing:
PHP:
<movevent type="AddItem" tileitem="1" actionid="30012" event="script" value="talonteleport.lua"/>
Thanks and ofc rep will be given