Simple script, can't make it work

DiBi

Member
Code:
function main()
{
  ISXEQ2:ResetInternalVendingSystem
  echo ${Vendor.Broker[1].Name}
}
This script always return me "NULL" :(
Broker is selected, list is populated. I've even disabled the ProfitUI - still nothing.

Also it is strange, that with the broker window opened it returns me Vendor.IsMerchant = True and Vendor.IsBroker = False. However, Vendor.Merchant[1].Name is also NULL.

Any ideas what is wrong?
 

Amadeus

The Maestro
Staff member
${Vendor} returns a 'vendor' datatype item. If you type "lstype vendor" in the console, you'll see all the members/methods of the 'vendor' datatype (i.e., "Item", "IsBroker", etc.) You can also type 'lstype item' to see all of the "item" datatype members/methods.

You can also look through ALL of the ISXEQ2Changes.txt and ISXEQ2Changes(Archives).txt files and read carefully anything that involves broker/vendors.

No one should even attempt scripting with ISXEQ2 without having read through both of those files completely.



-------------

And, I just looked at the 'craft' script and it uses ${Vendor.Item[1].Name} for buying things from the broker. So, if craft is working for you, then that should be working as well.
 
Top Bottom