NPC creation

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 097.
Note: Core 097 is no longer officially supported.

Moderator: POL Developer

Post Reply
darklord
New User
Posts: 13
Joined: Sat Feb 19, 2011 12:39 pm

NPC creation

Post by darklord » Sat Feb 19, 2011 12:43 pm

Hey all,

I am new to the scripting part and cant figer out why my vendor npc script i made wont show up in my .createnpc


must be doing something wrong

Code: Select all

# $Id: npcdesc.cfg 1130 2008-01-13 22:31:48Z AustinHeilman $
#
#

NPCTemplate ExampleMerchant
{
	// Primary NPC information
	Name			<random> the merchant
	Script			:brainAI:brain
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
	RunSpeed		200
	Alignment		neutral
	Privs			invul
	Settings		invul
	Category		Merchant

	// Attributes
	Strength		2000
	Intelligence		2000
	Dexterity		2000

	Wrestling		2000
	Tactics			2000

	// Vitals
	HITS			2000
	MANA			2000
	STAM			2000

	// Intrinsic Weapon
	AttackSpeed		1
	AttackDamage		100d100
	AttackAttribute		Wrestling
	AttackHitScript		:combat:mainHitScript

	// Sounds
	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

	// Brain AI Settings
	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	NoSleep		i1

	// Brain AI Nerves
	AIScript	Combat		:merchants:generic/combat
	AIScript	Init		:merchants:generic/init
	AIScript	ItemGiven	:merchants:generic/itemGiven
	AIScript	Listen		:merchants:generic/listen
	AIScript	Merchant	:merchants:generic/merchant
	AIScript	Restart		:merchants:generic/restart

	// Skinning Info
	// Skinning	ItemName	Amount

	// Settings other scripts use...
	NameTemplate		Human_Male
	EquipTemplate		Villager_1

	// CProps (eww!)
}

NPCTemplate BlacksmithMerchant
{
	// Primary NPC information
	Name			<random> - the Blacksmith
	Script			:brainAI:brain
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
	RunSpeed		200
	Alignment		good
	Privs			invul
	Settings		invul
	Category		Merchant

	// Attributes
	Strength		2000
	Intelligence		2000
	Dexterity		2000

	Wrestling		2000
	Tactics			2000

	// Vitals
	HITS			2000
	MANA			2000
	STAM			2000

	// Intrinsic Weapon
	AttackSpeed		1
	AttackDamage		100d100
	AttackAttribute		Wrestling
	AttackHitScript		:combat:mainHitScript

	// Sounds
	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

	// Brain AI Settings
	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	NoSleep		i1

	// Brain AI Nerves
	AIScript	Combat		:merchants:generic/combat
	AIScript	Init		:merchants:generic/init
	AIScript	ItemGiven	:merchants:generic/itemGiven
	AIScript	Listen		:merchants:generic/listen
	AIScript	Merchant	:merchants:generic/merchant
	AIScript	Restart		:merchants:generic/restart

	// Skinning Info
	// Skinning	ItemName	Amount

	// Settings other scripts use...
	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	Blacksmith

	// CProps (eww!)
}


NPCTemplate TailorMerchant
{
	// Primary NPC information
	Name			<random> - the Tailor
	Script			:brainAI:brain
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
	RunSpeed		200
	Alignment		good
	Privs			invul
	Settings		invul
	Category		Merchant

	// Attributes
	Strength		2000
	Intelligence		2000
	Dexterity		2000

	Wrestling		2000
	Tactics			2000

	// Vitals
	HITS			2000
	MANA			2000
	STAM			2000

	// Intrinsic Weapon
	AttackSpeed		1
	AttackDamage		100d100
	AttackAttribute		Wrestling
	AttackHitScript		:combat:mainHitScript

	// Sounds
	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

	// Brain AI Settings
	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	NoSleep		i1

	// Brain AI Nerves
	AIScript	Combat		:merchants:generic/combat
	AIScript	Init		:merchants:generic/init
	AIScript	ItemGiven	:merchants:generic/itemGiven
	AIScript	Listen		:merchants:generic/listen
	AIScript	Merchant	:merchants:generic/merchant
	AIScript	Restart		:merchants:generic/restart

	// Skinning Info
	// Skinning	ItemName	Amount

	// Settings other scripts use...
	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	Tailor

	// CProps (eww!)
}

