XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 8 of 8

Thread: drop vials if cap below #

  1. #1
    dean015's Avatar
    Join Date
    Nov 2015
    Posts
    119
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    drop vials if cap below #

    can someone share this piece of code with me please

    thanks

  2. #2
    Oscagi's Avatar
    Join Date
    Aug 2014
    Location
    Spain
    Posts
    237
    Mentioned
    27 Post(s)
    Tagged
    0 Thread(s)
    lua code:

    MinCap = 3000
    Module.New('DropVials', function()
    if Self.Cap() < MinCap then
    pos = Self.Position()
    Self.DropFlasks(pos.x, pos.y, pos.z)
    end
    end)


    REMEMBER TO SAY THANKS.

  3. #3
    dean015's Avatar
    Join Date
    Nov 2015
    Posts
    119
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Oscagi View Post
    lua code:

    MinCap = 3000
    Module.New('DropVials', function()
    if Self.Cap() < MinCap then
    pos = Self.Position()
    Self.DropFlasks(pos.x, pos.y, pos.z)
    end
    end)
    thanks

    its dropping all flasks when it gets to the cap entered, is there a way to drop vials up to the cap selected and drop maybe 25 vials at a time so to save a little money?

    ether way thanks it works fine

  4. #4
    Oscagi's Avatar
    Join Date
    Aug 2014
    Location
    Spain
    Posts
    237
    Mentioned
    27 Post(s)
    Tagged
    0 Thread(s)
    yes after x,y,z write how much vials u want drop.

    lua code:

    Self.DropFlasks(pos.x, pos.y, pos.z, 25)


    REMEMBER TO SAY THANKS.

  5. #5
    dean015's Avatar
    Join Date
    Nov 2015
    Posts
    119
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Oscagi View Post
    yes after x,y,z write how much vials u want drop.

    lua code:

    Self.DropFlasks(pos.x, pos.y, pos.z, 25)
    thank you sir

  6. #6
    Oscagi's Avatar
    Join Date
    Aug 2014
    Location
    Spain
    Posts
    237
    Mentioned
    27 Post(s)
    Tagged
    0 Thread(s)
    Np dude :>


    REMEMBER TO SAY THANKS.

  7. #7

    Join Date
    Apr 2013
    Posts
    119
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Does this work on all kind of empty flasks? Or do i need to enter specific ID ?

  8. #8
    Oscagi's Avatar
    Join Date
    Aug 2014
    Location
    Spain
    Posts
    237
    Mentioned
    27 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Metaxa View Post
    Does this work on all kind of empty flasks? Or do i need to enter specific ID ?
    Self.DropFlasks() its for all empty flask I think, test it.


    REMEMBER TO SAY 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
  •