SRL Archive - Outdated / Broken

Al-kharid silk buyer [with updating]


ub3r |<1||3r*1337*

2006-04-14 14:33:00

Hello everyone! I have FINALLY created my first full script. there are a few bugs that i am still trying to fix (sorry to those that can read all the code, its a bit messy) the walking procedures so it's more secure.

if there are any more bugs, post them here!
and its a bit slow, i'm going to try and make it faster

EDIT: now more stable and with symbol to symbol walking

EDIT: version 4 now released, has anti randoms and much more faster!

EDIT: version 4 bug fix

EDIT: version 5 now with a little progress report

EDIT: version 5 Improved better

EDIT: version 6, better walking, and (i think) properly standardized

EDIT: version 7, now properly standardized and with MouseFlag detection (instead of guessing the wait)

EDIT: version 7 now with a better walking procedure

EDIT:version 7 tiny fix

Sdcit

2006-04-14 15:03:41

1. MY EYES!!!

2. Coords.. dont depend on them fully.

ub3r |<1||3r*1337*

2006-04-14 19:51:53

Ok, the silk buyer is now almost perfect to walking and buying. now i'm putting in anti randoms.

I remember first post=p

2006-04-14 20:12:37

From: Sdcit
1. MY EYES!!!

2. Coords.. dont depend on them fully.


Rofl, remember the days at kait where noobs would come up with an entire script of coords… Then we'd break there hearts. Lmao, but really good job on your first complete script, I hope to see you continue. :)

ub3r |<1||3r*1337*

2006-04-14 20:35:34

ok, i got anti-randoms now, if you dont want your eyes to hurt, dont pass the line!
Version 4 of this script has now been released

phantombmx

2006-04-14 22:28:34

ahh!! standards!! :eek: please please let me put standards to it!! plz!! :rolleyes: ill pm it to you indented..

ub3r |<1||3r*1337*

2006-04-14 22:32:58

ok, wtf are standards? i dont know these 'standards' teach me! teach me!


program silkbuyer;
///////////////////////////////////////////////////////////////////////////
///this will buy silk and bank them, improvements can be PMed to me on
///villavu.com/forums made by: ub3r l<1ll3r
///////////////////////////////////////////////////////////////////////////
///in al-kharid bank, go to the most northern bankbooth that is available
///put your money in first bank slot
///Put nothing in the last slot
///low quality
///put all chats to OFF
{.Include SRL\SRL.scar}
{version info:
V1:very unstable[unreleased]
V1.9:a lot more stable with double clicking[unreleased]
V1.95: tested and being released
V2: more stable and with symbol to symbol
V3: fixed up a lot of walking, much more faster
V4:will now log off after 20 loads and has anti-randoms and will do this 6 times until the script will end (100 loads)
V5: now with a progress report}
var
N:string;
H,poop:Integer;
///////////////SETUP////////////////////////////
Const
bankcolors = 5232879;/// bank symbol color
silkcolors = 7936176;///silk color symbol
man = 8875380;/// color of the seller's pants
cabab = 9880041;///color of the cabab symbol near the bank
sword = 3674381;///the sword (go for the bluish color on the handle)
tree = 603198;///color of the tree surrounded by cacti (the brown part)(mini map)
pin = 5946;///put your pin here if neccesary, leave to 0 for no pin
User =''; ////////your username must go here//////////
Pass =''; ////////your password must go here//////////
loggg = True; /// are you logged in or not? True or False
////////Thats all folks!////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////THE LINE///////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////

