Results 1 to 5 of 5

Thread: Energy ring if X >hp

  1. #1
    iBot User
    Join Date
    Jul 2012
    Posts
    246
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0

    Energy ring if X >hp

    possible yet? )

    energy if 60% hp, and wedding ring if 95% or something?

    HP based? any1 have? XD

  2. #2
    iBot User
    Join Date
    Jul 2012
    Posts
    246
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0
    bumpbumpbump

  3. #3
    iBot User walukasz's Avatar
    Join Date
    Feb 2012
    Location
    Poland
    Posts
    312
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    25 Post(s)
    Reputation
    67
    Rep Power
    5
    Code:
    local equipederingid = 1234 --please edit this id to the correct one, I don't have time now to check it, you can simply equip e ring and make action say(ring) and your character will say the id to put here
    
    if hppc < 60 and ring ~= equipederingid and itemcount("energy ring") > 0 then
    moveitems("energy ring", "all", "ring", 1)
    elseif hppc > 60 and ring ~= itemid("wedding ring") and itemcount("wedding ring") > 0 then
    moveitems("wedding ring", "all", "ring", 1)
    end

  4. #4
    iBot User
    Join Date
    Jul 2012
    Posts
    246
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0
    PHP Code:
    local equipederingid 3051 --T

    if hppc 60 and ring ~= equipederingid and itemcount("energy ring") > 0 then
    moveitems
    ("energy ring""all""ring"1)
    elseif 
    hppc 60 and ring ~= 3004("wedding ring") and itemcount("wedding ring") > 0 then
    moveitems
    ("wedding ring""all""ring"1)
    end 
    like this?


    or to make the hppc higher when to put on wedding ring it can be like this:P?


    PHP Code:
    local equipederingid 3051 --T

    if hppc 60 and ring ~= equipederingid and itemcount("energy ring") > 0 then
    moveitems
    ("energy ring""all""ring"1)
    elseif 
    hppc 85 and ring ~= 3004("wedding ring") and itemcount("wedding ring") > 0 then
    moveitems
    ("wedding ring""all""ring"1)
    end 
    Last edited by terje; 08-19-2012 at 05:12 PM.

  5. #5
    iBot User walukasz's Avatar
    Join Date
    Feb 2012
    Location
    Poland
    Posts
    312
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    25 Post(s)
    Reputation
    67
    Rep Power
    5
    yeah, good

Posting Permissions

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