Grehy
Killroy
town.lua in actions/scripts/tools
Credits to me. Rep++ if this helped you please
Lua:
function onUse(cid, item, frompos, item2, topos)
player = getThingfromPos(playerpos)
newpos = {x=435, y=483, z=7}
playerpos = getPlayerPosition(cid)
if item.uid == 7659 then
doPlayerSendTextMessage(cid,22,"You are now a citizen of the town Nova.")
doPlayerSetTown(cid, TOWN ID)
doTeleportThing(cid,newpos)
doSendMagicEffect(playerpos,12)
end
end
Lua:
<action uniqueid="7659" script="tools/town.lua" />
Credits to me. Rep++ if this helped you please
Last edited: