SRL Archive - Discussions and Debates

InFight is FUDGE!


rkroxpunk

2007-06-29 11:58:35

ok making an autofighter and i'm using infight. anyway it's EXTREMELY(understatement) annoyingg because if u right click and the popup box appears on top of ur character it think ur InFight! :fiery:

just thought i'd report it. guess i'll make my own

Pentti

2007-06-29 13:45:37

From: rkroxpunk
ok making an autofighter and i'm using infight. anyway it's EXTREMELY(understatement) annoyingg because if u right click and the popup box appears on top of ur character it think ur InFight! :fiery:

just thought i'd report it. guess i'll make my own

Hmm… When pop up comes up, and it thinks its in fight? I dont think so, in pop up there are not red and green colors, and infight checks for health bar colors on your account.

Bobarkinator

2007-06-29 14:26:51

Pentii yes their are if they monster is a level way below you then it's level displays as green in the pop up box and if they are way above you it's red.

Pentti

2007-06-29 14:56:56

From: bobarkinator
Pentii yes their are if they monster is a level way below you then it's level displays as green in the pop up box and if they are way above you it's red.

Well, my autofighter has no problems with InFight. It works unless you dont put it places like when you right click. :D

JAD

2007-06-29 17:16:07

Do something like this:


procedure MyInFight;
var LeftCorner, RightCorner: Integer;
begin
LeftCorner := BitmapFromString(4, 4, 'z78DA33753135313137C5' +
'411A600064715CEA914500CACE13F0');
RightCorner := BitmapFromString(4, 4, 'z78DA33753135313137' +
'C5200D30002E35F8C501C9C013F0');
if(InFight) and (not(FindBitmapIn(x,y,LeftCorner,MSX1,MSY1,MSX2,MSY2))) and (not(FindBitmapIn(x,y,LeftCorner,MSX1,MSY1,MSX2,MSY2)))then
Result := True;
end;

So that would result true if your in a fight, and the pop up (option choosing thing) isn't open :)

Wanted

2007-06-29 17:33:35

JAD, I don't understand why you need an 'if then' statement…

Couldn't you just use this?

Result := ((InFight) and (not (FindBitmapIn(X, Y, LeftCorner, MSX1, MSY1, MSX2, MSY2))) and (not (FindBitmapIn(X, Y, LeftCorner, MSX1, MSY1, MSX2, MSY2))));

It saves 2 seconds of typing, 2 seconds of thinking, .1 ms of compiling, and 20ms of runtime.

RudeBoiAlex

2007-06-29 17:52:01

is this an r-squared productions? :p is this our script together?

rkroxpunk

2007-06-29 20:52:10

From: JAD
Do something like this:


procedure MyInFight;
var LeftCorner, RightCorner: Integer;
begin
LeftCorner := BitmapFromString(4, 4, 'z78DA33753135313137C5' +
'411A600064715CEA914500CACE13F0');
RightCorner := BitmapFromString(4, 4, 'z78DA33753135313137' +
'C5200D30002E35F8C501C9C013F0');
if(InFight) and (not(FindBitmapIn(x,y,LeftCorner,MSX1,MSY1,MSX2,MSY2))) and (not(FindBitmapIn(x,y,LeftCorner,MSX1,MSY1,MSX2,MSY2)))then
Result := True;
end;

So that would result true if your in a fight, and the pop up (option choosing thing) isn't open :)


thx but did you say that will only work if pop up is not open? cos i need the popup open and for it not to go inFight when that happens. because it's going inFight before it's actually clicking the option, lol

JAD

2007-06-29 23:53:48

From: rkroxpunk
thx but did you say that will only work if pop up is not open? cos i need the popup open and for it not to go inFight when that happens. because it's going inFight before it's actually clicking the option, lol


I don't get the question :p

And @IceFire, sry, I do know how to do that… Just didn't :p

WhiteShadow

2007-06-30 03:12:46

From: Icefire908
JAD, I don't understand why you need an 'if then' statement…

Couldn't you just use this?

Result := ((InFight) and (not (FindBitmapIn(X, Y, LeftCorner, MSX1, MSY1, MSX2, MSY2))) and (not (FindBitmapIn(X, Y, LeftCorner, MSX1, MSY1, MSX2, MSY2))));

It saves 2 seconds of typing, 2 seconds of thinking, .1 ms of compiling, and 20ms of runtime.


zomg…

The Claw

2007-06-30 07:25:28

mmmmm……fudge

Wanted

2007-06-30 12:12:33

From: WhiteShadow
zomg…


Zomg what?

Try putting that in a repeat, it's 10xs faster….

Santa_Clause

2007-07-02 04:22:22

Lmao…why you think :p?