Distance Display mod

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

eq_freak
a ghoul
a ghoul
Posts: 105
Joined: Mon Jun 24, 2002 7:17 am

Distance Display mod

Post by eq_freak » Sat Aug 02, 2003 11:09 am

Little mod that might be handy for the spellcasters out there:

In EQLib_Main.cpp change:

Code: Select all

	while (!gbUnload) {
		Sleep(1000);
	}
to

Code: Select all

	while (!gbUnload) {

		if (*EQADDR_TARGET!=NULL)
		{
			PSPAWNINFO mychar = ((PCHARINFO)(*EQADDR_CHAR_INFO))->pSpawn;
			int dist = (int) DistanceToSpawn(mychar, *EQADDR_TARGET);
			char temp[32];
			sprintf(temp,"%d", dist);
			strcpy(mychar->Lastname, temp);
		}

		Sleep(250);
	}
This will overwrite your lastname with the distance to your current target 4 times pr second.

In the default UI it will be just below your firstname, but you could play arround with your UI and place it anywhere you want

Valerian
a grimling bloodguard
a grimling bloodguard
Posts: 709
Joined: Sun Jul 28, 2002 3:29 am

Post by Valerian » Sat Aug 02, 2003 12:54 pm

interesting little mod... would have never thought of doing that.

Gandalf_the_White
decaying skeleton
decaying skeleton
Posts: 7
Joined: Sat Apr 12, 2003 3:52 pm

Post by Gandalf_the_White » Sat Aug 02, 2003 2:14 pm

you could modify the target window to display /whotarget info in real time...

fwiggles
a hill giant
a hill giant
Posts: 161
Joined: Mon Jun 17, 2002 8:29 pm

Post by fwiggles » Sat Aug 02, 2003 3:43 pm

isn't this what was talked about in a previous thread? the ability to add macroquest enhanced features into your UI? i think what gandalf says would be cool, maybe even have a whole table of info come up when you target something, i dunno just a thought. i don't have a whole lot of knowledge with coding and crap =P
[color=red]Latest survey shows that 3 out of 4 people make up 75% of the world's population.[/color]

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Post by wassup » Sat Aug 02, 2003 3:52 pm

***Do NOT point it to your first name.

When people were targetting me for invites to group or whatever... I was showing as a number instead of my name.

Not so sure this is a good idea after having people tell me this stuff.

I immediately relogged and undid the changes.

fwiggles
a hill giant
a hill giant
Posts: 161
Joined: Mon Jun 17, 2002 8:29 pm

Post by fwiggles » Sat Aug 02, 2003 8:31 pm

rofl that's crazy, good thing people would only think it was a bug lol
[color=red]Latest survey shows that 3 out of 4 people make up 75% of the world's population.[/color]