I have this script that against Woe, woe at the end of the castle and he announces winning side, I wanted to add an automatic reward for all members of the winning guild.
announce "The War Of Emperium has begun!",bc_all;
donpcevent strnpcinfo(3)+"::OnDisplayOwners";
} else { //ending
if(agitcheck()) {
callfunc "WoEToggler", 0;
announce "The War Of Emperium is over!",bc_all;
donpcevent strnpcinfo(3)+"::OnDisplayOwners";
}
}
end;
OnDisplayOwners: //displays based on current region
set .@woe_state_array$, ".woe_state_" + .woe_state[.woe_index];
for(set .@i, 0; .@i < .num_regions; set .@i, .@i + 1) {
set .@k, 0;
set .@castle_check, getd(.@woe_state_array$ + "[" + .@i + "]");
set .@castles$, ".castles_" + .regions$[.@i] + "$";
while(.@castle_check && .@k < .num_castles[.@i]) {
if(.@castle_check & (1 << .@k)) {
set .@map$, getd(.@castles$+"["+.@k+"]");
if (GetCastleData(.@map$,1)) {
announce "The [" + GetCastleName(.@map$) + "] castle of the [" + .region_names$[.@i] + "] region is currently held by the [" + GetGuildName(GetCastleData(.@map$,1)) + "] guild.",bc_all;
} else {
announce "The [" + GetCastleName(.@map$) + "] castle of the [" + .region_names$[.@i] + "] region is currently unoccupied.",bc_all;
}
set .@castle_check, .@castle_check - (1 << .@k);
}
set .@k, .@k + 1;
}
}
end;
}
Question
Scofield
I have this script that against Woe, woe at the end of the castle and he announces winning side, I wanted to add an automatic reward for all members of the winning guild.
Edited by cumbe116 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.