procedure movesilk;
begin
writeln ('facing north and going to the silk buyer!')
wait(2000)
Face(N)
if (findcolortolerance(x,y,cabab,628,19,703,53,3)) then
Mouse(x,y,1,1,True)else
writeln('color(s) not found! restart script!')
if (FindTalk = True) then
TalkToRand;
wait(14000)
if (findcolortolerance (x,y,sword,678,34,719,66,3)) then
Mouse(x,y,1,1,true)else
writeln('color(s) not found! restart script!')
wait(13000)
if (findcolortolerance(x,y,silkcolors,597,26,709,118,8)) then
Mouse(x,y,1,1,True)else
writeln('color(s) not found! restart script!')
if (FindTalk = True) then
TalkToRand;
wait(13000)
end;
procedure buy;
begin
poop:=0
repeat
if (findcolortolerance(x,y,man,4,4,514,336,8)) then
Mouse(x,y,0,0,True)
Mouse(x,y,0,0,True)
if (FindTalk = True) then
TalkToRand;
wait(3000)
MMouse(224,444,1,0)
wait(800)
Mouse(224,444,1,0,True)
Mouse(224,444,1,0,True)
wait(1000)
MMouse(270,395,1,0)
wait(800)
Mouse(270,395,1,0,True)
Mouse(270,395,1,0,True)
wait(1000)
MMouse(203,448,1,0)
wait(800)
Mouse(203,448,1,0,True)
Mouse(203,448,1,0,True)
wait(1000)
MMouse(280,446,1,0)
Mouse(280,446,1,0,True)
Mouse(280,446,1,0,True)
wait(2000)
MMouse(238,432,1,0)
Mouse(238,432,1,0,True)
Mouse(238,432,1,0,True)
wait(1000)
MMouse(217,445,1,0)
Mouse(217,445,1,0,True)
wait(1000)
MMouse(290,447,1,0)
Mouse(290,447,1,0,True)
Mouse(290,447,1,0,True)
poop:=poop+1
writeln('we have '+IntToStr(poop)+' silk(s) for this load!')
TalkToRand;
wait(2000)
Until(findcolortolerance(x,y,8625060,703,434,724,454,8))
end;
procedure goback;
begin
Face(N)
wait(1000)
if (findcolortolerance(x,y,tree,596,90,656,129,3)) then
Mouse(x,y,1,1,True)
TalkToRand;
wait(6000)
if (findcolortolerance (x,y,sword,610,80,654,104,3)) then
Mouse(x,y,1,1,True)
TalkToRand;
wait(7000)
if (findcolortolerance (x,y,tree,615,118,662,139,3)) then
Mouse(x,y,1,1,True)
TalkToRand;
wait(13000)
if (findcolortolerance(x,y,cabab,594,84,649,106,3)) then
Mouse(x,y,1,1,True)
TalkToRand;
wait(8000)
if (findcolortolerance(x,y,bankcolors,604,113,644,160,8)) then
Mouse(x,y,1,1,True)
TalkToRand;
wait(14000)
OpenBank2(pin);
wait(3000)
Deposit(5,6,2)
wait(5000)
end;
procedure login;
begin
writeln ('logging in...')
mouse(450,286,1,1,True)
wait(2000)
sendkeys(User)
sendkeys(chr(13))
sendkeys(Pass)
wait(1000)
mouse(298,323,1,1,True)
wait(5000)
mouse(495,341,1,1,True)
end;
Begin
SetupSRL;
if (loggg = False) then
login;
repeat
movesilk;
buy;
goback;
H:=H+1
Until(H>=20)
login;
repeat
H:=0
movesilk;
buy;
goback;
H:=H+1
Until(H>=20)
login;
repeat
H:=0
movesilk;
buy;
goback;
H:=H+1
Until(H>=20)
login;
repeat
H:=0
movesilk;
buy;
goback;
H:=H+1
Until(H>=20)
login;
repeat
H:=0
movesilk;
buy;
goback;
H:=H+1
Until(H>=20)
End.

Mutant Squirrle

2006-04-14 23:38:26

///////////////////////////////////////////////////////////////////////////
///this will buy silk and bank them, improvements can be PMed to me on
///villavu.com/forums made by: ub3r l<1ll3r
///////////////////////////////////////////////////////////////////////////
///in al-kharid bank, go to the most northern bankbooth that is available
///put your money in first bank slot
///Put nothing in the last slot
///low quality
///put all chats to OFF
program silkbuyer;
{.Include SRL\SRL.scar}
{version info:
V1:very unstable[unreleased]
V1.9:a lot more stable with double clicking[unreleased]
V1.95: tested and being released
V2: more stable and with symbol to symbol
V3: fixed up a lot of walking, much more faster
V4:will now log off after 20 loads and has anti-randoms and will do this 6 times until the script will end (100 loads)
V5: now with a progress report}
var
N : string;
H, poop : Integer;
///////////////SETUP////////////////////////////
Const
bankcolors = 5232879;/// bank symbol color
silkcolors = 7936176;///silk color symbol
man = 8875380;/// color of the seller's pants
cabab = 9880041;///color of the cabab symbol near the bank
sword = 3674381;///the sword (go for the bluish color on the handle)
tree = 603198;///color of the tree surrounded by cacti (the brown part)(mini map)
pin = 5946;///put your pin here if neccesary, leave to 0 for no pin
User =''; ////////your username must go here//////////
Pass =''; ////////your password must go here//////////
loggg = True; /// are you logged in or not? True or False
////////Thats all folks!////////////////////////////
///////////////////////////////////////////////////////////////////////////////
//////////////////THE LINE/////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

procedure MoveSilk;
begin
WriteLn ('facing north and going to the silk buyer!');
wait(2000)
Face(N)
if(FindColorTolerance(x, y, cabab, 628, 19, 703, 53, 3))then
Mouse(x,y,1,1,True);
else
WriteLn('color(s) not found! restart script!');
if(FindTalk = True) then
TalkToRand;
wait(14000)
if(FindColorTolerance(x, y, sword, 678, 34, 719, 66, 3))then
Mouse(x,y,1,1,true);
else
WriteLn('color(s) not found! restart script!');
wait(13000)
if(FindColorTolerance(x, y, silkcolors, 597, 26, 709, 118, 8))then
Mouse(x,y,1,1,True);
else
WriteLn('color(s) not found! restart script!');
if(FindTalk = True) then
TalkToRand;
wait(13000)
end;

