• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

TrinityCore 3.3.5 Error Preview Vendor C++ by Rochet2

kusanagy

Respected Member
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!

http://emudevs.com/showthread.php/1556-Vendor-Preview?p=9876&viewfull=1#post9876

Script:
http://pastebin.com/vJcEBCQ1


Error: Visual.
0f0e3d43ef26454989b849ff3b3000cd.jpg


:cool2:
 
Last edited:

kusanagy

Respected Member
Thank Rochet2 Thanks!
this script, one might add, custom extended Cost?
example:
An article, add in the table, extendedCost any item.
item = badge of justice.
extendedCost = hearthstone. (ID)

it's an example.

IMG PREVIEW
b2751ee08d374005b6e0185ad100d5c6.jpg
 
Last edited:

Syphex

Exalted Member
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)


https://trinitycore.atlassian.net/wiki/display/tc/ItemExtendedCost
 
Last edited:

Rochet2

Moderator / Eluna Dev
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:
http://wowwiki.wikia.com/wiki/UI_escape_sequences
https://trinitycore.atlassian.net/wiki/display/tc/item_template#item_template-description

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.
 
Last edited:
Top