SRL Archive - First Scripts

My very first script(willow burner)


mariofan12

2008-08-12 01:26:06

Edit: making a new thread!
find it here: http://www.villavu.com/forum/showthread.php?t=35157

Blumblebee

2008-08-12 02:40:07

it looks good if its just a part that you want to show and get feedback on, however might i suggest that you use DTM's instead of bitmaps, they're easier and require less memory(I think I'm not 100% sure).
Other than that it looks alright :)
-Blumblebee

Hobbit

2008-08-12 02:54:26

DTMs are also more reliable.
And you don't need large amounts of something for a bitmap. Just a easily distinguishable part.
But its a good start!

Flame

2008-08-15 04:29:11

Works like a charm to me; thank you very much; good luck on your next release.

If I find any bug or something I'll be more than glad to post it here ^^

thanks. (yay finaly a willow burner :D)

mariofan12

2008-08-15 11:40:29

alright, i'll try using DTM's

Also, don't use this on your main, because it has no antiban!

EDIT: added antiban and anti randoms, is using dtms, and auto login.

Griff

2008-08-16 15:14:47

left your username ans password in the script! I changed it, and im pming you with the new password.
I might as well help you out with the script, too….
First off congrats on using dtms in your very first sciprt. Thts impressive.
For a burner, all i can really say is i great antiban and antirandom, and a bunch of failsafes.

Good luck scripting!

mariofan12

2008-08-17 02:14:31

well, for the next update, I'm going to throw in walking(and hopfully banking).
But I have a question, which is safer for walking, radial walking or DDTMs? I will can learn both so that's not a problem.

mariofan12

2008-08-21 13:57:07

bump, I would like some insight

orange

2008-08-21 16:27:11

From: mariofan12
well, for the next update, I'm going to throw in walking(and hopfully banking).
But I have a question, which is safer for walking, radial walking or DDTMs? I will can learn both so that's not a problem.


Reflection. :P

Here are some guides that i found useful, hopefully you will too. :)
MasterKill's "How to set up reflection"

http://www.villavu.com/forum/showthread.php?t=33416?t=36169


Timer's "Using reflection!"

http://www.villavu.com/forum/showthread.php?t=33551

mariofan12

2008-08-22 01:25:43

I'm probably going to use DDTMs, reflection is too advanced for me…

boss01

2008-08-22 05:21:05

From: mariofan12
I'm probably going to use DDTMs, reflection is too advanced for me…


There is nothing advanced in reflection. :P
Too your includes part add this:
{.include srl/srl/reflection/reflection.scar}

Now download that program:
http://www.villavu.com/forum/showthread.php?t=33855
to create a path.
Load image what came with it and start making your path.
After it is done press ctrl+e and copy the code it gave you.

Then you should have something like that:

function LoadPath: TPointArray;
begin
SetLength(Result, 6);

Result[0] := Point(3227, 3217);
Result[1] := Point(3236, 3217);
Result[2] := Point(3235, 3225);
Result[3] := Point(3224, 3234);
Result[4] := Point(3221, 3245);
Result[5] := Point(3216, 3245);
end;
Add this too your script and to use your new path you need this:

Procedure WalkSomeWhere;
Var
I: Integer;
Path: TPointArray;

Begin
Path := LoadPath;
Wait(2000+Random(200));
for i := 0 to High(Path) do
Begin
WalkToTile(Path[i], 3, 0);
end;
Wait(500+Random(300));
end;


Now you only need to call WalkSomeWhere to start walking from a to b.

Moebius

2008-08-28 19:30:25

Very nice. I wonder if it could be adapted to burn other type of logs too?

mariofan12

2008-09-01 01:12:53

update (0.2)
implemented walking with ddtms, start at varrok bank.

Update (0.3)
Banks!!

mariofan12

2008-09-01 04:45:48

update version 0.4
now can use pins, and it will attempt to fix itself if it can't light fires!

mariofan12

2008-09-01 13:46:14

version 0.5
-fixed multiple bugs
-need help with banking procedure, if you know what you're doing, please tell me how i can fix the banking problem.

mariofan12

2008-09-01 15:06:36

anyone got any ideas why my banking procedure won't work?

trentuno30

2008-09-07 00:18:32

dosnt work for me it says i have no logs in the bank when i do!!!

Seroko

2008-09-07 13:32:38

if FindDtm(willow, x, y, MMX1, MMY1, MMX2, MMY2) then

You are searching your minimap for the logs, this is your error with withdrawing.

if FindDtm(willow, x, y, MSX1, MSY1, MSX2, MSY2) then

mariofan12

2008-09-07 14:07:29

thank you soo much seroko

Seroko

2008-09-07 16:25:25

From: mariofan12
thank you soo much seroko


No problem if you have any more questions you can add me on msn (seroko@gmail.com)

And as a little side note.

MMX1, MMY1, MMX2, MMY2 are MiniMap edge points
MMCX, MMCY are MiniMap Center points

MSX1, MSY1, MSX2, MSY2 are Main Screen edge points
MSCX, MSCY are Main Screen Center points

MIX1, MIY1, MIX2, MIY2 are Inventory edge points
MICX, MICY are Inventory Center points

MCX1, MCY1, MCX2, MCY2 are Chat screen edge points
MCCX, MCCY are Chat screen Center points

All these are is defined constants in SRL
{ const MMX1, MMY1, MMX2, MMY2;
Description: MiniMap Edge Points. }
const
MMX1 = 550;
MMY1 = 8;
MMX2 = 703;
MMY2 = 161;

{ const MMCX, MMCY;
Description: MiniMap Centre Point. }
const
MMCX = 627;
MMCY = 85;

{ const MSX1, MSY1, MSX2, MSY2;
Description: Main Screen EdgePoints. }
const
MSX1 = 4;
MSY1 = 4;
MSX2 = 516;
MSY2 = 338;

{ const MSCX, MSCY;
Description: Main Screen Centre Points. }
const
MSCX = 259;
MSCY = 170;

{ const MIX1, MIY1, MIX2, MIY2;
Description: Inventory EdgePoints. }
const
MIX1 = 547;
MIY1 = 202;
MIX2 = 737;
MIY2 = 466;

{ const MICX, MICY;
Description: Inventory Centre Points. }
const
MICX = 642;
MICY = 334;

{ const MCX1, MCY1, MCX2, MCY2;
Description: Chat Screen EdgePoints. }
const
MCX1 = 4;
MCY1 = 342;
MCX2 = 496;
MCY2 = 460;

{ const MCCX, MCCY;
Description: Chat Screen Centre Points. }
const
MCCX = 250;
MCCY = 401;