Jump to content
Sign in to follow this  
underewar

DoPlayerSetMasterTown [Lua]

Recommended Posts

underewar    32
underewar

Functions.lua

Spoiler

--doPlayerSetMasterTown
function doPlayerSetMasterTown(cid, townid, pos, name)
	doPlayerSetMasterPos(cid,pos)
	doPlayerSetTown(cid,townid)
	doPlayerSendTextMessage(cid,22,"Voce agora e um residente de :  "..name..".")
end

 

Poderá ser usado em scripts simples para alterar o townid

Spoiler

function onUse(cid, item, frompos, item2, topos)
	post = {x=130, y=130, z=8}
	doPlayerSetMasterTown(cid, 1, post, "Town")
	return true
	end

 

 

 

Share this post


Link to post
Majesty    1,761
Majesty

Muito obrigado pela sua contribuição, seu tópico de conteúdo foi aprovado!
Nós do OTServ Brasil agradecemos, seu conteúdo com certeza ajudará a muitos outros. 
Você recebeu +1 REP!

Share this post


Link to post
Guest
This topic is now closed to further replies.
Sign in to follow this  
  • Recently Browsing   0 members

    No registered users viewing this page.

×