Jump to content
  • 0
AinsLord

putting barricades on KoE map

Question

Posted (edited)

welp im trying to add barricade on my koe

it seems working just fine no errors on console

but its not enough for me

after killing the emperium the killed barricades will spawn in 3sec or 5secs

with map announcement

here is the script

-	script	KoEbarricade	78,{ 
OnInit:		
	setcell "koe",45,53,45,46,cell_walkable,0; //non walkable

	monster "koe",45,51,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead1";
	monster "koe",45,48,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead1";

	setcell "koe",53,54,46,54,cell_walkable,0; //non walkable

	monster "koe",51,54,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead2";
	monster "koe",48,54,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead2";

	setcell "koe",54,46,54,53,cell_walkable,0; //non walkable

	monster "koe",54,48,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead3";
	monster "koe",54,51,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead3";

	setcell "koe",46,45,53,45,cell_walkable,0; //non walkable

	monster "koe",48,45,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead4";
	monster "koe",51,45,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead4";

end;

OnBarDead1:
	setcell "koe",45,53,45,46,cell_walkable,1;
OnBarDead2:
	setcell "koe",53,54,46,54,cell_walkable,1;
OnBarDead3:
	setcell "koe",54,46,54,53,cell_walkable,1;
OnBarDead4:
	setcell "koe",46,45,53,45,cell_walkable,1;
end;
}
	

PS: do i need to merge this script on my KoE script?

thanks in advance 

Edited by AinsLord
more info

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0
2 hours ago, AinsLord said:

welp im trying to add barricade on my koe

it seems working just fine no errors on console

but its not enough for me

after killing the emperium the killed barricades will spawn in 3sec or 5secs

with map announcement

here is the script

-	script	KoEbarricade	78,{ 
OnInit:		
	setcell "koe",45,53,45,46,cell_walkable,0; //non walkable

	monster "koe",45,51,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead1";
	monster "koe",45,48,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead1";

	setcell "koe",53,54,46,54,cell_walkable,0; //non walkable

	monster "koe",51,54,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead2";
	monster "koe",48,54,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead2";

	setcell "koe",54,46,54,53,cell_walkable,0; //non walkable

	monster "koe",54,48,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead3";
	monster "koe",54,51,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead3";

	setcell "koe",46,45,53,45,cell_walkable,0; //non walkable

	monster "koe",48,45,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead4";
	monster "koe",51,45,"Barricade",1905,1,strnpcinfo(0)+"::OnBarDead4";

end;

OnBarDead1:
	setcell "koe",45,53,45,46,cell_walkable,1;
OnBarDead2:
	setcell "koe",53,54,46,54,cell_walkable,1;
OnBarDead3:
	setcell "koe",54,46,54,53,cell_walkable,1;
OnBarDead4:
	setcell "koe",46,45,53,45,cell_walkable,1;
end;
}
	

PS: do i need to merge this script on my KoE script?

thanks in advance 

can you show your KOE script here ... you can try to hideonnpc and hideoffnpc then sett the cell to cell_walkable,0; upon killing the emperium 

Share this post


Link to post
Share on other sites
  • 0
2 hours ago, Origami said:

can you show your KOE script here ... you can try to hideonnpc and hideoffnpc then sett the cell to cell_walkable,0; upon killing the emperium 

sure im actually using ms. annies script

//===== Hercules Script ===========================================
//= King of Emperium Hill
//===== By: =======================================================
//= AnnieRuru
//===== Current Version: ==========================================
//= 1.2
//===== Compatible With: ==========================================
//= hercules & rathena 2018-04-08
//===== Description: ==============================================
//= defends the emperium in the middle of the map until times up
//===== Topic =====================================================
//= http://hercules.ws/board/topic/4495-gvg-king-of-emperium-hill/
//===== Additional Comments: ======================================
//= Finally there is a topic for this !
//=================================================================

