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
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
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 - !!
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
u could use itemexist or w/e its called

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.
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.
@sabzi so like this? if for pizza?
Im not a scripter so O-oSCAR 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;
@BlueWorld - That's right, but add more randomness to mouse, so:
Mouse(x, y, 3, 3, true);
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![]()
baked wanna make tha for me ? xD

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?
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)

Read Dusk tutorial about DTMs. You will get it I am sure.
http://www.villavu.com/forum/showthr...ht=for+dummies
There are currently 1 users browsing this thread. (0 members and 1 guests)