Jump to content
  • 0
Sign in to follow this  
minx123

command kill all mvp when @reloadscript

Question

14 answers to this question

Recommended Posts

  • 0

You can't do that with a command. On the other hand, you can create a script which will wipe the mvp on each map on Init.

Simply list the maps where an mvp has been spawned, and on OnInit event, go through this array in a loop and use killmonserall "mapx";

 

You can even bind it to a script command using bindatcommand if needed.

Edited by Alayne

Share this post


Link to post
Share on other sites
  • 0

 thank you so much.. @@Mumbles



[Error]: script_rid2sd: fatal error ! player not attached![Debug]: Function: strcharinfo (1 parameter):[Debug]: Data: number value=0[Debug]: Source (NPC): killboss (invisible/not on a map)[Error]: script_rid2sd: fatal error ! player not attached![Debug]: Function: strcharinfo (1 parameter):[Debug]: Data: number value=0[Debug]: Source (NPC): killboss (invisible/not on a map)

this bcoz of what?

Edited by minx123

Share this post


Link to post
Share on other sites
  • 0
//===== By: ==================================================//= EL Dragon//===== Current Version: =====================================//= 1.00//===== Compatible With: =====================================//= rAthena SVN//============================================================-	script	killboss	-1,{OnInit:	bindatcmd "killboss",strnpcinfo(3)+"::OnAtCommand", 20,100;	end;OnAtCommand:	killmonsterall "abbey02";       // Fallen Bishop Hibram	killmonsterall "abbey03";       // Beelzebub	killmonsterall "abyss_03";      // Detale	killmonsterall "ama_dun03";     // Samurai Specter	killmonsterall "anthell02";     // Maya	killmonsterall "ayo_dun02";     // Lady Tanee	killmonsterall "beach_dun";     // Tao Gunka	killmonsterall "ein_dun02";     // RSX-0806	killmonsterall "gef_dun01";     // Dracula	killmonsterall "gef_dun02";     // Doppelganger	killmonsterall "gef_fild02";    // Orc Hero	killmonsterall "gef_fild10";    // Orc Lord	killmonsterall "gef_fild14";    // Orc Hero	killmonsterall "gl_chyard";     // Dark Lord	killmonsterall "gld_dun01";     // Eddga	killmonsterall "gld_dun02";     // Doppelganger	killmonsterall "gld_dun03";     // Maya	killmonsterall "gld_dun04";     // Dark Lord	killmonsterall "gon_dun03";     // Evil Snake Lord	killmonsterall "ice_dun03";     // Ktullanux	killmonsterall "in_sphinx5";    // Pharaoh	killmonsterall "jupe_core";     // Vesper	killmonsterall "kh_dun02";      // Kiel D-01	killmonsterall "lhz_dun02";     // Egnigem Cenia	killmonsterall "lhz_dun03";     // Assassin Cross Eremes, High Priest Margaretha, High Wizard Kathryne, Lord Knight Seyren, Sniper Cecil, Whitesmith Howard	killmonsterall "lou_dun03";     // White Lady	killmonsterall "mjolnir_04";    // Mistress	killmonsterall "moc_fild17";    // Phreeoni	killmonsterall "moc_pryd04";    // Osiris	killmonsterall "moc_pryd06";    // Amon Ra	killmonsterall "mosk_dun03";    // Zmey Gorynych	killmonsterall "niflheim";      // Lord of Death	killmonsterall "odin_tem03";    // Valkyrie Randgris	killmonsterall "pay_dun04";     // Moonlight Flower	killmonsterall "pay_fild11";    // Eddga	killmonsterall "prt_maze03";    // Baphomet	killmonsterall "prt_sewb4";     // Golden Thief Bug	killmonsterall "ra_fild02";     // Atroce	killmonsterall "ra_fild03";     // Atroce	killmonsterall "ra_fild04";     // Atroce	killmonsterall "ra_san05";      // Gloom Under Night	killmonsterall "thor_v03";      // Ifrit	killmonsterall "treasure02";    // Drake	killmonsterall "tur_dun04";     // Turtle General	killmonsterall "ve_fild01";     // Atroce	killmonsterall "ve_fild02";     // Atroce	killmonsterall "xmas_dun02";    // Stormy Knight	killmonsterall "xmas_fild01";   // Garm	message strcharinfo(0)," boss maps have been cleared.";	end;}

Share this post


Link to post
Share on other sites
  • 0

 

