Page 1 of 4

Plazmic-20031103.diff

Posted: Mon Nov 03, 2003 10:43 pm
by Plazmic
Added EQLib_Custom / custom.ini ... hopefully the file comments are self explainitory.
It's to make it easier for people to have custom commands, events, and variables.

Fixed $lasttell
Made /target's "can't find" message filtered by /filter target
/unload will now /endmacro first
Cost added to item properties page
Some spawntype cleanups
Fixed /who pet -> (null)
Cleaned up second copy of Chat() now that it's the same
Added GuildStatus to _SPAWNINFO and _CHARINFO
Fixed some zoning flakeyness

Diff (against 20031103d) at:
http://macroquest2.com/downloads/Plazmic-20031103d.zip

With all these fixes, I fully expect to break something, but I haven't noticed anything odd yet (that wasn't something Lax was working on)

Posted: Mon Nov 03, 2003 10:48 pm
by EqMule
I would cvs it but its really late here now so it will have to wait until tomorrow unless someone else does it, and if you do, get this in as well, its very useful if you have many accounts and cant remember which you currently have logged on.

Code: Select all

VOID GetLoginName(PSPAWNINFO pChar, PCHAR szLine)
{
	CHAR equname[MAX_STRING] = {0};
	CHAR szTemp[MAX_STRING] = {0};
	CHAR szOut[MAX_STRING] = {0};
	PCHAR pSearch = NULL; 
	GetModuleFileName(NULL, gszEQPath, sizeof(gszEQPath)); 
	if (pSearch = strstr(_strlwr(gszEQPath), "\\testeqgame.exe")) {
		*pSearch=0;
	}
	else if (pSearch = strstr(_strlwr(gszEQPath), "\\eqgame.exe")) {
		*pSearch=0;
	}
	sprintf(equname, "%s\\equname.txt", gszEQPath);
	DebugSpew("equname = %s",equname);
	FILE *fequname = fopen("equname.txt", "rt");
	if(fequname) {
		while (!feof(fequname)) {
			fgets(szTemp,MAX_STRING,fequname);
		}
		fclose(fequname);
		if(szTemp) {
			sprintf(szOut,"%s",&szTemp);
			DebugSpew("szOut = %s",szOut);
			WriteChatBuffer(szOut,CONCOLOR_YELLOW);
		}
	}
	return;
}

Posted: Mon Nov 03, 2003 11:39 pm
by Plazmic
Small issue with this diff, it crashes on logout.
To fix, in Pulse() change:

Code: Select all

pChar = pCharInfo->pSpawn;
to

Code: Select all

if (!(pChar = pCharInfo->pSpawn)) return;

Posted: Tue Nov 04, 2003 12:11 am
by Plazmic
EqMule00 wrote:

Code: Select all

VOID GetLoginName(PSPAWNINFO pChar, PCHAR szLine)
{...}
Please don't CVS this... I took it apart and made it a /loginname function and a $loginname variable, which will be in my next diff...
Btw, it isn't accurate if you log in 2 clients from the same install directory.

Posted: Tue Nov 04, 2003 12:35 am
by EqMule
well thats even better.

I thought of writing a macroparm, but I have somewhat a limited amount of time theese days, and besides, I am putting my devving on hold im to afraid ill break something in mq with everything going on and so many ppl adding things to it lol.

When it slows down, i will start putting some off my stuff in that I have in my personal copy, but until then, pasting it on the board seems like a better idea since it lets it get fixed before it hit the zip or cvs.

Posted: Tue Nov 04, 2003 12:58 am
by dont_know_at_all
CVSed and zipped.

Posted: Tue Nov 04, 2003 2:43 am
by Lax
Think you forgot to cvs add the new files

Posted: Tue Nov 04, 2003 2:55 am
by dont_know_at_all
D'oh.

Fixed and refixed.

Posted: Tue Nov 04, 2003 3:30 am
by ap50
Can I ask a favour, please could you zip the contects from within the folder, my macroquest source is in a folder called development, and when you zip the whole folder from it's parent, I have to move stuff around, only DNAA seems to do it this way, and it's just a niggling inconvenience.

/whine off :)

Posted: Tue Nov 04, 2003 4:21 am
by dont_know_at_all
By your command....


Also, I fixed the /zem crash. Zem was calling Chat directly. Bad zem.

Re: Plazmic-20031103.diff

Posted: Fri Oct 03, 2025 2:53 pm
by xyilla

Re: Plazmic-20031103.diff

Posted: Fri Oct 03, 2025 2:54 pm
by xyilla

Re: Plazmic-20031103.diff

Posted: Fri Oct 03, 2025 2:55 pm
by xyilla

Re: Plazmic-20031103.diff

Posted: Fri Oct 03, 2025 2:56 pm
by xyilla

Re: Plazmic-20031103.diff

Posted: Fri Oct 03, 2025 2:57 pm
by xyilla