View unanswered posts | View active topics
|
Page 1 of 1
|
[ 10 posts ] |
|
| Author |
Message |
|
SMJ
|
Post subject: VendorSellsFor Override Posted: Tue Dec 05, 2006 6:15 am |
|
Joined: Wed May 10, 2006 5:15 pm Posts: 113
|
It would be nice to have the ability to give an alternate price to an object, depending on whatever circumstances you wish to apply to it via your scripts.
Just off the top of my head:
- "Exceptional" items could cost more than items of poor quality.
- Supply/Demand (The less of the item the npc is carrying, the more they charge you for it.)
- Prices varying by region (Bananas cost less in Delucia than in Britain.)
I don't know how difficult this would be, but I can't think of a way to do this with scripts without losing the current "Sell Scroll" in its entirety.
|
|
| Top |
|
 |
|
Marilla
|
Post subject: Posted: Tue Dec 05, 2006 7:11 am |
|
|
|
|
Triple post, I guess! Eek
Last edited by Marilla on Tue Dec 05, 2006 11:09 am, edited 1 time in total.
|
|
| Top |
|
 |
|
Marilla
|
Post subject: Posted: Tue Dec 05, 2006 7:14 am |
|
|
|
|
Sorry... double post!
Last edited by Marilla on Tue Dec 05, 2006 7:18 am, edited 1 time in total.
|
|
| Top |
|
 |
|
Marilla
|
Post subject: Posted: Tue Dec 05, 2006 7:16 am |
|
|
|
|
Couple of things that strike me;
First, it would seem like such an 'override' would have to be an item member. Considering there are already sell/buy price members, it seems a bit redundant and possibly a waste of memory.
Second, though, I'm not sure how you intend to trigger such an 'override', except by script. All of which leads me here:
Why not just script it? Use an OnInsert script on the sell container of the vendors to check for item quality or the 'region' of the vendor, and modify the sell price member.
Then have a periodic script running (perhaps when your vendor restocks, or any time periodically that you wish) that checks any supply/demand criteria you wish.
Any 'override' property would have to be altered in the above ways anyway, because you aren't really talking about something that the core can just automatically do; So it needs to be scripted anyway. So, I really don't see how anything beyond the existing sell price member would help.
|
|
| Top |
|
 |
|
CWO
|
Post subject: Posted: Tue Dec 05, 2006 10:57 am |
|
 |
| Certified POL Expert |
 |
Joined: Sat Feb 04, 2006 5:49 pm Posts: 794 Location: Chicago, IL USA
|
|
| Top |
|
 |
|
SMJ
|
Post subject: Posted: Tue Dec 05, 2006 12:41 pm |
|
Joined: Wed May 10, 2006 5:15 pm Posts: 113
|
|
| Top |
|
 |
|
Yukiko
|
Post subject: Posted: Tue Dec 05, 2006 12:42 pm |
|
 |
| Certified POL Expert |
 |
Joined: Thu Feb 02, 2006 1:41 pm Posts: 1207 Location: Southern Central USA
|
|
I know this might be off-topic but is that reference to sellprice and buyprice different than VendorVendorBuysFor and VendorSellsFor?
I did notice that the former members are read/write and the latter were always read only.
_________________ Sincerely,
Yukiko
I know you think you understand what you thought I said but what you heard is not exactly what I meant.
Titus 2:13
|
|
| Top |
|
 |
|
Marilla
|
Post subject: Posted: Tue Dec 05, 2006 1:40 pm |
|
|
|
|
I've only worked with POL from 092, and maybe it'd been so long I'm forgetting things, but has it not always been item.buyprice and item.sellprice, and have they not always been read/write?
Or are you perhaps thinking of the itemdesc.cfg element properties VendorSellsFor and VendorBuysFor? Since those are Config file element properties, they are of course 'read-only'. I don't recall item members by those names, though.
|
|
| Top |
|
 |
|
CWO
|
Post subject: Posted: Tue Dec 05, 2006 6:14 pm |
|
 |
| Certified POL Expert |
 |
Joined: Sat Feb 04, 2006 5:49 pm Posts: 794 Location: Chicago, IL USA
|
|
I was thinking when referencing "exceptional" and "poor" that the reference was the same thing I have in my crafting system. Things made from different ores cost different and exceptional/poor affects cost likewise. This is all by modding the .buyprice of the items as they're created. And this does override VendorBuysFor and VendorSellsFor.
|
|
| Top |
|
 |
|
Yukiko
|
Post subject: Posted: Tue Dec 05, 2006 9:35 pm |
|
 |
| Certified POL Expert |
 |
Joined: Thu Feb 02, 2006 1:41 pm Posts: 1207 Location: Southern Central USA
|
|
Yes Marilla, I was thinking of the itemdesc.cfg members. I kep forgetting that there are more members than just those even though I use them all the time.
Must be getting old. Either that or I need a bio-memory upgrade.
_________________ Sincerely,
Yukiko
I know you think you understand what you thought I said but what you heard is not exactly what I meant.
Titus 2:13
|
|
| Top |
|
 |
|
Page 1 of 1
|
[ 10 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 0 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|