1. NPCs who can learn skills and do tasks
[creature 4258]
level=35
npcflags=17
maxhealth=100
maxmana=132
faction=55
bounding_radius=0.347000
combat_reach=1.500000
attack=2000 2000
damage=52.285713 56.285713
train=2020 represents skill code
train=2021
train=3539
train=9786
questscript=HelloWorld represents the name in task name comparison\scripts\tcl
name=Bengus Deepforge
guild=Artisan Blacksmith
flags1=08400046
type=7
model=3097
2. Can both tasks and speak
[creature 658]
level=5
npcflags=2
maxhealth=100
maxmana=28
faction=55
bounding_radius=0.347000
combat_reach=1.500000
attack=1500 1500
damage=3.125000 4.125000
name=Sten Stoutarm
flags1=066
type=7
model=1362
questscript=StenStoutarm represents the name in task name comparison\scripts\tcl
npctext0_0=ah, well aren't you a struggle-looking one? Perhaps you can assist me with a thing or two. Not much help around here except for green apprentices, and they've other things to worry about.
3. Setting up continuous tasks
[quest 3904]
name=Milly's Harvest Task Name
Task prompt desc=Bring 8 crates of Milly's Harvest to Milly Osworth at Northshire Abbey.
Task content details=A gang of brigands, the Defias, moved into the Northshire Vineyards while I was harvesting! I reported it to the Northshire guards and they assured me they'd take care of things, but... I'm afraid for my crop of grabs! If the Defias don't steal them then I fear our guards will trampl them when they chase away the thugs.$B$BPlease, you must help me! I gathered most of my grabs into buckets, but I left them in the vineyards to the southeast.$B$BBring me those crates! Save my harvest!
levels=2 4
zone=9
next_quest=3905 means that the next task number is 3905
quest_flags=08 The task completed Flags is 08
deliver=11119 8 The item required for the task is the grape code 11119, a total of 8 are required.
[quest 3905]
name=Grape Manifest
desc=Bring the Grape Manifest to Brother Neals in Northshire Abbey.
details=Now that my crop is saved, take this Grape Manifest to Brother Neals. He manages the store of food and drink in Northshire, and I'm sure he'll be delighted to hear that he has fresh grapes.$B$BYou'll find Brother Neals in the abbey, in the bell tower... where he likes to taste his wine.
levels=2 4
zone=9
src_item=11125
quest_flags=020
reward_choice=2690 1
deliver=11125 1 The item required for the task is the head code 11125, a total of 1 is required.
4. Teach you to increase trading of NPCs
[creature 1298]
level=30
npcflags=5
maxhealth=100
maxmana=108
faction=12
bounding_radius=0.306000
combat_reach=1.500000
attack=2000 2000
damage=42.285713 47.285713
sell=11303
sell=11307
sell=11306
sell=5105
sell=5026
sell=5024
sell=3027
sell=2506
sell=11285
sell=2507
sell=2101
sell=11362
sell=2505
sell=3030
sell=3026
sell=2512
sell=2515
sell=5439
sell=2504
name=Frederick Stover
guild=Bow & Arrow Merchant
flags1=08400046
type=7
model=1427
"sell=2504" means that you need to add the item ID code to this NPC, and add whatever you want.
The "Soul Fragment" codes for the wizard's summoning are 6265 and 5232, and add NPC sell=6265
And sell=5232 can be sold.
Add the file below scripts
After adding, use the GM number to log in to the game, and use the GM command to create it where you want to place this NPC.
5. Teach you to increase automatic attack NPC
Data in the creations table
npcflags=0 means automatic attack NPC
Note that you must use .addspawn's NPC to automatically attack