Odd bugs.

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

Moderator: MacroQuest Developers

User avatar
grimjack
Macro Author
Macro Author
Posts: 525
Joined: Thu Nov 07, 2002 6:51 am
Contact:

Odd bugs.

Post by grimjack » Thu Sep 18, 2003 2:58 pm

Just a few things I have noticed that I'm not sure anyone knows about yet.

/memspell 2 spellname

This works from the commandline but from a macro it's regestering as /memspellset and EQ gives a message about the set not exsisting. I was able to get this working by changing the name of the command to something else other than /memspell. I couldn't figure out why it was passing the command to EQ from a macro though.

/memspell 1 Evacuate
or
/memspell 1 "Evacuate"

This seems to always load "Evacuate: North" for me. I'm not sure if it always matched this way or not. I have not had a chance ot use it with another spell with similar names(such as translocates). I'll try that later.

Thanks
GrimJack
When they come to me, they're in trouble, or they want some. I bust people out of prison, hunt down vampires, fight alien gods -- All the fun jobs people are too squeamish or too polite to do themselves.

Call me a mercenary. Call me an assassin. Call me a villain. I am all that and more.

My name's John Gaunt, but out on the streets of Cynosure, I am called...
GrimJack

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

fix...

Post by EqMule » Thu Sep 18, 2003 9:11 pm

this fixes it, in dev cvs now... with alot of other minor fixes that im doing at the same time...

Code: Select all

PSPELLLIST GetSpellByName(PCHAR szName)
{
	PSPELLLIST pSpell = NULL;
	if (EQADDR_SPELLS == NULL) return NULL;
   	for (DWORD dwSpellID = 0; dwSpellID < TOTAL_SPELL_COUNT; dwSpellID++) {
		pSpell = &(*(*EQADDR_SPELLS)->Spells[dwSpellID]);
		if ((pSpell->ID > 0) && (pSpell->ID < TOTAL_SPELL_COUNT)) {
			if (pSpell->Name != NULL) {
				if (!_stricmp(szName, pSpell->Name)) {
					return pSpell;
				}
			}
		}
	}
	return NULL;
}
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.

FrankJScott
naggy
naggy
Posts: 2365
Joined: Sun Feb 19, 2023 7:11 am

Top Rated Interior Design Blog

Post by FrankJScott » Thu Aug 10, 2023 11:04 pm

Why don't you Google it! before you post