Ir para conteúdo

Posts Recomendados

oi por que esse meu script não quer funcionar...

 

 


function onSay(cid,words,param)
local player = getCreaturePosition(cid)
if (getPlayerGuildName(getPlayerName(cid)) == "Nome da Guild") then
if getTilePzInfo(player) == TRUE then
doTeleportThing(cid,{x=528, y=917, z=7})
doPlayerSendTextMessage(cid,25,"Go COH")
else
doPlayerSendCancel(cid, "voce precisa estar na guild vencedora do COH")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
end
return TRUE
end

 

tipo to em pz tudo ele não me teleporta...

 

e tipo eu queria que quando vc n tivesse em pz mostrasse a msg tb , aí só ta mostrando quando vc não ta na guild , e tambem queria que o script funcionasse...

 

 

Obrigado!

Link para o comentário
https://xtibia.com/forum/topic/116951-d%C3%BAvida-scripting/
Compartilhar em outros sites

function onSay(cid,words,param)

local player = getCreaturePosition(cid)

if getPlayerGuildName(getPlayerName(cid)) == "Nome da Guild" then

if getTilePzInfo(player) == TRUE then

doTeleportThing(cid,{x=528, y=917, z=7})

doPlayerSendTextMessage(cid,25,"Go COH")

else

doPlayerSendCancel(cid, "Voce precisa estar na protection zone.")

doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)

end

else

doPlayerSendCancel(cid, "voce precisa estar na guild vencedora do COH")

doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)

end

return TRUE

end

Editado por lucasjockey
Link para o comentário
https://xtibia.com/forum/topic/116951-d%C3%BAvida-scripting/#findComment-767224
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...