Consignment system

mycroft

Script Author: MyPrices
I've been working on a way to try and make my prices in the consignment system are the same or lower than other peoples until a 'minimum' price is reached , Ive' got almost all of the code working fully now but I've hit a bit of a brick wall.

There doesn't seem a way to read the name of a seller of items so I can't calculate the % commission on my consignments by checking for my own character name.

(Some containers give a % reduction of commission)

The reason I need this is , if someone selling in the same city charges 77 silver for an item at 20% commission then I can sell it for 83 silver in a container at 10% and still be below their price.

The second problem is I can't seem to move forward in the paged list of sellers when I do a search for a particular item , so I can't check all the items for the cheapest price , only the first page of 8.

Code:
while "${CurrentPage:Inc}<=${Vendor.TotalSearchPages}"
The above doesn't work as ${Vendor.TotalSearchPages} always returns a value of 1.

I'm hoping someone can think of a way around these if possible or point me in the right direction.
 

Amadeus

The Maestro
Staff member
The above doesn't work as ${Vendor.TotalSearchPages} always returns a value of 1.
If that's the case then I need to look at it and fix it.

There doesn't seem a way to read the name of a seller of items so I can't calculate the % commission on my consignments by checking for my own character name.
I'm not sure I understand what you're saying here. Yes, it's not possible to see the seller's name; however, you can determine the % commission by checking the 'market' member of the consignment/vendor datatype against the bind location of the character (or some other saved value).

Code:
June 22, 2007 -- By Amadeus
[ISXEQ2-20070607.0088]
* Added new MEMBERS to the 'consignment' datatype:
  1. IsListed              (bool type)
[B] 2. Market                (string type)[/B]
[B]   ~ Possible values: "Qeynos", "Freeport", "Kelethin", "Haven", "Neriak"  [/B](or "Unknown", which should not be possible)
* Added new MEMBER to the 'vendingcontainer' datatype:
[B] 1. Market                (string type)[/B]
There is also a 'commission' member of the vendor datatype ...wouldn't that help as well?
 

lotuse

Active Member
Amadeus said:
If that's the case then I need to look at it and fix it.
I was about to post about this as well... thought I must have been doing something wrong. It doesnt always return 1, just most of the time. I have had it return -1, 0, 3, but mostly 1.

Vendor.CurrentSearchPage is broken too.
 

Amadeus

The Maestro
Staff member
Code:
October 8, 2007 -- By Amadeus
[ISXEQ2-20071001.0038]
* Fixed several MEMBERS of the 'vendor' datatype
 
Top Bottom