Jump to content
  • 0

Commands for all mvp spawn


Yusry

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  57
  • Reputation:   0
  • Joined:  12/13/16
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   0
  • Joined:  06/24/17
  • Last Seen:  

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 by MMasters
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  57
  • Reputation:   0
  • Joined:  12/13/16
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  615
  • Reputation:   201
  • Joined:  11/09/11
  • Last Seen:  

Could write a custom bindatcmd... that would check each mvp for the presence of the mvp if not there spawn him.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  57
  • Reputation:   0
  • Joined:  12/13/16
  • Last Seen:  

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?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  120
  • Reputation:   48
  • Joined:  07/23/13
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  120
  • Reputation:   48
  • Joined:  07/23/13
  • Last Seen:  

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;
}

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  57
  • Reputation:   0
  • Joined:  12/13/16
  • Last Seen:  

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?

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  120
  • Reputation:   48
  • Joined:  07/23/13
  • Last Seen:  

Yeah, as long as you add my script and load it.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  57
  • Reputation:   0
  • Joined:  12/13/16
  • Last Seen:  

6 hours ago, yuchinin said:

Yeah, as long as you add my script and load it.

How can i add mvp id

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  615
  • Reputation:   201
  • Joined:  11/09/11
  • Last Seen:  

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...

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  120
  • Reputation:   48
  • Joined:  07/23/13
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  57
  • Reputation:   0
  • Joined:  12/13/16
  • Last Seen:  

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?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  615
  • Reputation:   201
  • Joined:  11/09/11
  • Last Seen:  

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 :D

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  120
  • Reputation:   48
  • Joined:  07/23/13
  • Last Seen:  

1 minute ago, Yusry said:

i mean i want to spawn all mvp boss for one commands?

Sorry but I can't understand this.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  615
  • Reputation:   201
  • Joined:  11/09/11
  • Last Seen:  

-	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 by Z3R0
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  57
  • Reputation:   0
  • Joined:  12/13/16
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  615
  • Reputation:   201
  • Joined:  11/09/11
  • Last Seen:  

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...