orzeleagle
Member
Paid Teleport:
in .../movements/scripts/tp.lua:
in movements.xml:
rep me ;D
in .../movements/scripts/tp.lua:
PHP:
local c = {cost = 100, position = {x = 1, y = 1, z = 7}, effect = 10}
function onStepIn(cid, item, position, fromPosition)
if doPlayerRemoveMoney(cid, c.cost) then
doTeleportThing(cid, c.position, true)
doSendMagicEffect(c.position, c.effect)
else
doPlayerSendCancel(cid, "You need to have " .. c.cost .. " gp.")
end
return true
end
in movements.xml:
PHP:
<movevent event="StepIn" actionid="2121" script="tp.lua" />
rep me ;D
Last edited: