XenoBot Forums - Powered by vBulletin

User Tag List

Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 39

Thread: Xenobot Lua Documentation

  1. #21

    Join Date
    Jan 2012
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Self.WithdrawItems(items array)

    how can i specify the itemid, amount, bp where its at, bp to withdraw?

  2. #22

    Join Date
    Apr 2012
    Location
    RS, Brazil
    Posts
    181
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Sang View Post
    Self.WithdrawItems(items array)

    how can i specify the itemid, amount, bp where its at, bp to withdraw?
    The entry must be a table. Example:

    lua code:

    Self.WithdrawItems(FIRST_BACKPACK, {ITEM1, BACKPACK_INDEX, AMOUNT}, {ITEM2, BACKPACK_INDEX, AMOUNT}...)



    The FIRST_BACKPACK is where to start searching for your items (optional), then you start the array:

    {3031, 2} -- gold coin to the backpack index 2
    {3031, 2, 50} -- move 50 coins instead of all

  3. #23
    Senior Member Eion's Avatar
    Join Date
    Dec 2011
    Posts
    559
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Hey man, great work. The majority of the community needs this.

  4. #24

    Join Date
    Apr 2012
    Location
    RS, Brazil
    Posts
    181
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Updated functions for the version 3.3.4

    Added:
    • Container.iContainers()
    • Container:iItems()
    • Creature.iCreatures()
    • Creature.iAllies()
    • Creature.iEnemies()
    • Creature.iPartyMembers()
    • Creature.iNpcs()
    • Creature.iPlayers()
    • Creature.iMonsters()
    • Self.BrowseField(x, y, z)
    • Self.PrivateMessage(player, message)


    Changed:

    • Existing classes that now can be called with the meta function __call, they are now cited as an Alternate Invocation for Class.New()
    • As the Proxy functions doesn't return the same thing, I've added something on each example block so you know what they are returning.


    Also I couldn't explain all the Creatures iterations because there's no enough space to add more functions on that post, so I've explained Creatures.iCreatures() and the others are cited on the same block.

  5. #25

    Join Date
    Jun 2012
    Posts
    87
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Where do I download this XenoLuaLib.lua?

  6. #26

    Join Date
    Jun 2012
    Posts
    87
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Golocky View Post
    Where do I download this XenoLuaLib.lua?
    forget it I already found it in your signature

  7. #27

    Join Date
    Apr 2012
    Location
    RS, Brazil
    Posts
    181
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Golocky View Post
    forget it I already found it in your signature
    That's my personal library, you don't need to download XenoLuaLib, it's already included on Xeno when you download it.

  8. #28
    Retired Staff Member HolmaN's Avatar
    Join Date
    Dec 2010
    Location
    Göteborg, Sweden.
    Posts
    3,154
    Mentioned
    164 Post(s)
    Tagged
    0 Thread(s)
    Fuck me.. You deserve a medal.

  9. #29
    robin's Avatar
    Join Date
    Jan 2012
    Location
    Poland / UK
    Posts
    105
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    It seems that the Self.UseBed function doesn't work properly. It gets stuck at the 'Choose a Skill' window

  10. #30
    PromB's Avatar
    Join Date
    Aug 2013
    Location
    Sweden
    Posts
    321
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by robin View Post
    It seems that the Self.UseBed function doesn't work properly. It gets stuck at the 'Choose a Skill' window
    Copy and paste your function

Posting Permissions

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