//===== By: ==================================================//= EL Dragon//===== Current Version: =====================================//= 1.00//===== Compatible With: =====================================//= rAthena SVN//============================================================-	script	killboss	-1,{OnInit:	bindatcmd "killboss",strnpcinfo(3)+"::OnAtCommand", 20,100;	end;OnAtCommand:	killmonsterall "abbey02";       // Fallen Bishop Hibram	killmonsterall "abbey03";       // Beelzebub	killmonsterall "abyss_03";      // Detale	killmonsterall "ama_dun03";     // Samurai Specter	killmonsterall "anthell02";     // Maya	killmonsterall "ayo_dun02";     // Lady Tanee	killmonsterall "beach_dun";     // Tao Gunka	killmonsterall "ein_dun02";     // RSX-0806	killmonsterall "gef_dun01";     // Dracula	killmonsterall "gef_dun02";     // Doppelganger	killmonsterall "gef_fild02";    // Orc Hero	killmonsterall "gef_fild10";    // Orc Lord	killmonsterall "gef_fild14";    // Orc Hero	killmonsterall "gl_chyard";     // Dark Lord	killmonsterall "gld_dun01";     // Eddga	killmonsterall "gld_dun02";     // Doppelganger	killmonsterall "gld_dun03";     // Maya	killmonsterall "gld_dun04";     // Dark Lord	killmonsterall "gon_dun03";     // Evil Snake Lord	killmonsterall "ice_dun03";     // Ktullanux	killmonsterall "in_sphinx5";    // Pharaoh	killmonsterall "jupe_core";     // Vesper	killmonsterall "kh_dun02";      // Kiel D-01	killmonsterall "lhz_dun02";     // Egnigem Cenia	killmonsterall "lhz_dun03";     // Assassin Cross Eremes, High Priest Margaretha, High Wizard Kathryne, Lord Knight Seyren, Sniper Cecil, Whitesmith Howard	killmonsterall "lou_dun03";     // White Lady	killmonsterall "mjolnir_04";    // Mistress	killmonsterall "moc_fild17";    // Phreeoni	killmonsterall "moc_pryd04";    // Osiris	killmonsterall "moc_pryd06";    // Amon Ra	killmonsterall "mosk_dun03";    // Zmey Gorynych	killmonsterall "niflheim";      // Lord of Death	killmonsterall "odin_tem03";    // Valkyrie Randgris	killmonsterall "pay_dun04";     // Moonlight Flower	killmonsterall "pay_fild11";    // Eddga	killmonsterall "prt_maze03";    // Baphomet	killmonsterall "prt_sewb4";     // Golden Thief Bug	killmonsterall "ra_fild02";     // Atroce	killmonsterall "ra_fild03";     // Atroce	killmonsterall "ra_fild04";     // Atroce	killmonsterall "ra_san05";      // Gloom Under Night	killmonsterall "thor_v03";      // Ifrit	killmonsterall "treasure02";    // Drake	killmonsterall "tur_dun04";     // Turtle General	killmonsterall "ve_fild01";     // Atroce	killmonsterall "ve_fild02";     // Atroce	killmonsterall "xmas_dun02";    // Stormy Knight	killmonsterall "xmas_fild01";   // Garm	message strcharinfo(0)," boss maps have been cleared.";	end;}

lA3O9A.png

 

error.@@Soul1992

Share this post


Link to post
Share on other sites
  • 0

I guess the line

 

bindatcmd "killboss",strnpcinfo(3)+"::OnAtCommand", 20,100;

 

should look like this

 

bindatcmd "killboss",strnpcinfo(1)+"::OnAtCommand", 20,100;

 

*strnpcinfo(<type>)This function will return the various parts of the name of the calling NPC.Whatever it returns is determined by type. 0 - The NPC's display name (visible#hidden) 1 - The visible part of the NPC's display name 2 - The hidden part of the NPC's display name 3 - The NPC's unique name (::name) 4 - The name of the map the NPC is in.

 

You don't have any unique name in NPC's name.
 

Edited by Oxxy

Share this post


Link to post
Share on other sites
  • 0

I guess the line

 

bindatcmd "killboss",strnpcinfo(3)+"::OnAtCommand", 20,100;

 

should look like this

 

bindatcmd "killboss",strnpcinfo(1)+"::OnAtCommand", 20,100;

 

 

*strnpcinfo(<type>)This function will return the various parts of the name of the calling NPC.Whatever it returns is determined by type. 0 - The NPC's display name (visible#hidden) 1 - The visible part of the NPC's display name 2 - The hidden part of the NPC's display name 3 - The NPC's unique name (::name) 4 - The name of the map the NPC is in.

 

 

You don't have any unique name in NPC's name.

 

hmm i already test it.. still same.. i need to go list map and kill by self.. cant kill from on maintown. @@Oxxy

Edited by minx123

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.