NPCTemplate MageMerchant
{
	// Primary NPC information
	Name			<random> - the Mage
	Script			:brainAI:brain
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
	RunSpeed		200
	Alignment		good
	Privs			invul
	Settings		invul
	Category		Merchant

	// Attributes
	Strength		2000
	Intelligence		2000
	Dexterity		2000

	Wrestling		2000
	Tactics			2000

	// Vitals
	HITS			2000
	MANA			2000
	STAM			2000

	// Intrinsic Weapon
	AttackSpeed		1
	AttackDamage		100d100
	AttackAttribute		Wrestling
	AttackHitScript		:combat:mainHitScript

	// Sounds
	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

	// Brain AI Settings
	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	NoSleep		i1

	// Brain AI Nerves
	AIScript	Combat		:merchants:generic/combat
	AIScript	Init		:merchants:generic/init
	AIScript	ItemGiven	:merchants:generic/itemGiven
	AIScript	Listen		:merchants:generic/listen
	AIScript	Merchant	:merchants:generic/merchant
	AIScript	Restart		:merchants:generic/restart

	// Skinning Info
	// Skinning	ItemName	Amount

	// Settings other scripts use...
	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	Mage

	// CProps (eww!)
}

NPCTemplate BardMerchant
{
	// Primary NPC information
	Name			<random> - the Bard
	Script			:brainAI:brain
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
	RunSpeed		200
	Alignment		good
	Privs			invul
	Settings		invul
	Category		Merchant

	// Attributes
	Strength		2000
	Intelligence		2000
	Dexterity		2000

	Wrestling		2000
	Tactics			2000

	// Vitals
	HITS			2000
	MANA			2000
	STAM			2000

	// Intrinsic Weapon
	AttackSpeed		1
	AttackDamage		100d100
	AttackAttribute		Wrestling
	AttackHitScript		:combat:mainHitScript

	// Sounds
	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

	// Brain AI Settings
	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	NoSleep		i1

	// Brain AI Nerves
	AIScript	Combat		:merchants:generic/combat
	AIScript	Init		:merchants:generic/init
	AIScript	ItemGiven	:merchants:generic/itemGiven
	AIScript	Listen		:merchants:generic/listen
	AIScript	Merchant	:merchants:generic/merchant
	AIScript	Restart		:merchants:generic/restart

	// Skinning Info
	// Skinning	ItemName	Amount

	// Settings other scripts use...
	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	Bard

	// CProps (eww!)
}

NPCTemplate shipwrightMerchant
{
	// Primary NPC information
	Name			<random> - the Shipwright
	Script			:brainAI:brain
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
	RunSpeed		200
	Alignment		good
	Privs			invul
	Settings		invul
	Category		Merchant

	// Attributes
	Strength		2000
	Intelligence		2000
	Dexterity		2000

	Wrestling		2000
	Tactics			2000

	// Vitals
	HITS			2000
	MANA			2000
	STAM			2000

	// Intrinsic Weapon
	AttackSpeed		1
	AttackDamage		100d100
	AttackAttribute		Wrestling
	AttackHitScript		:combat:mainHitScript

	// Sounds
	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

	// Brain AI Settings
	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	NoSleep		i1

	// Brain AI Nerves
	AIScript	Combat		:merchants:generic/combat
	AIScript	Init		:merchants:generic/init
	AIScript	ItemGiven	:merchants:generic/itemGiven
	AIScript	Listen		:merchants:generic/listen
	AIScript	Merchant	:merchants:generic/merchant
	AIScript	Restart		:merchants:generic/restart

	// Skinning Info
	// Skinning	ItemName	Amount

	// Settings other scripts use...
	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	shipwright

	// CProps (eww!)
}

NPCTemplate mapmakerMerchant
{
	// Primary NPC information
	Name			<random> - the Cartographer
	Script			:brainAI:brain
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
	RunSpeed		200
	Alignment		good
	Privs			invul
	Settings		invul
	Category		Merchant

	// Attributes
	Strength		2000
	Intelligence		2000
	Dexterity		2000

	Wrestling		2000
	Tactics			2000

	// Vitals
	HITS			2000
	MANA			2000
	STAM			2000

	// Intrinsic Weapon
	AttackSpeed		1
	AttackDamage		100d100
	AttackAttribute		Wrestling
	AttackHitScript		:combat:mainHitScript

	// Sounds
	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

	// Brain AI Settings
	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	NoSleep		i1

	// Brain AI Nerves
	AIScript	Combat		:merchants:generic/combat
	AIScript	Init		:merchants:generic/init
	AIScript	ItemGiven	:merchants:generic/itemGiven
	AIScript	Listen		:merchants:generic/listen
	AIScript	Merchant	:merchants:generic/merchant
	AIScript	Restart		:merchants:generic/restart

	// Skinning Info
	// Skinning	ItemName	Amount

	// Settings other scripts use...
	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	mapmaker

	// CProps (eww!)
}

NPCTemplate BlacksmithMerchant
{
	// Primary NPC information
	Name			<random> - the blacksmith
	Script			:brainAI:brain
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
	RunSpeed		200
	Alignment		good
	Privs			invul
	Settings		invul
	Category		Merchant

	// Attributes
	Strength		2000
	Intelligence		2000
	Dexterity		2000

	Wrestling		2000
	Tactics			2000

	// Vitals
	HITS			2000
	MANA			2000
	STAM			2000

	// Intrinsic Weapon
	AttackSpeed		1
	AttackDamage		100d100
	AttackAttribute		Wrestling
	AttackHitScript		:combat:mainHitScript

	// Sounds
	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

	// Brain AI Settings
	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	NoSleep		i1

	// Brain AI Nerves
	AIScript	Combat		:merchants:generic/combat
	AIScript	Init		:merchants:generic/init
	AIScript	ItemGiven	:merchants:generic/itemGiven
	AIScript	Listen		:merchants:generic/listen
	AIScript	Merchant	:merchants:generic/merchant
	AIScript	Restart		:merchants:generic/restart

	// Skinning Info
	// Skinning	ItemName	Amount

	// Settings other scripts use...
	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	Blacksmith

	// CProps (eww!)
}

NPCTemplate innkeeperMerchant
{
	// Primary NPC information
	Name			<random> - the Innkeeper
	Script			:brainAI:brain
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
	RunSpeed		200
	Alignment		good
	Privs			invul
	Settings		invul
	Category		Merchant

	// Attributes
	Strength		2000
	Intelligence		2000
	Dexterity		2000

	Wrestling		2000
	Tactics			2000

	// Vitals
	HITS			2000
	MANA			2000
	STAM			2000

	// Intrinsic Weapon
	AttackSpeed		1
	AttackDamage		100d100
	AttackAttribute		Wrestling
	AttackHitScript		:combat:mainHitScript

	// Sounds
	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

	// Brain AI Settings
	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	NoSleep		i1

	// Brain AI Nerves
	AIScript	Combat		:merchants:generic/combat
	AIScript	Init		:merchants:generic/init
	AIScript	ItemGiven	:merchants:generic/itemGiven
	AIScript	Listen		:merchants:generic/listen
	AIScript	Merchant	:merchants:generic/merchant
	AIScript	Restart		:merchants:generic/restart

	// Skinning Info
	// Skinning	ItemName	Amount

	// Settings other scripts use...
	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	innkeeper

	// CProps (eww!)
}

NPCTemplate WeaponsmithMerchant
{
	// Primary NPC information
	Name			<random> - the Weaponsmith
	Script			:brainAI:brain
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
	RunSpeed		200
	Alignment		good
	Privs			invul
	Settings		invul
	Category		Merchant

	// Attributes
	Strength		2000
	Intelligence		2000
	Dexterity		2000

	Wrestling		2000
	Tactics			2000

	// Vitals
	HITS			2000
	MANA			2000
	STAM			2000

	// Intrinsic Weapon
	AttackSpeed		1
	AttackDamage		100d100
	AttackAttribute		Wrestling
	AttackHitScript		:combat:mainHitScript

	// Sounds
	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

	// Brain AI Settings
	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	NoSleep		i1

	// Brain AI Nerves
	AIScript	Combat		:merchants:generic/combat
	AIScript	Init		:merchants:generic/init
	AIScript	ItemGiven	:merchants:generic/itemGiven
	AIScript	Listen		:merchants:generic/listen
	AIScript	Merchant	:merchants:generic/merchant
	AIScript	Restart		:merchants:generic/restart

	// Skinning Info
	// Skinning	ItemName	Amount

	// Settings other scripts use...
	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	weaponsmith

	// CProps (eww!)
}

NPCTemplate ArmorerMerchant
{
	// Primary NPC information
	Name			<random> - the Armorer
	Script			:brainAI:brain
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
	RunSpeed		200
	Alignment		good
	Privs			invul
	Settings		invul
	Category		Merchant

	// Attributes
	Strength		2000
	Intelligence		2000
	Dexterity		2000

	Wrestling		2000
	Tactics			2000

	// Vitals
	HITS			2000
	MANA			2000
	STAM			2000

	// Intrinsic Weapon
	AttackSpeed		1
	AttackDamage		100d100
	AttackAttribute		Wrestling
	AttackHitScript		:combat:mainHitScript

	// Sounds
	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

	// Brain AI Settings
	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	NoSleep		i1

	// Brain AI Nerves
	AIScript	Combat		:merchants:generic/combat
	AIScript	Init		:merchants:generic/init
	AIScript	ItemGiven	:merchants:generic/itemGiven
	AIScript	Listen		:merchants:generic/listen
	AIScript	Merchant	:merchants:generic/merchant
	AIScript	Restart		:merchants:generic/restart

	// Skinning Info
	// Skinning	ItemName	Amount

	// Settings other scripts use...
	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	Armorer

	// CProps (eww!)
}

