brutalassmaster
-
Upload
steven-gaines -
Category
Documents
-
view
213 -
download
0
Transcript of brutalassmaster
-
7/28/2019 brutalassmaster
1/6
program MM_Itembuyer;{$DEFINE SMART8}{$I SRL-OSR/SRL.Simba}
{
FOR THE SCRIPT TO RUN CORRECTLY, THE FOLLOWING PARAMETERSMUST BE DEFINE:
--max_Avg: integer- the max amount per item you wish to spend, averaged over many purchases
(if you would like to spend a max of 100gp, set this to 100)- For the code to be more random, sometimes it will buy more or less than
themax_Avg price; so it could buy more or less stock accordingly.(I.e. the shop runs out of stock before buyItems is finished, and it tri
esto continue buying 0 stock...)
--total_BUY : integer- the total amount of items you wish to purchase during this session
--shop: integer: 0..2; select the shop you want to buy items from- 0: Port Sam- 1: Etc.
- 2: Etc.--next_World : integer : choose random select or sequential select- 0: random- 1: sequential
--bool_world : boolean : choose between increasing or decreasing- true : increasing- false : decreasing
--start_world, end_world : integer : start and end worlds- if you want to start at world 350, start_world = 350.
~~~~~~~_----___--_-___ WELCOME TO THE SCRIPT!!___-_--___----_~~~~~~~~~~~~~~_----___--_ READ ABOVE FOR STARTING PARAMS!!_--___----_~~~~~~~~~~~~~_----___--_-___ WELCOME TO THE SCRIPT!!___-_--___----_~~~~~~~
}
CONSTmax_Avg = 4; // averaged max amount to spend per itemtotal_BUY = 100000; // total amount of items to buyshop = 0;next_World = 0; //random or increasingstart_World = 301; //if increasing, then start at ..end_World = 378; // end at..
bool_World = true; //leave alone
vari, u, x,y, is_Buy, max_Buy : integer;counter_World : integer;GLOBAL_BOUGHT : integer;GLOBAL_PRICE : integer;test_PRICE : boolean;ownerName, itemName : string;runTimeLimit, startTime : integer;ownerColor_1, ownerColor_2, itemColor_1, itemColor_2 : integer;
-
7/28/2019 brutalassmaster
2/6
itemName_1, itemName_2,itemName_3 : string;
Procedure DeclarePlayers;BeginHowManyPlayers := 1;NumberOfPlayers(HowManyPlayers);CurrentPlayer := 0;
Players[0].Name := 'iliketosnipe'; //Enter UsernamePlayers[0].Pass :='jiggaboojones'; //Enter PasswordPlayers[0].Nick :='jeff'; //Enter NickPlayers[0].Active:=True;
End;
{ Declare Shop Uses the following parameters, if they aren't already definedadd them using the following template:
ownerName = ''; itemName = '';ownerColor_1 = ; itemColor_1 = ;ownerColor_2 = ; itemColor_2 = ;
-- ownerColor_1,..,itemcolor_2: integer- must be filled out with two unique colors (USE COLOR PICK TOOL)
of the shop owner and the respective item to purchase-- ownerName and itemName: string
- ownerName = 'errant' for shop owner GerrantownerName = '' for shop owner (_)- itemName = 'eather' for shop item Feather
itemName = '' for shop item (_)
}
procedure DeclareShop;begincase shop of
0: begin // port samownerName := 'Aubery';itemName := 'ody';
ownerColor_1 := 1887980;itemColor_1 := 13639447;ownerColor_2 := 8553100;itemColor_2 := 13639447;max_Buy := max_Avg;end;
1: begin //custom shop variablesownerName := 'Aubery';itemName := 'ater';ownerColor_1 := 1887980;itemColor_1 := 11082774;ownerColor_2 := 6250343;itemColor_2 := 8553100;
max_Buy := max_Avg;end;
2: begin //anotherownerName := 'Aubery';itemName := 'ind';ownerColor_1 := 1887980;itemColor_1 := 1738976;ownerColor_2 := 8553100;itemColor_2 := 1738976;max_Buy := max_Avg;
-
7/28/2019 brutalassmaster
3/6
end;end;
case itemName of'ody' : begin
itemName_1:=itemName; itemName_2:='ody'; itemName_3:='Body';end;
'ind' : beginitemName_1 := itemName; itemName_2:='ind'; itemName_3 :='Mind';end;
'ater' : beginitemName_1 := itemName; itemName_2:='ater'; itemName_3 :='Water';end;
end;end;
procedure DeclareVar;begini :=0; u := 0;GLOBAL_BOUGHT := 0;test_Price := false;counter_World := 0;GLOBAL_PRICE := -1;runtimelimit := randomrange(5850000,21600000);
end;
procedure findOwner;var c1, c2 : integer;beginMakeCompass(randomrange(0,360));if FindObjCustom(c1, c2, ['alk-to', ownerName], [ownerColor_1, ownerColor_2],
5) thenbeginMouseBox(c1,c2,c1+4,c2+4,mouse_right);ClickMouse2(mouse_right);wait(RandomRange(200,950));ChooseOptionMulti (['Trade']);wait(400 + randomrange(580,1280));
end;end;procedure buyItems(xx, yy, uu : integer);beginrepeat
wait(RandomRange(90,250))MouseBox(xx, yy, xx+randomrange(0,5), yy++randomrange(0,5), mouse_right)wait(randomrange(100,299))ChooseOptionMulti(['10'])uu := uu -1;
until(uu
-
7/28/2019 brutalassmaster
4/6
price := max_BUYwriteln('testing error code 130');end
elsebeginprice := StrToInt(GetNumbers(price_Str));end;
if price=max_buy : beginu := randomrange(10,12); //copy this line of code
GLOBAL_BOUGHT := GLOBAL_BOUGHT + (u*10);writeln('Buying ' + IntToStr(10*u) + ' of item(s)')buyItems(hello,love,u);wait(randomrange(300,1200));end;
end;end;
1 : beginu := randomrange(75,75); //buy 100-120 items at a timeGLOBAL_BOUGHT := GLOBAL_BOUGHT + (u*10);writeln('Buying ' + IntToStr(10*u) + ' of item(s)')buyItems(hello,love,u);wait(randomrange(300,1200));
end;2: begin
{ room to make custom item-buying routine }end;
end;end;
if price>max_Buy then begintest_PRICE :=false;end;
-
7/28/2019 brutalassmaster
5/6
if price = -1 then beginwriteln('error!!') test_Price :=false;end;
end;
procedure ExitShop;beginwait(randomrange(500,2500));MouseBox(482, 35, 492, 45, mouse_left);
end;
procedure SwitchWorld(someWorld : integer);beginwait(randomrange(650,10000));
case someWorld of 0: beginChangeWorld(RandomWorld);end;end;
case someWorld of 1: begin
if bool_World thenrepeatif start_World + counter_World < end_world thenbeginSelectWorld(start_world + counter_World);counter_World := counter_World + 1;break;
end;if start_World + counter_World = end_world thenbeginSelectWorld(end_World);counter_World := 0;break;
end;until(CurrentWorldLS = Start_World + Counter_World);if not bool_World thenbeginrepeat
if start_World - counter_World > end_world thenbeginSelectWorld(start_world - counter_World);counter_World := counter_World + 1;break;
end;if start_World - counter_World = end_world thenbegin
SelectWorld(end_World);counter_World := 0;break;end;
until(CurrentWorldLS = start_World - Counter_World);end;end;
end;
end;
-
7/28/2019 brutalassmaster
6/6
beginSetupSRL;SMART_FIXSPEED := TRUE;ActivateClient;DeclarePlayers;DeclareVar;DeclareShop;LogInPlayer;MarkTime(StartTime);
repeatwriteln('Items bought: '+IntToStr(GLOBAL_BOUGHT)+'/'+ IntToStr(total_BUY))if (LoggedIn) thenbegin
wait(randomrange(350,850))// MakeCompass('E')SetAngle(0);repeat// writeln('Attempting to find owner..')findOwner;
until(FindObjCustom(x,y, ['alue', itemName], [itemColor_1, itemColor_2],5))wait(randomrange(100,400));
// if FindObjCustom(x,y, ['alue', itemName], [itemColor_1, itemColor_2],2)thenif IsUpTextMultiCustom([itemName_1, itemName_2, itemName_3]) thenbeginrepeatcheckPrice(x,y);
until(not(test_PRICE))end;
end;ExitShop;Logout;if TimefromMark(StartTime) > runtimelimit then begin
if runtimelimit >= 14000000 then beginwait(randomrange(1723520,4503200));
MarkTime(StartTime);end;if runtimelimit < 14000000 then beginwait(randomrange(520000,1800000));MarkTime(StartTime);runtimelimit := randomrange(5850026,21600000);end;
end;SwitchWorld(next_World); wait(RandomRange(380, 8500));LogInPlayer;FreeSRL;
until(GLOBAL_BOUGHT > total_BUY)
end.