Jump to content
  • 0

private dead branch room


YuliChenz

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  40
  • Reputation:   0
  • Joined:  11/04/12
  • Last Seen:  

could you please help me making a script for private dead branch room?

i wanna use 06guild_01 - 06guild_08 as a map. i need 1 NPC in this room for healing when no monster arround, and an option to clear all monster in map.

also put password so no one else can get in when there is player in room, and put time limit for 1 hour.

set zeny cost for 1m zeny.

 

i really need this script and i really need your help ^^ thanks in advance

Edited by YuliChenz
Link to comment
Share on other sites

14 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  63
  • Topics Per Day:  0.05
  • Content Count:  172
  • Reputation:   1
  • Joined:  11/16/20
  • Last Seen:  

On 3/26/2013 at 9:10 PM, Skorm said:
OnInit:
	while(1){
		sleep 1000 * 60 * 5;
		if(!getusers(8)&&mobcount(strnpcinfo(4))){killmonsterall strnpcinfo(4);}
	}
}

This Error Pops up in CMD how to get rid of it?

image.png.210b31050ae4044ac4dcc7a95942faee.png

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   381
  • Joined:  02/03/12
  • Last Seen:  

On 11/11/2021 at 10:19 PM, DEsMOn said:

This Error Pops up in CMD how to get rid of it?

image.png.210b31050ae4044ac4dcc7a95942faee.png

It looks like the command mobcount was updated at some point to require another parameter.

Replace the errored line with...
 

if(!getusers(8)&&mobcount(strnpcinfo(4),"all")){killmonsterall strnpcinfo(4);}

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   3
  • Joined:  01/01/12
  • Last Seen:  

prontera,102,102,5	script	Dead Branch Room	100,{
setarray $@maps$[1], "morocc", "geffen", "prontera", "alberta", "comodo", "aldebaran", "amatsu";
for(set .@b,1; .@b < getarraysize($@maps$); set .@b,.@b + 1) {
	if(.@b==1){ set .@menu$, .@menu$  + "Public- "+((getmapusers($@maps$[.@b])>=30)?"^CD0000Closed^000000("+getmapusers($@maps$[.@b])+")":"^007700Open^000000("+getmapusers($@maps$[.@b])+")")+":"; } else { set .@menu$, .@menu$  + "Private["+(.@b-1)+"]- "+((getmapusers(""+$@maps$[.@b]+"")>=5)?"^CD0000Closed^000000("+getmapusers($@maps$[.@b])+")":"^007700Open^000000("+getmapusers($@maps$[.@b])+")")+":"; }
}
if(select(.@menu$)) { callfunc "GRfunction",$@maps$[@menu],@menu; }
}

function	script	GRfunction	{
if(getmapusers(getarg(0))<=30&&getarg(1)==1){
	warp getarg(0),0,0; end;
}
if(!getmapusers(getarg(0))){
	mes "Input a new password.";
	input($password$[getarg(1)]);
	next; warp getarg(0),0,0;
	end;
}
if(getmapusers(getarg(0))<=5&&getarg(1)!=1) {
	mes "This room is password protected please input the password now.";
	input(@name$);
	if(@name$==$password$[getarg(1)]){
		mes "correct!"; next; warp getarg(0),0,0; end;
	} else {
		mes "Incorrect!";
		close;
	}
} else {
	mes "I'm sorry this room is full.";
	close;
}
}

 

 

 Just modify the array
 
setarray $@maps$[1], "morocc", "geffen", "prontera", "alberta", "comodo", "aldebaran", "amatsu";
 
and remember that the first map will always be public everything after will not be public.
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  40
  • Reputation:   0
  • Joined:  11/04/12
  • Last Seen:  

Thank you very much ^^ i will try it

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   381
  • Joined:  02/03/12
  • Last Seen:  

