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