From 968b43cf1bb2ab172c20890c56a1da65baa69141 Mon Sep 17 00:00:00 2001 From: Lemongrass3110 Date: Thu, 27 Feb 2020 15:28:34 +0100 Subject: [PATCH] Fixed a few bugs in custom WoE controller (#4637) * Fixed hardcoded castle count * Adjusted to new header format and added changelog * Fixed rewards for multiple characters in a guild * Fixed #4619 * Fixed #4636 Thanks to @mazvi --- npc/custom/woe_controller.txt | 83 +++++++++++++++++++++++------------ 1 file changed, 56 insertions(+), 27 deletions(-) diff --git a/npc/custom/woe_controller.txt b/npc/custom/woe_controller.txt index 3835b62eba..5d35d9d904 100644 --- a/npc/custom/woe_controller.txt +++ b/npc/custom/woe_controller.txt @@ -1,20 +1,26 @@ -//===== rAthena Script ======================================= +//===== rAthena Script ======================================= //= Euphy's WOE Controller -//===== By: ================================================== -//= Euphy -//===== Current Version: ===================================== -//= 1.5 -//===== Compatible With: ===================================== -//= rAthena Project -//===== Description: ========================================= +//===== Changelogs: ========================================== +//= 1.3a Initial SVN release [Euphy] +//= 1.3b Fixed WoE SE end labels [Euphy] +//= 1.4 Added auto kick config [Euphy] +//= 1.5 Added additional reward configs [Euphy] +//= 1.5a Fixed hardcoded date constants [Lemongrass] +//= 1.6 Replaced SQL insert for mail with script command [Capuche] +//= 1.6a Fixed invalid name Schwaltzvalt [Daegaladh] +//= 1.6b Fixed hardcoded castle numbers [Lemongrass] +//= 1.7 Removed direct SQL access [Lemongrass] +//= 1.8 Fixed invalid checkweight usage [Lemongrass] +//= 1.9 Fixed reward handout for multiple characters on the same account [Lemongrass] +//===== Description: ========================================= //= A controller for War of Emperium designed for //= simplicity and ease of use. //= Many concepts taken from ToastOfDoom's script, //= and "rewards" function originally by Goddameit. -//===== Additional Comments: ================================= +//= //= Be sure to disable the default agit controllers! -//== npc\guild\agit_controller.txt -//== npc\guild2\agit_start_se.txt +//= npc\guild\agit_controller.txt +//= npc\guild2\agit_start_se.txt //============================================================ // Information NPC @@ -98,7 +104,7 @@ OnInit: .reward_id_size = getarraysize(.reward_id); set .Size, getarraysize($WOE_CONTROL); if (.AutoKick || .NoOwner) - for(set .@i,0; .@i<30; set .@i,.@i+1) { + for(set .@i,0; .@i ^FF0000"+.Days$[$WOE_CONTROL[.@i]]+" ("+Add_Zero($WOE_CONTROL[.@i+1])+"-"+Add_Zero($WOE_CONTROL[.@i+2])+")^000000"; - for(set .@j,0; .@j<30; set .@j,.@j+1) + for(set .@j,0; .@j Castles:"; if (!.@Castle) mes " ~ ^777777(none selected)^000000"; - else for(set .@i,0; .@i<30; set .@i,.@i+1) + else for(set .@i,0; .@i