Willow Buyer And Banker by 3Garrett3
3Garrett3
2007-05-18 15:11:26
Here is my willow buyer and banker. It works in the Draynor Bank. Start there, it withdraws the money and everything for you, and buys at the lumby general store. Tell me if it works, i havnt tested it because i have no money to buy that stuff with. I know that some people have requested this, so try it out, and post lots of feedback, even if you dont test it, look it over and tell me if its good.
Setup:
Start in Draynor bank, with the money visible in the bank.
Setup your players.
Your done!
Important! Versions 1-1.3 will not work! Download Version 2.
Version 1- basic, no edits at all
Version 1.1- Basic, but with randoms, and antibannage.
Version 1.2- Antiban is a case thing- Thanks Ashur
Version 1.3- More Failsafes, different multiplayer.. - again Ashur.
Version 2 - Actually works, fixed all my noob mistakes// ok, so it doesnt work.. use 2B
Version 2B- Doesnt completly work, but i tested, and fixed some more things. Will Work on it later.
Version 2.1 - Should have better coin finding.. just un-comment the line you want to use, and comment the one that you were using.. the lines are around 371
RudeBoiAlex
2007-05-19 04:15:12
y does it bank in draynor
Lucaio
2007-05-19 07:26:08
"Failed when compiling
Line 21: [Error] (17356:1): Identifier expected in script D:\DOCUME~1\Lucaio\LOCALS~1\Temp\WillowBuyerV1.1.scar"
Hmm, it doesn't seem to work.
3Garrett3
2007-05-19 08:20:14
it banks in draynor, cause i didnt want to go through the complicated process of going through all the doors, and junk. And i will look into the error, it compiled for me…
EDIT: Successfully compiled? it worked for me…
Successfully compiled? V1 worked for me too…
EDIT Again: Did you set up your players right? 21 is the username line for the second guy.
Ashur2Good
2007-05-19 08:27:06
Looks nice, but one thing i saw was you're anti-Ban. It is really detectable if it does them 4 every time. Why not make it a case? As in this example:
procedure AntiBan;
begin
Case Random(5) of
//Rest of code...
end;
end;//Make sure you have this end;, A case is like a begin.
Hope that helped :D
-Ashur
3Garrett3
2007-05-19 08:33:04
ya, ok thanks. BTW, did it compile for you? i need to know why it wouldnt compile for luciao and some other guy, but it does for me…
PS, i knew how to use cases :p
Hugolord
2007-05-19 08:35:22
Ashur2good explain me what case does?
Ashur2Good
2007-05-19 08:40:38
@3garret3: Yes it did. :D
@HugoLord: A case choses a random procedure/Function out of the ones you provided. An example would be:
procedure AntiBan;
begin
Case Random(5) of//It would pick one out of 1-4
1: RandomChatEvery(...)//It could pick this one
2: MMouse(...)//Or this one
3: ...//Or this
4: ...//or this
end;
end;
Get what i mean? If not don't hesitate to ask.
-Ashur
3Garrett3
2007-05-19 08:43:21
so it compiled for you, do you know why it didnt for someone else?
Hugolord
2007-05-19 08:45:38
From: ashur2good
@3garret3: Yes it did. :D
@HugoLord: A case choses a random procedure/Function out of the ones you provided. An example would be:
procedure AntiBan;
begin
Case Random(5) of//It would pick one out of 1-4
1: RandomChatEvery(...)//It could pick this one
2: MMouse(...)//Or this one
3: ...//Or this
4: ...//or this
end;
end;
Get what i mean? If not don't hesitate to ask.
-Ashur
oh i get it TY! thanks now i get it :duh: :p
Hugolord
2007-05-19 08:48:57
Sorry for double post i dont get something tho why is it random(5) and not random(4)?'
Ashur2Good
2007-05-19 08:49:14
Ok, i read deeper into the script and found out that you're case was wrong, and there wasn't much fail safe, and NO multi-player :/. But i have tried to fix it and here are the results:
For the case, what ever number you put for the random, it has to be one higher then you're last procedure. What i mean is if you're last number is 8, you're random should be 9. Get what i mean?
For the fail safes add something like:
if (not(Loggedin)) then NextPlayer(false);
For the Multi-Player, in you're middle loop add this at the end:
if (not(Loggedin))then
begin
NextPlayer(True);
HighestAngle;
MakeCompass('N');
Writeln('Switched players successfully :)');
P.S: That multi player was coded by JAD :P
@Hugo: Great to hear! :D
-Ashur:stirthepot:
3Garrett3
2007-05-19 09:20:04
ok, 1.3 made, has an error bla bla, plz read scripting help in a second, to help me out so i can attach it… Never mind, my bad, i left something stupid in it that i didnt see at first. Attaching in a second.
Lucaio
2007-05-19 13:20:25
Ok, it compiles now.
But all it does is move the cursor to the scroll bar and the script finishes.
3Garrett3
2007-05-19 13:31:20
the scroll bar of what?
EDIT: i will check it later, but i have hockey now
Lucaio
2007-05-19 13:40:44
The scroll bar of SCAR.
3Garrett3
2007-05-20 15:05:26
ok, version 1.anything wont work! i messed up with the multiplayer, and other nooby things, good thing i didnt apply for mems yet with this.. i am working on a fix right now, it will be out in a bit.
OK v2 didnt work too well either, so i fixed it up a bit more, but now my radial walking isnt working, if someone wants to fix it up, i would love them, but here is a temp almost fix, v2b
Lucaio
2007-05-21 11:00:45
Your making progress! Well done!!! :)
Version 2B seems to stop when it opens the bank, you probably already know that though.
And I PMed you something as I dont really want other people seeing it.
3Garrett3
2007-05-21 16:54:07
as in it has a pause? wait for a bit, i put that there, because it was lagging before, i think its a 1-1.5 second pause, so just leave it for a bit and it should work. it worked for me. thanks for telling me about the *thing*, good thing there was only one view on the script, and it was you :p i will upload the *fixed* version now. And if the banking still doesnt work for you, i will fix it, but make sure its not just the wait.
Lucaio
2007-05-22 12:59:11
Nah, its not a short pause. It just opens up the bank and does nothing. I left it on till it logged me out.
3Garrett3
2007-05-24 20:34:55
are the coins visible in the bank? it always worked for me?
Lucaio
2007-05-25 10:40:56
Yeah they are, Unless you mean in the first row.
3Garrett3
2007-05-25 15:27:03
i had mine in the first row, but i dont think it meant anything.. try upping the tolerance on the coin color.. or maybe i should do that.. just a sec.. i will update it in a milisecond
BobboHobbo
2007-05-26 04:46:40
nice script
3Garrett3
2007-05-26 15:42:04
did it work? im not sure it will work completely but tell me how it works
Lucaio
2007-05-27 12:42:22
Hmm, must be my computer or me.
Just freezes when it opens up the bank.
scubaspaz
2007-05-27 12:45:41
yeah I dont think it works
3Garrett3
2007-05-27 15:29:18
it worked for me, im on vacation right now, so i cant fix it, but i will try tomorrow, when im home.
EDIT: oh my goodness, i figured it out, you never fixed your bankscreen function, did you?
Lucaio
2007-05-28 06:45:45
Uhhh, Bankscreen function?
3Garrett3
2007-05-28 15:53:13
go to scar2.03, includes, srl, srl, core, bank, and find the bankscreen function. it should look like this
{*******************************************************************************
function BankScreen: Boolean;
by: SRL Dev Team
Description: Finds Bankscreen. Returns true if Found.
*******************************************************************************}
function BankScreen: Boolean;
begin
Result := IsTextAtEx(185, 34, 'The Bank of', 30, upchars, True, False, 0, 0,
-1);
end;
change it to
{*******************************************************************************
function BankScreen: Boolean;
by: SRL Dev Team
Description: Finds Bankscreen. Returns true if Found.
*******************************************************************************}
function BankScreen: Boolean;
begin
Result := IsTextAtEx(184, 34, 'The Bank of', 30, upchars, True, False, 0, 0,
-1);
end;
basically change 185 to 184
Lucaio
2007-06-01 06:02:03
yay! the bank works now.
Now its just the walking. He walks up to the start of the bridge to go to the wizzards tower then just stops.
3Garrett3
2007-06-01 06:41:15
well.. i will work on that later then..