• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

NPC Creator by Kullobe Huckler (Can make shops, talking npcs, and also exports XML!)

habiba

New Member
Joined
Aug 26, 2007
Messages
586
Reaction score
4
Location
Örebro, Sweden
NPC Creator by Kullobe Huckler!!!

NOW SUPPORTS KEYWORD + RESPONSE ALONG WITH THE SHOP COMMANDS. Can now export npc XML files!

Updated to include keywords + responses in NPCS, also can generate the npc's .xml file for you.

Allows you to edit/create an npc with the NPCHandler system.

npceu8.png


Originally Posted by The Readme
NPCC by Kullobe Huckler

- Simple tool used to help the process of making shop npcs easier.
ONLY SUPPORTS THE NPCHANDLER SYSTEM!


Script section:


~~~~ Buy/Sell
If you are making a new npc, make sure you have initialized the npc script (press New).

To add a buyable object, all four textboxes need to be filled.

Keyword - The words the npc will recognize "mpa" for magic plate armor is common.
NPCC only supports one keyword at this time. (Applies to buying and selling)

ID - ItemID to be sold to the player (Applies to buying and selling)

Cost/Paid - The amount of gold to be paid for the item (Applies to buying and selling)

Name - Only used in buying. The Name is the name the NPC will say
if the keyword is an abbreviation, the Name should be the full item name.

~~~~

~~~~~ Conversation
Click "Add Conversation" to add talk/respond information to the NPC.
(Such as the player saying "Hello", and the npc responding "HI!")
~~~~~

The options below the Buy/Sell/Conversation buttons do the following:

"Player must be the NPC's focus?" - (Only applies to conversations.)
When enabled, the NPC has to be focused on the player to respond.
When disabled, the NPC will respond to anyone who says that keyword close enough to them.

"Include Buy or Sell before each keyword?" - Lets you choose whether or not to include Buy or Sell before the keyword.
This is recommended as being able to buy and sell the same item requires different keywords.
Otherwise you will always be offered to buy the item.

Finish - Adds the last line of code to the npc file.

Export Script - Lets you save the npc file anywhere you wish.

NOTE:

When loading a script, MAKE SURE YOU TAKE OFF THE LINE OF CODE THAT SETS THE NPCS FOCUS.
This is supposed to be at the end of the script, so just press "Finish" when you are done editing.

~~~~~~ XML File Exporting

Fill in the textboxes (Looktype, etc) to determine the NPCs outfit.
Fill in the NPC Name textbox to set the NPC's in-game name.
The Script Name textbox sets the NPC's script file. (You only need to put the <scriptname>.lua,
it will automatically be converted to data/npc/scripts/<scriptname>.lua)
 

Attachments

Back
Top