SRL Archive - RS3 Outdated / Broken Scripts

Advance eating =)


BlueWorld

2009-08-16 03:06:44

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

rogeruk

2009-08-16 03:36:44

Explain more?.

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

BlueWorld

2009-08-16 05:17:41

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

JPHamlett

2009-08-16 05:21:06

u could use itemexist or w/e its called

Sabzi

2009-08-16 05:26:30

Yeah, use ExistsItem and Uptext check.

Something like:
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.

Baked0420

2009-08-16 05:35:07

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.

BlueWorld

2009-08-16 06:17:54

From: Baked0420
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

BlueWorld

2009-08-16 06:20:04

@sabzi so like this? if for pizza?

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

Smarter Child

2009-08-16 06:21:41

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

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

Baked0420

2009-08-16 10:14:36

From: BlueWorld
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 :p

BlueWorld

2009-08-16 10:41:42

baked wanna make tha for me ? xD

Sabzi

2009-08-16 11:49:02

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?

HyperSecret

2009-08-16 11:55:13

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…

BlueWorld

2009-08-18 12:19:58

From: HyperSecret
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

Sabzi

2009-08-18 12:42:18

Read Dusk tutorial about DTMs. You will get it I am sure.
http://www.villavu.com/forum/showthread.php?t=31021&highlight=for+dummies