guide for setting npc's looks

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.

Moderator: POL Developer

Post Reply
mccomb
New User
Posts: 7
Joined: Sun Jul 17, 2011 12:54 am
Location: North Carolina

guide for setting npc's looks

Post by mccomb »

thanks to damien for writing this to help me with customizing npcs a little more....thought it might help some other new people out

###########NPCDESC.CFG###########
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
AISetting DblClickRange i2

// 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
AIScript DblClick :merchants:generic/DoubleClick

// Skinning Info
// Skinning ItemName Amount

// Settings other scripts use...
NameTemplate Human_Male
EquipTemplate Villager_1 <------------ MATCH 1

// CProps (eww!)
}

#########EQUIPINDEX.cfg###########
Equipment Villager_1 <---------------- MATCH 1
{
Equip Sword 100
Equip Shirt 100
Equip Pants 100
Equip Cloak 10
Equip Bodysash 10
Equip Feet 100
Equip Hair 90 <----------- MATCH 2
}

#########EQUIPGROUPS.CFG##########
#
# Elem <Group Name>
# {
# Item <Item Name> - Unisex item
#
# Male <Item Name> - Male-only item
#
# Female <Item Name> - Female-only item
# }
#
#

Elem Hair <-------------- MATCH 2
{
Item ShortHair Hair <------ MATCH 3
Item LongHair Hair
Item PonyTailHair Hair
Item MohawkHair Hair
Item PageboyHair Hair
Item BunsHair Hair
Item AfroHair Hair
Item RecedingHair Hair
Item PigTailHair Hair
Item KrisnaHair Hair
}

############PKG/ITEMS/HAIR/CONFIG/ITEMDESC.CFG#############
//-=[ Hair ]=--------------------------
Item 0x203B
{
Name ShortHair <------ MATCH 3
Desc short hair
}
Item 0x203C
{
Name LongHair
Desc long hair
}
Item 0x203d
{
Name PonyTailHair
Desc pony tail
}
Item 0x2044
{
Name MohawkHair
Desc mohawk
}
Item 0x2045
{
Name PageBoyHair
Desc pageboy
}
Item 0x2046
{
Name BunsHair
Desc buns hair
}
Item 0x2047
{
Name AfroHair
Desc afro
}
Item 0x2048
{
Name RecedingHair
Desc receding hair
}
Item 0x2049
{
Name PigTailHair
Desc two pig tails
}
Item 0x204A
{
Name KrisnaHair
Desc krisna hair
}
Post Reply