SRL Archive - OSR Script Requests

OSRS Woodcutting script.


arturiccc

2013-10-06 08:11:37

Name - "nick"Power chopper/Utra log banker. (Something like that).
What does the script do? and Where does it do it? - It chops down trees and banks them, also creator of script might add firemaking. It does at as many locations as possible.
What does the script achieve? - Woodcutting level's and Fire making.
f2p/p2p? any other level / skill / quest requirements? Starting from 1 woodcutting level if possible might start from oaks.
Do you have an account with these requirements you could lend to a dev? - At this time i don't have 2 accounts with members on them.
Difficulty… (Easy/Medium/Hard) - I think it's medium to hard script.
Regards Arturic.
P.S There is no working Woodcutting script any more for OSRS 07 runescape.

Cheddy

2013-10-06 12:01:06

I would happily take this up if someone would tell me how to do ent detection :D I have a working chopper already private but, Ent detection is a nightmare, Pixelshift is the only way to do it and then when a person runs past that triggers it :/

arturiccc

2013-10-07 07:57:26

From: fish1328
I would happily take this up if someone would tell me how to do ent detection :D I have a working chopper already private but, Ent detection is a nightmare, Pixelshift is the only way to do it and then when a person runs past that triggers it :/
It would be cool. You might ask somebody for help.

Flight

2013-10-07 08:44:12

From: fish1328
I would happily take this up if someone would tell me how to do ent detection :D I have a working chopper already private but, Ent detection is a nightmare, Pixelshift is the only way to do it and then when a person runs past that triggers it :/


Yep that's a difficult obstacle. If it were me doing it I would use a combination of two simple detection methods; pixel-shift and uptext.

First check (somehow) the pixelshift of the tree you're currently chopping. A trick you can use here to further the accuracy is finding the pixelshift of only the tree's colors, which would exclude anything else moving in the box area you're monitoring. You can use my PixelshiftTPA function for that: (it's what I use to detect whirlpools)

function getPixelShiftTPA(T: Integer; TPA: TPointArray): Integer;
Var
BMP,BMP2: Integer;
begin
BMP := bitmapFromClient(MSx1,MSy1,MSx2,MSy2);
Wait(T);
BMP2 := bitmapFromClient(MSx1,MSy1,MSx2,MSy2);

Result := calculatePixelShiftTPA(BMP, BMP2, TPA);
freeBitmap(BMP);
freeBitmap(BMP2);
end;

Next, if the pixelshift of that tree is at a certain number then move your mouse to it; if any yellow (NPC) uptext is found then you've got yourself an Ent.

Cheddy

2013-10-08 11:26:16

Thank you so much =) I will quote that you developed it in my script :D

Cheddy

2013-10-08 14:41:36

function getPixelShiftTPA(T: Integer; TPA: TPointArray): Integer;
Var
BMP,BMP2: Integer;
begin
Writeln(Inttostr(MSX1)+','+Inttostr(MSY1)+','+Inttostr(MSX2)+','+Inttostr(MSY2))
BMP := bitmapFromClient(MSX1,MSY1,MSX2,MSY2);
Wait(T);
BMP2 := bitmapFromClient(MSX1,MSY1,MSX2,MSY2);

Result := calculatePixelShiftTPA(BMP, BMP2, TPA);
freeBitmap(BMP);
freeBitmap(BMP2);
end;
I am basically done now, but I can't run as the ent detection you provided and this bit of code brings up
4,4,515,337
Error: Exception: You are accessing an invalid point, (515,337) at bitmap[5] at line 155

maikel233

2013-10-11 05:45:39

From: fish1328
function getPixelShiftTPA(T: Integer; TPA: TPointArray): Integer;
Var
BMP,BMP2: Integer;
begin
Writeln(Inttostr(MSX1)+','+Inttostr(MSY1)+','+Inttostr(MSX2)+','+Inttostr(MSY2))
BMP := bitmapFromClient(MSX1,MSY1,MSX2,MSY2);
Wait(T);
BMP2 := bitmapFromClient(MSX1,MSY1,MSX2,MSY2);

Result := calculatePixelShiftTPA(BMP, BMP2, TPA);
freeBitmap(BMP);
freeBitmap(BMP2);
end;
I am basically done now, but I can't run as the ent detection you provided and this bit of code brings up
4,4,515,337
Error: Exception: You are accessing an invalid point, (515,337) at bitmap[5] at line 155


I cant help you with that but i've had a anti ent detection with jelknab it isn't pixel shift but you can check my script The anti ent detection is working but sometimes it fails, but with some adjustments it can be. fixed.

http://villavu.com/forum/showthread.php?t=102506&p=1232266#post1232266
Line 466 / 482

rj

2013-10-11 06:46:33

From: maikel233
I cant help you with that but i've had a anti ent detection with jelknab it isn't pixel shift but you can check my script The anti ent detection is working but sometimes it fails, but with some adjustments it can be. fixed.

http://villavu.com/forum/showthread.php?t=102506&p=1232266#post1232266
Line 466 / 482


But it has to work 100% of the time :D

I think reflection would come into play here

Cheddy

2013-10-12 08:52:42

But for reflection to work we need detection up and running :/

rj

2013-10-12 10:03:35

From: fish1328
But for reflection to work we need detection up and running :/


Uhh we would be using reflection for the detection you got it backwards

Cheddy

2013-10-12 11:00:23

Yeh sorry. I'd just woken up :-D I'm currently making a modified version of Nesses asm updater so that it fires the cod out to a simba file in a readable format for simba. Ermm. I'll work on npc detection, I think we have all the required hooks. If not, I'll steal them from java hacking and modify the updater to include them next time.