Jump to content
  • 0

help me fix this kill bos script


minx123

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   0
  • Joined:  02/10/15
  • Last Seen:  


-	script	killboss	-1,{

	OnInit:
		// Desired maps to clear
		setarray .map$[0],	"abbey02",	// Fallen Bishop Hibram
							"abbey03",	// Beelzebub
							"abyss_03",	// Detale
							"ama_dun03",	// Samurai Specter
							"anthell02",	// Maya
							"ayo_dun02",	// Lady Tanee
							"beach_dun",	// Tao Gunka
							"ein_dun02",	// RSX-0806
							"gef_dun01",	// Dracula
							"gef_dun02",	// Doppelganger
							"gef_fild02",	// Orc Hero
							"gef_fild10",	// Orc Lord
							"gef_fild14",	// Orc Hero
							"gl_chyard",	// Dark Lord
							"gld_dun01",	// Eddga
							"gld_dun02",	// Doppelganger
							"gld_dun03",	// Maya
							"gld_dun04",	// Dark Lord
							"gon_dun03",	// Evil Snake Lord
							// "ice_dun03",	// Ktullanux
							"in_sphinx5",	// Pharaoh
							"jupe_core",	// Vesper
							"kh_dun02"	// Kiel D-01
							"lhz_dun02",	// Egnigem Cenia
							// "lhz_dun03",	// Assassin Cross Eremes, High Priest Margaretha, High Wizard Kathryne, Lord Knight Seyren, Sniper Cecil, Whitesmith Howard
							"lou_dun03",	// White Lady
							"mjolnir_04",	// Mistress
							"moc_fild17",	// Phreeoni
							"moc_pryd04",	// Osiris
							"moc_pryd06",	// Amon Ra
							"mosk_dun03",	// Zmey Gorynych
							// "niflheim",	// Lord of Death
							"odin_tem03",	// Valkyrie Randgris
							"pay_dun04",	// Moonlight Flower
							"pay_fild11",	// Eddga
							"prt_maze03",	// Baphomet
							"prt_sewb4",	// Golden Thief Bug
							"ra_fild02",	// Atroce
							"ra_fild03",	// Atroce
							"ra_fild04",	// Atroce
							"ra_san05",	// Gloom Under Night
							"thor_v03",	// Ifrit
							"treasure02",	// Drake
							"tur_dun04",	// Turtle General
							"ve_fild01",	// Atroce
							"ve_fild02",	// Atroce
							"xmas_dun02",	// Stormy Knight
							"xmas_fild01";	// Garm
							
		// Execution offset (in ms) to reduce server load
		.delay = 50;
		
		// Create atcommand @killboss
		bindatcmd "killboss", strnpcinfo(3) +"::OnKillBoss", 99, 99;
		end;

	OnKillBoss:
		// Loop through all maps
		for (.@i = 0; .@i < getarraysize(.map$); .@i++) {
			// Kill all monsters on current map
			killmonsterall .map$[.@i];
			
			// Slow down script execution (reduces load)
			sleep .delay;
		}
	
		message strcharinfo(0), .@i +" boss maps have been cleared.";
		end;
	
}

the problem is i cant use @killboss and can someone help me confirm it the all MVP in this script dead.

Link to comment
Share on other sites

13 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  86
  • Topics Per Day:  0.02
  • Content Count:  591
  • Reputation:   146
  • Joined:  06/19/12
  • Last Seen:  

here kill all mobs on the maps

 
//===== 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;
}
Edited by EL Dragon
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   0
  • Joined:  02/10/15
  • Last Seen:  

 

here kill all mobs on the maps

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

 

not work. nothing happen..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  86
  • Topics Per Day:  0.02
  • Content Count:  591
  • Reputation:   146
  • Joined:  06/19/12
  • Last Seen:  

where is the mistake, show on map server

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   0
  • Joined:  02/10/15
  • Last Seen:  

where is the mistake, show on map server

lA3O9A.png

 

this what i got.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  86
  • Topics Per Day:  0.02
  • Content Count:  591
  • Reputation:   146
  • Joined:  06/19/12
  • Last Seen:  

