Jump to content

Item buy requirements


Recommended Posts

Posted

Hi,

I want to make a patch witch allows you to write into the db witch item or honour an item costs.

ATM im searching the cpp where the client get the informations for that for example at the T8 set.

If someone knows where this is it would be a great help

Hive

Posted

Where the client gets extended cost from? You'll never find that .cpp file because the client looks it up in ItemExtendedCost.dbc...

-edit-

To be more clear, you can only use those .dbc defined entries for items by setting its ID in the vendor entry, you cannot create new extended cost definitions (unless you modify the client).

Say you want to sell something for a "Delicious Chocolate Cake" you cannot do that, you'll have to do a repeatable exchange quest or similar...

Posted
Can I edit the server dbc and change the price there?

Yes google a bit to find out more, but as Davemm said its illegal to modify them.

Still there is legal solution which could be discussed here, you can modify the DBCHandler itself and add/overwrite the values afterwards in the server code. I saw often such hacks here in the forum you may can search a bit and modify them for your use. A perfect solution would be of course a SQL table like "itemcost_overwrite".

Posted
you can modify the DBCHandler itself and add/overwrite the values afterwards in the server code. I saw often such hacks here in the forum you may can search a bit and modify them for your use. A perfect solution would be of course a SQL table like "itemcost_overwrite".

I had almost posted something like this, but then i realized it's not going to work:

The client still looks up the required currencies in his local ItemExtendedCost.dbc and hence it will still display the original values, or if you try to use new IDs, most likely crash.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use