Signup Now
Results 1 to 2 of 2
  1. #1
    Free User dutch's Avatar
    Join Date
    Jul 2014
    Posts
    57
    Reputation
    10
    Rep Power
    20

    Need abit of explanation from someone. :)

    Hello,

    Been a while since I used windbot,
    got abit of rusty :P
    anyways let me explain it to you guys.


    what I am trying to get to work in a fun script that I am making is,

    example:

    I got in user settings, 3 check options,
    1 = Do you want to hunt -2 floor?
    2 = Do you want to put a level requirement?
    3 = What level do you need to be

    1 is lose of (two & three)

    so if 1 is not checked, it will not go down to -2 but it will go to the next action label,
    if 1 is checked, it will check if 2 has been checked.
    if 1 and 2 are checked, it will check 3
    so if (1 - 2 - 3) are all checked, it will go to floor -2 label.

    If 1 is checked, and 2 not, then (2 and 3 fall away) and it still would go to -2 floor label.


    so I wrote this next in the action label:

    local MinusTwo = getuseroption('MinusTwo')
    local LevelCheckMinusTwo = getuseroption('LevelCheckMinusTwo')
    local SetLevelMinusTwo = getuseroption('SetLevelMinusTwo')

    if MinusTwo == true and LevelCheckMinusTwo == true and ($level >= SetLevelMinusTwo) then
    gotolabel('MinusTwo', 'MinusOne')
    elseif
    MinusTwo == true and LevelCheckMinusTwo == false
    then gotolabel('MinusTwo', 'MinusOne')
    elseif
    MinusTwo == false and LevelCheckMinusTwo == false
    then gotolabel('GoMinusThree', 'MinusOne')
    end
    so this does not work, but it does work if I change:
    local SetLevelMinusTwo = getuseroption('SetLevelMinusTwo')
    TO
    local SetLevelMinusTwo = 10
    but the problem with this is, how will it change in every action to the level I set in the "User options" the check boxes. for example: I set level 20 for it, it will not change in the action ofcourse,
    so do I have to make a persistent hotkey for that or so?

    to continuesly check, the require level I did set on the checkbox and if i change it from 20 to 30 or so, it would change also in the action?
    cause what I eventually want to make is, that you set for every lower floor, a minimum level requirement. so -1 = lvl 8 -2 = 15 -3 = 26. and when it wants to go to lower floors, it will have to level first to the level that I did set as savety check.

    It might be a simply solution, so I am simply asking for some help, or someone who could explain it to me

    Regards,
    Dutchie
    Last edited by dutch; 03-11-2016 at 09:34 PM.

  2. #2
    Free User dutch's Avatar
    Join Date
    Jul 2014
    Posts
    57
    Reputation
    10
    Rep Power
    20
    Nevermind, Fixed the problem, Delete the post please

 

 

Posting Permissions

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