//by skorm....
prontera,102,102,5	script	Dead Branch Room	100,{
setarray $@maps$[1], "06guild_01", "06guild_08";
setarray .@price[1], 1000000, 1000000;
for(set .@b,1; .@b < getarraysize($@maps$); set .@b,.@b + 1) {
	if(.@b==1){ set .@menu$, .@menu$  + "Public- "+((getmapusers($@maps$[.@b])>=30)?"^CD0000Closed^000000("+getmapusers($@maps$[.@b])+")":"^007700Open^000000("+getmapusers($@maps$[.@b])+") [z"+.@price[.@b]+"]")+":"; } else { set .@menu$, .@menu$  + "Private["+(.@b-1)+"]- "+((getmapusers(""+$@maps$[.@b]+"")>=5)?"^CD0000Closed^000000("+getmapusers($@maps$[.@b])+")":"^007700Open^000000("+getmapusers($@maps$[.@b])+") [z"+.@price[.@b]+"]")+":"; }
}
if(select(.@menu$)) { callfunc "GRfunction",$@maps$[@menu],@menu,.@price[@menu]; }
}

function	script	GRfunction	{
if(Zeny<getarg(2)){mes "I'm sorry but you don't have enough Zeny, please come back later."; close;}
if(getmapusers(getarg(0))<=30&&getarg(1)==1){
	warp getarg(0),0,0; end;
}
if(!getmapusers(getarg(0))){
	mes "Input a new password.";
	input($password$[getarg(1)]);
	set Zeny,Zeny-getarg(2);
	set $@maps$,getarg(0);
	next; setnpctimer 0; attachnpctimer(strcharinfo(0)); startnpctimer; warp getarg(0),0,0;
	end;
}
if(getmapusers(getarg(0))<=5&&getarg(1)!=1) {
	mes "This room is password protected please input the password now.";
	input(@name$);
	if(@name$==$password$[getarg(1)]){
		set Zeny,Zeny-getarg(2);
		set $@maps$,getarg(0);
		mes "correct!"; next; setnpctimer 0; attachnpctimer(strcharinfo(0)); startnpctimer; warp getarg(0),0,0; end;
	} else {
		mes "Incorrect!";
		close;
	}
} else {
	mes "I'm sorry this room is full.";
	close;
}

OnTimer3600000:
if(strcharinfo(3)==$@maps$){
	warp "prontera",0,0;
	end;
}
}

06guild_01,49,49,5	script	Heal#h1-1::Heal	110,{

	if((@h_last) && (getnpctimer(1))) goto L_doubleclick;
	
	set @h_last,1;
	percentheal 100,100;
	specialeffect 312;
	skilleffect 28,32767;
	sc_end SC_STONE;
	sc_end SC_FREEZE;
	sc_end SC_STUN;
	sc_end SC_SLEEP;
	sc_end SC_POISON;
	sc_end SC_CURSE;
	sc_end SC_SILENCE;
	sc_end SC_CONFUSION;
	sc_end SC_BLIND;
	sc_end SC_BLEEDING;
	sc_end SC_DPOISON;
	dispbottom "HP/SP fully restored.";
	if(!getnpctimer(1)){setnpctimer 0; attachnpctimer(strcharinfo(0)); startnpctimer;}
	end;
	
L_doubleclick:
	killmonsterall strcharinfo(3);
	npctalk "I've killed all monsters.";
	end;

OnTimer1000:
	set @h_last,0;
	stopnpctimer;
	end;
}

// --------- NPC Clones ---------
06guild_08,49,49,5	duplicate(Heal)	Heal#h1-2	742
 Edit: Do you want all players to be able to clear the map, or just like GMS? Also added a price on all maps.

Edit2: I've added the npc it heals the player if you click once if you double-click it will kill all the monsters. You have to find the cordinates though... If you don't want the double click thing it's really just a way to stop them abusing it. I can remove it.

Edit3: added timer.

 

You can modify price in this array.

setarray .@price[1], 1000000, 1000000, 1000000, 1000000, 1000000, 1000000, 1000000;

Lol someone just posted my script lawls.

Edited by Skorm
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

i'm getting an error.... 

post-3034-0-46446700-1363713814_thumb.jpg

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

i'm getting an error....

callfunc "GRfunction",$@maps$[@menu],@menu;
GRfunction only has 3 arguments (0, 1, and 2)

All those getarg(3) should be getarg(2)

Edited by Brian
oops.. copypasta
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   381
  • Joined:  02/03/12
  • Last Seen:  

callfunc "GRfunction",$@maps$[@menu],@menu;
GRfunction only has 3 arguments (0, 1, and 2)

All those getarg(3) should be getarg(3)

Thanks again, Brian, I know what you meant. :D

All those getarg(3) should be getarg(2)

And make sure to change the healers locations... I'll modify my first post... I just don't test these things because it's time consuming xD.

Edited by Skorm
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   107
  • Joined:  10/05/12
  • Last Seen:  

cleaning room is not a good choice

because other chars can do the same while you figth a mob.

 

I will give this one to you

this is my deadbranch healer, I hope you like it, and good luck traducing it because is in spanish

of coures it does, because i am from panama hehahaha.

 

 

//===== eAthena Script =======================================================================
 
//= Script Dedbranch HEaler
 
//===== By: =================================================================================
 
//= Iraciz
 
//==========================================================================================
 
prontera,153,187,5    script    Vigilante    939,{
 
if(gettimetick(2) < variabletiempo) {
 
npctalk "Espera, aun estoy recargando mi habilidad.!";
 
    close;
}
 
//Variables
 
set @effect, 0; // 0 para desabilitar los effecto si da lag
 
set @heal, 1; // 0 para que no cure
 
sc_end SC_Poison; sc_end SC_Silence; sc_end SC_Blind; sc_end SC_Confusion; sc_end SC_Curse; sc_end SC_Hallucination;
 
sc_end SC_SILENCE; sc_end SC_BLEEDING; sc_end SC_POISON; sc_end SC_CURSE; sc_end SC_ORCISH; sc_end SC_CHANGEUNDEAD;
 
sc_start SC_SpeedUp1,15000,10;
 
sc_start 32,  240000, 10;  // Increase Agi
sc_start 30, 240000, 10; // Blessing
 
sc_start SC_KAIZEL,2000000,7;
sc_start SC_INCCRI,10000,7;
sc_start SC_INCHIT,10000,10; sc_start SC_INCFLEE2,10000,20;
sc_start SC_INCFLEE,10000,30;
sc_start SC_INCSTR,10000,2; sc_start SC_INCINT,10000,2; sc_start SC_INCAGI,10000,2;
sc_start SC_ATKPOTION,10000,20; sc_start SC_MATKPOTION,10000,20;
 
sc_start SC_SAVAGE_STEAK,10000,20; 
sc_start SC_STRFOOD,10000,10; 
sc_start SC_DROCERA_HERB_STEAMED,10000,20;
sc_start SC_AGIFOOD,10000,10; 
sc_start SC_MINOR_BBQ,10000,20;
sc_start SC_VITFOOD,10000,10; 
sc_start SC_COCKTAIL_WARG_BLOOD,10000,20;
sc_start SC_INTFOOD,10000,10;
sc_start SC_SIROMA_ICE_TEA,10000,20;
sc_start SC_DEXFOOD,10000,10;
sc_start SC_PUTTI_TAILS_NOODLES,10000,20;
sc_start SC_LUKFOOD,10000,10;
sc_start4 SC_L_LIFEPOTION,10000,-13,-20,0,0;
 
atcommand "@spiritball 5";
 
atcommand "@raise";
 
if(@heal == 1) percentheal 90,100;
 
specialeffect2 583;
 
specialeffect2 589; 
 
specialeffect2 721;
 
npctalk "Necesitare recargar despues de esto.!.";
 
set variabletiempo, gettimetick(2) + 18;
 
specialeffect 9;
 
sleep2 18000;
 
specialeffect 98;
 
npctalk "Estoy listo!!.!.";
 
specialeffect 721;
 
close;
 
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  40
  • Reputation:   0
  • Joined:  11/04/12
  • Last Seen:  

i decided to use this script, but somehow the npc timer doesnt works. i can still in room when the time is over

please check it

ayothaya,165,162,3	script	Dead Branch Room	100,{
setarray $@maps$[1], "pvp_y_1-4", "06guild_01", "06guild_02", "06guild_03", "06guild_04", "06guild_05";
setarray .@price[1], 0, 1000000, 1000000, 1000000, 1000000, 1000000;
for(set .@b,1; .@b < getarraysize($@maps$); set .@b,.@b + 1) {
	if(.@b==1){ set .@menu$, .@menu$  + "Public- "+((getmapusers($@maps$[.@b])>=30)?"^CD0000Closed^000000("+getmapusers($@maps$[.@b])+")":"^007700Open^000000("+getmapusers($@maps$[.@b])+") [z"+.@price[.@b]+"]")+":"; } else { set .@menu$, .@menu$  + "Private["+(.@b-1)+"]- "+((getmapusers(""+$@maps$[.@b]+"")>=5)?"^CD0000Closed^000000("+getmapusers($@maps$[.@b])+")":"^007700Open^000000("+getmapusers($@maps$[.@b])+") [z"+.@price[.@b]+"]")+":"; }
}
if(select(.@menu$)) { callfunc "GRfunction",$@maps$[@menu],@menu,.@price[@menu]; }
}

function	script	GRfunction	{
if(Zeny<getarg(2)){mes "I'm sorry but you don't have enough Zeny, please come back later."; close;}
if(getmapusers(getarg(0))<=30&&getarg(1)==1){
	warp getarg(0),0,0; end;
}
if(!getmapusers(getarg(0))){
	mes "Input a new password.";
	input($password$[getarg(1)]);
	set Zeny,Zeny-getarg(2);
	set $@maps$,getarg(0);
	next; setnpctimer 0; attachnpctimer(strcharinfo(0)); startnpctimer; warp getarg(0),0,0;
	end;
}
if(getmapusers(getarg(0))<=5&&getarg(1)!=1) {
	mes "This room is password protected please input the password now.";
	input(@name$);
	if(@name$==$password$[getarg(1)]){
		set Zeny,Zeny-getarg(2);
		set $@maps$,getarg(0);
		mes "correct!"; next; setnpctimer 0; attachnpctimer(strcharinfo(0)); startnpctimer; warp getarg(0),0,0; end;
	} else {
		mes "Incorrect!";
		close;
	}
} else {
	mes "I'm sorry this room is full.";
	close;
}

OnTimer60000:
if(strcharinfo(3)==$@maps$){
	warp "ayothaya",151,166;
	end;
}
}

pvp_y_1-4	mapflag	nowarpto
06guild_01	mapflag	nowarpto
06guild_02	mapflag	nowarpto
06guild_03	mapflag	nowarpto
06guild_04	mapflag	nowarpto
06guild_05	mapflag	nowarpto
pvp_y_1-4	mapflag	nosave
06guild_01	mapflag	nosave
06guild_02	mapflag	nosave
06guild_03	mapflag	nosave
06guild_04	mapflag	nosave
06guild_05	mapflag	nosave
pvp_y_1-4	mapflag	pvp	off
06guild_01	mapflag	pvp	off
06guild_02	mapflag	pvp	off
06guild_03	mapflag	pvp	off
06guild_04	mapflag	pvp	off
06guild_05	mapflag	pvp	off

and could anyone please make it kill all monster if room is idle for 5 minutes? also when the time is over

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  40
  • Reputation:   0
  • Joined:  11/04/12
  • Last Seen:  

BUMP!!! anyone can help me fix the script???

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   381
  • Joined:  02/03/12
  • Last Seen:  

I've added the 5min kill timer to the healing npcs. If you add them to any map they will kill the monsters if there is no players for 5min.

 

Everything is tested and working with the latest version of rAthena.

 

 

 

prontera,102,102,5	script	Dead Branch Room	100,{
setarray $@maps$[1], "06guild_01", "06guild_08";
setarray .@price[1], 1000000, 1000000;
for(set .@b,1; .@b < getarraysize($@maps$); set .@b,.@b + 1) {
	if(.@b==1){ set .@menu$, .@menu$  + "Public- "+((getmapusers($@maps$[.@b])>=30)?"^CD0000Closed^000000("+getmapusers($@maps$[.@b])+")":"^007700Open^000000("+getmapusers($@maps$[.@b])+") [z"+.@price[.@b]+"]")+":"; } else { set .@menu$, .@menu$  + "Private["+(.@b-1)+"]- "+((getmapusers(""+$@maps$[.@b]+"")>=5)?"^CD0000Closed^000000("+getmapusers($@maps$[.@b])+")":"^007700Open^000000("+getmapusers($@maps$[.@b])+") [z"+.@price[.@b]+"]")+":"; }
}
if(select(.@menu$)) {
	if(Zeny<.@price[@menu]){mes "I'm sorry but you don't have enough Zeny, please come back later."; close;}
	if(getmapusers($@maps$[@menu])<=30&&@menu==1){
		set Zeny,Zeny-.@price[@menu];
		set $@maps$,$@maps$[@menu];
		setnpctimer 0; attachnpctimer(strcharinfo(0)); startnpctimer; warp $@maps$[@menu],0,0; end;
	}
	if(!getmapusers($@maps$[@menu])){
		mes "Input a new password.";
		input($password$[@menu]);
		set Zeny,Zeny-.@price[@menu];
		set $@maps$,$@maps$[@menu];
		next; setnpctimer 0; attachnpctimer(strcharinfo(0)); startnpctimer; warp $@maps$[@menu],0,0; end;
	}
	if(getmapusers($@maps$[@menu])<=5&&@menu!=1) {
		mes "This room is password protected please input the password now.";
		input(@name$);
		if(@name$==$password$[@menu]){
			set Zeny,Zeny-.@price[@menu];
			set $@maps$,$@maps$[@menu];
			mes "correct!"; next; setnpctimer 0; attachnpctimer(strcharinfo(0)); startnpctimer; warp $@maps$[@menu],0,0; end;
		} else {
			mes "Incorrect!";
			close;
		}
	} else {
		mes "I'm sorry this room is full.";
		close;
	}
}

OnTimer3600000:
if(strcharinfo(3)==$@maps$){
	warp "prontera",0,0;
	end;
}
}

06guild_01,49,49,5	script	Heal#h1-1::Heal	110,{

	if((@h_last) && (getnpctimer(1))) goto L_doubleclick;
	
	set @h_last,1;
	percentheal 100,100;
	specialeffect 312;
	skilleffect 28,32767;
	sc_end SC_STONE;
	sc_end SC_FREEZE;
	sc_end SC_STUN;
	sc_end SC_SLEEP;
	sc_end SC_POISON;
	sc_end SC_CURSE;
	sc_end SC_SILENCE;
	sc_end SC_CONFUSION;
	sc_end SC_BLIND;
	sc_end SC_BLEEDING;
	sc_end SC_DPOISON;
	dispbottom "HP/SP fully restored.";
	if(!getnpctimer(1)){setnpctimer 0; attachnpctimer(strcharinfo(0)); startnpctimer;}
	end;
	
L_doubleclick:
	killmonsterall strcharinfo(3);
	npctalk "I've killed all monsters.";
	end;

OnTimer1000:
	set @h_last,0;
	stopnpctimer;
	end;

OnInit:
	while(1){
		sleep 1000 * 60 * 5;
		if(!getusers(8)&&mobcount(strnpcinfo(4))){killmonsterall strnpcinfo(4);}
	}
}

