What's new

Lua Functions doPlayerSetMasterTown

Status
Not open for further replies.

Thorge D

Advanced User
Joined
Jul 24, 2014
Messages
300
Reaction score
29
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]
 
Status
Not open for further replies.
Top