Item prices in current database

A place to submit .patch fixes for the DOL SVN

Moderator: Developer Team

Item prices in current database

Postby Daeli » Sun May 16, 2010 11:31 am

Hi there,

just a small contribution to add the prices to the itemtemplate db. I guess the price Column is expressed in copper? If so this script will calculate the correct prices for your db.

Code: Select all
use dol;
update itemtemplate set price = gold * 10000 + silver * 100 + copper;


Greetings,
daeli
User avatar
Daeli
DOL Experienced
 
Posts: 160
Joined: Mon Apr 09, 2007 10:43 pm

Re: Item prices in current database

Postby Graveen » Sun May 16, 2010 11:53 am

Ty Daeli.

For all the chanegs related to Inventory changes, you can execute the script included here: viewtopic.php?f=59&t=16083

Precisely, it handles the case where one column is null instead of 0.
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: Item prices in current database

Postby Daeli » Sun May 16, 2010 12:33 pm

Oh, sorry didn't see that post.
User avatar
Daeli
DOL Experienced
 
Posts: 160
Joined: Mon Apr 09, 2007 10:43 pm


Return to “%s” DOL Code Contributions

Who is online

Users browsing this forum: No registered users and 1 guest