Changeset 359 (539)
TaskManager drop, LoginController, Instances, Scripts / AI, Misc
TaskManager drop
- Fix and cleanup ScheduledQuest.
- Move existing tasks to ScriptManager. Tasks are handled by scripts.xml.
- Drop old TaskManager system and associated SQL table global_tasks.
LoginController
- handle login attempts in a more consistant way (concurrent map, working concept).
- basic cleanup, from using JDK8 goodies to formatting rules.
Instances
- L2Guard : Drop ReturnTask, drop onSpawn() redundant check (already handled by super.onSpawn()).
- L2TownPet : Variabilize task in order to be dropped when npc is deleted.
- L2ClanHallDoormenInstance : _clanHall is fed using onSpawn().
Scripts / AI
- Addition of Q114, Q227 - ty sharers.
- Harmonize all HTMs regarding level/class checks.
- Swap 2 HTMs content for Q226.
- L2Attackable can now see L2NpcInstance (notably for better AI control).
- Fix NPE and stackoverflow (prior to last revision) from onEvtAggression / onEvtAttacked. Optimize the loop checks. Rework PrimevalIsle script.
- NPE fix for Gordon AI, if he died on server startup (prior to last revision). Ty cross for report.
- "Returning home" monsters && random walking monsters can now be faction called. Ty Hasha.
- Core support for Q227 (addition of L2Skill parameter for onAttack).
- Core support for decay event (addDecayId / onDecay(L2Npc)). Ty Hasha for idea.
- Edit all 2nd class transfer quests to fix DD exploit, since all 2nd classes are now done. Ty Zero for the patch.
Misc
- Fast and ugly fix for Olympiad towers broadcasting. Ty sahar.
- Hotfix for //delete command (even if it will be probably reworked in 2 revs). Ty svipben for fix.
- Avoid to compute twice the same things for pets users relation updates.
- Add clientStopMoving(null) on player thinkAttack().
- Fix the 2 following issues (ty ErHard for report)
- Archer acts like melee player on dead targets.
- Archer auto follow dead NPC.