Page 1 of 1

/mana not working?

Posted: Thu Apr 17, 2003 3:48 pm
by Nesu
In the latest release it looks as if the /mana command is no longer available. Was that intentional?

Anyway, I added the command back in as it is one that I use a lot. I shall post the code if anyone shows interest.

Posted: Thu Apr 17, 2003 6:03 pm
by Amadeus
I think it was an actual macro before put in the ini file, though I have forgotten the syntax.

Please post what you use though.

Posted: Thu Apr 17, 2003 6:26 pm
by Nesu
Add this function to eqlib.cpp

Code: Select all

// ***************************************************************************
// Function:    Mana
// Description: Our '/Mana' command
// Usage:       /Mana
// ***************************************************************************
VOID Mana()
{
	PCHARINFO pCharInfo = GetCharInfo();
	DWORD dwMaxMana = GetMaxMana();
	char szMsg[MAX_STRING];

	if(dwMaxMana && pCharInfo)
	{
		sprintf (szMsg, "Current Mana - %d Max Mana - %d", pCharInfo->Mana, dwMaxMana);
		WriteChatColor(szMsg, USERCOLOR_DEFAULT);
	}
}
Add this in TakeControlofCommandList to eqlib.cpp

Code: Select all

{"/mana",		"Mana"},
right above

Code: Select all

{NULL,			NULL}
Add this to MQ.h

Code: Select all

extern "C" EQLIB_API VOID  Mana();
I had just really gotten used to being able to do /mana to see what my mana was. :)

Hope that helps.

Posted: Thu Apr 17, 2003 6:59 pm
by L124RD
Salutations,
LOL! Do this ingame with the line:

Code: Select all

/alias /mana Current Mana - $char(mana,cur) Max Mana - $char(mana,max)
then you can use /mana

Posted: Thu Apr 17, 2003 7:11 pm
by Clawed
Check your config.ini, make sure you've renamed config.ini.dist to config.ini. This, as released on CVS and in the earlier ZIP release, includes the /mana command.

Posted: Thu Apr 17, 2003 7:11 pm
by Nesu
Ahhh...I had never set that alias up before and /mana always worked until the most recent code changes.

Thanks for the tip :oops: