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 .@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
Viewed 1097 times, submitted by Guest.