LeonZ Posted June 5, 2021 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 22 Reputation: 13 Joined: 07/11/12 Last Seen: December 16, 2024 Share Posted June 5, 2021 I wanted a script to spawn a monster after x amount of the map is killed. For example for every 10000 monsters killed in gef_fild10 a global appears on the map and spawns a Lord of Orcs randomly across the map. Quote Link to comment Share on other sites More sharing options...
0 Poring King Posted June 6, 2021 Group: Members Topic Count: 63 Topics Per Day: 0.02 Content Count: 1016 Reputation: 191 Joined: 11/27/14 Last Seen: February 15 Share Posted June 6, 2021 (edited) Im on my phone but here the idea . Set how much monster total in map ex: Set monster,100; Every time you killed the monster will be deduct -1 ex: set monster,-1; Add condition if ( monster == 50 ){ "if true do this"; } "if false do this" end; Edited June 6, 2021 by Poring King Quote Link to comment Share on other sites More sharing options...
0 LeonZ Posted June 8, 2021 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 22 Reputation: 13 Joined: 07/11/12 Last Seen: December 16, 2024 Author Share Posted June 8, 2021 Up Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted June 12, 2021 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted June 12, 2021 //================================================== // gef_fild10 - Geffen Field //================================================== gef_fild10,0,0 monster Orc Warrior 1023,179,5000,0,"sample_npc_name::OnKill" gef_fild10,0,0 monster Orc Lady 1273,55,5000,0,"sample_npc_name::OnKill" gef_fild10,0,0 monster Orc Baby 1686,27,5000,0,"sample_npc_name::OnKill" gef_fild10,0,0,0,0 boss_monster Orc Lord 1190,1,7200000,600000,0,"sample_npc_name::OnKill" gef_fild10,46,350,5,5 monster Blue Plant 1079,3,900000,450000,"sample_npc_name::OnKill" gef_fild10,287,61,5,5 monster Blue Plant 1079,3,900000,450000,"sample_npc_name::OnKill" gef_fild10,300,253,5,5 monster Green Plant 1080,3,360000,180000,"sample_npc_name::OnKill" add a npc event to each of the monster in gef_fild10, and load the npc. - script sample_npc_name -1,{ OnKill: if (!mobcount(strcharinfo(3), strnpcinfo(3)+"::OnBossKill")) { if (.monster_kill < 10000) { .monster_kill++; if (.monster_kill >= 10000) { monster strcharinfo(3), 0, 0, "Lord of Orcs", 1190, 1, strnpcinfo(3)+"::OnBossKill"; } } else { .monster_kill = 0; } } end; OnBossKill: // rewards end; } 1 Quote Link to comment Share on other sites More sharing options...
Question
LeonZ
I wanted a script to spawn a monster after x amount of the map is killed.
For example for every 10000 monsters killed in gef_fild10 a global appears on the map and spawns a Lord of Orcs randomly across the map.
Link to comment
Share on other sites
3 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.