NPCTemplate AlchemistMerchant
{
	// Primary NPC information
	Name			<random> - the Alchemist
	Script			:brainAI:brain
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
	RunSpeed		200
	Alignment		good
	Privs			invul
	Settings		invul
	Category		Merchant

	// Attributes
	Strength		2000
	Intelligence		2000
	Dexterity		2000

	Wrestling		2000
	Tactics			2000

	// Vitals
	HITS			2000
	MANA			2000
	STAM			2000

	// Intrinsic Weapon
	AttackSpeed		1
	AttackDamage		100d100
	AttackAttribute		Wrestling
	AttackHitScript		:combat:mainHitScript

	// Sounds
	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

	// Brain AI Settings
	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	NoSleep		i1

	// Brain AI Nerves
	AIScript	Combat		:merchants:generic/combat
	AIScript	Init		:merchants:generic/init
	AIScript	ItemGiven	:merchants:generic/itemGiven
	AIScript	Listen		:merchants:generic/listen
	AIScript	Merchant	:merchants:generic/merchant
	AIScript	Restart		:merchants:generic/restart

	// Skinning Info
	// Skinning	ItemName	Amount

	// Settings other scripts use...
	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	Alchemist

	// CProps (eww!)
}

NPCTemplate weaverMerchant
{
	// Primary NPC information
	Name			<random> - the Weaver
	Script			:brainAI:brain
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
	RunSpeed		200
	Alignment		good
	Privs			invul
	Settings		invul
	Category		Merchant

	// Attributes
	Strength		2000
	Intelligence		2000
	Dexterity		2000

	Wrestling		2000
	Tactics			2000

	// Vitals
	HITS			2000
	MANA			2000
	STAM			2000

	// Intrinsic Weapon
	AttackSpeed		1
	AttackDamage		100d100
	AttackAttribute		Wrestling
	AttackHitScript		:combat:mainHitScript

	// Sounds
	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

	// Brain AI Settings
	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	NoSleep		i1

	// Brain AI Nerves
	AIScript	Combat		:merchants:generic/combat
	AIScript	Init		:merchants:generic/init
	AIScript	ItemGiven	:merchants:generic/itemGiven
	AIScript	Listen		:merchants:generic/listen
	AIScript	Merchant	:merchants:generic/merchant
	AIScript	Restart		:merchants:generic/restart

	// Skinning Info
	// Skinning	ItemName	Amount

	// Settings other scripts use...
	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	Weaver

	// CProps (eww!)
}

NPCTemplate LeatherworkerMerchant
{
	// Primary NPC information
	Name			<random> - the Leatherworker
	Script			:brainAI:brain
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
	RunSpeed		200
	Alignment		good
	Privs			invul
	Settings		invul
	Category		Merchant

	// Attributes
	Strength		2000
	Intelligence		2000
	Dexterity		2000

	Wrestling		2000
	Tactics			2000

	// Vitals
	HITS			2000
	MANA			2000
	STAM			2000

	// Intrinsic Weapon
	AttackSpeed		1
	AttackDamage		100d100
	AttackAttribute		Wrestling
	AttackHitScript		:combat:mainHitScript

	// Sounds
	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

	// Brain AI Settings
	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	NoSleep		i1

	// Brain AI Nerves
	AIScript	Combat		:merchants:generic/combat
	AIScript	Init		:merchants:generic/init
	AIScript	ItemGiven	:merchants:generic/itemGiven
	AIScript	Listen		:merchants:generic/listen
	AIScript	Merchant	:merchants:generic/merchant
	AIScript	Restart		:merchants:generic/restart

	// Skinning Info
	// Skinning	ItemName	Amount

	// Settings other scripts use...
	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	Leatherworker

	// CProps (eww!)
}

NPCTemplate ProvisionerMerchant
{
	// Primary NPC information
	Name			<random> - the Provisioner
	Script			:brainAI:brain
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
	RunSpeed		200
	Alignment		good
	Privs			invul
	Settings		invul
	Category		Merchant

	// Attributes
	Strength		2000
	Intelligence		2000
	Dexterity		2000

	Wrestling		2000
	Tactics			2000

	// Vitals
	HITS			2000
	MANA			2000
	STAM			2000

	// Intrinsic Weapon
	AttackSpeed		1
	AttackDamage		100d100
	AttackAttribute		Wrestling
	AttackHitScript		:combat:mainHitScript

	// Sounds
	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

	// Brain AI Settings
	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	NoSleep		i1

	// Brain AI Nerves
	AIScript	Combat		:merchants:generic/combat
	AIScript	Init		:merchants:generic/init
	AIScript	ItemGiven	:merchants:generic/itemGiven
	AIScript	Listen		:merchants:generic/listen
	AIScript	Merchant	:merchants:generic/merchant
	AIScript	Restart		:merchants:generic/restart

	// Skinning Info
	// Skinning	ItemName	Amount

	// Settings other scripts use...
	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	Provisioner

	// CProps (eww!)
}

NPCTemplate CarpenterMerchant
{
	// Primary NPC information
	Name			<random> - the Carpenter
	Script			:brainAI:brain
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
	RunSpeed		200
	Alignment		good
	Privs			invul
	Settings		invul
	Category		Merchant

	// Attributes
	Strength		2000
	Intelligence		2000
	Dexterity		2000

	Wrestling		2000
	Tactics			2000

	// Vitals
	HITS			2000
	MANA			2000
	STAM			2000

	// Intrinsic Weapon
	AttackSpeed		1
	AttackDamage		100d100
	AttackAttribute		Wrestling
	AttackHitScript		:combat:mainHitScript

	// Sounds
	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

	// Brain AI Settings
	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	NoSleep		i1

	// Brain AI Nerves
	AIScript	Combat		:merchants:generic/combat
	AIScript	Init		:merchants:generic/init
	AIScript	ItemGiven	:merchants:generic/itemGiven
	AIScript	Listen		:merchants:generic/listen
	AIScript	Merchant	:merchants:generic/merchant
	AIScript	Restart		:merchants:generic/restart

	// Skinning Info
	// Skinning	ItemName	Amount

	// Settings other scripts use...
	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	Carpenter

	// CProps (eww!)
}

NPCTemplate BowyerMerchant
{
	// Primary NPC information
	Name			<random> - the Bowyer
	Script			:brainAI:brain
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
	RunSpeed		200
	Alignment		good
	Privs			invul
	Settings		invul
	Category		Merchant

	// Attributes
	Strength		2000
	Intelligence		2000
	Dexterity		2000

	Wrestling		2000
	Tactics			2000

	// Vitals
	HITS			2000
	MANA			2000
	STAM			2000

	// Intrinsic Weapon
	AttackSpeed		1
	AttackDamage		100d100
	AttackAttribute		Wrestling
	AttackHitScript		:combat:mainHitScript

	// Sounds
	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

	// Brain AI Settings
	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	NoSleep		i1

	// Brain AI Nerves
	AIScript	Combat		:merchants:generic/combat
	AIScript	Init		:merchants:generic/init
	AIScript	ItemGiven	:merchants:generic/itemGiven
	AIScript	Listen		:merchants:generic/listen
	AIScript	Merchant	:merchants:generic/merchant
	AIScript	Restart		:merchants:generic/restart

	// Skinning Info
	// Skinning	ItemName	Amount

	// Settings other scripts use...
	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	Bowyer

	// CProps (eww!)
}

NPCTemplate ArchitectMerchant
{
	// Primary NPC information
	Name			<random> - the Architect
	Script			:brainAI:brain
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
	RunSpeed		200
	Alignment		good
	Privs			invul
	Settings		invul
	Category		Merchant

	// Attributes
	Strength		2000
	Intelligence		2000
	Dexterity		2000

	Wrestling		2000
	Tactics			2000

	// Vitals
	HITS			2000
	MANA			2000
	STAM			2000

	// Intrinsic Weapon
	AttackSpeed		1
	AttackDamage		100d100
	AttackAttribute		Wrestling
	AttackHitScript		:combat:mainHitScript

	// Sounds
	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

	// Brain AI Settings
	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	NoSleep		i1

	// Brain AI Nerves
	AIScript	Combat		:merchants:generic/combat
	AIScript	Init		:merchants:generic/init
	AIScript	ItemGiven	:merchants:generic/itemGiven
	AIScript	Listen		:merchants:generic/listen
	AIScript	Merchant	:merchants:generic/merchant
	AIScript	Restart		:merchants:generic/restart

	// Skinning Info
	// Skinning	ItemName	Amount

	// Settings other scripts use...
	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	Architect

	// CProps (eww!)
}

