LearningRO Posted July 20, 2019 Group: Members Topic Count: 107 Topics Per Day: 0.02 Content Count: 778 Reputation: 73 Joined: 02/10/12 Last Seen: 1 hour ago Share Posted July 20, 2019 Hi, i want to make gold room, and i want to setting spawn mobs depend how many players in the map like if player <5 Only respawn 50 if player >5 & <10 respawn monster 100 its possible? thanks Quote Link to comment Share on other sites More sharing options...
1 Haruka Mayumi Posted July 20, 2019 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 485 Reputation: 271 Joined: 06/13/17 Last Seen: April 14 Share Posted July 20, 2019 This is my way of doing this. - script goldroom -1,{ OnGoldKilled: sleep 1500; //Respawn time 1000 = second .@mc = getmapunits(BL_MOB,"jupe_ele"); //Mob Count .@pc = getmapunits(BL_PC,"jupe_ele"); //Player Count for(.@i=0;.@i<getarraysize(.setting);.@i+=2) if(.@pc >= .setting[.@i]) .@summon = .setting[.@i+1]; if(!.@summon && .@mc <= .initial) monster "jupe_ele",0,0,"GOLD MOB",1002,1,strnpcinfo(0)+"::OnGoldKilled"; else monster "jupe_ele",0,0,"GOLD MOB",1002,(.@summon-.@mc)+1,strnpcinfo(0)+"::OnGoldKilled"; end; OnInit: .initial = 50; //Normal Mob Count setarray .setting[0],5,100,10,150,15,200; //Player Count, Mob Count{,PC, MC) (5 player = 100 monster, 10 Player = 150 monster.. etc..) monster "jupe_ele",0,0,"GOLD MOB",1002,.initial,strnpcinfo(0)+"::OnGoldKilled"; end; } 1 Quote Link to comment Share on other sites More sharing options...
0 YJ1994 Posted July 20, 2019 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 16 Reputation: 7 Joined: 06/06/19 Last Seen: February 19 Share Posted July 20, 2019 using *getmapusers logic is one of the options Quote Link to comment Share on other sites More sharing options...
0 Haruka Mayumi Posted July 20, 2019 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 485 Reputation: 271 Joined: 06/13/17 Last Seen: April 14 Share Posted July 20, 2019 *getmapunits *getmapusers *OnPCLoadMapEvent *initnpctimer; add some "OnMyMobDead" label on *monster. you can use any of this combinations to do what you want. Quote Link to comment Share on other sites More sharing options...
0 LearningRO Posted July 20, 2019 Group: Members Topic Count: 107 Topics Per Day: 0.02 Content Count: 778 Reputation: 73 Joined: 02/10/12 Last Seen: 1 hour ago Author Share Posted July 20, 2019 4 hours ago, Haruka Mayumi said: This is my way of doing this. - script goldroom -1,{ OnGoldKilled: sleep 1500; //Respawn time 1000 = second .@mc = getmapunits(BL_MOB,"jupe_ele"); //Mob Count .@pc = getmapunits(BL_PC,"jupe_ele"); //Player Count for(.@i=0;.@i<getarraysize(.setting);.@i+=2) if(.@pc >= .setting[.@i]) .@summon = .setting[.@i+1]; if(!.@summon && .@mc <= .initial) monster "jupe_ele",0,0,"GOLD MOB",1002,1,strnpcinfo(0)+"::OnGoldKilled"; else monster "jupe_ele",0,0,"GOLD MOB",1002,(.@summon-.@mc)+1,strnpcinfo(0)+"::OnGoldKilled"; end; OnInit: .initial = 50; //Normal Mob Count setarray .setting[0],5,100,10,150,15,200; //Player Count, Mob Count{,PC, MC) (5 player = 100 monster, 10 Player = 150 monster.. etc..) monster "jupe_ele",0,0,"GOLD MOB",1002,.initial,strnpcinfo(0)+"::OnGoldKilled"; end; } Thank you all Quote Link to comment Share on other sites More sharing options...
Question
LearningRO
Hi, i want to make gold room, and i want to setting spawn mobs depend how many players in the map
like if player <5 Only respawn 50
if player >5 & <10 respawn monster 100
its possible?
thanks
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.