SRL Archive - RS3 Script Requests

Simple Potion Script


mlg_angela

2012-02-01 10:33:08

I made scripts for PowerBot in the 1.2x era. I'm not very good with this side of the scripting and I frankly don't have enough time to learn between school and work. The script that I would like would be very helpful for a lot of people and would be pretty simple to make for somebody who knows this style of scripting.

All this script would need to be able to do for my use is drink prayer pots when my prayer drops to a specific level that I personally choose. This would allow training at several different places for a lot of experience. Of course, if you could have it drink Super Potions at preset intervals that would be very helpful as well. Whenever you ran out of prayer potions, the script could equip the ring of dueling and teleport to castle wars.

This should not be a difficult script to make but I would really love this. It would be really could for people training with chinchompas or fighting the warriors in the desert camp.

laakerules

2012-02-01 11:12:48


Function Drink(What: String): Boolean;
var
I: Integer;
begin
Result := False;
If Not LoggedIn then Exit;
if (PrayerPercent < 50) then // i dont know the prayerpercent one, but just change it to prayerpercent if you can find that out.
If InvEmpty then Logout
else
for i := 1 to 28 do
begin
InvMouse(I, 3);
if IsUpText(What) then
begin
ClickMouse2(True);
Wait(RandomRange(350, 525));
Result := True;
Exit;
end else
Continue;
end;
end;

And then at the bottom in where you execute a script put
Drink('rink');
and walla. It will go through your inv looking for something to drink. Then once your out it will log out! :P So simple

So once you find out the prayer percent it would look like this.

program PrayerDrinker;
{$DEFINE SMART}
{$DEFINE SRL5}

Function Drink(What: String): Boolean;
var
I: Integer;
begin
Result := False;
If Not LoggedIn then Exit;
if (PrayerPercent < 50) then // i dont know the prayerpercent one, but just change it to prayerpercent if you can find that out.
If InvEmpty then Logout
else
for i := 1 to 28 do
begin
InvMouse(I, 3);
if IsUpText(What) then
begin
ClickMouse2(True);
Wait(RandomRange(350, 525));
Result := True;
Exit;
end else
Continue;
end;
end;

begin
Drink('rink');
end.

That should be correct if im wrong please copy and paste it into a post and edit it to get it write. Not sure, but it should work after the prayer percent gets figured out. You would be better off using guthans with a simple bot that does simple antibans! :P

mlg_angela

2012-02-01 11:23:40

Thank you very much for that post. I was just coming back to edit and say on second thought I was going to try to take some time off and learn out to do some SRL scripting xD. I'll try this out whenever I get home. This will be pretty helpful. While that's doing it's work for me, I'll take some time to try to learn how to do some SRL scripting and make a full fledged bot. I don't think anybody will expect what I am planning but I think it's a good idea. I know walking is going to be the hard part though and getting it to work consistently will be difficult but I think it will be worth it.

laakerules

2012-02-01 11:59:54

Use spa walking, isn't the best but then people dot need to download objectdtm and don't forget to find out the prayer percent thing cause I'm almost 100% sure that they domt use prayer percent to call it so ask in the help for help on that.

mlg_angela

2012-02-01 12:49:17

I may be able to toy around with it and figure it out on my own. I'll definitely be testing it out on a noob account rather than the account I'm training on.

When I move on to walking I probably use the most effective method because the area I'm planning will be a dangerous walk and so mistakes are not okay. I will probably release this script to the public rather than just the members though as long as the other members seem okay with it (assuming I'm able to become a member at that point). I am one of those people who would release my scripts publicly just because I can. I'm not in it for money or recognition or anything, I just want to help out the community. This is what I did with PowerBot and this is what I'll do here.

mlg_angela

2012-02-02 13:52:26

It is giving unknown identifiers for a lot of things within the script. I'm unsure what to do with it. Let me try a different script and I'll report back to you.

Edit: I was able to run the [C]ool [C]lassy [C]ooker script with no issues.

I added the following section from his script which made everything work correctly except for the PrayerPercent row. I took that row out and it was successfully executed but it did not open a RuneScape window.

{$IFDEF SMART}
{$i SRL/SRL/Misc/Smart.simba}
{$ENDIF}
{$i SRL/SRL.simba}