EZ41
2013-11-28 18:48:13
I have about 60 lines of code here, please someone help me fix it.
Firstly it wont compile, when I try it opens up the SRL.simba file and gives me this error
"[Error] C:\Simba\Includes\SRL-OSR\SRL.Simba(8:113): Semicolon (';') expected at line 8
Compiling failed."
But I can run other 07 scripts just fine so I don't know what to do.
Also if you read through this code, will the script work? I used some code from the SRL 6 documentation to change inventories but I don't know if I applied it correctly or if it even works with OSR scripts…
Finally are the mouse procedures and wait procedures good? any suggestions to make it less likely to get banned (obviously it needs an antiban procedure but anything else?
THANK YOU, This is the first time I've really tried making a script.
Firstly it wont compile, when I try it opens up the SRL.simba file and gives me this error
"[Error] C:\Simba\Includes\SRL-OSR\SRL.Simba(8:113): Semicolon (';') expected at line 8
Compiling failed."
But I can run other 07 scripts just fine so I don't know what to do.
Also if you read through this code, will the script work? I used some code from the SRL 6 documentation to change inventories but I don't know if I applied it correctly or if it even works with OSR scripts…
Finally are the mouse procedures and wait procedures good? any suggestions to make it less likely to get banned (obviously it needs an antiban procedure but anything else?
THANK YOU, This is the first time I've really tried making a script.
Program myhumidify
{$Define SMART}
{$I SRL-OSR/SRL.Simba}
Procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
with Players[0] do
begin
Name := 'a';
Pass := 'a';
Pin := 'a';
WorldInfo := [a];
BoxRewards := ['XP','xp','lamp'];
LampSkill := Skill_Slayer;
Active := True;
Nick := 'a';
end;
end;
//Remember: Script does not kick out when out of runes
//Script starts logged in with empty fishbowl (1 click empty) in 5th invy spot
Procedure Humid
begin
repeat
if (gameTabs.isTabActive(TAB_BACKPACK)) then
begin
gameTabs.openTab(TAB_MAGIC); //opens magic tab
MMouse(568, 252,RandomRange(3, 3), RandomRange(3, 1)); //moves to spell
ClickMouse2(mouse_left); //clicks cast spell
gameTabs.openTab(TAB_INVENTORY); //switches to invy
MMouse(582, 262,RandomRange(3, 2), RandomRange(3, 4)); //moves to empty bowl
Wait(RandomRange(1700, 1850)); //waits for long spell animation
ClickMouse2(mouse_left); //clicks empty bowl, you have an empty fishbowl again and are at the backpack, script repeats
end;
end;
//Antiban to come
Begin
SetupSRL;
StartUp;
repeat
if (isLoggedIn(True)) then //if logged in then start humid procedure
begin
wait(400);
Humid;
end;
else
begin
if (isLoggedIn(False)) then //if not logged in then begin login procedure
begin
DeclarePlayers; //will this log me in? i'm just hoping that starting declareplayers with my info filled out would get it working
end;
end;
end.