- script EmperiumGuardian FAKE_NPC,{
OnAgitStart:// when woe start
sleep 2;
for( .@i = 0; .@i < .size_mob; .@i++ ) {
for( .@j = 0; .@j < .size_map; .@j++ ) {
if( getcastledata( .map_woe$[.@j],1 ) ) {
for( .@k = 0; .@k < .mob_count[.@i]; .@k++ )
guardian .map_woe$[.@j],0,0,"--ja--", .mob_ID[.@i];
}
else
monster .map_woe$[.@j],0,0,"--ja--", .mob_ID[.@i], .mob_count[.@i],"";
}
}
end;
OnAgitEnd:// when woe end
sleep 2;
for( .@i = 0; .@i < .size_map; .@i++ ) {
sleep2 1;
killmonsterall .map_woe$[.@i];
}
end;
OnNPCKillEvent:
sleep2 1;
if( agitcheck() && compare( .mob_id_c$, killedrid +"" ) && compare( .map_woe_c$, strcharinfo(3) ) ) {// check is woe on + if mob in .mob_ID list + map in .map_woe$ list
if( getcastledata( strcharinfo(3),1 ) )
guardian strcharinfo(3),0,0,"--ja--", killedrid;
else
monster strcharinfo(3),0,0,"--ja--", killedrid,1,"";
}
end;
OnInit:
// ------- setting
setarray .mob_ID,
1646, // Lord Knight Seyren
1647, // Assassin Cross Eremes
1648, // Whitesmith Harword
1649, // High Priest Magaleta
1650, // Sniper Shecil
1651, // High Wizard Katrinn
2235, // Paladin Randel
2236, // Creator Flamel
2237, // Professor Celia
2238, // Champion Chen
2239, // Stalker Gertie
2240, // Clown Alphoccio
2241, // Gypsy Trentini
1002; // xsa // change this !!!
setarray .mob_count, // number of mobs summoned / .mob_ID array column
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
0; // xsa // change this !!!
setarray .map_woe$, // yours woe map
"aldeg_cas01",
"aldeg_cas02",
"aldeg_cas03",
"aldeg_cas04",
"aldeg_cas05",
"gefg_cas01",
"gefg_cas02",
"gefg_cas03",
"gefg_cas04",
"gefg_cas05",
"payg_cas01",
"payg_cas02",
"payg_cas03",
"payg_cas04",
"payg_cas05",
"prtg_cas01",
"prtg_cas02",
"prtg_cas03",
"prtg_cas04",
"prtg_cas05",
"arug_cas01",
"arug_cas02",
"arug_cas03",
"arug_cas04",
"arug_cas05",
"schg_cas01",
"schg_cas02",
"schg_cas03",
"schg_cas04",
"schg_cas05";
//-------- end of setting
.size_mob = getarraysize( .mob_ID );
.size_map = getarraysize( .map_woe$ );
for( .@i = 0; .@i < .size_mob; .@i++ )
.@tmp$[.@i] = .mob_ID[.@i];
.mob_id_c$ = implode( .@tmp$, "|" );
.map_woe_c$ = implode( .map_woe$, "|" );
end;
}
/*
Add in guild/agit_main.txt
killmonsterall strcharinfo(3);
after
// The Emperium has been broken.
OnAgitBreak:
set .@GID,getcharid(2);
and
donpcevent "EmperiumGuardian::OnAgitStart";
after
announce "The [" + getcastlename(strnpcinfo(2)) + "] castle has been conquered by the [" + getguildName(.@GID) + "] guild.",bc_all|bc_woe;
*/
this script make for fun and extra guild guardian but I need help plug this script in woe2 guild war files