SRL Archive - RS3 Outdated / Broken Scripts

Gucci's Pot Of Flour Buyer


Gucci

2012-03-05 22:07:39

Gucci's Pot Of Flour Buyer

Profit 200k - 250k per hour

I saw this as a request and decided to quickly make one for the public to use, since I made it very quickly it's still in beta and will have bugs. Post suggestions and any bugs you encounter other than that enjoy making money. :D

Instructions
- Start at the shop with wyden visible and the door to the shop open.

Features:
- SPS Walking
- DTM's for finding flour in shop.


To Come:
-Progress Report.

Change Log:

First Version
-Initial release as a BETA.

tehq

2012-03-05 22:17:44

Looks like another nice release + requested! I'd recommend cleaning up the standards (especially the function walking) and maybe creating TBoxes. Also, adding gp/hour to OP would be helpful :)

E: Two releases in <10 mins! ;)

Gucci

2012-03-05 22:20:33

From: tehq
Looks like another nice release + requested! I'd recommend cleaning up the standards (especially the function walking) and maybe creating TBoxes. Also, adding gp/hour to OP would be helpful :)


Thanks bro. Mhmmm never thought about TBoxes and it's like 400gp profit per pot. And yeah I'll get to the standards :D

Edit: yeah I had them laying around so I released them :D
Edit2: Took the profit the guy who made the request stated.

Nebula

2012-03-05 22:44:57

You might want to add support for the door to the food shop.

Gucci

2012-03-05 22:47:19

From: Nebula
You might want to add support for the door to the food shop.


Yeah I'm working on a failsafe for that now, I'll see how it goes.
E: Well a bit more complicated than i thought…….

illester

2012-03-05 23:00:36

reserved for testing

tehq

2012-03-05 23:00:42

From: Gucci
Yeah I'm working on a failsafe for that now, I'll see how it goes.
E: Well a bit more complicated than i thought…….


Try making a DTM of the door closed and then open and repeat opening the closed DTM until you find the open DTM :)

E :Feel free to use this code
Procedure OpenDoor;

begin
DoorClosed:= DTMFromString('');
SetAngle(SRL_ANGLE_HIGH);
Found :=0;
begin

repeat
Inc(Found);
Wait(RandomRange(480,530));
if FindDTMRotatedSE(DoorClosed, x, y, MSX1, MSY1, MSX2, MSY2, -Pi, Pi, Pi/30, aFound) then
MMouse(x, y, 1, 1);
until (IsUpText('pen') or (Found=5));

begin
if IsUpText('pen') then
Mouse(x, y, 1, 1, mouse_right);
Wait(RandomRange(480,530));
ChooseOption('pen');
Writeln('Opening door');
Wait(RandomRange(1500,1600));
end;

begin
if IsUptext('lose') then
writeln('Door opened');
end;

end;
FreeDTM(DoorClosed);
WriteLn( '' +TimeRunning);
end;

Gucci

2012-03-05 23:10:13

From: tehq
Try making a DTM of the door closed and then open and repeat opening the closed DTM until you find the open DTM :)


Good idea I'll take a look into that once I finish my planker

E: Oh wow thanks tehq saved me some time :D I'll give credits of course

nuncatsji

2012-03-06 02:58:16

doesn't work a bit just running not clicking wyden not depositing nothing

Gucci

2012-03-06 09:23:08

oops missed a few loops give it a shot now let me know how it goes sorry

nuncatsji

2012-03-06 09:48:54

still nothing, just walking from shop to deposit box and back, failing to:
- trade wyden
- open deposit box

tehq

2012-03-06 09:54:57

From: nuncatsji
still nothing, just walking from shop to deposit box and back, failing to:
- trade wyden
- open deposit box


The problem is right here:
begin
if (FindDtmRotated(ShopFlour, x, y, MSX1, MSY1, MSX2, MSY2, -Pi/4, Pi/4, Pi/60, aFound)) then
Mouse(x, y, 0, 0, False); //Bad DTM or ChooseOption
ChooseOption('buy 500')
end;

You could also change FindObjCustoms to TPAs or DTMs and could change this section to:
  if (not InvFull) then
begin
if FindObjCustom(x, y, ['alk', 'wydin'], [ 8353134, 7910614], 5) then
Mouse(x, y, 0, 0, False);
ChooseOption('rade');
end;

Gucci

2012-03-06 10:20:52

Wow I'm derping so hard this is actually just like my flax collector I was trying to do a quick fix in like 2min since I have to go to school now. Well I guess it is a BETA ;)

E: Thanks alot teh I don't have alot of time lately as school and mai ly calculus is extremely time consuming and everything your doing is really appreciatd :)

Luniz

2012-03-06 10:50:49

Great idea this script!

Encountered a bug:
Started next to wydin with the door open. Bot walks to entrana monks, then goes to the karamja sailer. After that it realises it has to buy pots first, so it goes back to wydin. After that it just repeats itself… :P

Gucci

2012-03-06 11:37:34

Yeah I know I'll fix when I get home :)

Luniz

2012-03-06 16:41:20

Can you make it support Frenita's Cookery Shop in Yanille?
It's soooo much closer to the bank than the shop in port sarim is.
edit: lol just found out there's a bank deposit box near the monks of entrana >_>

Gucci

2012-03-06 17:21:37

Yeah that's where the script goes. For yanille I'll add support once out of beta.

Edit: Success in finding Wydin and not continuously walking back and forth from Wydin to box success with buying flour I'll release now and gimme some feedback?

@Teh I found that it worked best with FindObjCustom for some reason it didn't work at all with TPA's like couldn't find him even tho colors were good. But works somewhat. STILL IN BETA.

rowan131

2012-03-10 06:45:56

Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Opening door
1 Minutes and 40 Seconds
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Opening door
2 Minutes and 22 Seconds

tehq

2012-03-10 07:59:04

From: rowan131
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Opening door
1 Minutes and 40 Seconds


Did you watch this? Did it happen while opening the door or after? It could just be the DTM of the door

Gucci

2012-03-10 12:34:06

Seems like it's looking outside of the mainscreen for the door.

@Teh when I made the DTM it printed the X on the door fine

I'll take a look in a bit

tehq

2012-03-10 12:37:12

From: Gucci
Seems like it's looking outside of the mainscreen for the door.

@Teh when I made the DTM it printed the X on the door fine

I'll take a look in a bit


Did you try finding the DTM from different positions? It looks like you used a lot of points and may only work from the one spot

Joe

2012-03-10 13:50:26

Next update suggestion: F2P support.

Gucci

2012-03-10 13:53:51

From: JOEbot
Next update suggestion: F2P support.


is it any different?

Gl3nn IV

2012-03-10 16:14:04

From: Gucci
is it any different?


No, if using the deposit box that is. ( im guessing thats where it banks? )

Gucci

2012-03-10 16:59:48

Yeah it uses the deposit box

hineon

2012-04-01 21:07:50

Noob question here but… how do I get to this wyden or wydin place? Doesn't come up on the world map
EDIT: Google has led me to Karajama Island… I started the bot and it's trying to run into the ocean
EDIT: Further googling has lead me to where I need to be… hopefully. Do I need to get a job there?
EDIT: I give up. Bot started, but it right clicked wydin and traded but immediatly closed the window and ran off?

elvenom

2012-04-05 16:25:36

Bot not working…

Failedpure

2012-04-17 18:34:19

From: elvenom
Bot not working…


It's not a bot, it's a script. It would be a whole lot more helpful if you posted what was happening.

Gucci

2012-04-17 18:51:44

Well the shop screens have been updated so that broke it

Clawmuk

2012-04-18 15:15:42

I've checked the script and the problem lies with the following function:

FindObjCustom(x, y, ['ot', 'lour'], [3693185, 3956616, 3627391], 5)


The x and y int's are negative values and I don't seem to understand why.

Oxygen

2012-04-18 16:29:45

Why not use ODTM?

~Gasp

Gucci

2012-04-18 16:39:34

From: Clawmuk
I've checked the script and the problem lies with the following function:



The x and y int's are negative values and I don't seem to understand why.


Neither do I I'll be changing thinngs soon

Edit: Updated try now

Clawmuk

2012-04-19 10:10:23

Still not working, your

FindDTM(Flour, x, y, MSX1, MSY1, MSX2, MSY2)


returns FALSE, meaning he did not find

Flour := DTMFromString('mLgAAAHicY2JgYPBiZGAIAuLTQPZBIK4NN2foaWtjgAFGKGZgAACGowTS');


EDIT: FIXED SHOP

Change the flour dtm to:

Flour := DTMFromString('mrAAAAHic42BgYNCEYnMg1oViWSg2BuIoKA4H4mQoBvEDgdgXiPN9DcCYgYGJIdZRA4w74q3BfBD+DyRBGBdgJIBhAABXBwq0');

Gucci

2012-04-22 16:09:26

Awesome the DTM probably just needed some tolerance is the script working well with the changed DTM?

SlaughterParty

2012-06-12 15:59:53

Does it work?

Gucci

2012-06-12 16:06:47

From: SlaughterParty
Does it work?


Give it a try with the DTM provided a few posts above, if it doesn't then i'll fix it once my finals are over

Rouids

2012-06-12 16:38:03

Not working for me, it trades Wydin, but right as it opens the screen to trade, it clicks elsewhere on the minimap, and repeats, going back to wydin, clicking minimap, over and over… I wonder if clawmuk's DTM is similar to the colours in the minimap perhaps? Because that's the DTM I'm using :/

Gucci

2012-06-14 00:46:04

Updated went and remade the DTM for the flour and added a DTM failsafe for finding the deposit box

SlaughterParty

2012-06-14 07:32:19

I don't get it how this can be 200k-250k per hour as it takes time to buy them, go back to deposit and runa gain to the guy who sells them and even worse that he only has 500 pot of flours and it takes 40secs before a new pot of flour respawns….? Please explain …

Gucci

2012-06-14 09:39:14

From: SlaughterParty
I don't get it how this can be 200k-250k per hour as it takes time to buy them, go back to deposit and runa gain to the guy who sells them and even worse that he only has 500 pot of flours and it takes 40secs before a new pot of flour respawns….? Please explain …


The pots of flour used to be worth quite a bit and only cost 14gp from the shop now the profit isn't as great but there's still some

SwagDaddy

2012-06-14 10:35:02

From: Gucci
The pots of flour used to be worth quite a bit and only cost 14gp from the shop now the profit isn't as great but there's still some


Yeah they were worth a few hundred gp making profit pretty amazing a while ago, but of course they crashed ;)

VastlySuperior

2012-07-03 03:34:02

Hi Gucci

I tried this script and evrything works, except for the following:

1)When opening for a trade, it opens the trade window but buys nothing.
2)When opening the depositbox, it banks nothing.

Can you maybe put in some loop to check at the shop if your inventory is full, if not full to repeat the buy, the same with the bank drop, if the inventory is full to once more try and empty the inventory into bank until succesful. In both methods is it possible not to continue onto walking if the inventory is not full or with bank not empty, as it starts to walk even if it is full by the depositbox or empty by the shop

Thanks a lot Gucci.

Ps. I tried to make the changes but as I only started scripting a few days ago, I don`t seem to be able to change these values as yet

Here is my effort:
procedure Bank;
begin
if (InvFull) then
SPS_WalkPath(ToBox);
begin
Repeat
if FindDTMRotated(DBox, x, y, MSX1, MSY1, MSX2, MSY2, -Pi/4, Pi/4, Pi/60, aFound) or FindObjCustom(x, y, ['eposit', 'box', 'ank'], [5859188, 3687501], 5) then
ClickMouse2(True);
DepositAll;
Until (not(InvFull))
end;
end;


procedure BuyFlour;
begin
repeat
if (FindDTM(Flour, x, y, MSX1, MSY1, MSX2, MSY2)) or (FindObjCustom(x, y, ['ot', 'lour'], [ 3693185, 3956616, 3627391], 5)) then
ClickMouse2(mouse_right);
ChooseOption('500');
Mouse(499, 20, 0, 0, True);
IncEx(FlourBought, 28);
Until (InvFull)
end;


Can you tell me what I did wrong?

How does the empty of backpack work, with right click or clicking on Empty backpack to Bank?

Gucci

2012-07-07 12:10:46

Hmmm the DepositAll; function must not work there and its odd that the flour doesn't buy was working well

slayer720

2012-07-09 05:51:25

hey could you please help me after i open the script it says
unable to open
folder: c\local disk\users\hp\appdata\microsoft\windows\ internet
temporarlly folders\low\content gucci's buyer
could you please help if know a sloution

Gucci

2012-07-11 00:10:59

From: slayer720
hey could you please help me after i open the script it says
unable to open
folder: c\local disk\users\hp\appdata\microsoft\windows\ internet
temporarlly folders\low\content gucci's buyer
could you please help if know a sloution


Doesn't seem like an issue with the script

ediremix

2012-09-07 12:03:26

Suggestions:
-Make it teleport to Daemonheim for banking and then Lodestone teleport back to Wydin's
-Multiple Account Support (longshot) for when the flour runs out
-Change "DepositAll" with "QuickDeposit(SRL_DEPOSIT_ALL)". Works better

Gucci

2012-09-07 14:52:44

From: ediremix
Suggestions:
-Make it teleport to Daemonheim for banking and then Lodestone teleport back to Wydin's
-Multiple Account Support (longshot) for when the flour runs out
-Change "DepositAll" with "QuickDeposit(SRL_DEPOSIT_ALL)". Works better


I'll see if I get a chance I quite RS but might just fix this cause it's F2P. Wow QuickDeposit, wasn't around when I was actively scripting

metalwii

2012-09-07 18:57:59

[Error] C:\Simba\Includes\srl/srl/misc/smart.simba(46:19): Invalid number of parameters at line 45
Compiling failed.

print

2012-09-07 18:59:39

prices crashedddd like harddddd

enraged94

2012-09-17 18:48:03

still work??

the merr

2012-12-27 22:42:35

wheres the download link? lol

Gucci

2012-12-27 22:54:52

From: the merr
wheres the download link? lol


The script is broken and would need to be uodated, I'll probably fix it today or tomorrow

the merr

2012-12-27 23:19:29

thanks bro! new to forums but so far the community here has been really nice