Idea Motion Group
လူၾကီးမင္းတြင္ Idea Motion Group မွမွတ္ပံုတင္ျပီးေသာ Member Account ရွိပါက Log In မွ တဆင့္ဝင္ေရာက္ပါ။
New Guest ျဖစ္ပါက Register ျပဳလုပ္၍ဝင္ေရာက္ေပးပို႔ႏိုင္ပါသည္။။
*********Idea Motion Group*********

Join the forum, it's quick and easy

Idea Motion Group
လူၾကီးမင္းတြင္ Idea Motion Group မွမွတ္ပံုတင္ျပီးေသာ Member Account ရွိပါက Log In မွ တဆင့္ဝင္ေရာက္ပါ။
New Guest ျဖစ္ပါက Register ျပဳလုပ္၍ဝင္ေရာက္ေပးပို႔ႏိုင္ပါသည္။။
*********Idea Motion Group*********
Idea Motion Group
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Log in

I forgot my password

Latest topics
» Eternion/Wowwal repack 3.3.5a – TrinityCore
Creating a new vendor I_icon_minitimeTue Jan 17, 2017 5:58 am by janpara

» SolidWoW BlizzLike 4.0.6-4.3.0 Repack stable UPDATED
Creating a new vendor I_icon_minitimeThu Apr 10, 2014 5:39 pm by ycabrerag

» JZY’s Trinity Blizzlike Repack 3.35a (updated)
Creating a new vendor I_icon_minitimeSun Dec 01, 2013 8:38 am by Bottscan

» Hello Everyone Well
Creating a new vendor I_icon_minitimeThu Jun 27, 2013 12:56 pm by 

» ညီမေလး ဖတ္ဖို႔
Creating a new vendor I_icon_minitimeThu Jun 13, 2013 6:27 am by 

Country Codes

Timer

Total
  • >

/>

Test

Creating a new vendor

Go down

Creating a new vendor Empty Creating a new vendor

Post   Mon Jul 09, 2012 5:41 pm


  1. Go to the Actors/NPC section of the Object Window,right click one of the names and select new to [Only admins are allowed to see this link].
  2. Name your new NPC and give it an ID you will recognize. Also
    make sure the new NPC has "Autocalc Services" ticked under the AI Data
    tab
  3. Go to the Actor Data/Quest section of the Object Window and create a Quest in the same way you created a new NPC.

    1. Tick start game enabled, enter a quest ID and then click "Ok" in the bottom right, then open the quest again.
    2. Make sure to set the priority to 25 under the Quest Data Tab or your NPC will not speak the dialogue.

    </li>
  4. Go into the topics tab of your quest, right click in the Topic
    box (the white list on the left underneath the box Top-level only),
    select add topic, scroll down to "GREETING" and left click.
  5. Add another topic but instead of clicking on GREETING, right click in the topic list and select "New"

    1. Name this new topic "Buy", "Purchase" or some other name unique to your NPC that you will recognize.
    2. Finally, select your created topic and press "OK" to add it to your dialogue.

    </li>
  6. Now select GREETING from the left section of the window (GREETING topic).

    1. Right click the info tab and click new, make the response text
      whatever you want, this is what your NPC will say when the player first
      talks to them. Also make sure to leave the prompt section clear.

    </li>
  7. This is an important step, with your greeting selected in the Info tab right click the Conditions tab and select "New".

    1. Click the "INVALID" button and scroll down to your NPC's ID,
      then click "OK". This makes it so that only your NPC will use the custom
      greeting you created. Now make sure that the "Condition Function" box
      says "GetIsId", the "Comparison" Box is "==" and the "Value" box is "1".
      Select "OK".

    </li>
  8. Now select the "Buy"(or something similar) topic once more (from the left topic box)

    1. Right click the info tab, select "New" and enter into the
      Response Text box what your vendor will say when the player selects
      "Buy". Then select "OK".

    </li>
  9. In the "Info Details" section, click on the box to the right of
    the word prompt and enter, unsurprisingly your prompt... i.e- "I'd like
    to buy something"
  10. Select "Buy" in the Info tab right click the Conditions tab and select "New".

    1. Click the "INVALID" button and scroll down to your NPC's ID,
      then click "OK". This makes it so that only your NPC will use the custom
      greeting you created. Now make sure that the "Condition Function" box
      says "GetIsId", the "Comparison" Box is "==" and the "Value" box is "1".
      Select "OK". This will allow your vendor to sell stuff.

    </li>
  11. At the bottom of the window, in the "Result Script (Begin)" box type: SHOWBARTERMENU
  12. Finally, Reselect GREETING and go over to the "Add Topic" tab, right click it, select Add Topic and select your "Buy" topic ID.
  13. Create a NEW container.

    1. One way to do this is to go to the World Objects/Container section of the Object Window and set the filter to generic.
    2. Then right click the generic safe, select edit and enter an new
      ID. Now select "OK" and a box should pop up asking if you would like to
      create a new object or re-ID the existing object. Hit "yes" to create a
      new one.
    3. Once that's done, you are ready to put the container inside
      your store's cell. A good place to put it is somewhere the player won't
      be able to gain access to it, like outside the building zone or under
      the ground level. If you do choose to place it inside the store itself,
      then be sure the container is locked.
    4. Then put whatever you want in it as this is what the merchant
      will sell. Also make sure to put some caps in it so the vendor has some
      money to buy some of your things.
    5. To finish off your container, double-click it in the render window and make sure the Persistent Reference box is ticked on.

    </li>
  14. Place your NPC inside your store, double click him in the
    render window and select merchant container, and scroll down to your
    container's ID, click okay, save and you're done.




Optional


Phew. Now, if you want to talk to your vendor through an intercom.



  1. Go to the Talking Activator Tab under "actors" and create a new one (New ID) and put it in your cell.
  2. Double click your NPC inside the store, at the top type a new ID at the top where it says "Reference Editor ID"
  3. Create a new script:

ScriptName scriptID

Begin OnActivate
setTalkingActivatorActor VendorReferenceID
activate
End
and attach the script to your talking activator


Join date : 1970-01-01

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum