Follow us on
Follow us on Facebook Follow us on Twitter Watch us on YouTube


MMOCoin

Results 1 to 9 of 9
  1. #1
    Elite Member
    Dimman's Avatar
    Join Date
    Apr 2009
    Posts
    1,091
    Rep Power
    22
    Reputation
    319

    [Trinitycore2] How to create a vendor [3.3.3]


    Register to remove this ad
    Dimman's "How to create a vendor for TC2 tutorial".

    1: Open up a new text document with Notepad/wordpad/word. etc

    2: Paste the following template in

    Code:
    INSERT INTO creature_template VALUES ('NPCENTRY', '0', '0', '0', '0', '0', 'DISPLAYID', '0', '0', '0', 'NAME', 'SUBNAME', '', '0', '60', '60', '0', '35', '35', '128', '1', '1.4286', '1', '0', '100', '100', '0', '0', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '7', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '', '0', '3', '1', '1', '1', '0', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '', '0');
    NPCENTRY= Npc id, the number you are going to use when your going to spawn the npc.


    DISPLAYID= The model of the npc. (You can find display ids \here/ credits: wow-v)
    Ex:
    Stormwind guard display id = 3167
    NAME= The npc/vendors name.
    SUBNAME= The subname of the npc/vendor (will be below the name (guildname on characters)

    3: use the "save as" feautere in your text editor and save it as:


    FILENAME.sql
    Save as type: All files


    4: Execute the sql into the "world" database.


    5: Make a copy of the SQL file you just made and delete all the text inside and replace it with:

    Code:
    INSERT INTO npc_vendor VALUES ('NPCENTRY','0','ITEMID',0,'0',0);
    INSERT INTO npc_vendor VALUES ('NPCENTRY','0','ITEMID',0,'0',0);
    INSERT INTO npc_vendor VALUES ('NPCENTRY','0','ITEMID',0,'0',0);
    INSERT INTO npc_vendor VALUES ('NPCENTRY','0','ITEMID',0,'0',0);
    INSERT INTO npc_vendor VALUES ('NPCENTRY','0','ITEMID',0,'0',0);
    ITEMID = Item you want the vendor to sell (ID) check wowhead.
    NPCENTRY = The ID of the NPC you created before.
    No touching please.

  2. #2
    Senior Sergeant
    MikExV™'s Avatar
    Join Date
    Feb 2010
    Location
    Ohio
    Posts
    117
    Rep Power
    17
    Reputation
    35
    Nice,

    Just got my pc back

  3. #3
    Elite Member
    Dimman's Avatar
    Join Date
    Apr 2009
    Posts
    1,091
    Rep Power
    22
    Reputation
    319
    Quote Originally Posted by MikExV™ View Post
    Nice,
    Thanks
    No touching please.

  4. #4
    Beginner

    Join Date
    Jun 2010
    Posts
    22
    Rep Power
    16
    Reputation
    1
    added.

  5. #5
    Beginner
    Tcip's Avatar
    Join Date
    Jul 2010
    Posts
    4
    Rep Power
    16
    Reputation
    1
    I give up need to ask. Where the hell do you execute this you say in to the "world" where in the databas? i was following your guide but it was to advanced to i found this: How to create custom npc on Mangos - Reaper-X scroll down to: Creating new entry for custom NPC. That is the part i dont understand WHERE to execute in to the databas...

  6. #6
    Beginner

    Join Date
    Jun 2010
    Posts
    6
    Rep Power
    16
    Reputation
    3
    Very nice !!

  7. #7
    Elite Member
    Dimman's Avatar
    Join Date
    Apr 2009
    Posts
    1,091
    Rep Power
    22
    Reputation
    319
    Thanks.
    No touching please.

  8. #8
    Elite Member
    Dimman's Avatar
    Join Date
    Apr 2009
    Posts
    1,091
    Rep Power
    22
    Reputation
    319
    Quote Originally Posted by Tcip View Post
    I give up need to ask. Where the hell do you execute this you say in to the "world" where in the databas? i was following your guide but it was to advanced to i found this: How to create custom npc on Mangos - Reaper-X scroll down to: Creating new entry for custom NPC. That is the part i dont understand WHERE to execute in to the databas...
    Creature_Template
    No touching please.

  9. #9
    Beginner

    Join Date
    Jan 2012
    Posts
    16
    Rep Power
    15
    Reputation
    1

    Register to remove this ad
    Thanks A lot i need much this guide and now i find xD Thank you!

 

 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -5. The time now is 03:33 PM.
Powered by vBulletin® Copyright ©2000-2026, Jelsoft Enterprises Ltd.
vBulletin Licensed to: MMOPro.org
vBulletin Skin By: PurevB.com