SRL Archive - Research & Development Lounge

Very Simple but usefull :p


NiCbaZ

2008-07-13 06:56:38

I have not really made many things like this so it is kinda very simple :p but if any one wants to use in there script feel free :)

Function FightingStyleOnStyle(Style:String) : Boolean;
begin
case LowerCase(Style) of
'att','1': Result := (GetColor(634, 281) =2369440) and LoggedIn;
'str','2': Result := (GetColor(718, 277) =2369440) and LoggedIn;
'def','3': Result := (GetColor(717, 315) =2369440) and LoggedIn;
end;
end;

Gets if they are turned on


procedure FightingStyle(Style: string; on_off: Boolean);
begin
GameTab(1);
case LowerCase(Style) of
'att','1':
begin
case (on_off) of
True: if not FightingStyleOnStyle('att') then
MouseBox(575, 289,627,287,1);
False: if FightingStyleOnStyle('att') then
Writeln('att is already on')
end;
end;
'str','2':
begin
case (on_off) of
True: if not FightingStyleOnStyle('str') then
MouseBox(659,286,712,292,1);
False: if FightingStyleOnStyle('str') then
Writeln('str is already on')
end;
end;
'def','3':
begin
case (on_off) of
True: if not FightingStyleOnStyle('def') then
MouseBox(657,338,708,338,1);
False: if FightingStyleOnStyle('def') then
Writeln('def is already on')
end;
end;
end;
end;

a simple
FightingStyle('att',true);
to use ignore the true/false on the end im going do something with that later

im sure there are mush faster/better ways to do this but use if you want

ShowerThoughts

2008-07-13 07:56:06

Dude, def is at thing 4 not at 3 ;)

Bobzilla69

2008-07-13 07:57:53

From: Hermpie
Dude, def is at thing 4 not at 3 ;)


i thought defence was 3 and controlled was 4

ShowerThoughts

2008-07-13 08:00:01

From: bobzilla69
i thought defence was 3 and controlled was 4


Hmm, i dont play rs anymore not sure =/

PvH

2008-07-13 08:04:56

Hermpie is right^^
1 is attack
2 is strength
3 is shared
4 is defence;)

PvH

ShowerThoughts

2008-07-13 08:12:20

From: pvh
Hermpie is right^^
1 is attack
2 is strength
3 is shared
4 is defence;)

PvH


Pwned :p

Bobzilla69

2008-07-13 08:19:34

lol, i am mistaken then, but it depends what you have equiped.
if nothing is equiped defence is 3, bows have defence also as 3, and i think staffs aswell

PvH

2008-07-13 08:34:54

From: bobzilla69
lol, i am mistaken then, but it depends what you have equiped.
if nothing is equiped defence is 3, bows have defence also as 3, and i think staffs aswell


He has a point there:rolleyes:
Hermpie and I are pwned now :(
1-1 lol:p

So, Nicbaz should make an option to select which way of fighting you use^^

PvH

NiCbaZ

2008-07-13 14:41:52

hmm ok this function does not really surport style 3 '3' if the sytle 4 really