- script Castle#1 -,{
OnAgitEnd:
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.
if(strnpcinfo(2) != "arug_cas01") end;
.@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;
}
- script Castle#2 -,{
OnAgitEnd:
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.
if(strnpcinfo(2) != "arug_cas02") end;
.@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;
}