Jump to content
  • 0

Devil Square (Problems with MVP Random Array


Tiny

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   0
  • Joined:  12/10/11
  • Last Seen:  

Ok so I had this script working great for a while on a previous server. I tried to implement it to a new server. I modified the MVP array to just add the last 2 mob id's in the array. Which are custom mobs (Ryu and Ken). Anyways the script works as it should, spawns the regular mobs. The only problem is that it is not spawning a random MVP. I'm not sure if it has to do with SVN version or with the custom mobs. Anyways heres what it looks like

This is the array -
OnInit:
setarray $MVPIDs[0],1038,1039,1046,1086,1087,1112,1157,1190,1251,1252,1272,1312,1373,1511,1685,1719,1751,1768,1832,2697,2703;
set $MVPSpawn, $MVPIDs[rand(getarraysize($MVPIDs[0]))];
}

This is the spawn in first wave -

set $@mob,86;
areamonster "ordeal_1-1",183,182,246,244,"Megaman",1504,15,"DS_HiddenNpc::Ondevildead";
areamonster "ordeal_1-1",183,182,246,244,"Orc Archer",1189,20,"DS_HiddenNpc::Ondevildead";
areamonster "ordeal_1-1",183,182,246,244,"Sandman",1165,15,"DS_HiddenNpc::Ondevildead";
areamonster "ordeal_1-1",183,182,246,244,"Archer Skeleton",1016,15,"DS_HiddenNpc::Ondevildead";
areamonster "ordeal_1-1",183,182,246,244,"Minorous",1149,20,"DS_HiddenNpc::Ondevildead";
areamonster "ordeal_1-1",183,182,246,244,"--ja--", $MVPIDs[rand(getarraysize($MVPIDs[0]))],1,"DS_HiddenNpc::Ondevildead";
end;

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   0
  • Joined:  12/10/11
  • Last Seen:  

Solved ! Thanks

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

Mind sharing the fix? so I can close this already ^^;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   0
  • Joined:  12/10/11
  • Last Seen:  

The script was fine, the problem came from my map server. Just rebooted. Thanks anyway.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...