RAM
2010-01-13 16:15:21
I could use a little help Please….
Trying to make a Store Seller for Varrock….
The Actual Procedure for selling notes to the store works fine….:)
Finding the Shop Keepers does not…:duh:
I would like it to be able to sell EVERYTHING in the inventory, but adding an option to sell Summoning Scrolls is next….
Thanks In Advance to anyone that offers help !!!
Trying to make a Store Seller for Varrock….
The Actual Procedure for selling notes to the store works fine….:)
Finding the Shop Keepers does not…:duh:
I would like it to be able to sell EVERYTHING in the inventory, but adding an option to sell Summoning Scrolls is next….
Thanks In Advance to anyone that offers help !!!
program StoreSeller;
{.include SRL/SRL/Misc/SMART.scar}
{.include SRL/SRL.scar}
var
NoteDTM: Integer;
procedure LoadStuff;
begin
NoteDTM := DTMFromString('78DA633CC8C4C010C8C8800A9818FE034990E' +//Zephyr's Fury
'87F20603C0254138BA98601AA064C6F02F28309A83983DD2E1435' +
'9B817C2F026ACE02F9BEF8D50000C8880B92');
end;
procedure DeclarePlayers;
begin
HowManyPlayers:= 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].Active := True;
end;
procedure TalkToShopKeeper;
var
x, y: Integer;
TPA: TPointArray;
begin
FindColorsSpiralTolerance(MSCX, MSCY, TPA, 1063283, MSX1, MSY1, MSX2, MSY2, 20);
if IsUpText('hop') then
Mouse(x, y, 1, 1, false);
wait(25+random(25));
ChooseOption('rade');
end;
procedure SellInventoryNotes;
var
x, y: Integer;
begin
if FindDTM(NoteDTM, x, y, MIX1, MIY1, MIX2, MIY2) then
Mouse(x, y, 8, 8, false);
wait(25+random(25));
ChooseOption('ell 50');
end;
procedure Setup;
begin
Smart_Members:= True;
Smart_Server := 160;
Smart_Signed := True;
SetupSRL;
ActivateClient;
DeclarePlayers;
MouseSpeed := 40;
LoginPlayer;
LoadStuff;
end;
begin
Setup;
TalkToShopKeeper;
repeat
SellInventoryNotes;
Until (InvEmpty);
logout;
end.