Is anyone else having a prob with $char(gem,xxx)

A forum for the general posts relating to MacroQuest. *DEPRECATED: This forum is no longer in public use, but remains here for your reading pleasure. Enjoy

Moderator: MacroQuest Developers

fury
decaying skeleton
decaying skeleton
Posts: 8
Joined: Wed Mar 19, 2003 4:10 am

Is anyone else having a prob with $char(gem,xxx)

Post by fury » Tue Apr 22, 2003 11:18 pm

I get booted to desktop if I try to use that command. Was wondering if others are having this prob as well. If it is broke is there any guess as of when it will be fixed?

thanks
Fury

Clawed
a ghoul
a ghoul
Posts: 105
Joined: Mon Jan 20, 2003 6:17 am

Post by Clawed » Tue Apr 22, 2003 11:26 pm

Yeah, I had that problem too, it crashes the client. Probably the struct is still wrong or something, I haven't had time to look into it yet.
Clawed

ewiggins
decaying skeleton
decaying skeleton
Posts: 2
Joined: Fri Apr 25, 2003 6:44 am

Post by ewiggins » Fri Apr 25, 2003 6:49 am

The struct/offsets for the spellgem info hasn't been found since about 2-3patches ago.

NealThorpayt
Developer
Developer
Posts: 66
Joined: Thu Mar 13, 2003 2:14 pm
Location: Miskatonic University
Contact:

Problem only looking up by name...

Post by NealThorpayt » Fri Apr 25, 2003 7:57 pm

Greetings Constructs,

With the new offsets and structures (after the 26th) the $char(gem,xxx) command works for requesting information about a gem by slot number.

:!: However, it will not work for requesting information about a specific gem by name. This is becuase the functionality requires the offset for clsMain. Which, is currently unknown. The command blindly uses the offset (none) which causes a bad pointer reference. If, or when, we get the offset for clsMain then it should work again.

End of line...
By the pricking of my thumb, something wicked this way comes...

fury
decaying skeleton
decaying skeleton
Posts: 8
Joined: Wed Mar 19, 2003 4:10 am

Thanks NealThorpayt

Post by fury » Fri Apr 25, 2003 10:22 pm

Ok thanks for the info :-)

Clawed
a ghoul
a ghoul
Posts: 105
Joined: Mon Jan 20, 2003 6:17 am

Post by Clawed » Sat Apr 26, 2003 1:14 am

That code should be adjusted to not reference the pointer if it's null.
Clawed

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

Post by Mckorr » Sat Apr 26, 2003 10:28 am

All the code should be adjusted to not reference any null pointers, and they should be removed from the ini file.

But who's got time? :D

Clawed
a ghoul
a ghoul
Posts: 105
Joined: Mon Jan 20, 2003 6:17 am

Post by Clawed » Sat Apr 26, 2003 7:15 pm

Well it only takes one line... I was just speaking of this particular instance, since we've just identified it here.

Code: Select all

if (!OFFSET) return;
Clawed