$merchant(has, "Water Flask") broken?

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

Moderator: MacroQuest Developers

cybernerd
a lesser mummy
a lesser mummy
Posts: 38
Joined: Tue May 13, 2003 11:05 pm

$merchant(has, "Water Flask") broken?

Post by cybernerd » Tue May 13, 2003 11:18 pm

To quote the help file:

$merchant(has,"item name")
Returns TRUE if merchant has an item.


I have tried to use this command several times with no success. I have the latest CVS and all that stuff, just can't get this command to work correctly, but I am a master at making EQ crash by opening a merchant and running a script with a line that reads:

/if $merchant(has, "Water Flask") == "TRUE" /echo he has water!

Can anyone tell me what I am doing wrong? I have tried standing next to the merchant, having the window open, everything. I couldn't find any newer eqgame.ini stuff so I don't think that's the problem. Is there a problem with the $merchant variable?

If someone posts a few line code that uses that command and works I'm sure I could figure it out, but with EQ crashing every time I try and I have to wait for me to finish going LD I am beginning to think it's not me.


Thanks,

-The nerd

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

Post by NealThorpayt » Wed May 14, 2003 3:14 pm

Greetings Constructs,

The current $Merchant code relies on the clsMain offset which is unknown (probably been removed from eqgame at time of new interface). Therfore at this time $merchant will not work.

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

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

Post by Mckorr » Wed May 14, 2003 5:44 pm

Hmmm.... would that also cause $cursor to have problems? I was using a conditional yesterday of the type

/if $cursor(name)=="somestring" /call subroutine

And the subroutine was never called. However, a similar statement,

/if $cursor()==NULL

seems to have worked fine.