Ir para conteúdo

Featured Replies

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

Top Posters In This Topic

Most Popular Posts

Postado
  • Autor

Aqui está:

 

local t = {


    
newPos = {x=33062, y=31029, z=7},
    
msg = "You have won! As new champion take the ancient armor as reward before you leave.",
    
area = {
        
fromX = 33054, toX = 33073,
        
fromY = 31026, toY = 32356,
        
z = 3
    }
}
local
spheres = {
    
['energy overlord'] = 8568,
    
['fire overlord'] = 8569,
    
['ice overlord'] = 8570,
    
['earth overlord'] = 8578
}



function getCreaturesInRange(position, radiusx, radiusy, showMonsters, showPlayers, showSummons)
    
local creaturesList = {}
    
for x = -radiusx, radiusx do
        
for y = -radiusy, radiusy do
            
if not (x == 0 and y == 0) then
                
creature = getTopCreature({x = position.x+x, y = position.y+y,
z = position.z, stackpos = 253})
                
if (creature.type == 1 and showPlayers == TRUE) or (creature.type == 2 and showMonsters == TRUE and (showSummons == FALSE or (showSummons == TRUE and getCreatureMaster(creature.uid) == (creature.uid)))) then
                
table.insert(creaturesList, creature.uid)
                
end
            
end
        
end
    
end

    
local creature = getTopCreature(position)
    
if(creature.type == 1 and showPlayers == TRUE) or (creature.type == 2 and showMonsters == TRUE and (showSummons == FALSE or (showSummons == TRUE and getCreatureMaster(creature.uid) == (creature.uid)))) then
              
if not(table.find(creaturesList, creature.uid)) then
            
table.insert(creaturesList, creature.uid)
        
end
    
end
    
return creaturesList
end
function onKill(cid, target, damage, flags)
    
if isPlayer(target) or not isInArray({1, 3}, flags) or getCreatureMaster(target) then
        
return true
    
end

    
local name = getCreatureName(target):lower()
    
if name == 'tirecz' then
        
local players = getCreaturesInRange({x=33063, y=31035,z=3}, 10, 9, FALSE, TRUE)
        
for i = 1, #players do
            
doTeleportThing(players, t.newPos)
            
doCreatureSay(players, t.msg, TALKTYPE_ORANGE_1, false, players, getCreaturePosition(players))
    
end
        
return true
    
end

    
if spheres[name] then
        
setGlobalStorageValue(spheres[name], -1)
        
return true
    
end

    
local now = tasks[name]
    if (now) then
        
if isInArray({-1, now.amount}, getPlayerStorageValue(cid, now.storage)) or (not isInArray({14003, 14004, 14005}, now.storage) and getPlayerStorageValue(cid, 14500) ~= now.storage) then
            
return true
        
end

        
local newValue = getPlayerStorageValue(cid, now.storage) + 1
        
setPlayerStorageValue(cid, now.storage, newValue)
    
end

    
local room = getArenaMonsterIdByName(getCreatureName(target))
    if room > 0 then
        
setPlayerStorageValue(cid, room, 1)
        
doPlayerSendTextMessage(cid,MESSAGE_EVENT_DEFAULT,'You can enter next room!')
    
end
    
return true

end

Ajudei? Dá um Rep+ aí please! :D

Postado
  • Autor

Tem os scripts da Arena sim, mas eu nunca testei a quest em si.

Ajudei? Dá um Rep+ aí please! :D

Postado
  • Solução

caso arena não funcione recomendo desativar esse script ate por que eu nunca tive esse erro com arena svargrond.

www.pokemiw.com
24 Horas Online - 1º 2º 3º 4º 5º 6º 7º gerações 100%
 

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.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo