Yago
2014-03-07 17:05:46
I haven't scripting in a while. I'm getting used to the library. Is there a function that detects the interface popup thing you see when you hover(not click, not the weakness) over an attackable npc.
Thanks
Thanks
2014-03-07 17:05:46
2014-03-07 17:22:14
From: Yago
I haven't scripting in a while. I'm getting used to the library. Is there a function that detects the interface popup thing you see when you hover(not click, not the weakness) over an attackable npc.
Thanks
2014-03-07 21:13:48
From: Foundry
Are you talking about mouseover text? Everything to do with that is located here.
2014-03-07 22:46:35
2014-03-07 23:22:35
2014-03-08 00:48:28
From: Clarity
All I see is normal mouseover text when hovering over attackable NPCs.
2014-03-08 01:35:34
2014-03-08 06:47:53
isMouseOverText['Attack']?2014-03-11 22:12:55
2014-03-11 22:22:55
From: Yago
I think I tried isMouseOverText with no results. And I am talking about the picture sdf posted. however, this specific npc shows the full name and level. But now that I notice, there are two interface things open in the picture. I am referring to the one without an hp bar.
isMouseOverText['Attack','oblin','ck G'] etc.
2014-03-12 00:40:34
2014-03-13 18:14:51
2014-03-13 18:57:28
From: Yago
Ok I figured it out. Do we have a function that gets the bounds of the box with the monster's hp in it? The box that contains the weakness?
{FUNCTION -- areWeFighting
Purpose: Checks if we are fighting a brother.
Comments: None.}
function areWeFighting: boolean;
var
x, y, tries: integer;
begin
if not isLoggedIn then
exit;
result := false;
isAkrisae := false;
ClarityDebug('Checking to see if we are in combat.');
while tries < 4 do
begin
if findDTM(earthWeakness, x, y, mainScreen.getBounds()) or
findDTM(airWeakness, x, y, mainScreen.getBounds()) or
findDTM(rangedWeakness, x, y, mainScreen.getBounds()) or
findDTM(rangedWeaknessAlt, x, y, mainScreen.getBounds()) or
findDTM(fireWeakness, x, y, mainScreen.getBounds()) or
findDTM(stabWeakness, x, y, mainScreen.getBounds()) or
findDTM(waterWeakness, x, y, mainScreen.getBounds()) or
findDTM(boltWeakness, x, y, mainScreen.getBounds()) then
begin
if findDTM(boltWeakness, x, y, mainScreen.getBounds()) then
begin
isAkrisae := true;
ClarityDebug('We are fighting Akrisae!');
end;
result := true;
ClarityDebug('Currently in combat with a brother.');
exit;
end
else
inc(tries);
end;
end;Looking at it again actually, it would probably be a lot nicer to have a combatInfo.getBounds() or something.
2014-03-13 23:30:59