NPCTemplate ButcherMerchant
{
	// Primary NPC information
	Name			<random> - the Butcher
	Script			:brainAI:brain
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
	RunSpeed		200
	Alignment		good
	Privs			invul
	Settings		invul
	Category		Merchant

	// Attributes
	Strength		2000
	Intelligence		2000
	Dexterity		2000

	Wrestling		2000
	Tactics			2000

	// Vitals
	HITS			2000
	MANA			2000
	STAM			2000

	// Intrinsic Weapon
	AttackSpeed		1
	AttackDamage		100d100
	AttackAttribute		Wrestling
	AttackHitScript		:combat:mainHitScript

	// Sounds
	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

	// Brain AI Settings
	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	NoSleep		i1

	// Brain AI Nerves
	AIScript	Combat		:merchants:generic/combat
	AIScript	Init		:merchants:generic/init
	AIScript	ItemGiven	:merchants:generic/itemGiven
	AIScript	Listen		:merchants:generic/listen
	AIScript	Merchant	:merchants:generic/merchant
	AIScript	Restart		:merchants:generic/restart

	// Skinning Info
	// Skinning	ItemName	Amount

	// Settings other scripts use...
	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	Butcher

	// CProps (eww!)
}

NPCTemplate BakerMerchant
{
	// Primary NPC information
	Name			<random> - the Baker
	Script			:brainAI:brain
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
	RunSpeed		200
	Alignment		good
	Privs			invul
	Settings		invul
	Category		Merchant

	// Attributes
	Strength		2000
	Intelligence		2000
	Dexterity		2000

	Wrestling		2000
	Tactics			2000

	// Vitals
	HITS			2000
	MANA			2000
	STAM			2000

	// Intrinsic Weapon
	AttackSpeed		1
	AttackDamage		100d100
	AttackAttribute		Wrestling
	AttackHitScript		:combat:mainHitScript

	// Sounds
	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

	// Brain AI Settings
	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	NoSleep		i1

	// Brain AI Nerves
	AIScript	Combat		:merchants:generic/combat
	AIScript	Init		:merchants:generic/init
	AIScript	ItemGiven	:merchants:generic/itemGiven
	AIScript	Listen		:merchants:generic/listen
	AIScript	Merchant	:merchants:generic/merchant
	AIScript	Restart		:merchants:generic/restart

	// Skinning Info
	// Skinning	ItemName	Amount

	// Settings other scripts use...
	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	baker

	// CProps (eww!)
}

NPCTemplate FarmerMerchant
{
	// Primary NPC information
	Name			<random> - the Farmer
	Script			:brainAI:brain
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
	RunSpeed		200
	Alignment		good
	Privs			invul
	Settings		invul
	Category		Merchant

	// Attributes
	Strength		2000
	Intelligence		2000
	Dexterity		2000

	Wrestling		2000
	Tactics			2000

	// Vitals
	HITS			2000
	MANA			2000
	STAM			2000

	// Intrinsic Weapon
	AttackSpeed		1
	AttackDamage		100d100
	AttackAttribute		Wrestling
	AttackHitScript		:combat:mainHitScript

	// Sounds
	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

	// Brain AI Settings
	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	NoSleep		i1

	// Brain AI Nerves
	AIScript	Combat		:merchants:generic/combat
	AIScript	Init		:merchants:generic/init
	AIScript	ItemGiven	:merchants:generic/itemGiven
	AIScript	Listen		:merchants:generic/listen
	AIScript	Merchant	:merchants:generic/merchant
	AIScript	Restart		:merchants:generic/restart

	// Skinning Info
	// Skinning	ItemName	Amount

	// Settings other scripts use...
	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	Farmer

	// CProps (eww!)
}

NPCTemplate BarkeepMerchant
{
	// Primary NPC information
	Name			<random> - the Barkeep
	Script			:brainAI:brain
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
	RunSpeed		200
	Alignment		good
	Privs			invul
	Settings		invul
	Category		Merchant

	// Attributes
	Strength		2000
	Intelligence		2000
	Dexterity		2000

	Wrestling		2000
	Tactics			2000

	// Vitals
	HITS			2000
	MANA			2000
	STAM			2000

	// Intrinsic Weapon
	AttackSpeed		1
	AttackDamage		100d100
	AttackAttribute		Wrestling
	AttackHitScript		:combat:mainHitScript

	// Sounds
	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

	// Brain AI Settings
	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	NoSleep		i1

	// Brain AI Nerves
	AIScript	Combat		:merchants:generic/combat
	AIScript	Init		:merchants:generic/init
	AIScript	ItemGiven	:merchants:generic/itemGiven
	AIScript	Listen		:merchants:generic/listen
	AIScript	Merchant	:merchants:generic/merchant
	AIScript	Restart		:merchants:generic/restart

	// Skinning Info
	// Skinning	ItemName	Amount

	// Settings other scripts use...
	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	Barkeep

	// CProps (eww!)
}

NPCTemplate BarmaidMerchant
{
	// Primary NPC information
	Name			<random> - the Barmaid
	Script			:brainAI:brain
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
	RunSpeed		200
	Alignment		good
	Privs			invul
	Settings		invul
	Category		Merchant

	// Attributes
	Strength		2000
	Intelligence		2000
	Dexterity		2000

	Wrestling		2000
	Tactics			2000

	// Vitals
	HITS			2000
	MANA			2000
	STAM			2000

	// Intrinsic Weapon
	AttackSpeed		1
	AttackDamage		100d100
	AttackAttribute		Wrestling
	AttackHitScript		:combat:mainHitScript

	// Sounds
	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

	// Brain AI Settings
	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	NoSleep		i1

	// Brain AI Nerves
	AIScript	Combat		:merchants:generic/combat
	AIScript	Init		:merchants:generic/init
	AIScript	ItemGiven	:merchants:generic/itemGiven
	AIScript	Listen		:merchants:generic/listen
	AIScript	Merchant	:merchants:generic/merchant
	AIScript	Restart		:merchants:generic/restart

	// Skinning Info
	// Skinning	ItemName	Amount

	// Settings other scripts use...
	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	Barmaid

	// CProps (eww!)
}

NPCTemplate ScribeMerchant
{
	// Primary NPC information
	Name			<random> - the Scribe
	Script			:brainAI:brain
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
	RunSpeed		200
	Alignment		good
	Privs			invul
	Settings		invul
	Category		Merchant

	// Attributes
	Strength		2000
	Intelligence		2000
	Dexterity		2000

	Wrestling		2000
	Tactics			2000

	// Vitals
	HITS			2000
	MANA			2000
	STAM			2000

	// Intrinsic Weapon
	AttackSpeed		1
	AttackDamage		100d100
	AttackAttribute		Wrestling
	AttackHitScript		:combat:mainHitScript

	// Sounds
	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

	// Brain AI Settings
	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	NoSleep		i1

	// Brain AI Nerves
	AIScript	Combat		:merchants:generic/combat
	AIScript	Init		:merchants:generic/init
	AIScript	ItemGiven	:merchants:generic/itemGiven
	AIScript	Listen		:merchants:generic/listen
	AIScript	Merchant	:merchants:generic/merchant
	AIScript	Restart		:merchants:generic/restart

	// Skinning Info
	// Skinning	ItemName	Amount

	// Settings other scripts use...
	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	Scribe

	// CProps (eww!)
}

NPCTemplate TinkerMerchant
{
	// Primary NPC information
	Name			<random> - the Tinker
	Script			:brainAI:brain
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
	RunSpeed		200
	Alignment		good
	Privs			invul
	Settings		invul
	Category		Merchant

	// Attributes
	Strength		2000
	Intelligence		2000
	Dexterity		2000

	Wrestling		2000
	Tactics			2000

	// Vitals
	HITS			2000
	MANA			2000
	STAM			2000

	// Intrinsic Weapon
	AttackSpeed		1
	AttackDamage		100d100
	AttackAttribute		Wrestling
	AttackHitScript		:combat:mainHitScript

	// Sounds
	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

	// Brain AI Settings
	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	NoSleep		i1

	// Brain AI Nerves
	AIScript	Combat		:merchants:generic/combat
	AIScript	Init		:merchants:generic/init
	AIScript	ItemGiven	:merchants:generic/itemGiven
	AIScript	Listen		:merchants:generic/listen
	AIScript	Merchant	:merchants:generic/merchant
	AIScript	Restart		:merchants:generic/restart

	// Skinning Info
	// Skinning	ItemName	Amount

	// Settings other scripts use...
	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	Tinker

	// CProps (eww!)
}

