Anyway... I wanted to make a script that it will give the npc a bow and some arrows when the hunting will start.
I made the following script but it doesnt work... i can find the mistake (sorry i m new on scripting).
I tried changing the "GetSelf" to GetActionRef" etc but nothing...
ScriptName PC21Misc
ref target
string_var name
Begin OnPackageStart NPCHunting7x3
Set target to GetSelf
Set name to target.GetName
MessageEX "%z goes on hunting" name
target.additem WeapIronBow 1
target.additem Arrow1Iron 50
target.additem f 100
end
Can you plz tell me why the items are not added to my npc?
Thanks