Files
Leviathan/GameServer/AziaMafiaScriptsBackup/Funzone/cmd/tp.lua
T
2026-06-01 12:46:52 +02:00

61 lines
1.1 KiB
Lua

function help_cmdp_tp()
text = " <b>commande possible : <br><b> / tp 0 ou / tp home</b> = tp au point de retour<br> <b>/ tp 1 ou / tp gaia</b> = tp Horizon<br> <b>/ tp 2 ou / tp deva</b> = tp Laksy<br> <b>/ tp 3 ou / tp asura</b> = tp Katan"
message(text)
end
function cmdp_tp(name , tp )
if get_state_level(9903) >= 1 then
private_notice("Tp impossible en Pvp")
return
end
if tp == 0 then
x = gv("rx")
y = gv("ry")
cmd = "warp(".. x ..",".. y ..")"
text = "@90610665" -- 90610665 Point de Retour
elseif tp == 1 then --hori 152747,77253
cmd = "warp(152747,77253)"
text = "TP Horizon"
elseif tp == 2 then --laksy 6673,6923
cmd = "warp(6673,6923)"
text = "TP Laksy"
elseif tp == 3 then --asura 116848,58338
cmd = "warp(116848,58338)"
text = "TP Katan"
elseif tp == 5 then
cmd = "warp_to_instance_dungeon(100002,0)"
text = "TP Zone Ullr"
elseif tp == 6 and get_instance_dungeon_id() == 0 then
cmd = "warp(".. gv('x') ..",".. gv('y') .."," .. gv('layer') .. ",\'" .. name .. "\' )"
text = "Recall Pet"
else
return
end
dlg_special("confirm_window", cmd , text )
end