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 $@mobid[1],"1734","1708","1751","1956","1917","1929","1957","1874","3450","2319","2253","1871","2251","1768","3073","1832","2255","2022","2249","3074","3254";
setarray $@mobname$[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 $@alreadyappear,0;
end;
OnTouch:
donpcevent "UnknwnLght::OnCountS";
if ($@alreadyappear == 1) goto L_Nothing;
if ($@UknwLG >= 0 && $@UknwLG <=5)
{
setarray $@mobname$[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 $@MobU,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"+$@mobname$[$@MobU]+"^3355FF...^000000";
}
else
{
mes "^3355FFVous remarquez que cette lumière dégage une extrème puissance.^000000";
set $@MobR,rand(1,56);
if ($@MobR >= 1 && $@MobR <= 4) set $@MobU,1;
if ($@MobR == 5 || $@MobR == 6) set $@MobU,2;
if ($@MobR >= 7 && $@MobR <= 10) set $@MobU,3;
if ($@MobR == 11 || $@MobR == 12) set $@MobU,4;
if ($@MobR == 13 || $@MobR == 14) set $@MobU,5;
if ($@MobR == 15 || $@MobR == 16) set $@MobU,6;
if ($@MobR == 17 || $@MobR == 18) set $@MobU,7;
if ($@MobR >= 19 && $@MobR <= 22) set $@MobU,8;
if ($@MobR == 23 || $@MobR == 24) set $@MobU,9;
if ($@MobR == 25 || $@MobR == 26) set $@MobU,10;
if ($@MobR == 27 || $@MobR == 28) set $@MobU,11;
if ($@MobR >= 29 && $@MobR <= 32) set $@MobU,12;
if ($@MobR == 33 || $@MobR == 34) set $@MobU,13;
if ($@MobR >= 35 && $@MobR <= 38) set $@MobU,14;
if ($@MobR == 39 || $@MobR == 40) set $@MobU,15;
if ($@MobR >= 41 && $@MobR <= 44) set $@MobU,16;
if ($@MobR == 45 || $@MobR == 46) set $@MobU,17;
if ($@MobR == 47 || $@MobR == 48) set $@MobU,18;
if ($@MobR == 49 || $@MobR == 50) set $@MobU,19;
if ($@MobR >= 51 && $@MobR <= 54) set $@MobU,20;
if ($@MobR == 55 || $@MobR == 56) set $@MobU,21;
}
close2;
monster "valkyrie",48,36,$@mobname$[$@MobU],$@mobid[$@MobU],1,"MobUnknw::OnDead";
mapannounce "valkyrie","Le monstre invoqué est "+$@mobname$[$@MobU]+" !",bc_map,"0x70DBDB";
set $@alreadyappear,1;
initnpctimer;
Thanks in advance for any help.