Ir para conteúdo
  • Cadastre-se

Posts Recomendados

no console do servee fica dando erro no respaw do mad mage,

[C]: in function '__index' 
...cripts/elemental spheres quest/the_elemental_spheres.lua:14: in function <...cripts/elemental spheres quest/the_elemental_spheres.lua:9> 

alguem ai sabe arrumar isso ??

Link para o post
Compartilhar em outros sites

no console do servee fica dando erro no respaw do mad mage,

[C]: in function '__index' 

...cripts/elemental spheres quest/the_elemental_spheres.lua:14: in function <...cripts/elemental spheres quest/the_elemental_spheres.lua:9> 

alguem ai sabe arrumar isso ??

Poste o seguinte script:

data/creaturescripts/scripts/elemental spheres quest/the_elemental_spheres.lua

Editado por Snowsz (veja o histórico de edições)
                              _
                          .-'` `}
                  _./)   /       }
                .'o   \ |       }
                '.___.'`.\    {`
                /`\_/  , `.    }                                      ME DA UMA NOZ!
                \=' .-'   _`\  {
                 `'`;/      `,  }
                    _\   @   ;  }
                   /__`;-...'--'

Cluck!

Link para o post
Compartilhar em outros sites

Poste o seguinte script:

data/creaturescripts/scripts/elemental spheres quest/the_elemental_spheres.lua

ta a script:

 

local boss = {
["fire overlord"] = {g_storage = 40064, p_storage = 60027},
["energy overlord"] = {g_storage = 40065, p_storage = 60028},
["ice overlord"] = {g_storage = 40066, p_storage = 60029},
["earth overlord"] = {g_storage = 40067, p_storage = 60030},
}
 
 
function onDeath(cid, corpse, lasthitkiller, mostdamagekiller, lasthitunjustified, mostdamageunjustified)
local pid = Player(mostdamagekiller)
 
local t = boss[Creature(cid):getName():lower()]
 
Player(pid):setStorageValue(t.p_storage, 1)
setGlobalStorageValue(t.g_storage, -1)
 
return true
end
 
 
function onKill(cid, target)
if Creature(target):getName():lower() == "lord of the elements" then
Player(cid):setStorageValue(60031, 1)
end
 
return true
end
 
function onLogin(cid)
Player(cid):registerEvent("ElementalSpheresKill")
return true
end

tou com esse erro tbm

 

[C]: in function '__add' 

...ipts/scripts/their master's voice quest/ServantsKill.lua:77: in function <...ipts/scripts/their master's voice quest/ServantsKill.lua:64> 

 

fica no creaturescripts\scripts\their master's voice quest\ServantsKill.lua

 

local magePositions = {
Position(33328, 31859, 9),
Position(33367, 31873, 9),
Position(33349, 31899, 9)
}
 
local positions = {
Position(33313, 31852, 9),
Position(33313, 31865, 9),
Position(33313, 31881, 9),
Position(33328, 31860, 9),
Position(33328, 31873, 9),
Position(33328, 31885, 9),
Position(33308, 31873, 9),
Position(33320, 31873, 9),
Position(33335, 31873, 9),
Position(33360, 31873, 9),
Position(33336, 31914, 9),
Position(33343, 31914, 9),
Position(33353, 31914, 9),
Position(33361, 31914, 9),
Position(33345, 31900, 9),
Position(33352, 31900, 9),
Position(33355, 31854, 9),
Position(33355, 31861, 9),
Position(33355, 31885, 9),
Position(33345, 31864, 9),
Position(33345, 31881, 9),
Position(33309, 31867, 9),
Position(33317, 31879, 9),
Position(33311, 31854, 9),
Position(33334, 31889, 9),
Position(33340, 31890, 9),
Position(33347, 31889, 9)
}
 
local servants = {
'iron servant',
'golden servant',
'diamond servant'
}
 
local function fillFungus(fromPosition, toPosition)
for x = fromPosition.x, toPosition.x do
for y = fromPosition.y, toPosition.y do
local position = Position(x, y, 9)
local tile = Tile(position)
if tile then
local item = tile:getItemById(13590)
if item then
item:transform(math.random(13585, 13589))
position:sendMagicEffect(CONST_ME_YELLOW_RINGS)
end
end
end
end
end
 
local function summonServant(position)
Game.createMonster(servants[math.random(#servants)], position)
position:sendMagicEffect(CONST_ME_TELEPORT)
end
 
function onKill(cid, target)
local targetMonster = Monster(target)
if not targetMonster then
return true
end
 
if not isInArray(servants, getCreatureName(target):lower()) then
return true
end
 
local storage984, storage985 = getGlobalStorageValue(984), getGlobalStorageValue(985)
if storage985 == #positions and storage984 < 25 then
setGlobalStorageValue(985, 0)
setGlobalStorageValue(984, storage + 1)
 
for i = 1, #positions do
addEvent(summonServant, 5 * 1000, positions)
end
 
elseif storage985 < #positions and storage984 < 25 then
setGlobalStorageValue(985, storage985 + 1)
 
elseif storage985 == #positions and storage984 == 25 then
Game.createMonster('mad mage', magePositions[math.random(#magePositions)])
targetMonster:say('The Mad Mage has been spawned!', TALKTYPE_MONSTER_SAY)
fillFungus({x = 33306, y = 31847}, {x = 33369, y = 31919})
end
return true
end
Link para o post
Compartilhar em outros sites
Não pera.
Editado por Caronte (veja o histórico de edições)

Se quiser sua dúvida tirada, mande PM com os links, e não com a dúvida (outros podem ter a mesma dúvida, e o fórum serve para ser usado).

 

Tópicos:


 

yNlhRVC.png

 

55px-Judo_yellow_belt.svg.png

Link para o post
Compartilhar em outros sites

Tenta:


 
local boss = {
["fire overlord"] = {g_storage = 40064, p_storage = 60027},
["energy overlord"] = {g_storage = 40065, p_storage = 60028},
["ice overlord"] = {g_storage = 40066, p_storage = 60029},
["earth overlord"] = {g_storage = 40067, p_storage = 60030},
}
 
 
function onDeath(cid, corpse, lasthitkiller, mostdamagekiller, lasthitunjustified, mostdamageunjustified)
local pid = Player(mostdamagekiller)
 
local t = boss[Creature(cid):getName():lower()]
 
pid:setStorageValue(t.p_storage, 1)
setGlobalStorageValue(t.g_storage, -1)
 
return true
end
 
 
function onKill(cid, target)
if Creature(target):getName():lower() == "lord of the elements" then
Player(cid):setStorageValue(60031, 1)
end
 
return true
end
 
function onLogin(cid)
Player(cid):registerEvent("ElementalSpheresKill")
return true
end
tou com esse erro tbm
 
[C]: in function '__add' 
...ipts/scripts/their master's voice quest/ServantsKill.lua:77: in function <...ipts/scripts/their master's voice quest/ServantsKill.lua:64> 
 
fica no creaturescripts\scripts\their master's voice quest\ServantsKill.lua
 
local magePositions = {
Position(33328, 31859, 9),
Position(33367, 31873, 9),
Position(33349, 31899, 9)
}
 
local positions = {
Position(33313, 31852, 9),
Position(33313, 31865, 9),
Position(33313, 31881, 9),
Position(33328, 31860, 9),
Position(33328, 31873, 9),
Position(33328, 31885, 9),
Position(33308, 31873, 9),
Position(33320, 31873, 9),
Position(33335, 31873, 9),
Position(33360, 31873, 9),
Position(33336, 31914, 9),
Position(33343, 31914, 9),
Position(33353, 31914, 9),
Position(33361, 31914, 9),
Position(33345, 31900, 9),
Position(33352, 31900, 9),
Position(33355, 31854, 9),
Position(33355, 31861, 9),
Position(33355, 31885, 9),
Position(33345, 31864, 9),
Position(33345, 31881, 9),
Position(33309, 31867, 9),
Position(33317, 31879, 9),
Position(33311, 31854, 9),
Position(33334, 31889, 9),
Position(33340, 31890, 9),
Position(33347, 31889, 9)
}
 
local servants = {
'iron servant',
'golden servant',
'diamond servant'
}
 
local function fillFungus(fromPosition, toPosition)
for x = fromPosition.x, toPosition.x do
for y = fromPosition.y, toPosition.y do
local position = Position(x, y, 9)
local tile = Tile(position)
if tile then
local item = tile:getItemById(13590)
if item then
item:transform(math.random(13585, 13589))
position:sendMagicEffect(CONST_ME_YELLOW_RINGS)
end
end
end
end
end
 
local function summonServant(position)
Game.createMonster(servants[math.random(#servants)], position)
position:sendMagicEffect(CONST_ME_TELEPORT)
end
 
function onKill(cid, target)
local targetMonster = Monster(target)
if not targetMonster then
return true
end
 
if not isInArray(servants, getCreatureName(target):lower()) then
return true
end
 
local storage984, storage985 = getGlobalStorageValue(984), getGlobalStorageValue(985)
if storage985 == #positions and storage984 < 25 then
setGlobalStorageValue(985, 0)
setGlobalStorageValue(984, storage + 1)
 
for i = 1, #positions do
addEvent(summonServant, 5 * 1000, positions[i])
end
 
elseif storage985 < #positions and storage984 < 25 then
setGlobalStorageValue(985, storage985 + 1)
 
elseif storage985 == #positions and storage984 == 25 then
Game.createMonster('mad mage', magePositions[math.random(#magePositions)])
targetMonster:say('The Mad Mage has been spawned!', TALKTYPE_MONSTER_SAY)
fillFungus({x = 33306, y = 31847}, {x = 33369, y = 31919})
end
return true
end

                              _
                          .-'` `}
                  _./)   /       }
                .'o   \ |       }
                '.___.'`.\    {`
                /`\_/  , `.    }                                      ME DA UMA NOZ!
                \=' .-'   _`\  {
                 `'`;/      `,  }
                    _\   @   ;  }
                   /__`;-...'--'

Cluck!

Link para o post
Compartilhar em outros sites

ainda ficou dando o erro 
[C]: in function '__add' 
...ipts/scripts/their master's voice quest/ServantsKill.lua:77: in function <...ipts/scripts/their master's voice quest/ServantsKill.lua:64> 

Link para o post
Compartilhar em outros sites
  • 4 weeks later...
  • 4 weeks later...

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

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo