Leonardo Library
Well this is my library with some cool functions and needed to run some of my scripts. If you need some examples don't hesitate to ask me.
Docs and Examples:
- Release v1.0.0
- Update v1.1.1 (update version)
- Update v1.2.0
- Update v1.2.1
- Update v1.3.0
- Update v1.4.0
- Update v1.4.1 (improvement version)
- Update v1.4.2 (improvement version)
- Update v1.4.3 (improvement version)
- Update v1.4.4 (improvement version)
- Update v1.4.5 (improvement version)
- Update v1.4.6 (improvement version)
- Update v1.5.0
- Update v1.5.1
- Update v1.6.0
- Update v1.6.2
Change Log:
Download: (Save on WindBot/libs folder)Code:[Version 1.0.0] [15/01/2014]
-> Library Released
[Version 1.1.0] [16/01/2014]
-> Added printf and sprintf;
-> Fixed a typo on the library;
[Version 1.2.0] [17/01/2014]
-> Added tosec (fixes the daily conversion);
-> Added formattime;
-> Added formatnumber;
-> Added getdistancebetween;
-> Added isabletocast;
-> Added cancast;
-> Added unequipitem (can be called as unequip);
-> Added isinsidearea;
-> Added pvpworld;
-> Added checklocation;
-> Constants added: POLICY_ALL, POLICY_NONE, POLICY_CAVEBOT, POLICY_TARGETING;
-> Removed entermachine (part of Lucas Library);
[Version 1.2.1] [23/01/2014]
-> Fixed cancast (returning always true for strike spells);
-> Added setareaextrapolicy;
-> Added getareaextrapolicy;
-> Added setareatype;
-> Added getareatype;
-> Constants added: AREA_TYPE_FILLED, AREA_TYPE_BORDER;
[Version 1.3.0] [30/01/2014]
-> Improved all special areas functions; (stores paths on a cache to avoid looping every time);
-> Improved function setareatype and getareatype (added compatibility for WindBot version 1.3.2 update);
-> Improved antifurnituretrap (now uses browse field);
-> Added setareacomment;
-> Added getareacomment;
-> Added loadstringf;
-> Added table.tostring (improvement of table.stringformat);
-> Constants added: AREA_TYPE_DOUBLE_BORDER;
[Version 1.4.0] [15/02/2014]
-> Improved unequip/unequip, it's a little faster now.
-> Added isontemple;
-> Added withdrawitems;
-> Added screentiles;
-> Constants added: ORDER_RADIAL, ORDER_RADIAL_REVERSE, ORDER_RANDOM, ORDER_REALDIST, ORDER_REALDIST_REVERSE, ORDER_EUCLIDEAN, ORDER_EUCLIDEAN_REVERSE;
[Version 1.4.1] [23/02/2014]
-> Fixed cancast, isabletocast and cast to work with the newest version of the bot (v2.0.7);
[Version 1.4.2] [18/03/2014]
-> Improved antifurnituretrap to scroll over all pages to destroy items;
[Version 1.4.3] [01/05/2014]
-> Fixed antifurnituretrap problem with standing time;
-> Improved antifurnituretrap to return error ID and error Message after any issue;
-> Added antifurniture function (same as antifurnituretrap);
[Version 1.4.4] [22/07/2014]
-> Added Oramond temple coordinates
-> Fixed unequip (foot was listed twice, fixed as suggested by @fgallinari
-> Fixed table.tostring, not converting boolean and number values to string.
[Version 1.4.5] [22/07/2014]
-> Improved unrust function, it pauses walking when using items now.
[Version 1.4.6] [04/09/2014]
-> Improved withdrawitems now it can receive a fourth parameter (function) as the delay time between moves;
-> Improved isbinded, returns true when fasthotkeys are enabled.
[Version 1.5.0] [19/11/2014]
-> Fixed rusty items list (missing id: '8894')
-> Improved minor stuff in some functions
-> Added botversion: returns a number variation of the already existent $botversion which returns string
-> Added global variable BOT_VERSION, returns the version as a number
-> Added table.search: a new table.find which allow advanced searching methods for different value types
-> Added drawvector: a hud function to draw a vector between (a/b) <-> (x/y) axis
-> Added randomcolor: a randomizer for any color, gradient or not based in HSB with some other cool options
-> Added aliases for unequip (dequip and dequipitem)
[Version 1.5.1] [15/01/2015]
-> Improved randomcolor, parameter now is optional
-> Added rashidlocation
[Version 1.6.0] [27/07/2015]
-> Added isinsidespecialarea
-> Fixed isinsidearea
-> Fixed getareasize regular expression
[Version 1.6.2] [13/12/2015]
-> Fixed withdrawitems
Link