// --------- NPC Clones ---------
06guild_08,49,49,5	duplicate(Heal)	Heal#h1-2	742
Edited by Skorm
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  70
  • Topics Per Day:  0.02
  • Content Count:  203
  • Reputation:   1
  • Joined:  05/11/12
  • Last Seen:  

I've added the 5min kill timer to the healing npcs. If you add them to any map they will kill the monsters if there is no players for 5min.

 

Everything is tested and working with the latest version of rAthena.

 

 

 

prontera,102,102,5	script	Dead Branch Room	100,{
setarray $@maps$[1], "06guild_01", "06guild_08";
setarray .@price[1], 1000000, 1000000;
for(set .@b,1; .@b < getarraysize($@maps$); set .@b,.@b + 1) {
	if(.@b==1){ set .@menu$, .@menu$  + "Public- "+((getmapusers($@maps$[.@b])>=30)?"^CD0000Closed^000000("+getmapusers($@maps$[.@b])+")":"^007700Open^000000("+getmapusers($@maps$[.@b])+") [z"+.@price[.@b]+"]")+":"; } else { set .@menu$, .@menu$  + "Private["+(.@b-1)+"]- "+((getmapusers(""+$@maps$[.@b]+"")>=5)?"^CD0000Closed^000000("+getmapusers($@maps$[.@b])+")":"^007700Open^000000("+getmapusers($@maps$[.@b])+") [z"+.@price[.@b]+"]")+":"; }
}
if(select(.@menu$)) {
	if(Zeny<.@price[@menu]){mes "I'm sorry but you don't have enough Zeny, please come back later."; close;}
	if(getmapusers($@maps$[@menu])<=30&&@menu==1){
		set Zeny,Zeny-.@price[@menu];
		set $@maps$,$@maps$[@menu];
		setnpctimer 0; attachnpctimer(strcharinfo(0)); startnpctimer; warp $@maps$[@menu],0,0; end;
	}
	if(!getmapusers($@maps$[@menu])){
		mes "Input a new password.";
		input($password$[@menu]);
		set Zeny,Zeny-.@price[@menu];
		set $@maps$,$@maps$[@menu];
		next; setnpctimer 0; attachnpctimer(strcharinfo(0)); startnpctimer; warp $@maps$[@menu],0,0; end;
	}
	if(getmapusers($@maps$[@menu])<=5&&@menu!=1) {
		mes "This room is password protected please input the password now.";
		input(@name$);
		if(@name$==$password$[@menu]){
			set Zeny,Zeny-.@price[@menu];
			set $@maps$,$@maps$[@menu];
			mes "correct!"; next; setnpctimer 0; attachnpctimer(strcharinfo(0)); startnpctimer; warp $@maps$[@menu],0,0; end;
		} else {
			mes "Incorrect!";
			close;
		}
	} else {
		mes "I'm sorry this room is full.";
		close;
	}
}

OnTimer3600000:
if(strcharinfo(3)==$@maps$){
	warp "prontera",0,0;
	end;
}
}

