Ir para conteúdo
  • Cadastre-se

(Resolvido)Spawn bug: Unknown event name - monster2


Ir para solução Resolvido por Mdcrf,

Posts Recomendados

Pessoal, estou ajeitando meu server e meu spawn sempre dá esse erro quando liga o server 

 

[4:19:26.359] >> Initializing game state and binding services... 
[4:19:26.366] [Warning - Monster::Monster] Unknown event name - monster2 
[4:19:26.374] [Warning - Monster::Monster] Unknown event name - monster2 
[4:19:26.374] [Warning - Monster::Monster] Unknown event n[19/4/2015 4:19:26] [Warning - Monster::Monster] Unknown event name - monster2 
[19/4/2015 4:19:26] [Warning - Monster::Monster] Unknown event name - monster2 
[19/4/2015 4:19:26] [Warning - Monster::Monster] Unknown event name - monster2 
[19/4/2015 4:19:26] [Warning - Monster::Monster] Unknown event name - monster2 
[19/4/2015 4:19:26] [Warning - Monster::Monster] Unknown event name - monster2 
[19/4/2015 4:19:26] [Warning - Monster::Monster] Unknown event name - monster2 
[19/4/2015 4:19:26] [Warning - Monster::Monster] Unknown event name - monster2 
[19/4/2015 4:19:26] [Warning - Monster::Monster] Unknown event name - monster2 
[19/4/2015 4:19:26] [Warning - Monster::Monster] Unknown event name - monster2 
[19/4/2015 4:19:26] [Warning - Monster::Monster] Unknown event name - monster2 
[19/4/2015 4:19:26] [Warning - Monster::Monster] Unknown event name - monster2 
[19/4/2015 4:19:26] [Warning - Monster::Monster] Unknown event name - monster2 
[19/4/2015 4:19:26] [Warning - Monster::Monster] Unknown event name - monster2 
[19/4/2015 4:19:26] [Warning - Monster::Monster] Unknown event name - monster2 
[19/4/2015 4:19:26] > Global IP address

 

 

