Quantcast
Download
(12 Kb)
Download
Updated: 11/08/19 11:14 AM
Compatibility:
Dragonhold (5.2.5)
Scalebreaker (5.1.5)
Updated:11/08/19 11:14 AM
Created:09/30/19 02:51 PM
Monthly downloads:2,471
Total downloads:5,197
Favorites:10
MD5:
5.2.5
LibDragonWorldEvent  Popular! (More than 5000 hits)
Version: 1.1.1
by: bulton-fr [More]

This library give info about dragons in Elsweyr.

How to install:

You may either embed the library in your addon and load the files from your addon manifest, or have the library installed like any other normal addon.

If you are depending on the library being installed separately and are not embedding it, then you must include this line in your addon manifest:
Code:
## DependsOn:  LibDragonWorldEvent
How to use:
All defined tables are on "LibDragonWorldEvent" table.

You can find :
Code:
* LibDragonWorldEvent.Dragon : OOP-like, one table of this is defined for
  each dragon on the zone.
* LibDragonWorldEvent.DragonList : Contain all LibDragonWorldEvent.Dragon tables/instances
* LibDragonWorldEvent.DragonType : To detect the dragon's type (color)
* LibDragonWorldEvent.DragonStatus : Contain all possible status for dragons,
  and function to check dragons status
* LibDragonWorldEvent.Events : All methods called on game events,
  and list of all event which are triggered by the lib
* LibDragonWorldEvent.Timer : Contain function to manage timers
* LibDragonWorldEvent.FlyTimer : Define timer used to know if dragon
  currently flying or not
* LibDragonWorldEvent.Zone : Contain all function to know if the current
  zone has dragons or not, and datas about dragons zone
Many events are sent by the library :
Code:
* LibDragonWorldEvent.Events.callbackEvents.dragon.new
  When a new dragon is created.
  callback function : function(LibDragonWorldEvent.Dragon dragon)

* LibDragonWorldEvent.Events.callbackEvents.dragon.changeStatus
  When a dragon change its status.
  callback function : function(LibDragonWorldEvent.Dragon dragon, string newStatus)

* LibDragonWorldEvent.Events.callbackEvents.dragon.resetStatus
  When a dragon change its status.
  callback function : function(LibDragonWorldEvent.Dragon dragon, string newStatus)

* LibDragonWorldEvent.Events.callbackEvents.dragon.poped
  When the dragon pop.
  callback function : function(LibDragonWorldEvent.Dragon dragon)

* LibDragonWorldEvent.Events.callbackEvents.dragon.killed
  When the dragon is killed.
  callback function : function(LibDragonWorldEvent.Dragon dragon)

* LibDragonWorldEvent.Events.callbackEvents.dragon.waiting
  When the dragon waiting player.
  callback function : function(LibDragonWorldEvent.Dragon dragon)

* LibDragonWorldEvent.Events.callbackEvents.dragon.fight
  When the dragon go in fight.
  callback function : function(LibDragonWorldEvent.Dragon dragon)

* LibDragonWorldEvent.Events.callbackEvents.dragon.weak
  When the dragon is now weak.
  callback function : function(LibDragonWorldEvent.Dragon dragon)

* LibDragonWorldEvent.Events.callbackEvents.dragon.flying
  When the dragon start to fly.
  callback function : function(LibDragonWorldEvent.Dragon dragon)

* LibDragonWorldEvent.Events.callbackEvents.dragon.landed
  When the dragon just landed.
  callback function : function(LibDragonWorldEvent.Dragon dragon)

* LibDragonWorldEvent.Events.callbackEvents.dragonList.reset
  When the list is reset.
  callback function : function(LibDragonWorldEvent.DragonList dragonList)

* LibDragonWorldEvent.Events.callbackEvents.dragonList.add
  When a dragon is added to the list.
  callback function : function(LibDragonWorldEvent.DragonList dragonList, LibDragonWorldEvent.Dragon dragon)

* LibDragonWorldEvent.Events.callbackEvents.dragonList.update
  When the list updated with zone info.
  callback function : function(LibDragonWorldEvent.DragonList dragonList)

* LibDragonWorldEvent.Events.callbackEvents.dragonList.removeAll
  When all dragon is removed from the list.
  callback function : function(LibDragonWorldEvent.Dragon dragonList)

* LibDragonWorldEvent.Events.callbackEvents.dragonList.createAll
  When all dragon for a zone are instancied.
  callback function : function(LibDragonWorldEvent.Dragon dragonList)

* LibDragonWorldEvent.Events.callbackEvents.dragonStatus.initDragon
  When the status of a dragon is initialised.
  callback function : function(LibDragonWorldEvent.DragonStatus dragonStatus, LibDragonWorldEvent.Dragon dragon)

* LibDragonWorldEvent.Events.callbackEvents.dragonStatus.checkAllDragon
  When the status of all instancied dragon is checked.
  callback function : function(LibDragonWorldEvent.DragonStatus dragonStatus)

* LibDragonWorldEvent.Events.callbackEvents.dragonStatus.checkDragon
  When the status of a dragon is checked.
  callback function : function(LibDragonWorldEvent.DragonStatus dragonStatus, LibDragonWorldEvent.Dragon dragon)

* LibDragonWorldEvent.Events.callbackEvents.Zone.updateInfo
  When info about current zone/map is updated.
  callback function : function(LibDragonWorldEvent.Zone Zone)

* LibDragonWorldEvent.Events.callbackEvents.Zone.checkDragonZone
  When we check if the map contains dragons.
  callback function : function(LibDragonWorldEvent.Zone Zone)
You can find more info on the github page.

Language:
Supported languages are English, French and German (thanks to TNTKokser).
I will look to ask if someone wants to help to translate for other languages. If you want to help, you can contact me.

Example:
Addons DragonTracker and DragonNextLocation use this lib, you can find some example on it.
v1.1.1
- Fix the condition which call Dragon:updateType when the dragon's status change.

v1.1.0
- Update the TESO ApiVersion to 100029
- Add location name
- Add dragon color detection
- Change cardinal point on northern Elsweyr
> West → South-west
> East → South-east

v1.0.1
- Add German language (thanks to TNTKokser)
- Dragon: Update unitTag if unknown when the status change or when dragon pop
Optional Files (0)


Archived Files (3)
File Name
Version
Size
Uploader
Date
1.1.0
12kB
bulton-fr
10/21/19 07:18 AM
1.0.1
10kB
bulton-fr
10/03/19 10:33 AM
1.0.0
10kB
09/30/19 02:51 PM


There have been no comments posted to this file.
Be the first to add one.



Category Jump: