prontera,127,213,4 script Guild_Emperium 722,{
if(@breakgname$ == "") {
} else {
flagemblem @breakgnameid;
}
switch(select("Participate:Guild Master:Guild Breaker")){
case 1:
if(agitcheck() == 1){
mes "War of Emperium is currently active.";
}
if(getcharid(2,strcharinfo(0)) == 0){
mes "You should be in a guild;";
close;
}
if (@breakgname$){
if( getcharid(2) == @breakgnameid ){
warp "pvp_y_1-1",155,195;
}
}
warp "pvp_y_1-1",279,204;
dispbottom "The emperium is located at the center of the map.";
end;
break;
case 2:
if(@breakgname$ == "") {
mes "No record yet.";
close;
} else {
mes "The Guild Master of ^ff0000"+@breakgname$+"^000000 Guild is:";
mes "^ff0000"+GetGuildMaster(@breakgnameid)+"^000000";
}
break;
case 3:
if(@breakgname$ == "") {
mes "No record yet.";
close;
} else {
mes "The breaker of ^ff0000"+@breakgname$+"^000000 Guild is:";
mes "^ff0000"+@breakeremp$+"^000000";
}
break;
}
close;
OnInit:
monster "pvp_y_1-1",155,195,"Emperium",1288,1,"GvG::OnBreakEmp";
end;
OnBreakEmp:
set @breakeremp$,""+strcharinfo(0)+"";
set @breakgnameid,getcharid(2,strcharinfo(0));
set @breakgname$,getguildname(@breakgnameid);
maprespawnguildid "pvp_y_1-1",@breakgnameid,6;
sleep2 1000;
announce "The [ Guild Emperium ] has been destroyed by the [ " + @breakgname$ + " ] guild.",bc_all;
if(!mobcount("pvp_y_1-1","GvG::OnBreakEmp")){
monster "pvp_y_1-1",155,195,"Emperium",1288,1,"GvG::OnBreakEmp";
}
end;
OnGuildBreak:
SetCastleData "pvp_y_1-1",0,0;
sleep2 2000;
Announce "Guild Emperium has been abandoned.",0;
end;
}
pvp_y_1-1 mapflag nowarp
pvp_y_1-1 mapflag nomemo
pvp_y_1-1 mapflag nobranch
pvp_y_1-1 mapflag noteleport
pvp_y_1-1 mapflag nosave SavePoint
pvp_y_1-1 mapflag gvg_castle
i want the script that everytime someone in a guild kill the emp, it cannot be killed again just like the woe. how can i do that?
Question
simplynice
i want the script that everytime someone in a guild kill the emp, it cannot be killed again just like the woe. how can i do that?
My castledb.txt
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.