oque eu faço? :(

Link para o post
Compartilhar em outros sites

<?xml version="1.0" encoding="UTF-8"?>

<creaturescripts>
<event type="login" name="PlayerLogin" event="script" value="login.lua"/>
<event type="joinchannel" name="GuildMotd" event="script" value="guildmotd.lua"/>
<event type="receivemail" name="Mail" event="script" value="mail.lua"/>
<event type="reportbug" name="SaveReportBug" script="reportbug.lua"/>
 
<event type="login" name="viplogin" script="viplogin.lua"/>
 
<event type="think" name="Idle" event="script" value="idle.lua"/>
<event type="think" name="SkullCheck" event="script" value="skullcheck.lua"/>
<event type="death" name="PlayerDeath" event="script" value="playerdeath.lua"/>
 
<event type="PrepareDeath" name="pvparena" script="pvparena.lua"/>
<event type="death" name="incendio" script="incendioMonster.lua"/>
<event type="kill" name="KillingInTheNameOf" event="script" value="killinginthenameof.lua"/>
</creaturescripts>

 

<?xml version="1.0" encoding="UTF-8"?>

<globalevents>
<globalevent name="save" interval="1600000" event="script" value="save.lua"/>
<globalevent name="clean" interval="2500000" event="script" value="clean.lua"/>
<globalevent name="serverstart" type="start" event="script" value="start.lua"/>
<globalevent name="playersrecord" type="record" event="script" value="record.lua"/>
<globalevent name="shop" interval="30000" script="shop.lua"/> 
<globalevent name="texto" interval="1000" script="texto.lua"/> 
</globalevents>

Link para o post
Compartilhar em outros sites

Manda esses Dois arquivos aqui >>> 

<event type="death" name="incendio" script="incendioMonster.lua"/>

<event type="kill" name="KillingInTheNameOf" event="script" value="killinginthenameof.lua"/>

 

e vai no monsters, e manda o arquivo do monster2

Link para o post
Compartilhar em outros sites

function onDeath(killer, monster, corpse, damage, totaldamage) 

-- Configuracao
  local fromArea = {x =168, y = 735, z = 7} -- Area que o incendio aconteceu
  local toArea =  {x = 200, y = 772, z = 7}-- Area que o incendio aconteceu
  local FFID = {1487,1488,1489} -- ID dos Fire Fields
  local FWID = {5063} -- ID dos FireWalls
-- Fim de Configuracao
 
addEvent(doRemoveIncendio, math.random(5,15)*1000, fromArea, toArea, FFID, FWID)
return TRUE
end 
 
function doRemoveIncendio(fromArea, toArea, FFID, FWID)
  local posNow = {x = 0, y = 0, z = 0, stackpos = 2}
  local itemRemover = 0
 
  for t = fromArea.z, toArea.z do -- Area
    for n = fromArea.y, toArea.y do
      for i = fromArea.x, toArea.x do
 
        for it = 1, table.maxn(FFID) do
          for st = 1, 3 do
            posNow = {x = i, y = n, z = t, stackpos = st}
       itemRemover = getThingFromPos(posNow)
            if itemRemover.itemid == FFID[it] then
              doRemoveItem(itemRemover.uid)
            end
          end
        end
        for it = 1, table.maxn(FWID) do
          for st = 1, 3 do
            posNow = {x = i, y = n, z = t, stackpos = st}
       itemRemover = getThingFromPos(posNow)
            if itemRemover.itemid == FWID[it] then
              doRemoveItem(itemRemover.uid)
            end
          end
        end
 
      end
    end
  end
 
return TRUE
end

 

 

function onKill(cid, target, lastHit)

local questCreatures =
{
        ["troll"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15000, killsRequired = 100, raceName = "Trolls"},
        ["frost troll"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15001, killsRequired = 100, raceName = "Trolls"},
        ["furious troll"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15002, killsRequired = 100, raceName = "Trolls"},
        ["island troll"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15003, killsRequired = 100, raceName = "Trolls"},
        ["swamp troll"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15004, killsRequired = 100, raceName = "Trolls"},
        ["troll champion"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15005, killsRequired = 100, raceName = "Trolls"},
        ["troll legionnaire"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15006, killsRequired = 100, raceName = "Trolls"},
        ["goblin"] = {questStarted = 1511, questStorage = 65001, creatureStorage = 15007, killsRequired = 150, raceName = "Goblins"},
        ["goblin assassin"] = {questStarted = 1511, questStorage = 65001, creatureStorage = 15008, killsRequired = 150, raceName = "Goblins"},
        ["goblin leader"] = {questStarted = 1511, questStorage = 65001, creatureStorage = 15009, killsRequired = 150, raceName = "Goblins"},
        ["goblin scavenger"] = {questStarted = 1511, questStorage = 65001, creatureStorage = 15010, killsRequired = 150, raceName = "Goblins"},
        ["rotworm"] = {questStarted = 1512, questStorage = 65002, creatureStorage = 15011, killsRequired = 300, raceName = "Rotworms"},
        ["carriom worm"] = {questStarted = 1512, questStorage = 65002, creatureStorage = 15012, killsRequired = 300, raceName = "Rotworms"},
        ["cyclops"] = {questStarted = 1513, questStorage = 65003, creatureStorage = 15013, killsRequired = 500, raceName = "Cyclops"},
        ["cyclops smith"] = {questStarted = 1513, questStorage = 65003, creatureStorage = 15014, killsRequired = 500, raceName = "Cyclops"},
        ["cyclops drone"] = {questStarted = 1513, questStorage = 65003, creatureStorage = 15015, killsRequired = 500, raceName = "Cyclops"},
        ["crocodile"] = {questStarted = 1514, questStorage = 65004, creatureStorage = 15016, killsRequired = 300, raceName = "Crocodiles"},
        ["tarantula"] = {questStarted = 1515, questStorage = 65005, creatureStorage = 15017, killsRequired = 300, raceName = "Tarantulas"},
        ["carniphila"] = {questStarted = 1516, questStorage = 65006, creatureStorage = 15018, killsRequired = 150, raceName = "Carniphilas"},
        ["stone golem"] = {questStarted = 1517, questStorage = 65007, creatureStorage = 15019, killsRequired = 200, raceName = "Stone Golems"},
        ["mammoth"] = {questStarted = 1518, questStorage = 65008, creatureStorage = 15020, killsRequired = 300, raceName = "Mammoths"},
        ["ice golem"] = {questStarted = 1519, questStorage = 65009, creatureStorage = 15021, killsRequired = 300, raceName = "Ice Golems"},
        ["quara predator scout"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15022, killsRequired = 300, raceName = "Quaras Scout"},
        ["quara constrictor scout"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15023, killsRequired = 300, raceName = "Quaras Scout"},
        ["quara hydromancer scout"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15024, killsRequired = 300, raceName = "Quaras Scout"},
        ["quara mantassin scout"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15025, killsRequired = 300, raceName = "Quaras Scout"},
        ["quara pincher scout"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15026, killsRequired = 300, raceName = "Quaras Scout"},
        ["quara predator"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15027, killsRequired = 300, raceName = "Quaras"},
        ["quara constrictor"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15028, killsRequired = 300, raceName = "Quaras"},
        ["quara hydromancer"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15029, killsRequired = 300, raceName = "Quaras"},
        ["quara mantassin"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15030, killsRequired = 300, raceName = "Quaras"},
        ["quara pincher"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15031, killsRequired = 300, raceName = "Quaras"},
        ["water elemental"] = {questStarted = 1522, questStorage = 65012, creatureStorage = 15032, killsRequired = 70, raceName = "Water Elementals"},
        ["roaring water elemental"] = {questStarted = 1522, questStorage = 65012, creatureStorage = 15033, killsRequired = 70, raceName = "Water Elementals"},
        ["slick water elemental"] = {questStarted = 1522, questStorage = 65012, creatureStorage = 15034, killsRequired = 70, raceName = "Water Elementals"},
        ["massive water elemental"] = {questStarted = 1522, questStorage = 65012, creatureStorage = 15035, killsRequired = 70, raceName = "Water Elementals"},
        ["earth elemental"] = {questStarted = 1523, questStorage = 65013, creatureStorage = 15036, killsRequired = 70, raceName = "Earth Elementals"},
        ["jagged earth elemental"] = {questStarted = 1523, questStorage = 65013, creatureStorage = 15037, killsRequired = 70, raceName = "Earth Elementals"},
        ["massive earth elemental"] = {questStarted = 1523, questStorage = 65013, creatureStorage = 15038, killsRequired = 70, raceName = "Earth Elementals"},
        ["muddy earth elemental"] = {questStarted = 1523, questStorage = 65013, creatureStorage = 15039, killsRequired = 70, raceName = "Earth Elementals"},
        ["energy elemental"] = {questStarted = 1524, questStorage = 65014, creatureStorage = 15040, killsRequired = 70, raceName = "Energy Elementals"},
        ["charged energy elemental"] = {questStarted = 1524, questStorage = 65014, creatureStorage = 15041, killsRequired = 70, raceName = "Energy Elementals"},
        ["massive energy elemental"] = {questStarted = 1524, questStorage = 65014, creatureStorage = 15042, killsRequired = 70, raceName = "Energy Elementals"},
        ["overcharged energy elemental"] = {questStarted = 1524, questStorage = 65014, creatureStorage = 15043, killsRequired = 70, raceName = "Energy Elementals"},
        ["fire elemental"] = {questStarted = 1525, questStorage = 65015, creatureStorage = 15044, killsRequired = 70, raceName = "Fire Elementals"},
        ["blazing fire elemental"] = {questStarted = 1525, questStorage = 65015, creatureStorage = 15045, killsRequired = 70, raceName = "Fire Elementals"},
        ["blistering fire elemental"] = {questStarted = 1525, questStorage = 65015, creatureStorage = 15046, killsRequired = 70, raceName = "Fire Elementals"},
        ["massive fire elemental"] = {questStarted = 1525, questStorage = 65015, creatureStorage = 15047, killsRequired = 70, raceName = "Fire Elementals"},
        ["mutated rat"] = {questStarted = 1526, questStorage = 65016, creatureStorage = 15048, killsRequired = 200, raceName = "Mutated Rats"},
        ["giant spider"] = {questStarted = 1527, questStorage = 65017, creatureStorage = 15049, killsRequired = 500, raceName = "Giant Spiders"},
        ["hydra"] = {questStarted = 1528, questStorage = 65018, creatureStorage = 15050, killsRequired = 2000, raceName = "Hydras"},
        ["sea serpent"] = {questStarted = 1529, questStorage = 65019, creatureStorage = 15051, killsRequired = 2000, raceName = "Sea Serpents"},
        ["behemoth"] = {questStarted = 1530, questStorage = 65020, creatureStorage = 15052, killsRequired = 2000, raceName = "Behemoths"},
        ["serpent spawn"] = {questStarted = 1531, questStorage = 65021, creatureStorage = 15053, killsRequired = 1500, raceName = "Serpents Spawn"},
        ["green djinn"] = {questStarted = 1532, questStorage = 65022, creatureStorage = 15054, killsRequired = 500, raceName = "Green Djinns"},
        ["efreet"] = {questStarted = 1532, questStorage = 65022, creatureStorage = 15055, killsRequired = 500, raceName = "Green Djinns"},
        ["blue djinn"] = {questStarted = 1533, questStorage = 65023, creatureStorage = 15056, killsRequired = 500, raceName = "Blue Djinns"},
        ["marid"] = {questStarted = 1533, questStorage = 65023, creatureStorage = 15057, killsRequired = 500, raceName = "Blue Djinns"},
        ["pirate buccaneer"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15058, killsRequired = 3000, raceName = "Pirates"},
        ["pirate corsair"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15059, killsRequired = 3000, raceName = "Pirates"},
        ["pirate cutthroat"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15060, killsRequired = 3000, raceName = "Pirates"},
        ["pirate ghost"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15061, killsRequired = 3000, raceName = "Pirates"},
        ["pirate marauder"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15062, killsRequired = 3000, raceName = "Pirates"},
        ["pirate skeleton"] = {questStarted = 1534, questStorage = 65024, creatureStorage = 15063, killsRequired = 3000, raceName = "Pirates"},
        ["pirate buccaneer"] = {questStarted = 1535, questStorage = 65025, creatureStorage = 15064, killsRequired = 3000, raceName = "Pirates"},
        ["pirate corsair"] = {questStarted = 1535, questStorage = 65025, creatureStorage = 15065, killsRequired = 3000, raceName = "Pirates"},
        ["pirate cutthroat"] = {questStarted = 1535, questStorage = 65025, creatureStorage = 15066, killsRequired = 3000, raceName = "Pirates"},
        ["pirate ghost"] = {questStarted = 1535, questStorage = 65025, creatureStorage = 15067, killsRequired = 3000, raceName = "Pirates"},
        ["pirate marauder"] = {questStarted = 1535, questStorage = 65025, creatureStorage = 15068, killsRequired = 3000, raceName = "Pirates"},
        ["pirate skeleton"] = {questStarted = 1535, questStorage = 65025, creatureStorage = 15069, killsRequired = 3000, raceName = "Pirates"},
        ["minotaur"] = {questStarted = 1536, questStorage = 65026, creatureStorage = 15070, killsRequired = 5000, raceName = "Minotaurs"},
        ["necromancer"] = {questStarted = 1537, questStorage = 65027, creatureStorage = 15071, killsRequired = 4000, raceName = "Magicians"},
        ["priestess"] = {questStarted = 1537, questStorage = 65027, creatureStorage = 15072, killsRequired = 4000, raceName = "Magicians"},
        ["necromancer"] = {questStarted = 1538, questStorage = 65028, creatureStorage = 15073, killsRequired = 1000, raceName = "Magicians"},
        ["priestess"] = {questStarted = 1538, questStorage = 65028, creatureStorage = 15074, killsRequired = 1000, raceName = "Magicians"},
        ["demon"] = {questStarted = 1539, questStorage = 65029, creatureStorage = 15075, killsRequired = 6666, raceName = "Demons"}
}
local creature = questCreatures[getCreatureName(target)]
if creature then
if(isPlayer(target) == TRUE) then
return TRUE
end
if getPlayerStorageValue(cid, creature.questStarted) > 0 then
if getPlayerStorageValue(cid, creature.questStorage) < creature.killsRequired then
if getPlayerStorageValue(cid, creature.questStorage) < 0 then
doPlayerSetStorageValue(cid, creature.questStorage, 0)
end
if getPlayerStorageValue(cid, creature.creatureStorage) < 0 then
doPlayerSetStorageValue(cid, creature.creatureStorage, 0)
end
doPlayerSetStorageValue(cid, creature.questStorage, getPlayerStorageValue(cid, creature.questStorage) + 1)
doPlayerSetStorageValue(cid, creature.creatureStorage, getPlayerStorageValue(cid, creature.creatureStorage) + 1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "" .. getPlayerStorageValue(cid, creature.creatureStorage) .. " " .. getCreatureName(target) .. " defeated. Total [" .. getPlayerStorageValue(cid, creature.questStorage) .. "/" .. creature.killsRequired .. "] " .. creature.raceName .. ".")
end
end
end
return TRUE
end

 
Eu apaguei os 2 arquivos do .xml e o .lua de cada um e agora tá dando esse erro aqui
 
[5:4:11.055] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf 
[5:4:11.055] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf 
[5:4:11.055] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf 
[5:4:11.055] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf 
[5:4:11.055] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf 
[5:4:11.055] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf 
[5:4:11.055] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf 
[5:4:11.056] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf 
[5:4:11.056] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf 
[5:4:11.056] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf 
[5:4:11.056] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf 
[5:4:11.056] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf 
[5:4:11.056] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf 
[5:4:11.056] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf 
 
--------------
 
pesquisei monster2
e nao achei nada aqui, esse arquivo nao existe
Editado por Mdcrf (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

Acho que não tem a ver com os dois arquivos não, não é algum mod? ve se tem algo nos mods, ou se tem o arquivo monster2 no monsters.

Link para o post
Compartilhar em outros sites

nao tem nenhum mod no server...... no monster nao tem nenhum monster2 lá

-------

eu to pesquisando a solução pra esse novo erro

[5:4:11.054] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf 

 

pelo menos pra esse aparece alguns resultados na net, agora só acessar os sites aqui e ve se resolvo

Editado por Mdcrf (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

Cria um arquivo com nome e tudo de monster2, e adicione ele no monsters.xml, e ve se o erro para.

Link para o post
Compartilhar em outros sites

funfou nao  :(

 

-----------------

 

@Edit

Acho que já descobri o erro, pelo que to vendo aqui, as script killinginthenameof tem alguns bixos citados, e alguns deles tem esse script no .xml 

 

<script>

        <event name="KillingInTheNameOf"/>
</script>

 

e alguns outros não tem.

acredito eu que esse erro do monster2 é porque alguns monstros nao tem o codigo /\

 

quando eu exclui a script deu o outro erro

[5:4:11.054] [Warning - Monster::Monster] Unknown event name - KillingInTheNameOf 

 

provavelmente porque alguns bixos tem a script mais acima no xml.......

 

eu to excluindo o script dos xml dos monstros e se funcionar eu volto aqui e edito o post!

Eremin, obrigado pela ajuda.

-------------------------------------------------------------------------

@edit2
nao resolveu :( tirei o killing of de todos os monstros só que agora voltou o mesmo erro :(
Editado por Mdcrf (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

Poxa, pelo nada que sei de script, parece que tem algum event  com este tal ''monster2'',Agora vou sair, mais peço que verifique os arquivos do moevemnts, creaturescripts, globalevts etc, dando um ctrl+f procurando algo com esse monester2, Desculpa nao ter ajudado!

Link para o post
Compartilhar em outros sites
  • Solução
@ AGORA FOI.!
Depois de horas procurando entender que porra de erro é esse, consegui achar, graças ao Eremin, se ele não tivesse falado do KillingInThe... eu nao teria deletado a script e entendido sobre os <eventname> nos xmls dos monstros. 
Depois que eu vi que: Unknown event name - KillingInTheNameOf quer dizer que tem um <event name> nos xml dos monstros, deu pra perceber que o erro do [Warning - Monster::Monster] Unknown event name - monster2, é um erro no xml de algum monstro. Depois de pensar um pouco sobre como resolver isso, fui apagando as pastas nos monstros.xml (fazendo backup claro), ai apaguei as pastas e o erro continuava... até eu apagar a pasta do demon, que foi onde o erro sumiu. Abri o xml dos monstros e tcharan!
 
 
Sem%2520t%25C3%25ADtulo%25202.png
Editado por Mdcrf (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

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