Results 1 to 15 of 15

Thread: Advance eating =)

  1. #1
    Join Date
    Aug 2007
    Posts
    328
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Advance eating =)

    I would like a function tahe would eat food like, pies, pizza, and cakes because they take more than one try to eat all its better and i use pizzas ~thanks in advance

  2. #2
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Explain more?.

    Do you mean to do the combo eating?. Eg. Anchovie Pizza + Swordfish ?

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  3. #3
    Join Date
    Aug 2007
    Posts
    328
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No not combo, just able to eat pizza for example
    you have a full inventory and it end ALL of a pizza first before moving on

  4. #4
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    u could use itemexist or w/e its called

  5. #5
    Join Date
    Feb 2009
    Location
    Hungary (GMT + 1)
    Posts
    1,774
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yeah, use ExistsItem and Uptext check.

    Something like:
    SCAR Code:
    for i := 1 to 28 do
    begin
      if ExistsItem(i) then
      begin
        InvMouse(i, 3);
        if WaitUptext('at', 500) then
        begin
          GetMousePos(x, y);
          Mouse(x, y, 0, 0, True);
        end;
      end;
    end;

    It's far not complete but you get the idea from it.

  6. #6
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    or just eat whole pizzas at a time, have the script move the mouse to it, click it, wait a little bit, then click it again, you don't really need an extra function just to click the pizza more then once.

  7. #7
    Join Date
    Aug 2007
    Posts
    328
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Baked0420 View Post
    or just eat whole pizzas at a time, have the script move the mouse to it, click it, wait a little bit, then click it again, you don't really need an extra function just to click the pizza more then once.
    so your saying leave the mouse there? click pizza>wait till need more hp> then click again? how would you keep on fighting then? O_o

  8. #8
    Join Date
    Aug 2007
    Posts
    328
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    @sabzi so like this? if for pizza?

    SCAR Code:
    for i := 1 to 28 do
    begin
      if Food(i) then
      begin
        InvMouse(i, 3);
        if WaitUptext('izza', 500) then
        begin
          GetMousePos(x, y);
          Mouse(x, y, 0, 0, True);
        end;
      end;
    end;
    Im not a scripter so O-o

  9. #9
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    @BlueWorld - That's right, but add more randomness to mouse, so:

    Mouse(x, y, 3, 3, true);

  10. #10
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    Quote Originally Posted by BlueWorld View Post
    so your saying leave the mouse there? click pizza>wait till need more hp> then click again? how would you keep on fighting then? O_o
    well, if you have enough hp, you can just wait till you need to eat it twice, but nevermind, if you plan on eating half, then eating half later you can't do that, or what you CAN do is, click the pizza to eat it, check if you still have the uptext of the pizza (you should, since the inventory slots for runescape are within certain coords, and not just where the item is) and if you still have the uptext, do GetMousePos(HalfPizzaX, HalfPizzaY), then later call, MMouse(HalfPizzaX, HalfPizzaY, 3, 3);, and then you are back at the pizza, that's the cheap way out, you could just make a dtm of the whole pizza and half pizza though, that's the uncheap way out

  11. #11
    Join Date
    Aug 2007
    Posts
    328
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    baked wanna make tha for me ? xD

  12. #12
    Join Date
    Feb 2009
    Location
    Hungary (GMT + 1)
    Posts
    1,774
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    for i := 1 to 28 do  // We go through the inventory slots.
    begin
      if ExistsItem(i) then  // If we don't find anything in the inventory slot then we move on.
      begin                  //pls note that ExistsItem is an SRL function.
        InvMouse(i, 3);  // We move the mouse to the inv slot, with randomness already!
        if WaitUptext('at', 500) then   // So let's see what we got, food that we can eat (I use uptext 'at')
        begin                                 //or something else. If food then click it.
          GetMousePos(x, y);   //Where is our Mouse?(which got already randomness, again)
          Mouse(x, y, 0, 0, True);  // We click the food.
        end;
      end;
    end;

    I will comment it for you(and for others) so you can understand.
    Call this after a hp check procedure so you eat the whole pizzas/cakes.
    Or do you need help with the whole eating? From the hp check?

  13. #13
    Join Date
    Jun 2007
    Location
    La Mirada, CA
    Posts
    2,484
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    make dtms of both a full pizza and a half pizza, have it first check for half pizzas in the inventory and if it finds it then have it click the half pizza. If not half pizza is found then have it move onto a whole pizza and click the next whole pizza...

    "Failure is the opportunity to begin again more intelligently" (Henry Ford)


  14. #14
    Join Date
    Aug 2007
    Posts
    328
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by HyperSecret View Post
    make dtms of both a full pizza and a half pizza, have it first check for half pizzas in the inventory and if it finds it then have it click the half pizza. If not half pizza is found then have it move onto a whole pizza and click the next whole pizza...

    DTM's are one thing i have never gotten =( but thats the idea exactly

  15. #15
    Join Date
    Feb 2009
    Location
    Hungary (GMT + 1)
    Posts
    1,774
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Read Dusk tutorial about DTMs. You will get it I am sure.
    http://www.villavu.com/forum/showthr...ht=for+dummies

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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