procedure Buy;
begin
poop:=0
repeat
if (findcolortolerance(x,y,man,4,4,514,336,8)) then
Mouse(x,y,0,0,True);
Mouse(x,y,0,0,True);
if (FindTalk = True) then
TalkToRand;
Wait(3000);
MMouse(224,444,1,0);
Wait(800);
Mouse(224,444,1,0,True);
Mouse(224,444,1,0,True);
Wait(1000);
MMouse(270,395,1,0);
Wait(800);
Mouse(270,395,1,0,True);
Mouse(270,395,1,0,True);
Wait(1000)
MMouse(203,448,1,0)
wait(800)
Mouse(203,448,1,0,True)
Mouse(203,448,1,0,True)
wait(1000)
MMouse(280,446,1,0)
Mouse(280,446,1,0,True)
Mouse(280,446,1,0,True)
wait(2000)
MMouse(238,432,1,0)
Mouse(238,432,1,0,True)
Mouse(238,432,1,0,True)
wait(1000)
MMouse(217,445,1,0)
Mouse(217,445,1,0,True)
wait(1000)
MMouse(290,447,1,0)
Mouse(290,447,1,0,True)
Mouse(290,447,1,0,True)
poop:=poop+1
writeln('we have '+IntToStr(poop)+' silk(s) for this load!')
TalkToRand;
wait(2000)
Until(FindColorTolerance(x, y, 8625060, 703, 434, 724, 454, 8))
end;

procedure GoBack;
begin
Face(N)
wait(1000)
if(FindColorTolerance(x, y, tree, 596, 90, 656, 129, 3))then
Mouse(x,y,1,1,True)
TalkToRand;
wait(6000)
if(FindColorTolerance(x, y, sword, 610, 80, 654, 104, 3))then
Mouse(x,y,1,1,True)
TalkToRand;
wait(7000)
if(FindColorTolerance(x, y, tree, 615, 118, 662, 139, 3))then
Mouse(x,y,1,1,True)
TalkToRand;
wait(13000)
if(FindColorTolerance(x,y,cabab,594,84,649,106,3))then
Mouse(x,y,1,1,True)
TalkToRand;
wait(8000)
if(FindColorTolerance(x, y, bankcolors, 604, 113, 644, 160, 8)) then
Mouse(x,y,1,1,True)
TalkToRand;
wait(14000)
OpenBank2(pin);
wait(3000)
Deposit(5,6,2)
wait(5000)
end;

procedure Login;
begin
WriteLn('logging in...');
Mouse(450, 286, 1, 1, True);
Wait(2000);
SendKeys(User);
SendKeys(chr(13));
SendKeys(Pass);
Wait(1000);
Mouse(298, 323, 1, 1, True);
Wait(5000);
Mouse(495, 341, 1, 1, True);
end;

begin
SetupSRL;
if(Loggg = false)then
Login;
repeat
repeat
MoveSilk;
Buy;
GoBack;
H:=H+1
until(H>=20)
Login;
until(false)
end.

its hard to explain i revised it a little?

Edit: shit i didnt do the constants… ah just put a space before the so its like
const
var = true
var = true
/////////the lines or w/e/////////////

Sdcit

2006-04-14 23:39:00

http://82.92.130.193/forums/showthread.php?t=48

did i post those for nothing :p

ub3r |<1||3r*1337*

2006-04-15 00:08:29

Mutant squirrel, the script you edited from me has a screwed up Main loop. it shoud sleep for 5 times before the script will turn right off.

ub3r |<1||3r*1337*

2006-04-15 00:23:40

ok, i have released version 6, it should be way better with its walking procedures

ub3r |<1||3r*1337*

2006-04-16 18:34:13

the script is now fully standardized and now has MouseFlag detection! more updates to come for this script

Neonknight77

2006-04-16 18:40:52

I'l help you fix up a couple of things like colors etc

solemn wishes

2006-04-16 18:52:19

dont triple post, its reallly gay and un-needed. also try using the npc talking procedures in srl, if your not sure about it copy em from my banana dealer.

its a good first script m8 and a nice project for anyone new to scar, i admire your rapid updates but try to do large updates and not keep posting that you changed minor things. An example of this is thats its version 6 after a few hours :).

as i said before its a nice script to work on and i wish you good luck in the future.

o ya and maybe add a lil more randomness to ya walking…..

ub3r |<1||3r*1337*

2006-04-16 19:45:45

ok, sorry 'bout the triple posts…

next version released today, (final) will be with bitmaps. it will also have the NPC talking just liek you said.

dandaman

2006-06-14 23:05:06

Hey when i run the script i get this Error line 607 unknown identifier in trimquizpicture then it says srl/core/antirandoms what happened?

phantombmx

2006-06-15 02:15:40

dan.. place all files in the "place in plugins folder" in the plugins folder…

dandaman

2006-06-15 22:00:25

kk but now i get error mismatch in script line 124

ub3r |<1||3r*1337*

2006-06-15 22:02:34

Would you like me to make a new al-kharid script? This one is too outdated.

dandaman

2006-06-15 22:15:11

no sorry still readin tut on how to make a scar script