Jump to content
  • 0
Sign in to follow this  
simplynice

Spawn Mob [ Dynamic ]

Question

I want to spawn different kind of mobs that saved on the array. 5 Levels.

Can't make it work.

 

 

Here's my code:

set .@count,0;setarray .@namelevel$[0], ".@level0", ".@level1", ".@level2", ".@level3", ".@level4";setarray .@level0[0], 1002, 1002, 1002;setarray .@count0[0], 1, 1, 1;setarray .@level1[0], 1002, 1002, 1002;setarray .@count1[0], 1, 1, 1;setarray .@level2[0], 1002, 1002, 1002;setarray .@count2[0], 1, 1, 1;setarray .@level3[0], 1002, 1002, 1002;setarray .@count3[0], 1, 1, 1;setarray .@level4[0], 1002, 1002, 1002;setarray .@count4[0], 1, 1, 1;for( set .@i, 0; .@i < getarraysize(.@namelevel$[.@count]); set .@i, .@i +1 ) { // spawn monster here and call the :monsterKilled label and count mobs on the map // if mob count is 0 set .@count, .@count+1 // and do the for loop again // so it will be .@level1 // until .@level4 finishes}Any work around?

Thank you in advance.

 

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.