Changeset 320 Sieges, MDT (Part I), Misc Sieges - fix registration date end calculation (cf : Siege participation registration is closed twenty-four hours before the start of the siege.). - registration date is now calculated on server startup, and based on siege date (it was missing). - move siege logs when a new date is setted, not on server startup (well if your server had old dates and need refresh it will show, but otherwise it won't). - rework startAutoTask() in order to avoid to cancel/set twice ScheduleStartSiegeTask (if date is too old and need to be edited). Monster Derby Track - part I - announcements aren't broadcasted twice anymore and are based on zone types, not on L2RaceManager knownlists. - race informations are now refreshed on player teleport (can see properly monsters). - set the default race number to 1 instead of 4. - setup race announcements like L2OFF, using a 20min game cycle rather than 10min. - move the entire race system logic from L2RaceManagerInstance to MonsterRace. Reduce the number of running tasks from 40 (20 per NPC) to 1. - newSpeeds() isn't processed twice anymore (dropped from newRace() end). - newRace() logic is rewritten (avoid to get NPC clones, better performance). - implements "View Past Results" button (holding past races informations up to 7 races). Misc - fix few warnings spotted by new Eclipse version, ty SweeTs. - fix previous commit regarding //enchant admincommand (was testing with only me online, so didn't see this coming), ty SweeTs. - fix FuncMAtkCritical, ty sahar to point it. - add 2 methods to broadcast crap, toAllPlayersInZoneType() and toAllPlayersInRegion(). Each allow numerous packets as parameter.
Changeset 321 MDT (part II), Misc MDT (part II) - a big thanks to roko91 for odd calculation ^^. - move MonsterRace in most appropriate section (instancemanager.games) - add data persistance : - current race state is saved on race end. The current race number is retrieved from history aswell. - bets on lanes (from CURRENT race) are saved on ticket obtention. It allows to recalculate odds without errors. - fix previous commit regarding "View Past Results" button (records should be shown from newest race to oldest). - add odds rate calculation per lane (happens at "tickets sales closed" event). - the odd of the first place is now saved on HistoryInfo. - drop double message on ticket obtention. - implements "Calculate Winnings" button (3 different bypasses, with numerous checks). Misc - add retail HTM when you got too much quests. Ty Root. - fix a ConcurrentModificationException ; slight rework of L2SiegeClan. Ty sahar.