Hello,
I have an event script that spawns a random MVP from an array, the problem is that some of the MVPs spawn just fine (beelzebub, Naght Sieger), and others don't spawn and throw this error in the logs:
[Warning]: buildin_monster: Attempted to spawn non-existing monster class 110037660
(the monster class number changes depending on the monster - this particular one is Naght Sieger).
I can't figure out why it's coming up with this error, I've checked my mob_db as well as done @mi IG to check and all the IDs in the script are correct.
As an example, from the various tests I've done (I launched the event multiple times in a row to see if I could find a pattern), FBH and Beelzebub spawn without issue, however GDB, Naght Sieger, Gioia and Valkyrie create an error.
This is the part of the script that concerns the monster summon:
OnInit:
setarray
[email protected][1],"1734","1708","1751","1956","1917","1929","1957","1874","3450","2319","2253","1871","2251","1768","3073","1832","2255","2022","2249","3074","3254";
setarray
[email protected]$[1],"Kiel D-01","Thanatos Phantom","Valkyrie Randgris","Naght Sieger","Wounded Morroc","Great Demon Baphomet","Entweihen Crothen","Beelzebub","Bijou","Buwaya","Daehyon","Fallen Bishop","Gioia","Gloom Under Night","Awakened Ferre","Ifrit","Kades","Nidhoggur's Shadow","Pyuriel","Timeholder","T W O";
set
[email protected],0;
end;
OnTouch:
donpcevent "UnknwnLght::OnCountS";
if (
[email protected] == 1) goto L_Nothing;
if (
[email protected] >= 0 &&
[email protected] <=5)
{
setarray
[email protected]$[1],"Kiel D-01","Thanatos Phantom","Valkyrie Randgris","Naght Sieger","Wounded Morroc","Great Demon Baphomet","Entweihen Crothen","Beelzebub","Bijou","Buwaya","Daehyon","Fallen Bishop","Gioia","Gloom Under Night","Awakened Ferre","Ifrit","Kades","Nidhoggur's Shadow","Pyuriel","Timeholder","T W O";
mes "^3355FFVous remarquez que cette lumière dégage une extrême puissance.^000000";
next;
mes "^3355FFVous ne savez comment, mais elle vous force à visualiser un monstre dans votre esprit...^000000";
next;
set
[email protected],select("Kiel D-01:Thanatos Phantom:Valkyrie Rangdris:Naght Sieger:Wounded Morroc:Great Demon Baphomet:Entweihen Crothen:Beelzebub:Bijou:Buwaya:Daehyon:Fallen Bishop:Gioia:Gloom Under Night:Awakened Ferre:Ifrit:Kades:Nidhoggur's Shadow:Pyuriel:Timeholder:T W O");
mes "^3355FFVous avez choisi ^FF0000"
[email protected]$[
[email protected]]+"^3355FF...^000000";
}
else
{
mes "^3355FFVous remarquez que cette lumière dégage une extrème puissance.^000000";
set
[email protected],rand(1,56);
if (
[email protected] >= 1 &&
[email protected] <= 4) set
[email protected],1;
if (
[email protected] == 5 ||
[email protected] == 6) set
[email protected],2;
if (
[email protected] >= 7 &&
[email protected] <= 10) set
[email protected],3;
if (
[email protected] == 11 ||
[email protected] == 12) set
[email protected],4;
if (
[email protected] == 13 ||
[email protected] == 14) set
[email protected],5;
if (
[email protected] == 15 ||
[email protected] == 16) set
[email protected],6;
if (
[email protected] == 17 ||
[email protected] == 18) set
[email protected],7;
if (
[email protected] >= 19 &&
[email protected] <= 22) set
[email protected],8;
if (
[email protected] == 23 ||
[email protected] == 24) set
[email protected],9;
if (
[email protected] == 25 ||
[email protected] == 26) set
[email protected],10;
if (
[email protected] == 27 ||
[email protected] == 28) set
[email protected],11;
if (
[email protected] >= 29 &&
[email protected] <= 32) set
[email protected],12;
if (
[email protected] == 33 ||
[email protected] == 34) set
[email protected],13;
if (
[email protected] >= 35 &&
[email protected] <= 38) set
[email protected],14;
if (
[email protected] == 39 ||
[email protected] == 40) set
[email protected],15;
if (
[email protected] >= 41 &&
[email protected] <= 44) set
[email protected],16;
if (
[email protected] == 45 ||
[email protected] == 46) set
[email protected],17;
if (
[email protected] == 47 ||
[email protected] == 48) set
[email protected],18;
if (
[email protected] == 49 ||
[email protected] == 50) set
[email protected],19;
if (
[email protected] >= 51 &&
[email protected] <= 54) set
[email protected],20;
if (
[email protected] == 55 ||
[email protected] == 56) set
[email protected],21;
}
close2;
monster "valkyrie",48,36,
[email protected]$[
[email protected]],
[email protected][
[email protected]],1,"MobUnknw::OnDead";
mapannounce "valkyrie","Le monstre invoqué est "
[email protected]$[
[email protected]]+" !",bc_map,"0x70DBDB";
set
[email protected],1;
initnpctimer;
Thanks in advance for any help.