SRL Archive - RS3 Script Requests

Jad Prayer switcher


pwnedchoo

2012-05-30 22:28:17

i would like to request a simple auto jad prayer switcher for the fight caves.
im very knew to this sort of stuff but i imagine it wouldnt be the most compex script out there.
all it needs to do is switch between deflect magic (or protect from magic) and deflect range (or protect from range) when jad uses the respective attacks.
Thanks all :)

Runaway

2012-05-30 22:32:22

From: pwnedchoo
im very knew to this sort of stuff but i imagine it wouldnt be the most compex script out there.


It would have to be pretty complex to be able to differentiate between two slightly different movements of something as large as jad, while still keeping the speed required to switch prayers in time…

Sir Ducksworthy

2012-05-30 22:38:27

Yeah man ^ It really would be a feat without hooks.

riwu

2012-05-30 22:49:07

i remember the color for its ranged and magic attack animation is quite different, or using AveragePixelShift/bitmap may work too. The script itself is not that complicated, but the problem is that jad is not easily accessible. (go through 62 waves each time just to test?)

Also when the healers appear u will still have to pray switch urself (unless the script kills the healers for u too, which may need quite a bit of work).

Just watch some jad vids/practise pray switching on other monster first, or use gano full and pray ranged all the way ;)

Adobe

2012-05-30 23:04:56

Jad isnt even hard.. Not hard to switch tbh

Main

2012-05-30 23:19:10

What we can do thou is make is make it so that if you press 1, it will turn on pray range, press 2 for mage and press 3 for melee. Thats very simple and I actually have one for normal pray book.

pwnedchoo

2012-05-30 23:43:29

From: Main
What we can do thou is make is make it so that if you press 1, it will turn on pray range, press 2 for mage and press 3 for melee. Thats very simple and I actually have one for normal pray book.

i would be happy with that too haha

edit: any help getting me started to write something like that?
(i know java and this seems not too far off but i dont know where i can learn the necessary information.)

Main

2012-05-31 00:16:36

If you can tell me your prayer type and your prayer set up. I might beable to see if mine needs repatching and send it over.

If you are using cursed prayer, then I'll just need an account that has it as the same layout you need. But it shouldn't be too long and I'll try to do it in 30 min or less

riwu

2012-05-31 00:18:14

From: Main
If you can tell me your prayer type and your prayer set up. I might beable to see if mine needs repatching and send it over.

If you are using cursed prayer, then I'll just need an account that has it as the same layout you need. But it shouldn't be too long and I'll try to do it in 30 min or less

thats not done with simba right? what program do u use?

Main

2012-05-31 00:25:01

With simba.

So you press a key, it will record your mouse position. Click what ever the prayer the key is set to and activate/deactivate and then go to game tab.

riwu

2012-05-31 00:44:02

From: Main
With simba.

So you press a key, it will record your mouse position. Click what ever the prayer the key is set to and activate/deactivate and then go to game tab.

How does simba even retrieve the key u pressed? With SMART enabled? mind showing the code u used to let simba retrieve the the "1" key u input? Thanks.

b_lone

2012-05-31 01:13:13

Or…you could buy a fire cape…or…you could simply learn to prayer switch.

John

2012-05-31 01:19:11

From: b_lone
Or…you could buy a fire cape…or…you could simply learn to prayer switch.

We are a Scripting community..
We like a challenge we don't always choose the easiest way ;)

pwnedchoo

2012-05-31 01:31:36

From: Main
If you can tell me your prayer type and your prayer set up. I might beable to see if mine needs repatching and send it over.

If you are using cursed prayer, then I'll just need an account that has it as the same layout you need. But it shouldn't be too long and I'll try to do it in 30 min or less


yeah im using cursed. and the layout is the normal one and if you cant find an account ill let you use mine haha. but if you want to be lazy and just send me one example of your hotkey setup i could probably replicate and then send you what i come up with?

Main

2012-05-31 01:44:12

you don't use smart you use browser.

You do
 IsKeyDown( Byte);
to recognize what key is down.

I got some time tomorrow if you want I can script it in front of you via teamviewer. WOn't take long and I just need to get the coordinate from cursed prayer.

But note this is only a "prayer switching aid" and instead of you clicking on the prayer this will activate for you in light speed. You still gotta know what pray to use.

pwnedchoo

2012-05-31 01:49:34

From: Main
you don't use smart you use browser.

You do
 IsKeyDown( Byte);
to recognize what key is down.

I got some time tomorrow if you want I can script it in front of you via teamviewer. WOn't take long and I just need to get the coordinate from cursed prayer.

But note this is only a "prayer switching aid" and instead of you clicking on the prayer this will activate for you in light speed. You still gotta know what pray to use.

okay but i think i picked the worst time to request this because im leaving for vacation tomorrow. but can i leave you my msn? and i can get back to you when i return?
and yes aid is what i need. both times i faced jad i died because of missing the prayer icon lol.

riwu

2012-05-31 02:16:55

hmm didn't know u can do that.
Guess i can make the function right now if OP wants it.
if IsKeyDown(VK_1) then 
begin
GameTab(tab_Prayer);
Mouse(a,b,5,5,true); //replace a, b with coordinates of the prayer
end;
repeat this for ur other 2 prayer (replace VK_1 with VK_2/3).

Recursive

2012-05-31 02:21:11

Wow that's actually a pretty smart idea but how do you assign keys to variables?

Main

2012-05-31 02:21:39