-	script	KoE	FAKE_NPC,{
OnInit:
	disablenpc "The King#KoE";
	disablenpc "The King#Lou";
	disablenpc "The King#Alde";
	disablenpc "The King#LHZ";
	disablenpc "The King#Prt";
	disablenpc "The King#Hug";
	disablenpc "Exit#KoE";
	bindatcmd "koe", strnpcinfo(0)+"::OnCommand", 99,100;
	end;
OnCommand:
	if ( compare( .@atcmd_parameters$, "on" ) ) goto L_start;
	else if ( compare( .@atcmd_parameters$, "off" ) ) goto L_end;
	else {
		dispbottom "type - '@koe on' to start the event";
		dispbottom "type - '@koe off' to end the event";
	}
	end;
L_start:
OnSun2000: // everyday 8pm starts
	if ( .start ) end;
	gvgon "koe";
	announce "The King of Emperium Hill has begun!", bc_all;
	.start = true;
	enablenpc "The King#KoE";
	enablenpc "The King#Lou";
	enablenpc "The King#Alde";
	enablenpc "The King#LHZ";
	enablenpc "The King#Prt";
	enablenpc "The King#Hug";
	disablenpc "Exit#KoE";
	$koegid = 0;
	donpcevent "::OnRevKoE";
	maprespawnguildid "koe", $koegid, 3;
	killmonster "koe", "KoE::OnEmpDead";
	monster "koe",49,49, "EMPERIUM", 1288, 1, "KoE::OnEmpDead";
	end;
L_end:
OnSun2100: // everyday 8:30pm ends
	gvgoff "koe";
	announce "The King of Emperium Hill is over!", bc_all;
	.start = 0;
	enablenpc "Exit#KoE";
	disablenpc "The King#KoE";
	disablenpc "The King#Lou";
	disablenpc "The King#Alde";
	disablenpc "The King#LHZ";
	disablenpc "The King#Prt";
	disablenpc "The King#Hug";
	killmonster "koe", "KoE::OnEmpDead";
	maprespawnguildid "koe", $koegid, 2; // uncomment this line to kick non-owner off the map when event ends
	end;
OnEmpDead:
	$koegid = getcharid(2);
	announce "The current King of Emperium Hill is the ["+ strcharinfo(2) +"] guild.", bc_all;
	donpcevent "::OnRevKoE";
	maprespawnguildid "koe", $koegid, 2;
	killmonster "koe", "KoE::OnEmpDead";
	sleep 500;
	if ( .start )
		monster "koe",50,50, "EMPERIUM", 1288, 1, "KoE::OnEmpDead";
	end;
}

// KoE Entrance
alexandria,165,143,3	script	The King#KoE	1_M_MERCHANT,{
	mes "[The King]";
	if ( !getcharid(2) ) {
		mes "You must have a guild to participate in the ^FF0000King of Emperium Hill Tournament^000000.";
		close;
	}
	mes "Hello.";
	mes "Would you like to participate in the ^FF0000King of Emperium Hill Tournament^000000?";
	if ( select ( "Yes", "No" ) == 2 ) close;
	if ( !getvariableofnpc( .start, "KoE" ) ) close;
	switch( rand(1,4) ){
	case 1:	warp "koe", 14, 17; end;
	case 2:	warp "koe", 14, 84; end;
	case 3:	warp "koe", 85, 84; end;
	case 4:	warp "koe", 85, 16; end;
	}
}

// KoE Exit
koe,49,56,5	script	Exit#KoE	1_M_BARD,{
	mes "[Exit]";
	mes "See ya.";
	close2;
	warp "Save",0,0;
	if ( getcharid(2) == $koegid )
		getitem 36028, 10;
		getitem 7227, 50;
		getitem 37001, 5;	 // configure prize here - Poring Coin
	end;
}

