// The Emperium has been broken.
OnAgitBreak:
set .@GID,getcharid(2);
// Show and log error if an unguilded player breaks the Emperium. (Should NEVER happen)
if (.@GID <= 0) {
set .@notice$,"Character "+strcharinfo(0)+" ("+getcharid(0)+") broke the Emperium in Castle: "+strnpcinfo(2)+" while guildless. No data will be saved and Emperium respawned.";
logmes .@notice$; debugmes .@notice$;
donpcevent "Agit#"+strnpcinfo(2)+"::OnStartArena";
end;
}
+ announce strcharinfo(0)+" of Guild ["+getguildname(.@GID)+"] has destroyed the Emperium in Castle: "+ getcastlename(strnpcinfo(2)) +"!", bc_all|bc_woe;
// Adjust Economy Invest Level for Castle