Signup Now
Page 1 of 7 123 ... LastLast
Results 1 to 10 of 63
  1. #1
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    22

    Leonardo Library v1.6.2

    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:



    Change Log:

    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
    Download: (Save on WindBot/libs folder)

    Link
    Last edited by mistgun; 12-15-2015 at 11:44 PM.

  2. #2
    Moderator mistgun's Avatar
    Join Date
    Dec 2013
    Location
    Lodz, Poland
    Posts
    1,821
    Reputation
    220
    Rep Power
    26
    Good job bro as always! Can't wait for Your docs!

  3. #3
    Wind Powered
    Join Date
    Dec 2013
    Location
    dvscripts.com
    Posts
    7,105
    Reputation
    433
    Rep Power
    39
    seems there is problem while loading library in 1.2.8

    error in Library file Leonardo.lua:
    ["if type(x) == 'table' ad type(y) == 't..."]:Leonardo.lua:532: 'then' expected near 'ad'


    Regards

  4. #4
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    22
    Quote Originally Posted by Dworak View Post
    seems there is problem while loading library in 1.2.8

    error in Library file Leonardo.lua:
    ["if type(x) == 'table' ad type(y) == 't..."]:Leonardo.lua:532: 'then' expected near 'ad'


    Regards
    Ye my bad, tested functions separated and grouped them on the library. Download again version 1.0.1.

  5. #5
    Wind Powered
    Join Date
    Dec 2013
    Location
    dvscripts.com
    Posts
    7,105
    Reputation
    433
    Rep Power
    39
    again but now next one ;d

    error in Library file Leonardo.lua:
    ["printf("Leonardo's library loaded, ver..."]:Leonardo.lua:609 attempt to call global 'printf' (a nil value)


    problem with printf :P

  6. #6
    Banned
    Join Date
    Dec 2013
    Posts
    556
    Reputation
    18
    Rep Power
    0
    Dafuq? So now it's so easy to set areas policy xDDDDDDDD

    Btw,
    How these works?
    Code:
    --> getareaposition;
    --> setareaposition;
    --> getareasize;
    --> setareasize;

  7. #7
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    22
    Quote Originally Posted by Dworak View Post
    again but now next one ;d

    error in Library file Leonardo.lua:
    ["printf("Leonardo's library loaded, ver..."]:Leonardo.lua:609 attempt to call global 'printf' (a nil value)


    problem with printf :P
    Which version of Lucas lib are you using ? Nevermind I'll add that function to my lib for precaution.

    Quote Originally Posted by K4r4biN View Post
    Dafuq? So now it's so easy to set areas policy xDDDDDDDD

    Btw,
    How these works?
    Code:
    --> getareaposition;
    --> setareaposition;
    --> getareasize;
    --> setareasize;
    getareaposition('Area') > {x = 33333, y = 55555, z = 7}

    setareaposition('Area', $posx, $posy, $posz)

    getareasize('Area') > {w = 3, h = 4}

    setareasize('Area', 5, 5)

    And so on, I'll provide examples on the site docs soon.

    Download again v1.1.0
    Last edited by Leonardo; 01-16-2014 at 11:49 AM.

  8. #8
    Wind Powered
    Join Date
    Dec 2013
    Location
    dvscripts.com
    Posts
    7,105
    Reputation
    433
    Rep Power
    39
    The newest one

    Library file 'LucasTerra.lua' loaded successfully...

  9. #9
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    22
    Quote Originally Posted by Dworak View Post
    The newest one

    Library file 'LucasTerra.lua' loaded successfully...
    Download again, I've added that function to my lib aswell, Lucas is loading after my library that was the problem.

  10. #10
    Wind Powered
    Join Date
    Dec 2013
    Location
    dvscripts.com
    Posts
    7,105
    Reputation
    433
    Rep Power
    39
    Now is ok ;-)
    Please try fix Area Attacker Thanks !

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •