Skip to content

Changelog 1.1

marksamman edited this page Nov 18, 2014 · 38 revisions

=====================

Engine

  • The following item attributes can now be customized using setAttribute for items: name, article, pluralname, weight, attack, defense, extradefense, armor, hitchance and shootrange.
  • Increased accuracy of scheduled events
  • Optimized dispatcher and scheduler code
  • Using integers instead of floating point numbers for item weight and player capacity
  • Fixed a rounding bug with the formula for magic level offline training
  • Fixed a bug allowing players to equip two-handed weapons with a shield when using classic equipment slots.

Source code

  • Use of more C++11 features:
    • final/override
    • emplace for map insertions
  • Remove virtual specifier from all functions that aren't being overridden

Script interface

  • Breaking change: Creature userdata (creature) is now passed to every event callback instead of creature id (cid).
    • This also applies for all subclasses; Monster, NPC and Player.
  • Events
    • Creature
      • onChangeOutfit
      • onAreaCombat
      • onTargetCombat
    • Player
      • onGainSkillTries
  • New functions
    • item:hasAttribute(key)
    • itemType:getClientId()
    • itemType:getCharges()
    • itemType:getHitChange()
    • itemType:getShootRange()

Data pack

  • Updated scripts to utilize userdata objects more efficiently
Clone this wiki locally