Signup Now
Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Banned
    Join Date
    Jun 2014
    Location
    Sweden
    Posts
    626
    Reputation
    29
    Rep Power
    0

    Need help with my Force refill

    Hello something is wrong with my force refill i have debug copy and all i gone post iy here and hope i get some help. Blawk is on vacation so i cant get help from him so i hope maybe @Borges or @Imba or someone can help me


    Debug error in Persistent script Force Refill:
    [" elseif ((itemcount(nameManaPot) > ..."]:Force Refill:34: 'end' expected (to close 'for' at line 11) near 'elseif'



    And now i post hole force refill


    -- Double-click to open edit mode.
    -- BlakW Scripts - www.Blawk.com


    auto(3000, 5000)

    local MONSTER_NAMES_GET = {"Hydra", "Bog Raider"}
    local MONSTER_NAMES_SET = {"Hydra", "Bog Raider"}

    if (useForceRefill == true)
    then
    for i = 1, #MONSTER_NAMES_SET
    do
    if ((itemcount(nameManaPot) <= minManaPot) or (itemcount(nameStrongerHealthPot) <= minStrongerHealthPot) or (itemcount(nameHealthPot) <= minHealthPot) or ($cap <= minCapacity))
    then
    if (getsettings_ib("Settings\\Targeting\\Monsters\\". .MONSTER_NAMES_GET[i].."\\OnlyIfTrapped") == "no")
    then
    setsettings_ib("Settings\\Targeting\\Monsters\\".. MONSTER_NAMES_SET[i].."\\OnlyIfTrapped", "yes")
    settargeting("on")
    if $posz == 10
    then
    gotolabel("leave_third_floor")
    wait(15000)
    elseif $posz == 9
    then
    gotolabel("leave_second_floor")
    wait(15000)
    end
    elseif $posz == 8
    then
    gotolabel("leave_hunt")
    wait(15000)
    end
    end
    elseif ((itemcount(nameManaPot) > minManaPot) or (itemcount(nameStrongerHealthPot) > minStrongerHealthPot) or (itemcount(nameHealthPot) > minHealthPot) or ($cap > minCapacity))
    then
    if (getsettings_ib("Settings\\Targeting\\Monsters\\". .MONSTER_NAMES_GET[i].."\\OnlyIfTrapped") == "yes")
    then
    setsettings_ib("Settings\\Targeting\\Monsters\\".. MONSTER_NAMES_SET[i].."\\OnlyIfTrapped", "no")
    end
    end
    end
    elseif ((useForceRefill == false))
    then
    for i = 1, #MONSTER_NAMES_SET
    do
    if (getsettings_ib("Settings\\Targeting\\Monsters\\". .MONSTER_NAMES_GET[i].."\\OnlyIfTrapped") == "yes")
    then
    setsettings_ib("Settings\\Targeting\\Monsters\\".. MONSTER_NAMES_SET[i].."\\OnlyIfTrapped", "no")
    end
    end
    end
    Last edited by selassie; 07-21-2016 at 02:09 PM.

  2. #2
    Wind Tester
    Join Date
    Dec 2013
    Location
    Warsaw, Poland
    Posts
    2,569
    Reputation
    149
    Rep Power
    27
    Sorry, this code is unreadable. Use LUA tags. And never tag more than on staff member in post.

  3. #3
    Banned
    Join Date
    Jun 2014
    Location
    Sweden
    Posts
    626
    Reputation
    29
    Rep Power
    0
    name a lua program then @Imba

  4. #4
    Free User Borges's Avatar
    Join Date
    Feb 2014
    Location
    Brazil
    Posts
    1,468
    Reputation
    205
    Rep Power
    25
    Quote Originally Posted by selassie View Post
    name a lua program then @Imba
    Try this:

    -- Double-click to open edit mode. 
    -- BlakW Scripts - www.Blawk.com

    auto(3000, 5000)

    local MONSTER_NAMES_GET = {"Hydra", "Bog Raider"}
    local MONSTER_NAMES_SET = {"Hydra", "Bog Raider"}

    if (useForceRefill == true) then
    for i = 1, #MONSTER_NAMES_SET do
    if ((itemcount(nameManaPot) <= minManaPot) or (itemcount(nameStrongerHealthPot) <= minStrongerHealthPot) or (itemcount(nameHealthPot) <= minHealthPot) or ($cap <= minCapacity)) then
    if (getsettings_ib("Settings\\Targeting\\Monsters\\". .MONSTER_NAMES_GET[i].."\\OnlyIfTrapped") == "no") then
    setsettings_ib("Settings\\Targeting\\Monsters\\".. MONSTER_NAMES_SET[i].."\\OnlyIfTrapped", "yes")
    settargeting("on")
    if $posz == 10 then
    gotolabel("leave_third_floor")
    wait(15000)
    elseif $posz == 9 then
    gotolabel("leave_second_floor")
    wait(15000)
    elseif $posz == 8 then
    gotolabel("leave_hunt")
    wait(15000)
    end
    end
    elseif ((itemcount(nameManaPot) > minManaPot) or (itemcount(nameStrongerHealthPot) > minStrongerHealthPot) or (itemcount(nameHealthPot) > minHealthPot) or ($cap > minCapacity)) then
    if (getsettings_ib("Settings\\Targeting\\Monsters\\". .MONSTER_NAMES_GET[i].."\\OnlyIfTrapped") == "yes") then
    setsettings_ib("Settings\\Targeting\\Monsters\\".. MONSTER_NAMES_SET[i].."\\OnlyIfTrapped", "no")
    end
    end
    end
    elseif ((useForceRefill == false)) then
    for i = 1, #MONSTER_NAMES_SET do
    if (getsettings_ib("Settings\\Targeting\\Monsters\\". .MONSTER_NAMES_GET[i].."\\OnlyIfTrapped") == "yes") then
    setsettings_ib("Settings\\Targeting\\Monsters\\".. MONSTER_NAMES_SET[i].."\\OnlyIfTrapped", "no")
    end
    end
    end
    Helped you? REP+

  5. #5
    Banned
    Join Date
    Jun 2014
    Location
    Sweden
    Posts
    626
    Reputation
    29
    Rep Power
    0
    Thx i try it now

  6. #6
    Banned
    Join Date
    Jun 2014
    Location
    Sweden
    Posts
    626
    Reputation
    29
    Rep Power
    0
    Now i get this debug @Borges

    error in Persistent script Force Refill:
    [" if (getsettings_ib("Settings\\T..."]:Force Refill:13: ')' expected near '.'

  7. #7
    Wind Tester
    Join Date
    Dec 2013
    Location
    Warsaw, Poland
    Posts
    2,569
    Reputation
    149
    Rep Power
    27
    You bought this script on windbot or is it ibot converted script?

  8. #8
    Banned
    Join Date
    Jun 2014
    Location
    Sweden
    Posts
    626
    Reputation
    29
    Rep Power
    0
    i bought it here from blawk but he is on vacation so i cant get help there

    If someone fix this i rep the shit out off that person =)
    Last edited by selassie; 07-21-2016 at 03:31 PM.

  9. #9
    Wind Tester
    Join Date
    Dec 2013
    Location
    Warsaw, Poland
    Posts
    2,569
    Reputation
    149
    Rep Power
    27
    Can you tell me which script is it?

  10. #10
    Banned
    Join Date
    Jun 2014
    Location
    Sweden
    Posts
    626
    Reputation
    29
    Rep Power
    0
    Ek oramond hydras and bog raider. Should i send you the hole script via mail ? @Imba

 

 

Posting Permissions

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