viewing paste Unknown #54411 | Text

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14
// 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
Viewed 957 times, submitted by Guest.