Jump to content
Sign in to follow this  
vankk

[TFS 1.x] Função PVP Zone ou pz Zone

Recommended Posts

vankk    16
vankk

Olá senhoras e senhores, eu estava precisando de uma função dessa para utilizar no meu Baiak, e então decidi criar, e vim compartilhar com os senhores.

function Position.isPvPZone(self)
	local tile = Tile(self)
	if not tile then
		return false
	end

    return tile:hasFlag(TILESTATE_PVPZONE)
end

Como utilizar: player:getPosition():isPvPZone()

function Position.isPZZone(self)
	local tile = Tile(self)
	if not tile then
		return false
	end

    return tile:hasFlag(TILESTATE_PROTECTIONZONE)
end

Como utilizar: player:getPosition():isPZZone()

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.

×