06guild_01,49,49,5	script	Heal#h1-1::Heal	110,{

	if((@h_last) && (getnpctimer(1))) goto L_doubleclick;
	
	set @h_last,1;
	percentheal 100,100;
	specialeffect 312;
	skilleffect 28,32767;
	sc_end SC_STONE;
	sc_end SC_FREEZE;
	sc_end SC_STUN;
	sc_end SC_SLEEP;
	sc_end SC_POISON;
	sc_end SC_CURSE;
	sc_end SC_SILENCE;
	sc_end SC_CONFUSION;
	sc_end SC_BLIND;
	sc_end SC_BLEEDING;
	sc_end SC_DPOISON;
	dispbottom "HP/SP fully restored.";
	if(!getnpctimer(1)){setnpctimer 0; attachnpctimer(strcharinfo(0)); startnpctimer;}
	end;
	
L_doubleclick:
	killmonsterall strcharinfo(3);
	npctalk "I've killed all monsters.";
	end;

OnTimer1000:
	set @h_last,0;
	stopnpctimer;
	end;

OnInit:
	while(1){
		sleep 1000 * 60 * 5;
		if(!getusers(8)&&mobcount(strnpcinfo(4))){killmonsterall strnpcinfo(4);}
	}
}

// --------- NPC Clones ---------
06guild_08,49,49,5	duplicate(Heal)	Heal#h1-2	742

 

Doesn't work. Fail to hide npc. 

up

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   381
  • Joined:  02/03/12
  • Last Seen:  

Doesn't work. Fail to hide npc. 

up

 

 

The script was never meant to hide the NPC. If you're getting an error please provide it.

 

This is a rather old script of mine from eAthena so I wouldn't be surprised if something is bugged.

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