PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
VendorSellsFor Override

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    PenUltima Online Forum Index -> Feature Suggestions
Display posts from previous:   

Author Message
SMJ



Joined: 10 May 2006
Posts: 113

PostPosted: Tue Dec 05, 2006 10:15 am    Post subject: VendorSellsFor Override Reply with quote

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.

Author Message
Marilla



Joined: 02 Feb 2006
Posts: 329

PostPosted: Tue Dec 05, 2006 11:11 am    Post subject: Reply with quote

Triple post, I guess! Eek

Last edited by Marilla on Tue Dec 05, 2006 3:09 pm; edited 1 time in total

Author Message
Marilla



Joined: 02 Feb 2006
Posts: 329

PostPosted: Tue Dec 05, 2006 11:14 am    Post subject: Reply with quote

Sorry... double post!

Last edited by Marilla on Tue Dec 05, 2006 11:18 am; edited 1 time in total

Author Message
Marilla



Joined: 02 Feb 2006
Posts: 329

PostPosted: Tue Dec 05, 2006 11:16 am    Post subject: Reply with quote

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.

Author Message
CWO



Joined: 04 Feb 2006
Posts: 699
Location: Chicago, IL USA

PostPosted: Tue Dec 05, 2006 2:57 pm    Post subject: Reply with quote

this already exists. Item.buyprice item.sellprice

http://poldoc.fem.tu-ilmenau.de/pol096/objref.php##Item

Author Message
SMJ



Joined: 10 May 2006
Posts: 113

PostPosted: Tue Dec 05, 2006 4:41 pm    Post subject: Reply with quote

CWO wrote:
this already exists. Item.buyprice item.sellprice

http://poldoc.fem.tu-ilmenau.de/pol096/objref.php##Item


Thanks! I kind of had the feeling that I had over-looked something... :S

Author Message
Yukiko



Joined: 02 Feb 2006
Posts: 1094
Location: Southern Central USA

PostPosted: Tue Dec 05, 2006 4:42 pm    Post subject: Reply with quote

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.

Author Message
Marilla



Joined: 02 Feb 2006
Posts: 329

PostPosted: Tue Dec 05, 2006 5:40 pm    Post subject: Reply with quote

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.

Author Message
CWO



Joined: 04 Feb 2006
Posts: 699
Location: Chicago, IL USA

PostPosted: Tue Dec 05, 2006 10:14 pm    Post subject: Reply with quote

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.

Author Message
Yukiko



Joined: 02 Feb 2006
Posts: 1094
Location: Southern Central USA

PostPosted: Wed Dec 06, 2006 1:35 am    Post subject: Reply with quote

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.

Post new topic   This topic is locked: you cannot edit posts or make replies.    PenUltima Online Forum Index -> Feature Suggestions All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty