teleport_to_town.lua

main 14 lines · 283 bytes Raw
Alex Alex Commit Server upload 18/10/2026 23:38
1function onSay(player, words, param)
2 if player:getGroup():getId() < 3 then
3 return false
4 end
5
6 local town = Town(param) or Town(tonumber(param))
7 if town then
8 player:teleportTo(town:getTemplePosition())
9 else
10 player:sendCancelMessage("Town not found.")
11 end
12 return false
13end
14
Top