Welcome
Welcome to <strong>SunUO</strong>.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, <a href="/profile.php?mode=register">join our community today</a>!

Just a hint

Support for modifying scripts or writing your own

Just a hint

Postby Maik on Sat Sep 01, 2007 3:31 pm

Hello folks,

I do a custom vendor system right now, based upon mysql connections for storing the sell/buy-data.

I learned after hours of confusion, that my scripts are ok, but a limitation of the amount is in the legacy scripts:

Scripts/legacy/Mobiles/Vendors/GenericBuy.cs, line 245:

amount = 20;

This will results in fixed values for any! item in the buy list. If you put an amount through GenericBuyInfo constructor, it would be ignored:

Code: Select all
new GenericBuyInfo( type, price, amount, itemid, 0);


When the custom vendor system will be ready for use, I will add it to this archive if someone wants it.

PS: Could the server administrator please add support for C# syntax highlighting?
User avatar
Maik
 
Posts: 30
Joined: Wed Aug 15, 2007 3:30 pm

Return to Script Support

Who is online

Users browsing this forum: No registered users and 0 guests

cron