Yusry Posted July 26, 2017 Group: Members Topic Count: 18 Topics Per Day: 0.01 Content Count: 57 Reputation: 0 Joined: 12/13/16 Last Seen: May 10, 2019 Share Posted July 26, 2017 Any one know what commands for spawn all mvp? Thx for help Quote Link to comment Share on other sites More sharing options...
0 MMasters Posted July 26, 2017 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 22 Reputation: 0 Joined: 06/24/17 Last Seen: December 13, 2017 Share Posted July 26, 2017 (edited) 35 minutes ago, Yusry said: Any one know what commands for spawn all mvp? Thx for help My friend, are you speaking the command in the game? If yes @reloadscritp if you want to put the mobs on the maps with respaw use this as base Pay_fild04,0,0,0,0 monster Poring 1002,40,3600000,600000,0 It is not necessary to insert in Folder Mobs just create a text file and put the command remember to activate in the custom_script Pay_fild04,0,0,0,0 monster Poring 1002,40,3600000,600000,0 Custom scripts, good I hope it helped you Edited July 26, 2017 by MMasters Quote Link to comment Share on other sites More sharing options...
0 Yusry Posted July 26, 2017 Group: Members Topic Count: 18 Topics Per Day: 0.01 Content Count: 57 Reputation: 0 Joined: 12/13/16 Last Seen: May 10, 2019 Author Share Posted July 26, 2017 9 minutes ago, MMasters said: My friend, are you speaking the command in the game? If yes @reloadscritp if you want to put the mobs on the maps with respaw use this as base Pay_fild04,0,0,0,0 monster Poring 1002,40,3600000,600000,0 It is not necessary to insert in Folder Mobs just create a text file and put the command remember to activate in the custom_script Pay_fild04,0,0,0,0 monster Poring 1002,40,3600000,600000,0 Custom scripts, good I hope it helped you not i mean use @mvp and all mvp have spawn on my maps Quote Link to comment Share on other sites More sharing options...
0 Z3R0 Posted July 26, 2017 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 618 Reputation: 201 Joined: 11/09/11 Last Seen: June 14, 2024 Share Posted July 26, 2017 Could write a custom bindatcmd... that would check each mvp for the presence of the mvp if not there spawn him. Quote Link to comment Share on other sites More sharing options...
0 Yusry Posted July 26, 2017 Group: Members Topic Count: 18 Topics Per Day: 0.01 Content Count: 57 Reputation: 0 Joined: 12/13/16 Last Seen: May 10, 2019 Author Share Posted July 26, 2017 1 hour ago, Z3R0 said: Could write a custom bindatcmd... that would check each mvp for the presence of the mvp if not there spawn him. What? Quote Link to comment Share on other sites More sharing options...
0 yuchinin Posted July 26, 2017 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 120 Reputation: 48 Joined: 07/23/13 Last Seen: August 27, 2021 Share Posted July 26, 2017 1 hour ago, Yusry said: What? He mean you could write a npc script that spawn all mvp on the map and bind it with bindatcmd, so you can just type @mvp bla bla to run the script. Quote Link to comment Share on other sites More sharing options...
0 yuchinin Posted July 26, 2017 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 120 Reputation: 48 Joined: 07/23/13 Last Seen: August 27, 2021 Share Posted July 26, 2017 Type @mvp to spawn all mvp on the current map. @mvpkill to kill all mvp spawn with this command on the current map. Spoiler - script Crazy MVP Spawner -1,{ OnSpawnMVP: .@map$ = strcharinfo(3); if(mobcount(.@map$,strnpcinfo(3)+"::OnCrazyMVP")){ message strcharinfo(0),"It's not a good idea to spam this command."; end; } message strcharinfo(0),"It's time for doom."; query_sql("SELECT ID FROM mob_db_re WHERE MEXP > 0",.@idList); for(.@i=0;.@i<getarraysize(.@idList);.@i++){ monster .@map$,0,0,"--ja--",.@idList[.@i],1,strnpcinfo(3)+"::OnCrazyMVP",2; sleep 1; // mercy for your cpu } end; OnMVPKilled: killmonster strcharinfo(3),strnpcinfo(3)+"::OnCrazyMVP"; end; OnInit: bindatcmd "mvp",strnpcinfo(3)+"::OnSpawnMVP",99,99; bindatcmd "mvpkill",strnpcinfo(3)+"::OnMVPKilled",99,99; } 1 Quote Link to comment Share on other sites More sharing options...
0 Yusry Posted July 26, 2017 Group: Members Topic Count: 18 Topics Per Day: 0.01 Content Count: 57 Reputation: 0 Joined: 12/13/16 Last Seen: May 10, 2019 Author Share Posted July 26, 2017 30 minutes ago, yuchinin said: Type @mvp to spawn all mvp on the current map. @mvpkill to kill all mvp spawn with this command on the current map. Hide contents - script Crazy MVP Spawner -1,{ OnSpawnMVP: .@map$ = strcharinfo(3); if(mobcount(.@map$,strnpcinfo(3)+"::OnCrazyMVP")){ message strcharinfo(0),"It's not a good idea to spam this command."; end; } message strcharinfo(0),"It's time for doom."; query_sql("SELECT ID FROM mob_db_re WHERE MEXP > 0",.@idList); for(.@i=0;.@i<getarraysize(.@idList);.@i++){ monster .@map$,0,0,"--ja--",.@idList[.@i],1,strnpcinfo(3)+"::OnCrazyMVP",2; sleep 1; // mercy for your cpu } end; OnMVPKilled: killmonster strcharinfo(3),strnpcinfo(3)+"::OnCrazyMVP"; end; OnInit: bindatcmd "mvp",strnpcinfo(3)+"::OnSpawnMVP",99,99; bindatcmd "mvpkill",strnpcinfo(3)+"::OnMVPKilled",99,99; } This will work? Quote Link to comment Share on other sites More sharing options...
0 yuchinin Posted July 26, 2017 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 120 Reputation: 48 Joined: 07/23/13 Last Seen: August 27, 2021 Share Posted July 26, 2017 Yeah, as long as you add my script and load it. Quote Link to comment Share on other sites More sharing options...
0 Yusry Posted July 27, 2017 Group: Members Topic Count: 18 Topics Per Day: 0.01 Content Count: 57 Reputation: 0 Joined: 12/13/16 Last Seen: May 10, 2019 Author Share Posted July 27, 2017 6 hours ago, yuchinin said: Yeah, as long as you add my script and load it. How can i add mvp id Quote Link to comment Share on other sites More sharing options...
0 Z3R0 Posted July 27, 2017 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 618 Reputation: 201 Joined: 11/09/11 Last Seen: June 14, 2024 Share Posted July 27, 2017 It should pull the mvp I'd list from query_sql if you want to add custom ones not in that table... after the query_sql... add: set(.@idList [getarraysize [.@idList], 1234); Where 1234 is a new id not listed in the db... you can add multiples of those if you want... Quote Link to comment Share on other sites More sharing options...
0 yuchinin Posted July 27, 2017 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 120 Reputation: 48 Joined: 07/23/13 Last Seen: August 27, 2021 Share Posted July 27, 2017 5 hours ago, Yusry said: How can i add mvp id You want to add custom one which not in database? Currently my script will pull all mvp id from MySQL database. Quote Link to comment Share on other sites More sharing options...
0 Yusry Posted July 27, 2017 Group: Members Topic Count: 18 Topics Per Day: 0.01 Content Count: 57 Reputation: 0 Joined: 12/13/16 Last Seen: May 10, 2019 Author Share Posted July 27, 2017 8 hours ago, yuchinin said: You want to add custom one which not in database? Currently my script will pull all mvp id from MySQL database. i mean i want to spawn all mvp boss for one commands? Quote Link to comment Share on other sites More sharing options...
0 Z3R0 Posted July 27, 2017 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 618 Reputation: 201 Joined: 11/09/11 Last Seen: June 14, 2024 Share Posted July 27, 2017 that is what his script does... one command... Then it gathers the id's from an sql query... and loops through the results and spawns them... One command to control them all 1 Quote Link to comment Share on other sites More sharing options...
0 yuchinin Posted July 27, 2017 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 120 Reputation: 48 Joined: 07/23/13 Last Seen: August 27, 2021 Share Posted July 27, 2017 1 minute ago, Yusry said: i mean i want to spawn all mvp boss for one commands? Sorry but I can't understand this. Quote Link to comment Share on other sites More sharing options...
0 Z3R0 Posted July 27, 2017 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 618 Reputation: 201 Joined: 11/09/11 Last Seen: June 14, 2024 Share Posted July 27, 2017 (edited) - script MVPSummoner -1,{ // There is no reason to kill them if you summon them... so I didn't add that command... // This will simply spawn the mob id's you list, on the maps you choose at random coordinates on the maps.. // and display them with the name you chose... // I would have gone through the DB, but they don't list the maps that the MVP's spawn on... OnSpawnMVP: setarray(.@mvp_ids, 1086, 1087); // Continue to list MVP ID's here... setarray(.@maps$, "prt_fild08", "prontera"); // List the correct map that corresponds with the MVP ID serarray(.@mvp_names$, "Golden Thief Bug", "Other"); // MVP Names to Display can customize // Summon the MVPs for(.@i = 0; .@i < getarraysize(.@mvp_ids); .@i++) { monster .@maps$[.@i], 0, 0, .@mvp_names$[.@i], .@mvp_ids[.@i], 1; } end; OnInit: // Load the script commands bindatcmd("spawnmvp", strnpcinfo(0) + "::OnSpawnMVP"); end; } Edited July 27, 2017 by Z3R0 Quote Link to comment Share on other sites More sharing options...
0 Yusry Posted July 28, 2017 Group: Members Topic Count: 18 Topics Per Day: 0.01 Content Count: 57 Reputation: 0 Joined: 12/13/16 Last Seen: May 10, 2019 Author Share Posted July 28, 2017 8 hours ago, Z3R0 said: - script MVPSummoner -1,{ // There is no reason to kill them if you summon them... so I didn't add that command... // This will simply spawn the mob id's you list, on the maps you choose at random coordinates on the maps.. // and display them with the name you chose... // I would have gone through the DB, but they don't list the maps that the MVP's spawn on... OnSpawnMVP: setarray(.@mvp_ids, 1086, 1087); // Continue to list MVP ID's here... setarray(.@maps$, "prt_fild08", "prontera"); // List the correct map that corresponds with the MVP ID serarray(.@mvp_names$, "Golden Thief Bug", "Other"); // MVP Names to Display can customize // Summon the MVPs for(.@i = 0; .@i < getarraysize(.@mvp_ids); .@i++) { monster .@maps$[.@i], 0, 0, .@mvp_names$[.@i], .@mvp_ids[.@i], 1; } end; OnInit: // Load the script commands bindatcmd("spawnmvp", strnpcinfo(0) + "::OnSpawnMVP"); end; } now i understand can i remove a name i mean i dont want to use a name Quote Link to comment Share on other sites More sharing options...
0 Z3R0 Posted July 28, 2017 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 618 Reputation: 201 Joined: 11/09/11 Last Seen: June 14, 2024 Share Posted July 28, 2017 Right if you don't want to use a name.. then u can change .@mvp_names $[.@i] to a string to something like... "Special MVP" and they will all have that name Quote Link to comment Share on other sites More sharing options...
Question
Yusry
Any one know what commands for spawn all mvp? Thx for help
Link to comment
Share on other sites
17 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.