XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 9 of 9

Thread: REQUEST- Life Ring Equiper

  1. #1

    Join Date
    Nov 2014
    Location
    Canada
    Posts
    154
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)

    REQUEST- Life Ring Equiper

    As title states i need a life ring equiper im sure its here somewhere i just cant find it for the life of me ;(

    any help appreciated TYI

  2. #2

    Join Date
    Sep 2015
    Posts
    25
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    This is one I use, you can edit the bolded parts.


    local RingID = 3052

    Module('life shit', function(mod)
    if Self.Ring().id ~= 3089 and Self.ItemCount(RingID) >= 1 and (not Self.isInPz()) and (Self.Mana() < Self.MaxMana()*(85/100)) then
    Self.Equip(RingID, "ring")
    elseif Self.isInPz() or (Self.Mana() > Self.MaxMana()*(92/100)) then
    Self.Dequip("ring")
    end
    modelay(2000)
    end)

  3. #3

    Join Date
    Nov 2014
    Location
    Canada
    Posts
    154
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Thankyou!

  4. #4

    Join Date
    Nov 2014
    Location
    Canada
    Posts
    154
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    having an error with your suggestion i must be doing something wrong
    Last edited by zwalkes; 04-16-2016 at 07:26 AM.

  5. #5

    Join Date
    Nov 2014
    Location
    Canada
    Posts
    154
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by yoyoa1 View Post
    This is one I use, you can edit the bolded parts.


    local RingID = 3052

    Module('life shit', function(mod)
    if Self.Ring().id ~= 3089 and Self.ItemCount(RingID) >= 1 and (not Self.isInPz()) and (Self.Mana() < Self.MaxMana()*(85/100)) then
    Self.Equip(RingID, "ring")
    elseif Self.isInPz() or (Self.Mana() > Self.MaxMana()*(92/100)) then
    Self.Dequip("ring")
    end
    modelay(2000)
    end)
    Hey man i tried using your suggestion what am i doing wrong?? @yoyoa1


    01:21 XenoScript Error:
    Script: Life ring.lua
    Line #: 9
    Chunk: C:?Users?Bill?DOCUME?1?XenoBot?Scripts??LIFERI?1.L UA
    Error: attempt to call global 'modelay' (a nil value)
    This is an error with user-input and should not be reported as a bug with XenoBot.
    Last edited by zwalkes; 04-16-2016 at 07:45 AM.

  6. #6

    Join Date
    Nov 2014
    Location
    Sundsvall, Sweden
    Posts
    174
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Code:
    local RingID = 3052
    
    Module('life shit', function(mod)
    if Self.Ring().id ~= 3089 and Self.ItemCount(RingID) >= 1 and (not Self.isInPz()) and (Self.Mana() < Self.MaxMana()*(85/100)) then
    Self.Equip(RingID, "ring")
    elseif Self.isInPz() or (Self.Mana() > Self.MaxMana()*(92/100)) then
    Self.Dequip("ring")
    end
    mod:Delay(2000)
    end)
    This should work

  7. #7

    Join Date
    Nov 2014
    Location
    Canada
    Posts
    154
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by yompa93 View Post
    Code:
    local RingID = 3052
    
    Module('life shit', function(mod)
    if Self.Ring().id ~= 3089 and Self.ItemCount(RingID) >= 1 and (not Self.isInPz()) and (Self.Mana() < Self.MaxMana()*(85/100)) then
    Self.Equip(RingID, "ring")
    elseif Self.isInPz() or (Self.Mana() > Self.MaxMana()*(92/100)) then
    Self.Dequip("ring")
    end
    mod:Delay(2000)
    end)
    This should work
    Much appreciated!

  8. #8

    Join Date
    Apr 2016
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    local RingID = 3052

    Module('life shit', function(mod)
    if Self.Ring().id ~= 3089 and Self.ItemCount(RingID) >= 1 and (not Self.isInPz()) and (Self.Mana() < Self.MaxMana()*(85/100)) then
    Self.Equip(RingID, "ring")
    elseif Self.isInPz() or (Self.Mana() > Self.MaxMana()*(92/100)) then
    Self.Dequip("ring")
    end
    modelay(2000)
    end)

  9. #9

    Join Date
    Oct 2015
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by yompa93 View Post
    Code:
    local RingID = 3052
    
    Module('life shit', function(mod)
    if Self.Ring().id ~= 3089 and Self.ItemCount(RingID) >= 1 and (not Self.isInPz()) and (Self.Mana() < Self.MaxMana()*(85/100)) then
    Self.Equip(RingID, "ring")
    elseif Self.isInPz() or (Self.Mana() > Self.MaxMana()*(92/100)) then
    Self.Dequip("ring")
    end
    mod:Delay(2000)
    end)
    This should work
    i just random copie this in .lua file? or copie this on the very bottom of the .lua file?>
    Last edited by django0223; 07-19-2016 at 12:10 PM.

Posting Permissions

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