command kill all mvp when @reloadscript

minx123

New member
Messages
283
Points
0
Github
minx123
helloo.. its posible to make command for kill all mvp when reloading script?

 
  • @doom

Kills everyone on the server.

zzz.. not monster..

 
Last edited by a moderator:
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.

 
Last edited by a moderator:
Yes the tomb will appear. But I don't know which name will be displayed, thought.

 
 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?
 
Last edited by a moderator:
Code:
//===== 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;}
 
//===== 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

 
I guess the line

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

should look like this

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


Code:
*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.
 

 
Last edited by a moderator:
I guess the line

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

should look like this

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


Code:
*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

 
Last edited by a moderator:
Back
Top