Ir para conteúdo

Featured Replies

Resolvido por Cat

Ir para solução
  • Respostas 5
  • Visualizações 318
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

Postado
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) 
storage_guild = getGlobalStorageValue(123123) 
local tpos,v = {x=1088,y=1062,z=7},getThingPos(cid) -- {x=1,y=1,z=1} is the position you teleport to, don't change getThingPos(cid). 
local tpos1,v = {x=1170,y=1129,z=7},getThingPos(cid) -- {x=1,y=1,z=1} is the position you teleport to, don't change getThingPos(cid). 

if isPlayer(cid) then 
if getPlayerGuildId(cid) == storage_guild then 
doTeleportThing(cid,position) 
else 
doTeleportThing(cid,tpos) 
doCreatureSay(cid, "Sua Guild perdeu o castelo! :(", TALKTYPE_ORANGE_1) 
doSendMagicEffect(getPlayerPosition(cid),6) 
end 
return true 
end

precisa de uma função para verificar se é player, testa ai

Postado
  • Solução
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) 
storage_guild = getGlobalStorageValue(123123) 
local tpos,v = {x=1088,y=1062,z=7},getThingPos(cid) -- {x=1,y=1,z=1} is the position you teleport to, don't change getThingPos(cid). 
local tpos1,v = {x=1170,y=1129,z=7},getThingPos(cid) -- {x=1,y=1,z=1} is the position you teleport to, don't change getThingPos(cid). 

if isPlayer(cid) then 
if getPlayerGuildId(cid) == storage_guild then 
doTeleportThing(cid,position) 
else 
doTeleportThing(cid,tpos) 
doCreatureSay(cid, "Sua Guild perdeu o castelo! :(", TALKTYPE_ORANGE_1) 
doSendMagicEffect(getPlayerPosition(cid),6) 
end  
end
return true 
end

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo