2012-02-11, 04:24:09 *
Welcome, Guest. Please login or register.

Login with username, password and session length
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.

Advanced search
Pages: [1]
Print
Author Topic: Creating shops  (Read 134 times)
0 Members and 1 Guest are viewing this topic.
Barnabas
Member
*

Karma: 1
Offline Offline

Posts: 110



« 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 » Logged

Sorry for my bad english ...
Pages: [1]
Print
Jump to:  

Black Rain by Crip Powered by SMF 1.1.15 | SMF © 2011, Simple Machines XHTML | CSS

Page created in 0.061 seconds with 21 queries.