Skip to content
Snippets Groups Projects
  1. Feb 26, 2014
  2. Feb 16, 2014
  3. Nov 03, 2013
  4. Oct 27, 2013
    • Zoey76's avatar
      BETA: Skill and effect system complete rework: · cdfeacf8
      Zoey76 authored
      	* Renamed `L2Effect` to `AbstractEffect`.
      	* No more dynamic creation of effects (Huge performance and memory boost!).
      		* Removed all traces or reflection on run time!
      	* Removed `EffectTemplate`, merged with `AbstractEffect`.
      	* Reworked and externalized all the logic from `AbstractEffect` that handled effect ticking.
      	* Reviewed all "over time" skills:
      		* `Flag` effect does not have ticks and doesn't need onActionTime() defined.
      		* '''Fixed DOT (damage over time), MDOT (mana damage over time), HOT (heal over time), MHOT (mana heal over time) skills.'''
      			* Reported by: Tavo22, Snip
      		* `FakeDeath` effect should only last forever (or while conditions are met) if it's a toggle skill.
      		* `Relax` effect should only last forever (or while conditions are met) if it's a toggle skill.
      	* Removed `EffectState` enumerated and the nasty switch associated to it!
      	* Removed "lambda" support from effects, the default attribute `val` is now double.
      		* Removed val="0", now `val`'s default value is zero, no need to declare it explicitely.
      	* '''Removed''' `noicon` '''attribute from effects, icon is not related to effects, but to the skill.''
      	* Renamed `AbnormalEffect` enumerated to `AbnormalVisualEffect`.
      	* Removed `EffectDurationHolder` DTO.
      	* Removed getFirstEffect(int), skills can be stoped by skill ID or `AbnormalType`.
      	* Reworked (again) `CharEffectList`:
      		* Using maps as underlying implementation, '''reduced drastically iterations''' (Hash tables offer 0(1) in most operations).
      			* Using Javolution's `FastMap`, due Java lacks a default implementation that is ordered by insert order, thread-safe and concurrent safe.
      		* Separated all kind of skills into buffs, triggers, dances, debuffs, passive.
      		* Using Double-locked checking, useless instantiation of maps is avoided.
      		* Improved buff counting operations (no more iterations over every effect every time you get a new one to know if you reached maximum count).
      		* Removed getEffects() and all temporary list/map creations.
      		* '''Reworked the way buffs are inserted preventing iterations and correcting exceptions while finding the correct index to insert the buff.'''
      	* Reworked `Formulas`#calcEffectAbnormalTime(Env env)
      	* Fixed `L2CubicInstance`#useCubic<Skill Type>(..), this methods are not static, then they don't need to recieve a `L2CubicInstance` as parameter.
      	* Implemented `BuffInfo`, modeled from retail's implementation with minor changes to fit our implementation.
      		* Complex DTO that holds all the information for a given buff (or debuff or dance/song) set of effects issued by an skill.
      		* Controls the logic of the buffs.
      	* Removed a few of `L2EffectType`.
      	* Improved a bit `L2BabyPetInstance` skill casting related logic, reduced iterations and simplified the code.
      	* Implemented `EffectTaskInfo`, DTO to hold the effect task (Maybe this will change later).
      	* Implemented `EffectTickTask` runnable task to control ticking logic.
      	* Removed "after effect" implementation, totally useless.
      		* Suggested by: UnAfraid
      	* Removed all the `L2Skill`#getEffects(..) methods replaced with L2Skill#applyEffects(..).
      	* Moved "can be stolen" logic to `L2Skill`, it isn't related to the effect, but to the skill.
      	* Added "Refresh" button on admin panel to check buffs easily.
      	* Added admin command "admin_getbuff_ps" to check effects from passive skills.
      	* Improved performance in `DispelBySlot` and `DispelBySlotProbability` effects.
      	* Fixed minor typo in `DispelBySlot` and `DispelBySlotProbability` effects, there are values over `Byte.MAX_VALUE`.
      	* '''Added retail support for Herbs, when a lesser buff is replaced by an herb, it becomes inactive, but it's timer continues, when the Herb buff finishes if the lesser buff has time it becomes active untill completes it's time.'''
      		* Time does not pause, it just continues in the background.
      		* Effects does not stack.
      		* Reported by: Nos
      	* '''Fixed Herbs, they shouldn't display gauge bar (casting bar) upon usage.'''
      		* Reported by: Nos
      	* '''Fixed Herbs not removing lesser effect icon, leading to players belive that buffs stack...'''
      		* Reported by: Tavo22, evets, u3games, pandragon
      	* '''Fixing instant effects being added to the effect list, and removing buffs present on the list.'''
      		* Reported by: Tavo22
      	* '''Fixed "Short Buff" slot (slot for healing potions).'''
      		* Statified reset packet (reduced object creation, a lot!).
      		* Removed task to reset `ShortBuffStatusUpdate`, let's use buff ending task for that.
      		* Moved logic to `CharEffectList` instead of `L2PcInstance` + `ItemSkillsTemplate`.
      		* Reported by: JMD, Gries, Cresceus
      	* Fixed `StealAbnormal` effect logic and `Formulas`#calcCancelStealEffects(..).
      		* Improved buffs doesn't stack anymore with normal (lesser) buffs.
      		* Now all effects are excecuted including instant effects (if they are successfuly applied).
      		* Reported by: Adry_85
      	* `BlockChat` effect shouldn't be instant!
      	* Fixed system messages related to skills (success, fail, removal, ending).
      	* Improved `AdminBuffs`, more information is displayed:
      		* Blocked abnormal skill types (if any)
      		* Total buff count.
      		* Hidden buff count.
      		* Inactive effects (in red)
      		* Skill level next to the name.
      	* '''Rewritten''' `EffectMasterHandler` '''to avoid reflection where it's useless.'''
      	* Since `L2EffectType` is scheduled to be removed:
      		* `AbstractEffect`#getEffectType() is not abstract anymore, now returns L2EffectType.NONE by default.
      	* '''Fixing debuffs working on "white players" with control.'''
      		* Patch by: nBd (minor changes by Zoey76)
      		* Reported by: plasan, jungla56, St3eT, Tavo22, Konstantinos, pandragon
      	* '''Fixed exploit on restore summon feature that allows players to dupe summons.'''
      		* Unhardcoding `canSummon` condition.
      		* Reported by: Janiko
      	* '''Fixed Arcane Shield getting stuck after being stolen.'''
      		* Reported by: valanths1990, nBd, freestyler, Gries
      	* '''Fixed triggered skills that got stacked within the same ID and different level.'''
      		* Reported by: nBd, lucan, blacksea, Gries
      
      Tested by: Nos, Captain, Janiko, Konstantinos, Lucan, UnAfraid, Zoey76
      
      '''Note to developers 1:''' Instant effects shouldn't override onExit(!BuffInfo).
      '''Note to developers 2:''' Is not required to call super.onStart() or super.onExit() to add/remove abnormal visual effects anymore, it's done on an indepent method.
      '''Note to developers 3:''' Do not add "steal constructor", such thing is not required anymore.
      cdfeacf8
  5. Sep 08, 2013
    • Adry_85's avatar
      BETA: Skills rework: · 9932ae54
      Adry_85 authored
      	* Resurrection from skillhandlers to effecthandlers.
      	* Fixing Mass Resurrection effect, if both player and pet are dead only player is ressed.
      		* Patch by: Zoey76
      	Rewieved by: Zoey76
      9932ae54
  6. Jul 27, 2013
  7. Jul 01, 2013
  8. Jun 22, 2013
  9. Jun 20, 2013
  10. Jun 17, 2013
    • Adry_85's avatar
      BETA: Starting support for new aggression system: · 5067d34c
      Adry_85 authored
      	* Removed old and custom skillTypes and added new effects.
      	* Added retail formula for effects '''!TargetCancel''', '''!TargetMeProbability''', '''!SkillTurning''', '''Betray''' and '''Bluff'''.
      		* Patch by: Nos
      	* Added all missing '''effectPoint''' inside skills.
      		* Patch by: !UnAfraid
      	* Fixed bug with !TargetMe effect that does not allow you to change target even if the effect has worn off.
      		* Reported by: blacksea
      Reviewed by: Zoey76
      Thanks to: Nos, !UnAfraid, Zoey76
      5067d34c
  11. May 28, 2013
  12. May 26, 2013
  13. May 24, 2013
    • Adry_85's avatar
      BETA: Skills rework: · 42d43ba0
      Adry_85 authored
      	* Optimized '''calcCancelStealEffects''' in formulas.
      	* Merging all '''Cancel''' effectType in one called '''DISPEL'''.
      	* Removed '''negateAbnormals''' and '''maxNegated''' from skills xml.
      	* '''Cancel''' and '''!CancelDebuff''' effects now are called '''!DispelByCategory''' and are handled with proper parameters.
      	* '''!CancelAll''' now is called '''!DispelAll'''.
      	* '''!DispelBySlot''' and '''!StealAbnormal''' now is handled with proper parameters.
      	* Added new effect '''!DispelBySlotProbability'''.
      	* Fixing typo for skill '''Maximum Focus Force'''.
      		* Reported by: blacksea
      		* Patch by: blacksea
      Reviewed by: Zoey76
      42d43ba0
  14. May 17, 2013
    • Adry_85's avatar
      BETA: Skills rework: · a8553dbd
      Adry_85 authored
      	* Added new effect '''Escape''' and '''Teleport'''.
      	* Added new condition !ConditionPlayerCanEscape.
      	* Removed old skillTypes.
      	Reviewed by: Zoey76
      a8553dbd
  15. May 15, 2013
  16. May 10, 2013
    • Zoey76's avatar
      BETA: Datapack part for [L5985]: · e5e69524
      Zoey76 authored
      	* All skills that used to have CREATE_ITEM skill type now uses retail like effect Restoration.
      	* All skills that used to have DECOY skill type now uses retail like effect SummonNpc.
      	* All skills that used to have SPAWN skill type now uses retail like effect SummonNpc.
      	* Implementing missing skills:
      		* Equipment Set 90 Day Pack (2914)
      		* Summon Life-size Decoy (2622)
      		* Event - Sad White Baby King-Tiger Scroll (9099)
      		* Event - Sad White Baby Tiger Scroll (9098)
      		* Event - White Baby King-Tiger Scroll (9097)
      		* Event - White Baby Tiger Scroll (9096)
      		* Copied Honey Watermelon Seed (9032)
      		* Copied Watermelon Seed (9031)
      		* Honey Watermelon Seed (9030)
      		* Watermelon Seed (9029)
      		* Summon Flames Box (22116)
      		* Comfort Sky Lantern Summon (22113)
      		* Sway Sky Lantern Summon (22112)
      		* Ambient Sky Lantern Summon (22111)
      		* Lucky Sky Lantern Summon (22110)
      		* Event - Gloomy Head Milk Cow Summon Scroll (2881)
      		* Event - Gloomy Milk Cow Summon Scroll (2880)
      		* Summon Head Gloomy Milk Cow (2872)
      		* Summon Gloomy Milk Cow (2871)
      		* Event - Head Milk Cow Summon Scroll (2870)
      		* Event - Milk Cow Summon Scroll (2869)
      		* Summon Humidity (6251)
      e5e69524
  17. May 07, 2013
  18. May 05, 2013
  19. Apr 27, 2013
    • Zoey76's avatar
      BETA: Effect rework: · c5c99945
      Zoey76 authored
      	* Complete rework of !CharEffectList.
      		* Mimicking "List" operations, remove(..), add(..), isEmpty()...
      		* Thread-safe.
      			* Using reentrant locks for read/write operations.
      		* Removed cache-array, wasn't working.
      		* Removed useless methods.
      		* Removed queue, wrong implementation was leading to wrong updates in effect lists.
      		* Now effects from skills are managed in batches, less calls to methods, avoiding overhead from synchronization and keeping abnormal type groups safe.
      		* Support for blocked buff slots, no more hacks!
      			* Implemented proper effect.
      		* No more dependence on Javolution.
      		* !JavaDocs!
      	* Abnormal type, level and time are global to the skill and not specific to each effect.
      		* Keeping support to customize each effect duration time, needs testing.
      	* Added abnormal type enum, no more strings.
      		* Removed overhead from string comparison.
      	* !EffectTemplate rework:
      		* No more public fields, we use mutators and accessors to work with them!
      		* Func list to List instead of array.
      			* Avoid CPU overhead, System.arraycopy(..).
      		* Removed unused transform parameters.
      		* !JavaDocs!
      	* L2Skill rework:
      		* No more dependence on Javolution.
      		* Func and Effect lists to List instead of array.
      		* Removed some useless effect type related method from skills.
      		* Removed custom restriction for stolen effect with current duration less than 5 seconds.
      		* If NPE appear they have to be properly fixed, no more hacks!
      		* Updated toString() method.
      		* !JavaDocs!
      	* L2Effect rework:
      		* Effects do not store static data from template!
      		* Removed unused transform parameters.
      		* Removed "passive effect" related methods, effect is passive if skill is passive.
      		* Removed "buff"/"debuff" related method from effects, skills are buffs or debuffs not effects.
      		* Updated toString() method.
      		* Removed effectCanBeStolen() method, now canBeStolen() is overridden in effect implementations in Datapack.
      		* !JavaDocs!
      	* L2Item minor rework:
      		* Func and Effect lists to List instead of array.
      			* Avoid CPU overhead, System.arraycopy(..).
      		* No more dependence on Javolution.
      		* Now _questEvents is initialized only if it's used, not for all items!
      	* L2Weapon fixes:
      		* Fixed bug in getSkillEffects(L2Character, L2Character, L2Skill) returning always empty array of effects!
      		* Func and Effect lists to List instead of array.
      			* Avoid CPU overhead, System.arraycopy(..).
      		* No more dependence on Javolution.
      	* Reworked "get func" methods to avoid toArray(..) calls.
      	* Proper use of maps, no more iteration over keys and retrieving the value using get method.
      	* Externalized formula to calculate current effect duration to Formulas class.
      	* Static fields are upper case.
      	* Adding button to reload effects, '''must be follow by skill reload and probably player restart''' to ensure there is no memory-leftovers.
      	* Fixing skill Frintezza's Songs(5008) abnormal types.
      	* Fixing minor bug with High Five GM skills.
      	* Added name to effect list from admin panel, fixed other minor glitches.
      	* Removed old and classing GM menu.
      	* Updated logs and comments.
      
      Reviewed by: Adry_85, MELERIX
      
      Testing video: http://youtu.be/7qadv7QQhy4
      c5c99945
  20. Apr 20, 2013
  21. Mar 28, 2013
  22. Mar 27, 2013
  23. Mar 24, 2013
  24. Mar 21, 2013
  25. Mar 18, 2013
    • Zoey76's avatar
      BETA: Reworking skills (cleanup): · 4139ea04
      Zoey76 authored
      	* No more...
      		* "neutral" skills, all skills are "neutral" by default.
      		* dynamic skill/effect type dependent "offensive" checks.
      		* dynamic skill/effect type dependent "pvp" checks.
      		* null names, default is empty string.
      		* dynamic seven sings skill checks, is cached in boolean until is finally unhardcoded.
      		* CPDAM skill type, not used anywhere.
      		* skills "pvp" and "offensive"  at the same time.
      		* Spoil skill handler!
      		* CpDam skill handler!
      		* _effectSkillType in L2Effect.
      		* effectType in EffectTemplate.
      		* effectType in skill XMLs.
      	* effectPower=-1 lands always!
      	* Fixing Sweeper effect typos!
      		* Reported by: Decad, Torvitas
      
      Reviewed by: Adry_85, MELERIX, UnAfraid
      4139ea04
  26. Mar 10, 2013
  27. Mar 04, 2013
  28. Sep 27, 2012
  29. Sep 17, 2012
  30. Sep 09, 2012
  31. Sep 05, 2012
    • Rumen Nikiforov's avatar
      BETA: Adding abormalLvl and abnormalType to main skill as it should be not on the effect. · 77e4738d
      Rumen Nikiforov authored
      	* Note: Core support will be done later.
      77e4738d
    • MELERIX's avatar
      BETA: Skill Fixes / Updates... · 5ea19d78
      MELERIX authored
       * Fixed "Black Talisman - Free Speech" skill, added "silence_all_two" in negateAbnormals (as Temp Fix), to remove second effect on "silecen_all" skills (Reported & Tested by: facheme).
       * Added abnormalType "silence_all_two" (as Temp Fix) in the second effect of "silecen_all" skills.
       * Fixed/Updated most of Improved related skills, also added a Temp Fix in replace of blockBuff effect (that is not done yet).
       * Few other minor things fixed/updated.
      5ea19d78
  32. Sep 04, 2012
  33. Jul 25, 2012
    • nonom's avatar
      BETA: Some fixes. · d259bc37
      nonom authored
       * Added formatter settings missing from [9007].
       * Minor Fix for XSD from [9006].
       * Temp Fix for Skill 2060 "Healing Medicine".
       * Minor Fix for [9017] "is_freightable" is false by default.
       
       Patch by:
       MELERIX
      d259bc37
Loading