Results 1 to 8 of 8

Thread: Changing Manarange if maround > x

  1. #1
    iBot User
    Join Date
    Nov 2012
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    5

    Changing Manarange if maround > x

    I need action which will change Manarange of Mana potion if around me is more than 5 monsters.
    this not working:
    Code:
    while maround(7) >= 5 do setsettings("settings//healer//rules//manapotion//manarange//max value", "0 to 70 %") else setsettings("settings//healer//rules//manapotion//manarange//max value", "0 to 60 %")

  2. #2
    Normal User Delking's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    247
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    19
    Rep Power
    5
    PHP Code:
    while maround(7) >= do 
    setsettings("settings//healer//rules//mana potion//manarange//max value""0 to 70 %"
    else 
    setsettings("settings//healer//rules//mana potion//manarange//max value""0 to 60 %"
    Try that

  3. #3
    Normal User mistgun's Avatar
    Join Date
    Nov 2012
    Location
    LDZ
    Posts
    333
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    41
    Rep Power
    5
    Quote Originally Posted by Delking View Post
    PHP Code:
    while maround(7) >= do 
    setsettings("settings//healer//rules//mana potion//manarange//max value""0 to 70 %"
    else 
    setsettings("settings//healer//rules//mana potion//manarange//max value""0 to 60 %"
    Try that
    i think u need to fix last line i mean you need to add "end" on last line try it

    while maround(7) >= 5 do
    setsettings("settings//healer//rules//mana potion//manarange//max value", "0 to 70 %")
    else
    setsettings("settings//healer//rules//mana potion//manarange//max value", "0 to 60 %")
    end

  4. #4
    Normal User
    Join Date
    Feb 2012
    Location
    Chile
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    9
    Rep Power
    0
    PHP Code:
    if maround(7) >= 5 then
    setsettings
    ("settings//healer//rules//mana potion//manarange//max value""0 to 70 %"
    else 
    setsettings("settings//healer//rules//mana potion//manarange//max value""0 to 60 %"
    end 

    try with this

  5. #5
    Normal User Delking's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    247
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    19
    Rep Power
    5
    Quote Originally Posted by mistgun View Post
    i think u need to fix last line i mean you need to add "end" on last line try it

    while maround(7) >= 5 do
    setsettings("settings//healer//rules//mana potion//manarange//max value", "0 to 70 %")
    else
    setsettings("settings//healer//rules//mana potion//manarange//max value", "0 to 60 %")
    end
    Ah, missed that part xD

  6. #6
    iBot User
    Join Date
    Nov 2012
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    5
    None of them works,
    this
    PHP Code:
    while maround(7) >= do 
    setsettings("settings//healer//rules//mana potion//manarange//Max Value""70"
    else 
    setsettings("settings//healer//rules//mana potion//manarange//Max Value""60")
    end 
    also this too.
    PHP Code:
    if maround(7) >= 5 then
    setsettings
    ("settings//healer//rules//mana potion//manarange""0 to 70 %"
    else 
    setsettings("settings//healer//rules//mana potion//manarange""0 to 60 %")
    end 
    This space between Mana Potion, can be?

  7. #7
    Banned
    Join Date
    May 2012
    Posts
    1,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    127
    Rep Power
    0
    The bot is case-sensitive, So it will be:

    PHP Code:
    if maround(7) >= 5 then
    setsettings
    ("Settings//Healer//Rules//mana potion//ManaRange""0 to 70 %"
    else
    setsettings("Settings//Healer//Rules//mana potion//ManaRange""0 to 60 %")
    end 

  8. #8
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Quote Originally Posted by BUgWT View Post
    The bot is case-sensitive, So it will be:

    PHP Code:
    if maround(7) >= 5 then
    setsettings
    ("Settings//Healer//Rules//mana potion//ManaRange""0 to 70 %"
    else
    setsettings("Settings//Healer//Rules//mana potion//ManaRange""0 to 60 %")
    end 
    Mmmm i dont think it is.



    @OP, yes, if your rule is spelled "manapotion" you need to remove the space so it matches the name of the rule

Posting Permissions

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