View Full Version : TrinityCore 3.3.5 Error Preview Vendor C++ by Rochet2

06-13-2016, 05:28 PM
hello guys

I have problems compiling this script,
created by rochet2.

someone could fix it for the current version, 3.3.5 (rev.61)

I would appreciate it, Thank you!



Error: Visual.


06-13-2016, 06:26 PM
Try this

06-14-2016, 11:46 PM
Thank Rochet2 Thanks!
this script, one might add, custom extended Cost?
An article, add in the table, extendedCost any item.
item = badge of justice.
extendedCost = hearthstone. (ID)

it's an example.

IMG PREVIEW (http://prntscr.com/bgh9gt)

06-15-2016, 02:00 PM
You can do this in the ItemExtendedCost.dbc

Also if you want the player required to have 3 items you need to create those items in your database, and then add the entires into your new ItemExtendedCost line

You can find out what colums is which here. what you are looking for can be changed by adding the item entries that you want into the columns 5,6,7 you can add up to 5 items for the Extendedcost to require etc etc (sorry for the bad explanation, but i find this easier to do, and the only DBC you have to add for the players is the item.dbc for the items you made)


06-15-2016, 02:52 PM
Dat red box .. it covers some millimeters and still succeeds in blocking me to see stuff from the tooltip.

Anyways. Custom extendedcost need to be given to the client as a patch so .. yeah.
It seems according to the image that the stuff you refer to is actually put to the description field of the items shown in the vendor.
You can use the normal uiescapesequences in the description allowing you to use colors and images and new lines etc.

See more here:

If you want the items to be buyable, then you would need to code that in C++.
Otherwise you could try using a custom extended cost only in DBC side as suggested above by Syphex and use the description field of item_template for showing what you need instead of making a patch for the player.
For this you would not need / use the preview vendor, but you would use the normal vendor (npc_vendor) table.