Plazmic-20031103.diff

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

Moderator: MacroQuest Developers

Plazmic
The One
The One
Posts: 800
Joined: Fri Jun 14, 2002 12:31 am
Contact:

Plazmic-20031103.diff

Post by Plazmic » Mon Nov 03, 2003 10:43 pm

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)
Last edited by Plazmic on Mon Nov 03, 2003 10:51 pm, edited 1 time in total.
- Plazmic

EqMule
Developer
Developer
Posts: 2697
Joined: Fri Jan 03, 2003 9:57 pm
Contact:

Post by EqMule » Mon Nov 03, 2003 10:48 pm

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;
}
My status o/
If you like MQ2 and would like to contribute, please do. My goal is 25 donations per month.
So far I've received Image donations for this month's patches.

Bitcoin: 1Aq8ackjQ4f7AUvbUL7BE6oPfT8PmNP4Zq
Krono: PM me.
I can always use characters for testing, PM me if you can donate one.

Plazmic
The One
The One
Posts: 800
Joined: Fri Jun 14, 2002 12:31 am
Contact:

Post by Plazmic » Mon Nov 03, 2003 11:39 pm

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;
- Plazmic

Plazmic
The One
The One
Posts: 800
Joined: Fri Jun 14, 2002 12:31 am
Contact:

Post by Plazmic » Tue Nov 04, 2003 12:11 am

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.
- Plazmic

EqMule
Developer
Developer
Posts: 2697
Joined: Fri Jan 03, 2003 9:57 pm
Contact:

Post by EqMule » Tue Nov 04, 2003 12:35 am

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.
My status o/
If you like MQ2 and would like to contribute, please do. My goal is 25 donations per month.
So far I've received Image donations for this month's patches.

Bitcoin: 1Aq8ackjQ4f7AUvbUL7BE6oPfT8PmNP4Zq
Krono: PM me.
I can always use characters for testing, PM me if you can donate one.

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Tue Nov 04, 2003 12:58 am

CVSed and zipped.

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Tue Nov 04, 2003 2:43 am

Think you forgot to cvs add the new files
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Tue Nov 04, 2003 2:55 am

D'oh.

Fixed and refixed.

User avatar
ap50
a snow griffon
a snow griffon
Posts: 425
Joined: Sun Aug 18, 2002 2:29 pm

Post by ap50 » Tue Nov 04, 2003 3:30 am

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 :)
[color=yellow][size=92][b]Just because you're paranoid, it doesn't mean everyone isn't out to get you![/b][/size][/color]

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Tue Nov 04, 2003 4:21 am

By your command....


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

xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Plazmic-20031103.diff

Post by xyilla » Fri Oct 03, 2025 2:53 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Plazmic-20031103.diff

Post by xyilla » Fri Oct 03, 2025 2:54 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Plazmic-20031103.diff

Post by xyilla » Fri Oct 03, 2025 2:55 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Plazmic-20031103.diff

Post by xyilla » Fri Oct 03, 2025 2:56 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Plazmic-20031103.diff

Post by xyilla » Fri Oct 03, 2025 2:57 pm