XenoBot Forums - Powered by vBulletin

User Tag List

Page 6 of 7 FirstFirst ... 4567 LastLast
Results 51 to 60 of 66

Thread: Soft boots gone

  1. #51
    Senior Member
    Join Date
    Jul 2014
    Posts
    788
    Mentioned
    62 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by DarkstaR View Post
    Yeah, the vial dropper can be dropping soft boots if it tries to throw out the same pile many times. What will happen is it will throw the same pile out more than once, and when the pile goes away from the first throw, the second throw will throw whatever took its place - in this case, your soft boots. I have checks in the scripting engine to make sure I never throw out anything that a script doesn't tell me to: I check how many items are in the container they are throwing from as soon as they throw something, and the throw gets queued up and will be executed within 10-100 milliseconds (depending on what other actions the bot is trying to do). When I am finally able to throw, I only do so if the container has the same amount of items as it originally had. This means that it's impossible for the bot to throw softs unless the script tells it to throw softs.

    This is best explained with code:

    c++ code:

    int XenoScript::luaContainerMoveToGround(lua_State *L)
    {
    int count = -1;
    XenoScript* script = XenoScript::GetCurrentScript(L);
    if (lua_gettop(L) == 6)
    count = XenoScript::GetIntegerArg(L, 6);
    else if (!XenoScript::VerifyArgs(L, script, "luaContainerMoveToGround", 5))
    return 1;


    int index = XenoScript::GetIntegerArg(L, 1);
    int spot = XenoScript::GetIntegerArg(L, 2);
    int x = XenoScript::GetIntegerArg(L, 3);
    int y = XenoScript::GetIntegerArg(L, 4);
    int z = XenoScript::GetIntegerArg(L, 5);


    script->beginOperation();
    if (!XenoScript::isContainerValid(index))
    return XenoScript::PushActionResult(L, XB_INVALID_ACTION);


    int beginningCount = tibiaClient::Containers->getContainer(index)->itemCount;
    script->endOperation();


    int loops = 0;
    XENO_ACTION_RESULT ret = XB_ACTION_COOLDOWN;
    while (true)
    {
    script->beginOperation();
    if (XenoScript::isContainerValid(index))
    {
    if (beginningCount != tibiaClient::Containers->getContainer(index)->itemCount)
    ret = XB_INVALID_ACTION;
    else
    ret = tibiaClient::Self->MoveItemFromContainerToGround(index, spot, x, y, z, count);
    }
    else
    ret = XB_INVALID_ACTION;
    script->endOperation();


    if (XenoScript::CheckActionSuccess<10, 10>(ret, loops++)) break;
    }
    return XenoScript::PushActionResult(L, ret);
    }
    AOKSPAOkspoaKS +1. DarkstaR - Others (1 - 0)

  2. #52
    Senior Member svennn's Avatar
    Join Date
    Oct 2013
    Location
    Sweden
    Posts
    458
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by DarkstaR View Post
    And yet "Looter tab in the console" is still closer to "Looter tab" then it is to "Tools>bp info".
    Yeah well the reason I thought you meant "Tools>BP Info" was because of
    This part: "it shows text next to each backpack that displays their index"

    And while that's not exactly what "Tools>BP Info" does, that's what I thought you meant (simply because of the fact that I have never noticed that the backpack indexes show up when you open the looter tab).
    When I asked for a "clearer" explanation what I expected was the following:

    - Open the looter tab. Screencapture the entire screen.
    Just telling me what I just wrote would be so much simpler.

    EDIT: Trying to fix a screen capture program. Might have it fixed by tomorrow.
    Last edited by svennn; 12-18-2014 at 08:57 PM.

    #World-Traded 5kk with PunktG
    #Currently Selling Several Accounts on Aurora

  3. #53
    XenoBot Developer DarkstaR's Avatar
    Join Date
    Dec 2010
    Posts
    6,104
    Mentioned
    1326 Post(s)
    Tagged
    16 Thread(s)
    Quote Originally Posted by svennn View Post
    - Open the looter tab. Screencapture the entire screen.
    Just telling me what I just wrote would be so much simpler.
    And, yet, I could still bitch about this if i felt like being as nit-picky as you.

  4. #54
    Senior Member svennn's Avatar
    Join Date
    Oct 2013
    Location
    Sweden
    Posts
    458
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by DarkstaR View Post
    And, yet, I could still bitch about this if i felt like being as nit-picky as you.
    Either way it's more easily understood.

    #World-Traded 5kk with PunktG
    #Currently Selling Several Accounts on Aurora

  5. #55
    XenoBot Developer DarkstaR's Avatar
    Join Date
    Dec 2010
    Posts
    6,104
    Mentioned
    1326 Post(s)
    Tagged
    16 Thread(s)
    Quote Originally Posted by svennn View Post
    Either way it's more easily understood.
    Depends who you are.

    Mine says the same exact thing, but uses added verbosity to explain WHY it's being done. Yours just says "hey, do this". Just because you don't use verbosity to effectively convey complete ideas, and prefer to give or see empty commands, doesn't mean that I am the same way.

  6. #56
    Senior Member svennn's Avatar
    Join Date
    Oct 2013
    Location
    Sweden
    Posts
    458
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by DarkstaR View Post
    Depends who you are.

    Mine says the same exact thing, but uses added verbosity to explain WHY it's being done. Yours just says "hey, do this". Just because you don't use verbosity to effectively convey complete ideas, and prefer to give or see empty commands, doesn't mean that I am the same way.
    I agree. Normally i'd like added verbosity, but in this case it just confused me.
    tl;dr: Instructions weren't clear enough. Got my dick caught in the ceiling fan.

    #World-Traded 5kk with PunktG
    #Currently Selling Several Accounts on Aurora

  7. #57
    Banned
    Join Date
    Dec 2013
    Posts
    1,092
    Mentioned
    113 Post(s)
    Tagged
    0 Thread(s)
    Kiss and make up pls

    Too much drama over looter :///

  8. #58
    wojewodzki12's Avatar
    Join Date
    Mar 2014
    Posts
    123
    Mentioned
    12 Post(s)
    Tagged
    1 Thread(s)
    @DarkstaR i have the same problem. I dont use vial drop but i know what's the reason. I bot on hydras and i think that i just loot boh at the same time when i had to change softs>boh. Bot changed it but with the bohs in corpse, but with those in bp

  9. #59
    Moderator Nakuu's Avatar
    Join Date
    Feb 2013
    Location
    EU
    Posts
    5,194
    Mentioned
    642 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by wojewodzki12 View Post
    @DarkstaR i have the same problem. I dont use vial drop but i know what's the reason. I bot on hydras and i think that i just loot boh at the same time when i had to change softs>boh. Bot changed it but with the bohs in corpse, but with those in bp
    It's script's issue then.

  10. #60
    wojewodzki12's Avatar
    Join Date
    Mar 2014
    Posts
    123
    Mentioned
    12 Post(s)
    Tagged
    1 Thread(s)
    script is simply like life ring script, dont think so thats the problem

Posting Permissions

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