Endeavor Modifications

Please Help Support E-Mods.net by Donating


News:

Looking for Video Tutorials? Check out the Open Nod Development section of e-mods.net.

E-Mods.net also has CryEngine tutorials! Check out the Open CryEngine Development section too.

Author Topic: Creating shops  (Read 169 times)

Offline Barnabas

  • Member
  • *
  • Posts: 120
  • Karma: 2
Creating shops
« on: 2011-02-22, 13:41:33 »
I want to add shops in my maps, but don´t want to use the original shops, like Hank or Otto. I´d like to have another NPC as a shop - how do I create a shop?

Edit: Ok, I figured it out by myself. For all, who have the same question/problem:

1. Choose the NPC you want to have as shopowner.

2. Set the NPC to "Talk to" and add the script "ClassMDweapshop.class" or one of the other scripts using NOTeditor (didn´t try with "override" in embrace yet)

If you want to have an indivitual range of goods for your shop, find the "generic_MD_weapon.nbs" in Resource.nob. Make a copy and change the range of goods in the file using the Notepad. Save under an own, unique name.
Edit the "ClassMDweapshop.class" and add the new .nbs file to the script using "Eclipse" for example and save the edited script under an own unique name (don´t forget to edit the rest of the script, when you save under another name - Eclipse will show you where ). Then add the new script to the "shopowner" using NOTeditor.
Now you have an own shop, selling only guns, or blood, just as you wish....

Notice: Never edit an original file or script. Use copies.
« Last Edit: 2011-02-22, 23:48:12 by Barnabas »
Sorry for my bad english ...