$invpanel ? does it still work?

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

loadingpleasewait
a snow griffon
a snow griffon
Posts: 332
Joined: Sat Sep 14, 2002 8:46 am

$invpanel ? does it still work?

Post by loadingpleasewait » Wed May 21, 2003 1:00 am

I mean, its really no problem to keep it open, but why?

the function I used to use it with would be for a forage macro..

Code: Select all

sub invwait 
      :invwaitloop 
        /delay 1
        /doevents 
        /if $invpanel!=TRUE{ 
         /press i 
         /goto :invwaitloop 
        } 
/return 
but now that crashes me.. = (
LOADING PLEASE WAIT...

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 » Wed May 21, 2003 2:56 am

you need the correct clsInvPanel and clsMain, if the still exist, which i doubt.

Sman
orc pawn
orc pawn
Posts: 13
Joined: Tue Jun 03, 2003 11:47 pm

Post by Sman » Tue Jun 03, 2003 11:48 pm

I haven't been able to find offsets for either clsMain or clsInvPanel. Is there anyway around this to find if the inventory panel is open? Any help would be appreciated.
eq n00b!

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 » Wed Jun 04, 2003 12:05 am

/press esc
/press esc
/press esc
/press esc
/press esc
/press esc
/press esc
/press esc
/press esc
/press esc
/press i

the inventory panel is probably open.

Sman
orc pawn
orc pawn
Posts: 13
Joined: Tue Jun 03, 2003 11:47 pm

Post by Sman » Wed Jun 04, 2003 12:08 am

hehe, I guess I should expand a bit further. I wanted to check to see if the inventory panel was open based upon someone handing something to you. Any way to check for that w/o using $invpanel?
eq n00b!

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Wed Jun 04, 2003 8:54 am

Someone, can't remember who right now, knows the offsets etc. to invoke any window directly, causing it to open and close. None of that is currently integrated into the source, but should be a way to use that to fix $invpanel...

In EQLib_Mouse there is a block of code, IsEnviroOpen. That also uses the "cls" offsets. That block really doesn't do anything right now except prevent compiling errors.

IsEnviroOpen is a boolean that checks whether containers, either in your inventory or an environmental (forge, loom, etc) is open.

Seems like both pieces of code could be fixed using the same technique.
MQ2: Think of it as Evolution in action.

Sman
orc pawn
orc pawn
Posts: 13
Joined: Tue Jun 03, 2003 11:47 pm

Post by Sman » Wed Jun 04, 2003 10:34 am

So what you are saying is currently there is no easy workaround for $invpanel? I guess I'll have to come up with something very creative to get my code to work correctly. Are there any plans to get $invpanel working in the near future? Thanks for all your help!
eq n00b!

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Wed Jun 04, 2003 11:08 am

I don't know what's in the code for $invpanel. Suppose I can take a look at it, but there are others more qualified than me. lol Have to admit I usually go after problems that affect things I use, and since I don't use $invpanel for anything....

Will take a look and see what I can figure out.
MQ2: Think of it as Evolution in action.

Sman
orc pawn
orc pawn
Posts: 13
Joined: Tue Jun 03, 2003 11:47 pm

Post by Sman » Wed Jun 04, 2003 11:33 am

That would be great if you could take a look at it. I'm looking at the code for it right now, but I don't know C++ very well and am not good at all working with memory locations. Looks like it wouldn't be too hard to fix if I knew more about how EQ worked. I guess I'll try to muck around and see if I can figure anything out. Let me know if you figure anything out and I'll download the new source and recompile.
eq n00b!