NPCTemplate stableMerchant
{
	// Primary NPC information
	Name			<random> - the Stablemaster
	Script			:brainAI:brain
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
	RunSpeed		200
	Alignment		good
	Privs			invul
	Settings		invul
	Category		Merchant

	// Attributes
	Strength		2000
	Intelligence		2000
	Dexterity		2000

	Wrestling		2000
	Tactics			2000

	// Vitals
	HITS			2000
	MANA			2000
	STAM			2000

	// Intrinsic Weapon
	AttackSpeed		1
	AttackDamage		100d100
	AttackAttribute		Wrestling
	AttackHitScript		:combat:mainHitScript

	// Sounds
	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

	// Brain AI Settings
	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	NoSleep		i1

	// Brain AI Nerves
	AIScript	Combat		:merchants:generic/combat
	AIScript	Init		:merchants:generic/init
	AIScript	ItemGiven	:merchants:generic/itemGiven
	AIScript	Listen		:merchants:generic/listen
	AIScript	Merchant	:merchants:generic/merchant
	AIScript	Restart		:merchants:generic/restart

	// Skinning Info
	// Skinning	ItemName	Amount

	// Settings other scripts use...
	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	stable

	// CProps (eww!)
}

NPCTemplate FishermanMerchant
{
	// Primary NPC information
	Name			<random> - the Fisherman
	Script			:brainAI:brain
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
	RunSpeed		200
	Alignment		good
	Privs			invul
	Settings		invul
	Category		Merchant

	// Attributes
	Strength		2000
	Intelligence		2000
	Dexterity		2000

	Wrestling		2000
	Tactics			2000

	// Vitals
	HITS			2000
	MANA			2000
	STAM			2000

	// Intrinsic Weapon
	AttackSpeed		1
	AttackDamage		100d100
	AttackAttribute		Wrestling
	AttackHitScript		:combat:mainHitScript

	// Sounds
	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

	// Brain AI Settings
	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	NoSleep		i1

	// Brain AI Nerves
	AIScript	Combat		:merchants:generic/combat
	AIScript	Init		:merchants:generic/init
	AIScript	ItemGiven	:merchants:generic/itemGiven
	AIScript	Listen		:merchants:generic/listen
	AIScript	Merchant	:merchants:generic/merchant
	AIScript	Restart		:merchants:generic/restart

	// Skinning Info
	// Skinning	ItemName	Amount

	// Settings other scripts use...
	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	Fisherman

	// CProps (eww!)
}

NPCTemplate BarberMerchant
{
	// Primary NPC information
	Name			<random> - the Barber
	Script			:brainAI:brain
	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25
	RunSpeed		200
	Alignment		good
	Privs			invul
	Settings		invul
	Category		Merchant

	// Attributes
	Strength		2000
	Intelligence		2000
	Dexterity		2000

	Wrestling		2000
	Tactics			2000

	// Vitals
	HITS			2000
	MANA			2000
	STAM			2000

	// Intrinsic Weapon
	AttackSpeed		1
	AttackDamage		100d100
	AttackAttribute		Wrestling
	AttackHitScript		:combat:mainHitScript

	// Sounds
	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

	// Brain AI Settings
	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	NoSleep		i1

	// Brain AI Nerves
	AIScript	Combat		:merchants:generic/combat
	AIScript	Init		:merchants:generic/init
	AIScript	ItemGiven	:merchants:generic/itemGiven
	AIScript	Listen		:merchants:generic/listen
	AIScript	Merchant	:merchants:generic/merchant
	AIScript	Restart		:merchants:generic/restart

	// Skinning Info
	// Skinning	ItemName	Amount

	// Settings other scripts use...
	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	Barber

	// CProps (eww!)
}
The first 3 NPC are an example so i basicly got my plan from there

Thanks in advance

User avatar
Austin
Former Developer
Posts: 615
Joined: Wed Jan 25, 2006 2:30 am

Re: NPC creation

Post by Austin » Sat Feb 19, 2011 11:18 pm

Did you unload the config file? It looks like you're using the Brain-AI system and if-so the createnpc command has a button there to reload it all.

darklord
New User
Posts: 13
Joined: Sat Feb 19, 2011 12:39 pm

Re: NPC creation

Post by darklord » Sun Feb 20, 2011 12:22 am

That is teh ecompile.log i have to clear ?

User avatar
Austin
Former Developer
Posts: 615
Joined: Wed Jan 25, 2006 2:30 am

Re: NPC creation

Post by Austin » Sun Feb 20, 2011 11:51 am

When you type .createnpc does it look like this?
Image

If-so, click the two buttons on the bottom to unload the npcdesc.cfg files and update the menu.

darklord
New User
Posts: 13
Joined: Sat Feb 19, 2011 12:39 pm

Re: NPC creation

Post by darklord » Sun Feb 20, 2011 12:07 pm

Fixed it now.
Thanks :)

Post Reply