Signup Now
Results 1 to 3 of 3
  1. #1
    Free User
    Join Date
    Dec 2016
    Posts
    11
    Reputation
    10
    Rep Power
    0

    using life rings if health is lower then...

    Hi all,

    I am a sorcerer. At this time I can still gain soul points on rotworms (150% exp). I like to use a very basic cavebot I made for regaining soul point at edron rotworms. My health sometimes drops which makes me use a healing spell.
    I don't like it that I waste mana to heal when I could be using it for runes.

    Ideally I would have a persistent script which lets me use a life ring when I start to get a little lower on health (let's say 60%) and take it off again if I have 80% or something.

    Any help here would be nice...

  2. #2
    Free User Cisco's Avatar
    Join Date
    Aug 2014
    Location
    Brazil
    Posts
    1,423
    Reputation
    119
    Rep Power
    23
    Quote Originally Posted by Darsha View Post
    Hi all,

    I am a sorcerer. At this time I can still gain soul points on rotworms (150% exp). I like to use a very basic cavebot I made for regaining soul point at edron rotworms. My health sometimes drops which makes me use a healing spell.
    I don't like it that I waste mana to heal when I could be using it for runes.

    Ideally I would have a persistent script which lets me use a life ring when I start to get a little lower on health (let's say 60%) and take it off again if I have 80% or something.

    Any help here would be nice...
    auto(1000)
    local BpRing = 'brocade backpack'
    local HuntSections = table.find({'Hunt'}, $wptsection) --name wptsection Hunt...example: table.find({'Floor 1','Floor 2'}, $wptsection)
    local Ring = 'life ring'
    local HpLess = 60
    local HpLarger = 80

    if $connected then
    if itemcount(Ring) then
    if HuntSections then
    if $hppc <= HpLess then
    equipitem(Ring)
    waitping()
    elseif $hppc >= HpLarger then
    unequipitem('finger', BpRing)
    waitping()
    end
    else
    unequipitem('finger', BpRing)
    waitping()
    end
    end
    end

  3. #3
    Free User
    Join Date
    Dec 2016
    Posts
    11
    Reputation
    10
    Rep Power
    0

    Percentage or HP?

    Quote Originally Posted by Cisco View Post
    auto(1000)
    local BpRing = 'brocade backpack'
    local HuntSections = table.find({'Hunt'}, $wptsection) --name wptsection Hunt...example: table.find({'Floor 1','Floor 2'}, $wptsection)
    local Ring = 'life ring'
    local HpLess = 60
    local HpLarger = 80

    if $connected then
    if itemcount(Ring) then
    if HuntSections then
    if $hppc <= HpLess then
    equipitem(Ring)
    waitping()
    elseif $hppc >= HpLarger then
    unequipitem('finger', BpRing)
    waitping()
    end
    else
    unequipitem('finger', BpRing)
    waitping()
    end
    end
    end
    Sorry if this is question has an obvious answer but I gotta ask: HpLarger and HpLess values are percentage values?

    Edit: while reading the code again saw the variable $hppc which obviously means Hitpoint percentage, so I answered my own question.
    Last edited by Darsha; 12-29-2016 at 10:28 AM. Reason: didn't check the code enough to notice

 

 

Posting Permissions

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