Autor: Arkam
Do functions.lua dodaj:
[LUA]--doPlayerSetMasterTown
function doPlayerSetMasterTown(cid, townid, pos, name)
doPlayerSetMasterPos(cid,pos)
doPlayerSetTown(cid,townid)
doPlayerSendTextMessage(cid,22,"Jestes teraz mieszkancem "..name..".")
end[/LUA]
Mo?na wykorzysta? przy prostym skrypcie na zmian? townid:
[LUA]function onUse(cid, item, frompos, item2, topos)
temple1pos = {x=130, y=130, z=8}
doPlayerSetMasterTown(cid, 1, temple1pos, "Town")
return 1
end[/LUA]
Do functions.lua dodaj:
[LUA]--doPlayerSetMasterTown
function doPlayerSetMasterTown(cid, townid, pos, name)
doPlayerSetMasterPos(cid,pos)
doPlayerSetTown(cid,townid)
doPlayerSendTextMessage(cid,22,"Jestes teraz mieszkancem "..name..".")
end[/LUA]
Mo?na wykorzysta? przy prostym skrypcie na zmian? townid:
[LUA]function onUse(cid, item, frompos, item2, topos)
temple1pos = {x=130, y=130, z=8}
doPlayerSetMasterTown(cid, 1, temple1pos, "Town")
return 1
end[/LUA]