viewing paste Unknown #23114 | Text

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
OnAgitEnd2:
        if (strnpcinfo(2) == "template") end;
        gvgoff strnpcinfo(2);
        if (getcastledata(strnpcinfo(2),1)) {
                .@str$ = substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9);
                killmonster strnpcinfo(2),"Steward#"+.@str$+"::OnStartArena";
                donpcevent strnpcinfo(0)+"::OnReset";
                donpcevent "Steward#"+.@str$+"::OnStop";
 
                // Give winning guild reward items MOD.
                .@item = 500;
                .@amount = 5;
 
                // Get a list of Guild Members Based on where the copied Manager NPC is located.
                getguildmember(getcastledata(strnpcinfo(2),1))
 
                // Loop trough the Members.
                for (.@i = 0; .@i < $@guildmembercount; ++.@i) {
                        getitem .@item, .@amount, $@guildmemberaid[.@i];
                }
        }
end;
Viewed 356 times, submitted by unknown.