Change OnAtCommand to other z.b OnKillboss

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   0
  • Joined:  02/10/15
  • Last Seen:  

Change OnAtCommand to other z.b OnKillboss

 

//===== By: ==================================================
//= EL Dragon
//===== Current Version: =====================================
//= 1.00
//===== Compatible With: =====================================
//= rAthena SVN
//============================================================

-	script	killboss	-1,{

OnInit:
	bindatcmd "killboss",strnpcinfo(3)+"::Onkillboss", 20,100;
	end;

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

like this?

 

i test it and what i got. i need go the dun map then use @killboss

is not kill all monster in this map script, need to go each map to kill.  

Edited by minx123
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   10
  • Joined:  04/18/15
  • Last Seen:  

i think you should use the first script you already had, but look at this line

bindatcmd "killboss", strnpcinfo(3) +"::OnKillBoss", 99, 99;

Look at rathena wiki syntax

    bindatcmd "command","<NPC object name>::<event label>"{,<atcommand level>,<charcommand level>}; 

at the end of the line 99,99 means that this command will be lv99 atcommand and it's authorized for character or gm grouplv99,

So from what i saw in the script, you just need to change only atcommand level and charcommand level then it'll be fine.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   0
  • Joined:  02/10/15
  • Last Seen:  

i think you should use the first script you already had, but look at this line

bindatcmd "killboss", strnpcinfo(3) +"::OnKillBoss", 99, 99;

Look at rathena wiki syntax

    bindatcmd "command","<NPC object name>::<event label>"{,<atcommand level>,<charcommand level>}; 

at the end of the line 99,99 means that this command will be lv99 atcommand and it's authorized for character or gm grouplv99,

So from what i saw in the script, you just need to change only atcommand level and charcommand level then it'll be fine.

the 1st code error is nothing happen.. cant use @killboss command.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   10
  • Joined:  04/18/15
  • Last Seen:  

what if you put comma after "kh_dun02"


 

i think you should use the first script you already had, but look at this line

bindatcmd "killboss", strnpcinfo(3) +"::OnKillBoss", 99, 99;

Look at rathena wiki syntax

    bindatcmd "command","<NPC object name>::<event label>"{,<atcommand level>,<charcommand level>}; 

at the end of the line 99,99 means that this command will be lv99 atcommand and it's authorized for character or gm grouplv99,

So from what i saw in the script, you just need to change only atcommand level and charcommand level then it'll be fine.

the 1st code error is nothing happen.. cant use @killboss command.

 

put comma after "kh_dun02" and on this line

sleep .delay;

//change it to

sleep2 .delay;

it works for me

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   0
  • Joined:  02/10/15
  • Last Seen:  

what if you put comma after "kh_dun02"

 

i think you should use the first script you already had, but look at this line

bindatcmd "killboss", strnpcinfo(3) +"::OnKillBoss", 99, 99;

Look at rathena wiki syntax

    bindatcmd "command","<NPC object name>::<event label>"{,<atcommand level>,<charcommand level>}; 

at the end of the line 99,99 means that this command will be lv99 atcommand and it's authorized for character or gm grouplv99,

So from what i saw in the script, you just need to change only atcommand level and charcommand level then it'll be fine.

the 1st code error is nothing happen.. cant use @killboss command.

 

put comma after "kh_dun02" and on this line

sleep .delay;

//change it to

sleep2 .delay;

it works for me

can u gv me full code.. i try it but noting happen.


-	script	killboss	-1,{

	OnInit:
		// Desired maps to clear
		setarray .map$[0],	"abbey02",	// Fallen Bishop Hibram
							"abbey03",	// Beelzebub
							"abyss_03",	// Detale
							"ama_dun03",	// Samurai Specter
							"anthell02",	// Maya
							"ayo_dun02",	// Lady Tanee
							"beach_dun",	// Tao Gunka
							"ein_dun02",	// RSX-0806
							"gef_dun01",	// Dracula
							"gef_dun02",	// Doppelganger
							"gef_fild02",	// Orc Hero
							"gef_fild10",	// Orc Lord
							"gef_fild14",	// Orc Hero
							"gl_chyard",	// Dark Lord
							"gld_dun01",	// Eddga
							"gld_dun02",	// Doppelganger
							"gld_dun03",	// Maya
							"gld_dun04",	// Dark Lord
							"gon_dun03",	// Evil Snake Lord
							// "ice_dun03",	// Ktullanux
							"in_sphinx5",	// Pharaoh
							"jupe_core",	// Vesper
							"kh_dun02",	// Kiel D-01
							"lhz_dun02",	// Egnigem Cenia
							// "lhz_dun03",	// Assassin Cross Eremes, High Priest Margaretha, High Wizard Kathryne, Lord Knight Seyren, Sniper Cecil, Whitesmith Howard
							"lou_dun03",	// White Lady
							"mjolnir_04",	// Mistress
							"moc_fild17",	// Phreeoni
							"moc_pryd04",	// Osiris
							"moc_pryd06",	// Amon Ra
							"mosk_dun03",	// Zmey Gorynych
							// "niflheim",	// Lord of Death
							"odin_tem03",	// Valkyrie Randgris
							"pay_dun04",	// Moonlight Flower
							"pay_fild11",	// Eddga
							"prt_maze03",	// Baphomet
							"prt_sewb4",	// Golden Thief Bug
							"ra_fild02",	// Atroce
							"ra_fild03",	// Atroce
							"ra_fild04",	// Atroce
							"ra_san05",	// Gloom Under Night
							"thor_v03",	// Ifrit
							"treasure02",	// Drake
							"tur_dun04",	// Turtle General
							"ve_fild01",	// Atroce
							"ve_fild02",	// Atroce
							"xmas_dun02",	// Stormy Knight
							"xmas_fild01";	// Garm
							
		// Execution offset (in ms) to reduce server load
		.delay = 50;
		
		// Create atcommand @killboss
		bindatcmd "killboss", strnpcinfo(3) +"::OnKillBoss", 99, 99;
		end;

	OnKillBoss:
		// Loop through all maps
		for (.@i = 0; .@i < getarraysize(.map$); .@i++) {
			// Kill all monsters on current map
			killmonsterall .map$[.@i];
			
			// Slow down script execution (reduces load)
			sleep2 .delay;
		}
	
		message strcharinfo(0), .@i +" boss maps have been cleared.";
		end;
	
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   10
  • Joined:  04/18/15
  • Last Seen:  

 

what if you put comma after "kh_dun02"

 

i think you should use the first script you already had, but look at this line

bindatcmd "killboss", strnpcinfo(3) +"::OnKillBoss", 99, 99;

Look at rathena wiki syntax

    bindatcmd "command","<NPC object name>::<event label>"{,<atcommand level>,<charcommand level>}; 

at the end of the line 99,99 means that this command will be lv99 atcommand and it's authorized for character or gm grouplv99,

So from what i saw in the script, you just need to change only atcommand level and charcommand level then it'll be fine.

the 1st code error is nothing happen.. cant use @killboss command.

 

put comma after "kh_dun02" and on this line

sleep .delay;

//change it to

sleep2 .delay;

it works for me

can u gv me full code.. i try it but noting happen.


-	script	killboss	-1,{

	OnInit:
		// Desired maps to clear
		setarray .map$[0],	"abbey02",	// Fallen Bishop Hibram
							"abbey03",	// Beelzebub
							"abyss_03",	// Detale
							"ama_dun03",	// Samurai Specter
							"anthell02",	// Maya
							"ayo_dun02",	// Lady Tanee
							"beach_dun",	// Tao Gunka
							"ein_dun02",	// RSX-0806
							"gef_dun01",	// Dracula
							"gef_dun02",	// Doppelganger
							"gef_fild02",	// Orc Hero
							"gef_fild10",	// Orc Lord
							"gef_fild14",	// Orc Hero
							"gl_chyard",	// Dark Lord
							"gld_dun01",	// Eddga
							"gld_dun02",	// Doppelganger
							"gld_dun03",	// Maya
							"gld_dun04",	// Dark Lord
							"gon_dun03",	// Evil Snake Lord
							// "ice_dun03",	// Ktullanux
							"in_sphinx5",	// Pharaoh
							"jupe_core",	// Vesper
							"kh_dun02",	// Kiel D-01
							"lhz_dun02",	// Egnigem Cenia
							// "lhz_dun03",	// Assassin Cross Eremes, High Priest Margaretha, High Wizard Kathryne, Lord Knight Seyren, Sniper Cecil, Whitesmith Howard
							"lou_dun03",	// White Lady
							"mjolnir_04",	// Mistress
							"moc_fild17",	// Phreeoni
							"moc_pryd04",	// Osiris
							"moc_pryd06",	// Amon Ra
							"mosk_dun03",	// Zmey Gorynych
							// "niflheim",	// Lord of Death
							"odin_tem03",	// Valkyrie Randgris
							"pay_dun04",	// Moonlight Flower
							"pay_fild11",	// Eddga
							"prt_maze03",	// Baphomet
							"prt_sewb4",	// Golden Thief Bug
							"ra_fild02",	// Atroce
							"ra_fild03",	// Atroce
							"ra_fild04",	// Atroce
							"ra_san05",	// Gloom Under Night
							"thor_v03",	// Ifrit
							"treasure02",	// Drake
							"tur_dun04",	// Turtle General
							"ve_fild01",	// Atroce
							"ve_fild02",	// Atroce
							"xmas_dun02",	// Stormy Knight
							"xmas_fild01";	// Garm
							
		// Execution offset (in ms) to reduce server load
		.delay = 50;
		
		// Create atcommand @killboss
		bindatcmd "killboss", strnpcinfo(3) +"::OnKillBoss", 99, 99;
		end;

	OnKillBoss:
		// Loop through all maps
		for (.@i = 0; .@i < getarraysize(.map$); .@i++) {
			// Kill all monsters on current map
			killmonsterall .map$[.@i];
			
			// Slow down script execution (reduces load)
			sleep2 .delay;
		}
	
		message strcharinfo(0), .@i +" boss maps have been cleared.";
		end;
	
}

 

 

this is my present code after editing your code

-	script	killboss	-1,{

	OnInit:
		// Desired maps to clear
		setarray .map$[0],	"abbey02",	// Fallen Bishop Hibram
							"abbey03",	// Beelzebub
							"abyss_03",	// Detale
							"ama_dun03",	// Samurai Specter
							"anthell02",	// Maya
							"ayo_dun02",	// Lady Tanee
							"beach_dun",	// Tao Gunka
							"ein_dun02",	// RSX-0806
							"gef_dun01",	// Dracula
							"gef_dun02",	// Doppelganger
							"gef_fild02",	// Orc Hero
							"gef_fild10",	// Orc Lord
							"gef_fild14",	// Orc Hero
							"gl_chyard",	// Dark Lord
							"gld_dun01",	// Eddga
							"gld_dun02",	// Doppelganger
							"gld_dun03",	// Maya
							"gld_dun04",	// Dark Lord
							"gon_dun03",	// Evil Snake Lord
							// "ice_dun03",	// Ktullanux
							"in_sphinx5",	// Pharaoh
							"jupe_core",	// Vesper
							"kh_dun02",	// Kiel D-01
							"lhz_dun02",	// Egnigem Cenia
							// "lhz_dun03",	// Assassin Cross Eremes, High Priest Margaretha, High Wizard Kathryne, Lord Knight Seyren, Sniper Cecil, Whitesmith Howard
							"lou_dun03",	// White Lady
							"mjolnir_04",	// Mistress
							"moc_fild17",	// Phreeoni
							"moc_pryd04",	// Osiris
							"moc_pryd06",	// Amon Ra
							"mosk_dun03",	// Zmey Gorynych
							// "niflheim",	// Lord of Death
							"odin_tem03",	// Valkyrie Randgris
							"pay_dun04",	// Moonlight Flower
							"pay_fild11",	// Eddga
							"prt_maze03",	// Baphomet
							"prt_sewb4",	// Golden Thief Bug
							"ra_fild02",	// Atroce
							"ra_fild03",	// Atroce
							"ra_fild04",	// Atroce
							"ra_san05",	// Gloom Under Night
							"thor_v03",	// Ifrit
							"treasure02",	// Drake
							"tur_dun04",	// Turtle General
							"ve_fild01",	// Atroce
							"ve_fild02",	// Atroce
							"xmas_dun02",	// Stormy Knight
							"xmas_fild01";	// Garm
							
		// Execution offset (in ms) to reduce server load
		.delay = 50;
		
		// Create atcommand @killboss
		bindatcmd "killboss", strnpcinfo(3) +"::OnKillBoss", 99, 99;
		end;

	OnKillBoss:
		// Loop through all maps
		for (.@i = 0; .@i < getarraysize(.map$); .@i++) {
			// Kill all monsters on current map
			killmonsterall .map$[.@i];
			
			// Slow down script execution (reduces load)
			sleep2 .delay;
		}
		
		message strcharinfo(0), "at last"+.@i +" boss maps have been cleared.";
		end;
	
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   0
  • Joined:  02/10/15
  • Last Seen:  

-	script	killboss	-1,{

	OnInit:
		// Desired maps to clear
		setarray .map$[0],	"abbey02",	// Fallen Bishop Hibram
							"abbey03",	// Beelzebub
							"abyss_03",	// Detale
							"ama_dun03",	// Samurai Specter
							"anthell02",	// Maya
							"ayo_dun02",	// Lady Tanee
							"beach_dun",	// Tao Gunka
							"ein_dun02",	// RSX-0806
							"gef_dun01",	// Dracula
							"gef_dun02",	// Doppelganger
							"gef_fild02",	// Orc Hero
							"gef_fild10",	// Orc Lord
							"gef_fild14",	// Orc Hero
							"gl_chyard",	// Dark Lord
							"gld_dun01",	// Eddga
							"gld_dun02",	// Doppelganger
							"gld_dun03",	// Maya
							"gld_dun04",	// Dark Lord
							"gon_dun03",	// Evil Snake Lord
							// "ice_dun03",	// Ktullanux
							"in_sphinx5",	// Pharaoh
							"jupe_core",	// Vesper
							"kh_dun02",	// Kiel D-01
							"lhz_dun02",	// Egnigem Cenia
							// "lhz_dun03",	// Assassin Cross Eremes, High Priest Margaretha, High Wizard Kathryne, Lord Knight Seyren, Sniper Cecil, Whitesmith Howard
							"lou_dun03",	// White Lady
							"mjolnir_04",	// Mistress
							"moc_fild17",	// Phreeoni
							"moc_pryd04",	// Osiris
							"moc_pryd06",	// Amon Ra
							"mosk_dun03",	// Zmey Gorynych
							// "niflheim",	// Lord of Death
							"odin_tem03",	// Valkyrie Randgris
							"pay_dun04",	// Moonlight Flower
							"pay_fild11",	// Eddga
							"prt_maze03",	// Baphomet
							"prt_sewb4",	// Golden Thief Bug
							"ra_fild02",	// Atroce
							"ra_fild03",	// Atroce
							"ra_fild04",	// Atroce
							"ra_san05",	// Gloom Under Night
							"thor_v03",	// Ifrit
							"treasure02",	// Drake
							"tur_dun04",	// Turtle General
							"ve_fild01",	// Atroce
							"ve_fild02",	// Atroce
							"xmas_dun02",	// Stormy Knight
							"xmas_fild01";	// Garm
							
		// Execution offset (in ms) to reduce server load
		.delay = 50;
		
		// Create atcommand @killboss
		bindatcmd "killboss", strnpcinfo(3) +"::OnKillBoss", 99, 99;
		end;

	OnKillBoss:
		// Loop through all maps
		for (.@i = 0; .@i < getarraysize(.map$); .@i++) {
			// Kill all monsters on current map
			killmonsterall .map$[.@i];
			
			// Slow down script execution (reduces load)
			sleep2 .delay;
		}
		
		message strcharinfo(0), "at last"+.@i +" boss maps have been cleared.";
		end;
	
}

how can u work? i test cant work. error same and cant @killboss..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   10
  • Joined:  04/18/15
  • Last Seen:  

i use svn17713 and 17723

what if you close that line

//sleep2 .delay;

or make it like this

sleep 50;

and delete this line cos no use of this variable anymore

.delay = 50;
Edited by kn16
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...