$invpanel fixed!

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

Moderator: MacroQuest Developers

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

$invpanel fixed!

Post by EqMule » Thu Jul 31, 2003 9:40 am

ok, this could easily been done a long time ago, since its using a struct, that has been in the cvs for a while, but anyway since noone else bothered, here it is:

in EQLib_MacroParser.cpp

Code: Select all

					[color=green]// $invpanel//this can be expanded to actually open the inventorywindow by setting pInvWindow->Open = 1 and pInvWindow->Selector to 1;[/color]
					} else if (!strncmp("invpanel",szVar,8)) {
						if (!EQADDR_INVENTORYWND) return FALSE;
						PEQWINDOW pInvWindow = NULL;
						pInvWindow = (PEQWINDOW)*EQADDR_INVENTORYWND;
						if (!pInvWindow) return FALSE;
						DWORD PanelStatus = pInvWindow->Open;
						i += 7;
						if (PanelStatus == 1) {
							strcat(szOutput,"TRUE");
							j+=4;
						} else {
							strcat(szOutput,"FALSE");
							j+=5;
						}

					[color=red]// $if(n,a,b,c)[/color]
in EQLib.h

Code: Select all

extern DWORD *EQADDR_INVENTORYWND;
in EQLib_Main.cpp

Code: Select all

DWORD *EQADDR_INVENTORYWND;

Code: Select all

	GetPrivateProfileString("Class Locations","InventoryWindow","0",szBuffer,MAX_STRING,ClientINI);		EQADDR_INVENTORYWND = (PDWORD)strtoul(szBuffer,NULL,16);
in eqgame.ini

Code: Select all

[Class Locations]
InventoryWindow=005FE25C
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.

TomServo
a lesser mummy
a lesser mummy
Posts: 30
Joined: Thu Jul 31, 2003 3:23 pm

Post by TomServo » Thu Jul 31, 2003 3:25 pm

Thank you, mule...that really helped.

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

Post by EqMule » Thu Jul 31, 2003 3:32 pm

I welcome the 'thanks' since I rarely get feedback... :wink:
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.

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

Post by fwiggles » Thu Jul 31, 2003 6:33 pm

your a great asset to the macroquest project eqmule...keep up the good work :D
[color=red]Latest survey shows that 3 out of 4 people make up 75% of the world's population.[/color]

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

Post by EqMule » Thu Jul 31, 2003 7:11 pm

thanks fwiggles 8) sometimes its good to hear that someone is appreaciating one's work, escpecially since there is no money in this for me personally, just peoples gratitude, and if they arent grateful, my only drive is to make theese things work for myself, and then I have no reason to post any code... hmm...
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.

kagonis
a hill giant
a hill giant
Posts: 228
Joined: Sat May 24, 2003 8:48 pm

Post by kagonis » Sun Aug 03, 2003 6:45 am

Wow, I have been looking for that :)
This is awesome, thanks a million, now I'll just wait for it to hit CVS then compile a new one :)

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

Post by EqMule » Sun Aug 03, 2003 9:01 am

glad u liked it. :wink:
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.

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

Post by EqMule » Tue Aug 05, 2003 8:51 pm

can I get this tested and cvsed? 8)
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.