Signup Now
Results 1 to 6 of 6
  1. #1
    Free User
    Join Date
    Mar 2014
    Posts
    27
    Reputation
    12
    Rep Power
    0

    [Not a Bug] Function "needresupply()" not working

    1. What OS you are at?
    Win 10 Pro

    2. Real PC or VPS?
    Pc

    3. Using WindAddons? Which version?
    Yes, Beta 5

    4. Which version of WindBot?
    Beta 34

    5. Which version of Game Client?
    Lastest

    6. Do you have a Dedicated Graphics Card?
    Yes

    7. Detailed description of the problem.
    I was hunting today while playing another game and my character died in a sutiation where it shouldn't have, I didn't realize the reason at the very moment but I was botting now again and I wanted to leave the cave. Instead of chosing the waypoint and setting it up, I closed my supplies backpack, which would trigger my Resupply condition which is:
    PHP Code:
    -- Refiller

    auto
    (1000)
    local Cap 0
    if needresupply(Capthen
        
    if $posz == 11 and $wptsection == "Hunting" then    
            setsetting
    ('Targeting/Enabled''yes')
            
    gotolabel("Leave""Travelling")
            
    wait(1000)
        
    end
    end 
    The condition(no supplies visible) were met, but it did not changed the waypoint which made me die out of supplies not leaving the cave.
    I changed it to a itemcount() thing but needresupply() was easier :P

    8. If applicable, a GIF of the action hosted on imgur.com.

    9. Debug Log.

    10. Comments.
    The function was working fine in tibia 10, used this script for more than 100 hours, didn't edit it and it did not trigger.
    Last edited by edurvd; 12-18-2016 at 01:22 AM.

  2. #2

  3. #3
    Wind Tester
    Join Date
    Dec 2013
    Location
    Warsaw, Poland
    Posts
    2,569
    Reputation
    149
    Rep Power
    27
    Closing backpack won't work, because in tibia11 healer/supplies are using servercount() instead of itemcount(). This means it will count all supplies in your inventory, even if you don't see them.

  4. #4
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,437
    Reputation
    309
    Rep Power
    28
    Quote Originally Posted by Imba View Post
    Closing backpack won't work, because in tibia11 healer/supplies are using servercount() instead of itemcount(). This means it will count all supplies in your inventory, even if you don't see them.
    @Lucas Terra, care to confirm this information?

  5. #5
    Administrator Lucas Terra's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    2,200
    Reputation
    180
    Rep Power
    10
    That's true indeed, supply counting and healer uses servercount. But that makes no sense to have your character dying because of low supplies, considering the bot knew the amount of supplies you had.

    Unless you were counting on this condition to force your character to go resupply, which is also bad. If you wanna force resupplying, just force the bot to go to the "gotocity" waypoint[ section].

  6. #6
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,437
    Reputation
    309
    Rep Power
    28
    Right. This is a breaking change but I agree it isn't a bug per se and shouldn't be changed.

    Making this as not a bug.

 

 

Posting Permissions

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