// Flags
koe,25,74,5	script	King of Emperium Hill#1::koe_flag	GUILD_FLAG,{
	if ( !$koegid ) end;
	mes "[King of Emperium Hill]";
	mes "The Current King of Emperium Hill is the ["+ getguildname($koegid) +"] guild.";
	close;
OnInit: // Uncomment this line to make the emblem stay after @reloadscript
OnRevKoE:
	flagemblem $koegid;
	end;
}
koe,39,40,3	duplicate(koe_flag)	King of Emperium Hill#2	GUILD_FLAG
koe,39,59,1	duplicate(koe_flag)	King of Emperium Hill#3	GUILD_FLAG
koe,60,59,7	duplicate(koe_flag)	King of Emperium Hill#4	GUILD_FLAG
koe,60,40,5	duplicate(koe_flag)	King of Emperium Hill#5	GUILD_FLAG
koe,74,74,3	duplicate(koe_flag)	King of Emperium Hill#6	GUILD_FLAG
koe,75,24,1	duplicate(koe_flag)	King of Emperium Hill#7	GUILD_FLAG
koe,26,24,7	duplicate(koe_flag)	King of Emperium Hill#8	GUILD_FLAG

hugel,101,144,3	duplicate(The King#KoE)	The King#Hug	1_M_MERCHANT
louyang,212,101,5	duplicate(The King#KoE)	The King#Lou	1_M_MERCHANT
aldebaran,133,113,5	duplicate(The King#KoE)	The King#Alde	1_M_MERCHANT
lighthalzen,154,105,5	duplicate(The King#KoE)	The King#LHZ	1_M_MERCHANT
prontera,163,317,6,3	duplicate(The King#KoE)	The King#Prt	1_M_MERCHANT
//alexandria,165,143,3	duplicate(The King#KoE)	The King#Alex	1_M_MERCHANT


koe	mapflag	nobranch
koe	mapflag	nomemo
koe	mapflag	nopenalty
koe	mapflag	noreturn
koe	mapflag	nosave	SavePoint
koe	mapflag	noteleport
//koe	mapflag	gvg_noparty
koe	mapflag	nowarp
koe	mapflag	nowarpto
koe	mapflag	guildlock
koe	mapflag	noicewall

here it is sir @Origami

Share this post


Link to post
Share on other sites
  • 0

Add another Label in your barricade setter.

Edit OnEmpDead and add 3~5 secs delay then use donpcevent to trigger the new Label

Share this post


Link to post
Share on other sites
  • 0
Posted (edited)
8 hours ago, AinsLord said:

sure im actually using ms. annies script

//===== Hercules Script ===========================================
//= King of Emperium Hill
//===== By: =======================================================
//= AnnieRuru
//===== Current Version: ==========================================
//= 1.2
//===== Compatible With: ==========================================
//= hercules & rathena 2018-04-08
//===== Description: ==============================================
//= defends the emperium in the middle of the map until times up
//===== Topic =====================================================
//= http://hercules.ws/board/topic/4495-gvg-king-of-emperium-hill/
//===== Additional Comments: ======================================
//= Finally there is a topic for this !
//=================================================================

-	script	KoE	FAKE_NPC,{
OnInit:
	disablenpc "The King#KoE";
	disablenpc "The King#Lou";
	disablenpc "The King#Alde";
	disablenpc "The King#LHZ";
	disablenpc "The King#Prt";
	disablenpc "The King#Hug";
	disablenpc "Exit#KoE";
	bindatcmd "koe", strnpcinfo(0)+"::OnCommand", 99,100;
	end;
OnCommand:
	if ( compare( .@atcmd_parameters$, "on" ) ) goto L_start;
	else if ( compare( .@atcmd_parameters$, "off" ) ) goto L_end;
	else {
		dispbottom "type - '@koe on' to start the event";
		dispbottom "type - '@koe off' to end the event";
	}
	end;
L_start:
OnSun2000: // everyday 8pm starts
	if ( .start ) end;
	gvgon "koe";
	announce "The King of Emperium Hill has begun!", bc_all;
	.start = true;
	enablenpc "The King#KoE";
	enablenpc "The King#Lou";
	enablenpc "The King#Alde";
	enablenpc "The King#LHZ";
	enablenpc "The King#Prt";
	enablenpc "The King#Hug";
	disablenpc "Exit#KoE";
	$koegid = 0;
	donpcevent "::OnRevKoE";
	maprespawnguildid "koe", $koegid, 3;
	killmonster "koe", "KoE::OnEmpDead";
	monster "koe",49,49, "EMPERIUM", 1288, 1, "KoE::OnEmpDead";
	end;
L_end:
OnSun2100: // everyday 8:30pm ends
	gvgoff "koe";
	announce "The King of Emperium Hill is over!", bc_all;
	.start = 0;
	enablenpc "Exit#KoE";
	disablenpc "The King#KoE";
	disablenpc "The King#Lou";
	disablenpc "The King#Alde";
	disablenpc "The King#LHZ";
	disablenpc "The King#Prt";
	disablenpc "The King#Hug";
	killmonster "koe", "KoE::OnEmpDead";
	maprespawnguildid "koe", $koegid, 2; // uncomment this line to kick non-owner off the map when event ends
	end;
OnEmpDead:
	$koegid = getcharid(2);
	announce "The current King of Emperium Hill is the ["+ strcharinfo(2) +"] guild.", bc_all;
	donpcevent "::OnRevKoE";
	maprespawnguildid "koe", $koegid, 2;
	killmonster "koe", "KoE::OnEmpDead";
	sleep 500;
	if ( .start )
		monster "koe",50,50, "EMPERIUM", 1288, 1, "KoE::OnEmpDead";
	end;
}

// KoE Entrance
alexandria,165,143,3	script	The King#KoE	1_M_MERCHANT,{
	mes "[The King]";
	if ( !getcharid(2) ) {
		mes "You must have a guild to participate in the ^FF0000King of Emperium Hill Tournament^000000.";
		close;
	}
	mes "Hello.";
	mes "Would you like to participate in the ^FF0000King of Emperium Hill Tournament^000000?";
	if ( select ( "Yes", "No" ) == 2 ) close;
	if ( !getvariableofnpc( .start, "KoE" ) ) close;
	switch( rand(1,4) ){
	case 1:	warp "koe", 14, 17; end;
	case 2:	warp "koe", 14, 84; end;
	case 3:	warp "koe", 85, 84; end;
	case 4:	warp "koe", 85, 16; end;
	}
}

// KoE Exit
koe,49,56,5	script	Exit#KoE	1_M_BARD,{
	mes "[Exit]";
	mes "See ya.";
	close2;
	warp "Save",0,0;
	if ( getcharid(2) == $koegid )
		getitem 36028, 10;
		getitem 7227, 50;
		getitem 37001, 5;	 // configure prize here - Poring Coin
	end;
}

// Flags
koe,25,74,5	script	King of Emperium Hill#1::koe_flag	GUILD_FLAG,{
	if ( !$koegid ) end;
	mes "[King of Emperium Hill]";
	mes "The Current King of Emperium Hill is the ["+ getguildname($koegid) +"] guild.";
	close;
OnInit: // Uncomment this line to make the emblem stay after @reloadscript
OnRevKoE:
	flagemblem $koegid;
	end;
}
koe,39,40,3	duplicate(koe_flag)	King of Emperium Hill#2	GUILD_FLAG
koe,39,59,1	duplicate(koe_flag)	King of Emperium Hill#3	GUILD_FLAG
koe,60,59,7	duplicate(koe_flag)	King of Emperium Hill#4	GUILD_FLAG
koe,60,40,5	duplicate(koe_flag)	King of Emperium Hill#5	GUILD_FLAG
koe,74,74,3	duplicate(koe_flag)	King of Emperium Hill#6	GUILD_FLAG
koe,75,24,1	duplicate(koe_flag)	King of Emperium Hill#7	GUILD_FLAG
koe,26,24,7	duplicate(koe_flag)	King of Emperium Hill#8	GUILD_FLAG

hugel,101,144,3	duplicate(The King#KoE)	The King#Hug	1_M_MERCHANT
louyang,212,101,5	duplicate(The King#KoE)	The King#Lou	1_M_MERCHANT
aldebaran,133,113,5	duplicate(The King#KoE)	The King#Alde	1_M_MERCHANT
lighthalzen,154,105,5	duplicate(The King#KoE)	The King#LHZ	1_M_MERCHANT
prontera,163,317,6,3	duplicate(The King#KoE)	The King#Prt	1_M_MERCHANT
//alexandria,165,143,3	duplicate(The King#KoE)	The King#Alex	1_M_MERCHANT


koe	mapflag	nobranch
koe	mapflag	nomemo
koe	mapflag	nopenalty
koe	mapflag	noreturn
koe	mapflag	nosave	SavePoint
koe	mapflag	noteleport
//koe	mapflag	gvg_noparty
koe	mapflag	nowarp
koe	mapflag	nowarpto
koe	mapflag	guildlock
koe	mapflag	noicewall

here it is sir @Origami

OnEmpDead:
	$koegid = getcharid(2);
	announce "The current King of Emperium Hill is the ["+ strcharinfo(2) +"] guild.", bc_all;
	donpcevent "::OnRevKoE";
	maprespawnguildid "koe", $koegid, 2;
	killmonster "koe", "KoE::OnEmpDead";
	sleep 500;
	if ( .start )
		monster "koe",50,50, "EMPERIUM", 1288, 1, "KoE::OnEmpDead";
        sleep 1500;
        donpcevent "KoEbarricade::OnInit"
	end;
}

Try that sir

Edited by Origami

Share this post


Link to post
Share on other sites
  • 0
6 hours ago, Origami said:
OnEmpDead:
	$koegid = getcharid(2);
	announce "The current King of Emperium Hill is the ["+ strcharinfo(2) +"] guild.", bc_all;
	donpcevent "::OnRevKoE";
	maprespawnguildid "koe", $koegid, 2;
	killmonster "koe", "KoE::OnEmpDead";
	sleep 500;
	if ( .start )
		monster "koe",50,50, "EMPERIUM", 1288, 1, "KoE::OnEmpDead";
        sleep 1500;
        donpcevent "KoEbarricade::OnInit"
	end;
}

Try that sir

where should i put this

on the script of barricades or koe script?

Share this post


Link to post
Share on other sites
  • 0
4 minutes ago, AinsLord said:

where should i put this

on the script of barricades or koe script?

find this on your KOE Script 

OnEmpDead:

and add these 

        sleep 1500;
        donpcevent "KoEbarricade::OnInit"

after 

 

monster "koe",50,50, "EMPERIUM", 1288, 1, "KoE::OnEmpDead";
  • Upvote 1

Share this post


Link to post
Share on other sites
  • 0
On 6/3/2021 at 3:34 PM, Origami said:

find this on your KOE Script 

OnEmpDead:

and add these 

        sleep 1500;
        donpcevent "KoEbarricade::OnInit"

after 

monster "koe",50,50, "EMPERIUM", 1288, 1, "KoE::OnEmpDead";

ok sir ill try this one later on

 

Hi @Origami thanks a lot for the help

got something to add for this feature

can be the barricade cant attack by the owner of the emp?

image.png.3c87a045b32f733d530d99a63d312190.png

thanks again

 

Bump

still figuring out how these barricades cant be attack by the owner of the emperium

//===== Hercules Script ===========================================
//= King of Emperium Hill
//===== By: =======================================================
//= AnnieRuru
//===== Current Version: ==========================================
//= 1.2
//===== Compatible With: ==========================================
//= hercules & rathena 2018-04-08
//===== Description: ==============================================
//= defends the emperium in the middle of the map until times up
//===== Topic =====================================================
//= http://hercules.ws/board/topic/4495-gvg-king-of-emperium-hill/
//===== Additional Comments: ======================================
//= Finally there is a topic for this !
//=================================================================

-	script	KoE	FAKE_NPC,{
OnInit:
	disablenpc "The King#KoE";
	disablenpc "The King#Lou";
	disablenpc "The King#Alde";
	disablenpc "The King#LHZ";
	disablenpc "The King#Prt";
	disablenpc "The King#Hug";
	disablenpc "Exit#KoE";
	bindatcmd "koe", strnpcinfo(0)+"::OnCommand", 99,100;
	end;
OnCommand:
	if ( compare( .@atcmd_parameters$, "on" ) ) goto L_start;
	else if ( compare( .@atcmd_parameters$, "off" ) ) goto L_end;
	else {
		dispbottom "type - '@koe on' to start the event";
		dispbottom "type - '@koe off' to end the event";
	}
	end;
L_start:
OnSun2000: // everyday 8pm starts
	if ( .start ) end;
	gvgon "koe";
	announce "The King of Emperium Hill has begun!", bc_all;
	.start = true;
	enablenpc "The King#KoE";
	enablenpc "The King#Lou";
	enablenpc "The King#Alde";
	enablenpc "The King#LHZ";
	enablenpc "The King#Prt";
	enablenpc "The King#Hug";
	disablenpc "Exit#KoE";
	$koegid = 0;
	donpcevent "::OnRevKoE";
	maprespawnguildid "koe", $koegid, 3;
	killmonster "koe", "KoE::OnEmpDead";
	monster "koe",49,49, "EMPERIUM", 1288, 1, "KoE::OnEmpDead";
	monster "koe",45,51,"Barricade",1905,1,"KoEbarricade::OnBarDead1";
	monster "koe",45,48,"Barricade",1905,1,"KoEbarricade::OnBarDead1";
	end;
L_end:
OnSun2100: // everyday 8:30pm ends
	gvgoff "koe";
	announce "The King of Emperium Hill is over!", bc_all;
	.start = 0;
	enablenpc "Exit#KoE";
	disablenpc "The King#KoE";
	disablenpc "The King#Lou";
	disablenpc "The King#Alde";
	disablenpc "The King#LHZ";
	disablenpc "The King#Prt";
	disablenpc "The King#Hug";
	killmonster "koe", "KoE::OnEmpDead";
	maprespawnguildid "koe", $koegid, 2; // uncomment this line to kick non-owner off the map when event ends
	end;
OnEmpDead:
	$koegid = getcharid(2);
	announce "The current King of Emperium Hill is the ["+ strcharinfo(2) +"] guild.", bc_all;
	donpcevent "::OnRevKoE";
	maprespawnguildid "koe", $koegid, 2;
	killmonster "koe", "KoE::OnEmpDead";
	sleep 500;
	if ( .start )
		monster "koe",50,50, "EMPERIUM", 1288, 1, "KoE::OnEmpDead";
		monster "koe",45,51,"Barricade",1905,1, "KoEbarricade::OnBarDead1"; // Tried to put it here
		monster "koe",45,48,"Barricade",1905,1, "KoEbarricade::OnBarDead1";	// Tried to put it here
	sleep 3000;
        donpcevent "KoEbarricade::OnInit";
	end;
}

// KoE Entrance
alexandria,165,143,3	script	The King#KoE	1_M_MERCHANT,{
	mes "[The King]";
	if ( !getcharid(2) ) {
		mes "You must have a guild to participate in the ^FF0000King of Emperium Hill Tournament^000000.";
		close;
	}
	mes "Hello.";
	mes "Would you like to participate in the ^FF0000King of Emperium Hill Tournament^000000?";
	if ( select ( "Yes", "No" ) == 2 ) close;
	if ( !getvariableofnpc( .start, "KoE" ) ) close;
	switch( rand(1,4) ){
	case 1:	warp "koe", 14, 17; end;
	case 2:	warp "koe", 14, 84; end;
	case 3:	warp "koe", 85, 84; end;
	case 4:	warp "koe", 85, 16; end;
	}
}

// KoE Exit
koe,49,56,5	script	Exit#KoE	1_M_BARD,{
	mes "[Exit]";
	mes "See ya.";
	close2;
	warp "Save",0,0;
	if ( getcharid(2) == $koegid && getguildmaster(getcharid(2)) == strcharinfo(0) )
		getitem 36028, 10;
		getitem 7227, 50;
		getitem 37001, 5;	 // configure prize here - Poring Coin
	end;
}

// Flags
koe,25,74,5	script	King of Emperium Hill#1::koe_flag	GUILD_FLAG,{
	if ( !$koegid ) end;
	mes "[King of Emperium Hill]";
	mes "The Current King of Emperium Hill is the ["+ getguildname($koegid) +"] guild.";
	close;
OnInit: // Uncomment this line to make the emblem stay after @reloadscript
OnRevKoE:
	flagemblem $koegid;
	end;
}
koe,39,40,3	duplicate(koe_flag)	King of Emperium Hill#2	GUILD_FLAG
koe,39,59,1	duplicate(koe_flag)	King of Emperium Hill#3	GUILD_FLAG
koe,60,59,7	duplicate(koe_flag)	King of Emperium Hill#4	GUILD_FLAG
koe,60,40,5	duplicate(koe_flag)	King of Emperium Hill#5	GUILD_FLAG
koe,74,74,3	duplicate(koe_flag)	King of Emperium Hill#6	GUILD_FLAG
koe,75,24,1	duplicate(koe_flag)	King of Emperium Hill#7	GUILD_FLAG
koe,26,24,7	duplicate(koe_flag)	King of Emperium Hill#8	GUILD_FLAG

hugel,101,144,3	duplicate(The King#KoE)	The King#Hug	1_M_MERCHANT
louyang,212,101,5	duplicate(The King#KoE)	The King#Lou	1_M_MERCHANT
aldebaran,133,113,5	duplicate(The King#KoE)	The King#Alde	1_M_MERCHANT
lighthalzen,154,105,5	duplicate(The King#KoE)	The King#LHZ	1_M_MERCHANT
prontera,163,317,6,3	duplicate(The King#KoE)	The King#Prt	1_M_MERCHANT
//alexandria,165,143,3	duplicate(The King#KoE)	The King#Alex	1_M_MERCHANT


koe	mapflag	nobranch
koe	mapflag	nomemo
koe	mapflag	nopenalty
koe	mapflag	noreturn
koe	mapflag	nosave	SavePoint
koe	mapflag	noteleport
//koe	mapflag	gvg_noparty
koe	mapflag	nowarp
koe	mapflag	nowarpto
koe	mapflag	guildlock
koe	mapflag	noicewall

i did try to put it here

OnEmpDead:
	$koegid = getcharid(2);
	announce "The current King of Emperium Hill is the ["+ strcharinfo(2) +"] guild.", bc_all;
	donpcevent "::OnRevKoE";
	maprespawnguildid "koe", $koegid, 2;
	killmonster "koe", "KoE::OnEmpDead";
	sleep 500;
	if ( .start )
		monster "koe",50,50, "EMPERIUM", 1288, 1, "KoE::OnEmpDead";
		monster "koe",45,51,"Barricade",1905,1, "KoEbarricade::OnBarDead1";
		monster "koe",45,48,"Barricade",1905,1, "KoEbarricade::OnBarDead1";
	sleep 3000;
        donpcevent "KoEbarricade::OnInit";
	end;
}

still the barricade can be attack by the owner of the KoE/Emp

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

Important Information

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