Jump to content

WoW Source uses cookies. Read the Privacy Policy for more info. To remove this message, please click the button to the right:    I accept the use of cookies

Toggle shoutbox
General Chat Box
Open the Shoutbox in a popup

@  Kalimdor : (29 May 2018 - 08:10 PM) we are waiting the new patch of wow guys
@  Kalimdor : (30 March 2018 - 12:40 AM) hello
@  Rusas : (30 March 2018 - 12:08 AM) Hi )
@  Kalimdor : (19 March 2018 - 07:43 AM) Hey guys your all invited to our new private server of legion, patch 7.3.5 http://wowargus.com/ before start playing make sure you have an account and have the right client but for more info read this please http://wowargus.com/news/1 if you find bug inside your free to post them here http://wowargus.com/bugtracker and for pvp statistics here http://wowargus.com/pvp
@  Kalimdor : (14 March 2018 - 04:58 PM) Who needs me just use discord and add Ozeneu#7067 or skype geany_100
@  Kalimdor : (09 March 2018 - 05:28 PM) hi check your gm level and also check the command for level what gm rank required
@  gmacken : (07 March 2018 - 10:17 AM) silly question but a new to this, got server 4.3.4 and i have set admin account etc. It does not appear to recognise command for levelling up ?
@  Kalimdor : (11 February 2018 - 05:32 PM) look guys there is no team so i wontwork alone any more but if any of you wish to work with me and you have skills in c++ and sql, send me a reply or a PM
@  Kalimdor : (25 January 2018 - 07:47 AM) hey guys my youtube channel it is https://www.youtube....w_as=subscriber
@  remamakiller : (18 December 2017 - 01:40 PM) testear quest , agregar o buscar el phaseid que se necesita para que se puedan completar
@  remamakiller : (18 December 2017 - 01:38 PM) Me ofresco desinteresadamente , para arreglar quest de salida de personajes
Mas no se
@  Kalimdor : (06 December 2017 - 09:48 PM) guess what? the legion update is working well i have add lots of missing objects and mobs but this will work faster if i have a sniffer 7.2 and if i have people who work with me to this project because for 1 person is very hard
@  Kalimdor : (02 November 2017 - 04:20 PM) hi guys good news about legion it will be public source with updates we start work in legion patch 7.2.5 me and 2 friends the source will be public and updates, if any of you wish to join give me a PM or a reply, the address for download it is https://github.com/WoWSource
@  Kalimdor : (02 November 2017 - 01:02 PM) english please
@  samaelsacred : (01 November 2017 - 02:10 AM) alguien vende un source 4.3.4?
@  Kalimdor : (14 October 2017 - 02:17 PM) guys some time when register the activation is not instant coz i must accept or not the new members so this could take between 1 hour and a few days
@  Kalimdor : (20 September 2017 - 02:01 PM) por supuesto si 4.3.4 - 5.4.8
@  Dirkwein : (20 September 2017 - 05:33 AM) Kalimdor la 4.3.4 la siguieron actualizando para los vip?
@  Kalimdor : (12 September 2017 - 09:23 PM) 2 big updates was made today into 5.4.8 source check the github commits if your a vip
@  Kalimdor : (29 August 2017 - 07:57 PM) We have so far live 2 servers 2 patches like 4.3.4 and 5.4.8 you can visit and play in http://5.196.199.233/ and 5.4.8 http://pandemowow.com/ and we will start legion server in short time

Photo

Multi Vendors


  • Please log in to reply
2 replies to this topic

#1 Kalimdor

Kalimdor

    The First

  • Administrators
  • 3,945 posts
  • 1610 thanks
  • LocationNorth Pole
  • Time Online: 48D 11H 30M 25S

User's Awards

                                

Posted 12 January 2013 - 07:42 PM

Pics:

Posted Image
Posted Image
Posted Image

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.
Everything you need to do is to make the NPC have NPCFLAG 129
then you need to make some gossip items for him that trigger the vendors.

You can use normal SAI scripts and other gossip options through database as well
(you can add multiple vendors to your SQL teleporter etc.)

This script does not add new database tables or columns!

Supported TC version: 161caf860b3aece9b81d1f733018b752e7f5ce44
Download diff: http://pastebin.com/8jkFpN9m

Installation:
Apply the diff and recompile
Then use database tables to create multi vendors
Explanation:
NPC needs NPCflag 129
Then you pick an unused menu_id from gossip_menu_option table and put it to gossip_menu_id field for your NPC.

Then you create your options.
The options need to have the same menu_id as your NPC had in gossip_menu_id
Important things to know:
option_id = 3
npc_option_npcflag = 128
action_menu_id is the entry of the vendor shown from npc_vendor

NPC: (uses menu_id 22000 by default)


Code:

INSERT INTO `creature_template` (`entry`, `modelid1`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction_A`, `faction_H`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `HoverHeight`, `Health_mod`, `Mana_mod`, `Armor_mod`, `RacialLeader`, `movementId`, `RegenHealth`, `equipment_id`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`, `WDBVerified`) VALUES
(700001, 1298, "Herbert", "MultiVendor", NULL, 22000, 10, 10, 0, 35, 35, 133, 1, 1.14286, 1, 0, 13, 17, 0, 42, 1, 1500, 0, 1, 512, 2048, 8, 0, 0, 0, 0, 0, 9, 13, 100, 7, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 3, 1, 1, 1, 1, 0, 0, 1, 0, 0, 2, '', 12340);

Example vendors/options:


Code:

INSERT 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
(22000, 0, 4, 'VendorTest 1', 3, 133, 465, 0, 0, 0, ''),
(22000, 1, 9, 'VendorTest 2', 3, 133, 54, 0, 0, 0, ''),
(22000, 2, 6, 'VendorTest 3', 3, 133, 35574, 0, 0, 100, 'These goods are special, so pay up!');

Posted Image
Posted Image

Credits:
script - Rochet2
NPC and special thanks - Evilfairy (checked out her script)


  • 0

facebook-icon.png  YouTube-icon.png

 

 

 


Thanked by 1 Member:
AdamkDenny

#2 nmhe

nmhe

    Member

  • Members
  • 20 posts
  • thanks
  • :

Posted 18 January 2013 - 10:27 AM

Very nice!! I learn this
  • 0

#3 Komothoes

Komothoes

    Sql-Developer

  • Members
  • 61 posts
  • 0 thanks
  • Time Online: 54M 43S

Posted 01 February 2013 - 03:43 AM

ok i have done this but every time i put it together it comes up with a blank chat bar and the server says my npc has no items for sale all i want to do is have one vendor that sells weapons armor and then other things all in there own tabs
  • 0