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

    Question I have some questions about Auto-Check Supply

    Hi there everyone!

    I am trying to learn by myself how to make scripts on Windbot and i got a question for my auto supplychecker some days ago. First of all here is my script:

    Code:
    auto(1000)
    
    local nameHp = getuseroption("nameHp")
    local minHp = getuseroption("minHp")
    local nameMp = getuseroption("nameMp")
    local minMp = getuseroption("minMp")
    local minCap = getuseroption("cap")
    
    if ($posz == 9) and (itemcount(nameHp) <= minHp or itemcount(nameMp) <= minMp or $cap <= minCap) then
    	gotolabel("go", "LeaveHunt")
    end
    I wonder if is there any way i can change it for when it's on a specific waypoint section like "Hunt" instead of $posz == 9 and also put something like this:
    Code:
    if itemcount(getuseroption("mainBp")) > 0 then
    ...
    To get no fake supply checks.

    Thank you very much for the attention and i will be waiting for an awnser!!

    BTW: I know that I can use the function needresupply() but for some reason it was very bugged on my script and I kinda like to develop my own things!

  2. #2
    Moderator mistgun's Avatar
    Join Date
    Dec 2013
    Location
    Lodz, Poland
    Posts
    1,820
    Reputation
    220
    Rep Power
    26
    $wptsection
    : for section checking
    windowcount(name)
    : for window checking

    And rest in DOCS and available libraries inside your bot folder.
    Good luck!

  3. #3
    Free User
    Join Date
    Feb 2016
    Posts
    3
    Reputation
    10
    Rep Power
    0
    Thank you very much. +rep

  4. #4
    Free User
    Join Date
    Feb 2016
    Posts
    3
    Reputation
    10
    Rep Power
    0
    One more thing?

    Code:
    21:47:31 error in Persistent script SupplyChecker
    ["if ($wptsection == "Hunt") and (..."]:SupplyChecker:10: $ symbol only allowed for native variables

 

 

Tags for this Thread

Posting Permissions

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