Advertisement
akbare

random mob spawn homunculus

May 7th, 2021
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. function script NidhoggBB {
  2. set .monster, .mob_id[.random];
  3. summon "monster name",.mob_id[.random];
  4.  
  5. OnMobKilled:
  6. announce "Monster is already killed",0;
  7. set @amount, rand(1,5); //quantity of different items
  8. set @whatItem, rand(0,.@size); //Which item was chosen
  9. set @amountItem, rand(1,10); //Quantity of item you will receive
  10.  
  11. OnInit:
  12.  
  13. setarray .@listItems[0],501,502,503; //Items
  14. .@size = getarraysize(.@listItems); //Size Array Items
  15. setarray .mob_id[0],1002,1113,1399,1159;
  16. set .size, getarraysize(.mob_id);
  17. set .random, rand(.size);
  18. set .amount, 2; // amount of monster spawned
  19. end;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement