SRL Archive - First Scripts

BAM's Arrow Shaft Fletcher (100-150k gp/hour)


bam92992

2012-03-07 23:46:02

so yeah here's my first script. it doesn't really do anything important, it only fletches the logs into shafts, but i have to start somewhere.

i plan on making this into a full blown fletcher in the near future though, so then it'll have a purpose lol.

Instructions:
- I have not bothered adding login to this as i always login manually with scripts, so you will have to as well. ^.^
- Make sure you are near the Soulwars bank chest.
- Make sure your inventory is empty at the start otherwise it will not run.
- Make sure you have a knife in your toolbelt.
- Don't buy logs for a crazy high price.
- Sell shafts 2-3 gp above mid, they will sell.

>>>> User Inputs:
>>>>> Loads = 32; <— number of loads. (Amount of logs/28) rounded DOWN.
>>>>> LogCost = 310; <— cost per log, today you can buy for 305-310. disregard if you don't care about the progress report.
>>>>> ShaftCost = 26; <— price you sell shafts at, today you can sell for 26-30. disregard if you don't care about the progress report.

the only proggy i have from it, running now.

Bam's Fletcher
Time Running: 1:0:24 <<< why is there only 1 zero for minutes?
Arrow Shafts Made: 23940
Exp Gained: 7980
GP Earned: 127680

Bam's Fletcher
Time Running: 4:58:52
Arrow Shafts Made: 119280
Exp Gained: 39760
GP Earned: 636160

=-=-=-=-=-=-=-=-=-=-= Bam's Arrow Flecther =-=-=-=-=-=-=-=-=-=-=
| Time Running: 1 Hour(s) 9 minute(s) and 2 second(s).
| Arrow Shafts Made: 26880
| Exp Gained: 8960
| Exp/Hour: 7787
| GP Earned: 200704
| GP/Hour: 174440 <--- :)
=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

should get around 120-150k gp/hour, but only like 9k exp/hour so it is not effective for training.

few problems
-progress report is off by about 1 round i think. FIXED
-also i'm not sure if my antiban is alright or not. i don't know if it's too little or too much or just right. i threw it in there though.


feedback appreciated.




LINK TO BE ADDED SOON

rice

2012-03-08 22:01:23

looking forward to seeing your script

bam92992

2012-03-09 20:15:53

script posted!

i'll post a progress report in a few, only been running 6, going on 7 minutes, but as my other proggys showed, its capable of 5+ hours.

Nebula

2012-03-09 20:19:06

I don't see a script.

bam92992

2012-03-09 20:22:04

From: Nebula
I don't see a script.


nowwwww look again ^.^ sorry about that


also, im not patient enough to wait around, here's the current proggy.

=-=-=-=-=-=-=-=-=-=-= Bam's Arrow Flecther =-=-=-=-=-=-=-=-=-=-=
| Time Running: 0 Hour(s) 16 minute(s) and 15 second(s).
| Arrow Shafts Made: 6300
| Exp Gained: 2100
| Exp/Hour: 7753
| GP Earned: 47040
| GP/Hour: 173686
=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

nice gp/hour with current prices imo.

Nebula

2012-03-09 20:37:54

Hmm looks really nice for a first script. Here's some things to help you along:

 if FindDTM(Logs,x,y,MBX1,MBy1,MBX2,MBY2) then
begin
Writeln('>> Withdrawing logs.')
Mouse(x,y,1,1,false);
The Mouse randomness should probably be increased a bit. Since FindDTM finds the main point of your DTM, having your script click in a 3x3 box probably doesn't look very human-like considering logs are at-least 9x9 Pixels.

Wait(RandomRange(100, 150));
so you don't have to do Wait(100 + Random(50));

Also, I'm sure the script speed could increase by having the script repeat the anti-ban (With a shorter wait time at the beginning and lower frequency) until (not FindDTM(Logs, x, y, MBX1, MBY1, MBX2, MBY2))

Other than the less-than-perfect standards (which is expected in most first scripts), it looks nice. If you'd like I'll go through and fix all your standard issues to help you learn.

bam92992

2012-03-09 20:57:03

From: Nebula
Hmm looks really nice for a first script. Here's some things to help you along:

 if FindDTM(Logs,x,y,MBX1,MBy1,MBX2,MBY2) then
begin
Writeln('>> Withdrawing logs.')
Mouse(x,y,1,1,false);
The Mouse randomness should probably be increased a bit. Since FindDTM finds the main point of your DTM, having your script click in a 3x3 box probably doesn't look very human-like considering logs are at-least 9x9 Pixels.

Wait(RandomRange(100, 150));
so you don't have to do Wait(100 + Random(50));

Also, I'm sure the script speed could increase by having the script repeat the anti-ban (With a shorter wait time at the beginning and lower frequency) until (not FindDTM(Logs, x, y, MBX1, MBY1, MBX2, MBY2))

Other than the less-than-perfect standards (which is expected in most first scripts), it looks nice. If you'd like I'll go through and fix all your standard issues to help you learn.



thanks neb, this was what i was looking for.

- i'll fix the randomness a bit.
- ah i knew there was something like that, never bothered to search for it though. thanks.
- yeah my antiban was thrown together at the last second after being told how important it is. i'd expect there to be some error in it. esspecially with the bored human. it goes over 2-3 seconds and slows it down by a hair.

as for the standards, you don't have to go through all of that for me… i suppose ill go through it and try fixing it up a bit. i tried to keep it neat, but when i kept adding and subtracting from it, the standards went to shit. theres a thread somewhere explaining stanards right? i'll check that out.

Last Legend

2012-03-10 16:09:38

Seems to be working nicely, only thing is as you two have been discussing it is a bit too bot like so I'm hesitant to run it for very long ;) Good work.
Cheers,
Anubis

bam92992

2012-03-10 17:44:21

From: TheAnubis
Seems to be working nicely, only thing is as you two have been discussing it is a bit too bot like so I'm hesitant to run it for very long ;) Good work.
Cheers,
Anubis

do you have any suggestions to make it less bot like? i changed the randomness around a bit, added some little things here and there so i think it should be fine unless someone brings something major to my attention.

also, thanks for trying it out ;P

Last Legend

2012-03-14 18:40:35

Randomness always helps make it less botlike, different methods of moving the mouse other than mmouse is always great (just a hint for future scripting, not exactly this script), adding random delays within some processes or throwing that in a more extensive antiban. Just small things like that, nothing too hard and nothing you aren't capable of if you made this :)
Anubis