Ir para conteúdo

Featured Replies

  • Respostas 10
  • Visualizações 1.1k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Posta a função granEffect junto com onde é definido uma tabela com nome granEffect também

  • Troca stopEvent(granEffect[cid]) por stopEvent(events[cid])

  • Você mudou algo a mais. Mande o script de como está agora. Ou é possível que tenha dado erro no console. Veja se tem algum erro no console.

Postado
  • Autor

Não funcionou Elwyn

 

 

Quando o player mata a boss não está mandando a mensagem pro server e tambem não retirou o granEffect do player que era pra perder.

 

Será que o erro não está nesta linha:

 

if getPlayerStorageValue(cid, 13340) == 0 then

 

?

 

Quando uma guild mata a boss e outra guild que tinha a storage 13340 fica realmente zerada?

"Derrotar o inimigo em cem batalhas não é a excelência suprema; a excelência suprema consiste em vencer o inimigo sem ser preciso lutar."

 

mcYVuRL.png

 


 

logo_SS.png

Postado
  • Autor

PS: Não deu erro no console.

local function Teleport(cid)
 
doSendAnimatedText(getPlayerPosition(cid), "Aaaaah...", TEXTCOLOR_BLUE)
 
local templo = {x=442, y=549, z=7}
 
for j = 0, 60 do
starting = {x=839 + j, y=952, z=7, stackpos=253}
 
for i = 0, 60 do
checking={x=starting.x, y=starting.y + i, z=starting.z, stackpos=starting.stackpos}
creature= getThingfromPos(checking)
 
if isPlayer(creature.uid) == TRUE then
doTeleportThing(creature.uid, templo)
end
 
end
 
end
 
for j = 0, 61 do
starting = {x=1128 + j, y=1120, z=6, stackpos=253}
 
for i = 0, 6 do
checking={x=starting.x, y=starting.y + i, z=starting.z, stackpos=starting.stackpos}
creature= getThingfromPos(checking)
 
if isPlayer(creature.uid) == TRUE then
doTeleportThing(creature.uid,templo)
end
 
end
 
end
 
for j = 0, 14 do
starting = {x=1151 + j, y=1115, z=6, stackpos=253}
 
for i = 0, 5 do
checking={x=starting.x, y=starting.y + i, z=starting.z, stackpos=starting.stackpos}
creature= getThingfromPos(checking)
 
if isPlayer(creature.uid) == TRUE then
doTeleportThing(creature.uid,templo)
end
 
end
 
end
 
for j = 0, 14 do
starting = {x=1151 + j, y=1127, z=6, stackpos=253}
 
for i = 0, 5 do
checking={x=starting.x, y=starting.y + i, z=starting.z, stackpos=starting.stackpos}
creature= getThingfromPos(checking)
 
if isPlayer(creature.uid) == TRUE then
doTeleportThing(creature.uid,templo)
end
 
end
 
end
 
for j = 0, 49 do
starting = {x=1134 + j, y=1120, z=5, stackpos=253}
 
for i = 0, 6 do
checking={x=starting.x, y=starting.y + i, z=starting.z, stackpos=starting.stackpos}
creature= getThingfromPos(checking)
 
if isPlayer(creature.uid) == TRUE then
doTeleportThing(creature.uid,templo)
end
 
end
 
end
 
for j = 0, 14 do
starting = {x=1151 + j, y=1115, z=5, stackpos=253}
 
for i = 0, 5 do
checking={x=starting.x, y=starting.y + i, z=starting.z, stackpos=starting.stackpos}
creature= getThingfromPos(checking)
 
if isPlayer(creature.uid) == TRUE then
doTeleportThing(creature.uid,templo)
end
 
end
 
end
 
for j = 0, 14 do
starting = {x=1151 + j, y=1127, z=5, stackpos=253}
 
for i = 0, 5 do
checking={x=starting.x, y=starting.y + i, z=starting.z, stackpos=starting.stackpos}
creature= getThingfromPos(checking)
 
if isPlayer(creature.uid) == TRUE then
doTeleportThing(creature.uid,templo)
end
 
end
 
end
 
return TRUE
end
 
function onKill(cid, target, lastHit)
 
local monstros ={"Gran Tower","gran tower"}
 
if getCreatureTarget(cid) ~= 0 then
if isMonster(target) == TRUE then
for i = 1, 2 do
nome = getCreatureName(getCreatureTarget(cid))
if (nome == monstros[i]) then
if getPlayerStorageValue(cid, 13340) ~= 1 then
setGlobalStorageValue(13340, getPlayerGuildId(cid))
granEffect(cid)
if getPlayerStorageValue(cid, 13340) == 0 then
stopEvent(events[cid])
doSendMagicEffect(getCreaturePosition(cid), 47)
broadcastMessage("O player ".. getPlayerName(cid) .." conquistou o Gran Castle, e todos membros da guild ".. getPlayerGuildName(cid) .." acabam de receber a Gran Aura.")
end
addEvent(Teleport, 1000, cid)
end
end
end
end
end
 
return TRUE
end

Editado por Rofl (veja o histórico de edições)

"Derrotar o inimigo em cem batalhas não é a excelência suprema; a excelência suprema consiste em vencer o inimigo sem ser preciso lutar."

 

mcYVuRL.png

 


 

logo_SS.png

Postado
  • Autor

up

"Derrotar o inimigo em cem batalhas não é a excelência suprema; a excelência suprema consiste em vencer o inimigo sem ser preciso lutar."

 

mcYVuRL.png

 


 

logo_SS.png

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.6k

Informação Importante

Confirmação de Termo