• 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] MultiVendor 3.3.5a

Rochet2

Moderator / Eluna Dev
Hello.
Someone had some problems with Evilfairy's script, so I took a look at it and decided to make my own.
In contrast to the "not core mod", "not database" idea, I decided to make this script editable through database and made it a core modification so I could just tweak the base gossip system slightly.

This modification allows multi vendors to be edited and created totally through database AND C++.
You can have multiple options to open different vendors.
You can use all normal other gossip as well, this does not close other possibilities.
YOU CAN send vendors also from C++ code, read the readme.

This script does not add new database tables or columns!

READ THE README!
Download: http://rochet2.github.io/Multivendor.html
 
Last edited:

Rochet2

Moderator / Eluna Dev
LilleCarl reported a bug possibility that you can buy items from the last multivendor you were at IF:
You are near at an NPC with vendor flags
You have not clicked on any normal vendor in between
You send buy item packets while being near the vendor NPC (any vendor)
(Note that all security and faction checks and costs are still the same for the item, this is only a possible exploit to buy the items elsewhere than at the vendor)

Its not really a bug I would consider major though .. Unlikely anyone is going to go through all that trouble to buy items they could buy normally at the vendor anyways.
So Ill fix it if I get around to it : |
 

Rochet2

Moderator / Eluna Dev
is there any tut of applying patch? form git?

Im pretty sure you can find tons of guides about "applying a patch" on the net and youtube.
It doesnt need to be specific to this patch nor does it need to be for trinitycore or any other wow emulator.
All guides that show you how to apply *a patch* to *a source* should work.

The readme also tells you what to do.
 

Noven

Exalted Member
I get errors when I try to apply the patch with git bash using "git apply Multivendor.patch"

patch failed it says
 
Last edited:

Rochet2

Moderator / Eluna Dev

Try using the "Download gist" button.
Then use the diff file you get from that.

If you copy paste the diff directly from browser, the line endings will be messed up.
If it still fails, the patch was corrupt due to my tampering with it and I need to recreate it : |, meanwhile just do the changes manually
 

Rochet2

Moderator / Eluna Dev
how i create npc with interface icons in gossip menu ?

Thats pretty simple actually ..
You just need to use this:
|TTexturePath:size1:size2:xoffset:yoffset|t

Working example: |TInterface/ICONS/ABILITY_DRUID_DEMORALIZINGROAR:15:15|t
In SQL:
Code:
REPLACE INTO `gossip_menu_option` (`menu_id`, `id`, `option_icon`, `option_text`, `option_id`, `npc_option_npcflag`, `action_menu_id`, `action_poi_id`, `box_coded`, `box_money`, `box_text`)
VALUES (0, 0, 0, '|TInterface/ICONS/ABILITY_DRUID_DEMORALIZINGROAR:15:15|t', 1, 1, 0, 0, 0, 0, NULL);

Here is a very nice place where you can get images from easy:
http://wowprogramming.com/utils/artbrowser/Interface



Simple logix:
Can use color tags like |cFF000000asd|r
-> Can use other tags probably too
Source of information:
http://www.wowwiki.com/UI_Escape_Sequences


With the width and height you can nicely scale the image and with the offset you can even make the image float above the existing icon to make it look like a custom icon.

this
 
Thx, rochet2 worked perfect , i see i can change to get gold to open menu , and if i want to add arena team rating requeriments ? its impossible in databaase right ? Is possible in Eluna ? Before open npc gossip check if player have rating ?
 

Rochet2

Moderator / Eluna Dev
Thx, rochet2 worked perfect , i see i can change to get gold to open menu , and if i want to add arena team rating requeriments ? its impossible in databaase right ? Is possible in Eluna ? Before open npc gossip check if player have rating ?

Possible in C++ and eluna yes.
And exactly. Check before send menu.
 
Top