Here is a sample and it worked before and should still work for normal prayer
program Pker;
{$i SRL\SRL.scar}
//{.include SRL\SRL.scar}
{
F6-F8 (Pray)
Inventory (642,168)(671,204)
Pray (703,168)(731,204)
PMagic (629,322)(658,349)
PRange (669,322)(691,349)
PMelee (704,322)(732,349)
}

var
Name: String;
Astyle, Ti, NInt: Integer;
Mi, Ploc: Tpoint;

Procedure Hide;
var
I: Integer;
Begin
Ti := GetCurrentTab;
GetMousePos(Mi.x , Mi.y);
Mouse(RandomRange(642, 671), RandomRange(169, 203), 0, 0, true);
for I := 1 to 6 do
Begin
MouseItem(I, true);
Wait(25);
End;
If Gametab(Ti) then Mmouse(Mi.x, Mi.y, 0, 0);
End;

Procedure PrayPro(PType: Integer);
Begin
Ti := GetCurrentTab;
GetMousePos(Mi.x , Mi.y);
Mouse(RandomRange(703, 731), RandomRange(168, 204), 0, 0, true);
Wait(100);
If PType = 1 Then Mouse(RandomRange(629, 658), RandomRange(322, 349), 0, 0, true);
If PType = 2 Then Mouse(RandomRange(669, 691), RandomRange(322, 349), 0, 0, true);
If PType = 3 Then Mouse(RandomRange(704, 732), RandomRange(322, 349), 0, 0, true);
If Gametab( Ti) then Mmouse(Mi.x, Mi.y, 0, 0);
End;


Begin
Setupsrl;
Cleardebug;
Mousespeed:=9999;
repeat
If Isfkeydown(6) Then PrayPro(1);
If Isfkeydown(7) Then PrayPro(2);
If Isfkeydown(8) Then Praypro(3);
until false;
End.


EDIT:

Please don't judge me, I like them both:)

pwnedchoo

2012-06-10 01:39:00

With lots of help from Main, he made a script for the deflect curses to work on the fly.
program Pker;
{$I SRL/SRL.SIMBA}
{
F6-F8 (Pray)
Inventory (642,168)(671,204)
Pray (705,173)(726,202)
PMagic (636,262)(647,270)
PRange (673,256)(689,271)
PMelee (709,258)(723,269)
}
var
Ti: Integer;
Mi: Tpoint;

Procedure PrayPro(PType: Integer);
Begin
Ti := GetCurrentTab;
GetMousePos(Mi.x , Mi.y);
Mouse(RandomRange(705, 726), RandomRange(173, 202), 0, 0, true);
Wait(100);
If PType = 1 Then Mouse(RandomRange(636, 647), RandomRange(260, 270), 0, 0, true);
If PType = 2 Then Mouse(RandomRange(673, 689), RandomRange(260, 270), 0, 0, true);
If PType = 3 Then Mouse(RandomRange(709, 723), RandomRange(260, 270), 0, 0, true);
If Gametab( Ti) then
Mmouse(Mi.x, Mi.y, 0, 0);
End;

Begin
Setupsrl;
//Cleardebug;
Mousespeed:=9999;
repeat
If Isfkeydown(6)Then
PrayPro(1);
If Isfkeydown(7) Then
PrayPro(2);
If Isfkeydown(8) Then
Praypro(3);
until false;
End.
f6-f8. works like a champ. thanks main :)

Justin

2012-06-10 01:53:40

From: riwu
i remember the color for its ranged and magic attack animation is quite different, or using AveragePixelShift/bitmap may work too. The script itself is not that complicated, but the problem is that jad is not easily accessible. (go through 62 waves each time just to test?)

Also when the healers appear u will still have to pray switch urself (unless the script kills the healers for u too, which may need quite a bit of work).

Just watch some jad vids/practise pray switching on other monster first, or use gano full and pray ranged all the way ;)


Really? bitmap? You must be joking.


From: pwnedchoo
With lots of help from Main, he made a script for the deflect curses to work on the fly.
program Pker;
{$I SRL/SRL.SIMBA}
{
F6-F8 (Pray)
Inventory (642,168)(671,204)
Pray (705,173)(726,202)
PMagic (636,262)(647,270)
PRange (673,256)(689,271)
PMelee (709,258)(723,269)
}
var
Ti: Integer;
Mi: Tpoint;

Procedure PrayPro(PType: Integer);
Begin
Ti := GetCurrentTab;
GetMousePos(Mi.x , Mi.y);
Mouse(RandomRange(705, 726), RandomRange(173, 202), 0, 0, true);
Wait(100);
If PType = 1 Then Mouse(RandomRange(636, 647), RandomRange(260, 270), 0, 0, true);
If PType = 2 Then Mouse(RandomRange(673, 689), RandomRange(260, 270), 0, 0, true);
If PType = 3 Then Mouse(RandomRange(709, 723), RandomRange(260, 270), 0, 0, true);
If Gametab( Ti) then
Mmouse(Mi.x, Mi.y, 0, 0);
End;

Begin
Setupsrl;
//Cleardebug;
Mousespeed:=9999;
repeat
If Isfkeydown(6)Then
PrayPro(1);
If Isfkeydown(7) Then
PrayPro(2);
If Isfkeydown(8) Then
Praypro(3);
until false;
End.
f6-f8. works like a champ. thanks main :)


Dat 9999 MouseSpeed

Main

2012-06-10 02:10:29

sexy ain't?