Go Back   RunUO - Ultima Online Emulation > RunUO > General Discussion

General Discussion General discussion for the RunUO community, all off-topic posts will be deleted. This forum is NOT FOR SUPPORT!

Reply
 
Thread Tools Display Modes
Old 03-23-2004, 02:20 PM   #1 (permalink)
Forum Novice
 
Bane's Avatar
 
Join Date: Jul 2003
Posts: 122
Default Supply and Demand Vendors In V 1.0

Will there be a way to overide this system in 1.0 or will it be left as is.

If it is left as is are there signifigant changes being made to that system.

Trying to figure out wether to do a re-write now or wait till 1.0 is released, or what ever is to follow 36, asssuming that is 1.0.

This supply and demand thing was my only real dissapointment in 36 as for small shards, and or shards with custom vendor npc's it is a problem and not easy to fix, bad word, not broke lets say modify.

After searching the script forums countless times I have still not been able to find a good, (Or proper), solution to this problem. Mainly because of the restock code.

Thanks for any information you can provide.
Bane is offline   Reply With Quote
Old 03-23-2004, 02:56 PM   #2 (permalink)
Code Junkie
 
Join Date: Mar 2003
Age: 31
Posts: 207
Send a message via ICQ to jevansfl
Default

Quote:
Originally Posted by Bane
Will there be a way to overide this system in 1.0 or will it be left as is.

If it is left as is are there signifigant changes being made to that system.

Trying to figure out wether to do a re-write now or wait till 1.0 is released, or what ever is to follow 36, asssuming that is 1.0.

This supply and demand thing was my only real dissapointment in 36 as for small shards, and or shards with custom vendor npc's it is a problem and not easy to fix, bad word, not broke lets say modify.

After searching the script forums countless times I have still not been able to find a good, (Or proper), solution to this problem. Mainly because of the restock code.

Thanks for any information you can provide.
I will look at my script when I get home tonight. I modified it to work better on smaller shards.
jevansfl is offline   Reply With Quote
Old 03-23-2004, 04:21 PM   #3 (permalink)
Forum Novice
 
Bane's Avatar
 
Join Date: Jul 2003
Posts: 122
Default

Quote:
Originally Posted by jevansfl
I will look at my script when I get home tonight. I modified it to work better on smaller shards.
Would be greatful, so far I have only found script mods that either don't restock properly or add the items mod, ie 20 to all items so if you change to 999 useful for regs it also uses 999 for chairs and all vendor items.

Unfortionatly the 35 system was perfect. could add what ever ya liked to a given pc.

Again thanx.
Bane is offline   Reply With Quote
Old 03-23-2004, 10:31 PM   #4 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

The vendor restock system is 100% scripted.

You can change it now.
Phantom is offline   Reply With Quote
Old 03-24-2004, 02:13 AM   #5 (permalink)
Forum Novice
 
Bane's Avatar
 
Join Date: Jul 2003
Posts: 122
Default

Quote:
Originally Posted by Phantom
The vendor restock system is 100% scripted.

You can change it now.
jevansfl, thanks but after reviewing the code it was and increadibly simple fix.

For those doing a search on this, to regain control of your inventory do the following.

in genericbuy.cs

remove or hash out

amount = 20;

Then Change the public void OnRestock() method to

public void OnRestock()
{
if ( m_Amount < m_MaxAmount )
m_Amount = m_MaxAmount;
}

and vendors will restock with items as you lay them out in your sbinfo files.

Thanks phantom for your response.

If I missed something here please correct me, works fine for me though.
Bane is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5