24 lines
385 B
Plaintext
24 lines
385 B
Plaintext
#include "prc_misc_const"
|
|
#include "prc_inc_nwscript"
|
|
#include "prc_x2_itemprop"
|
|
|
|
//Put this on action taken in the conversation editor
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetPCSpeaker();
|
|
|
|
object oTarget;
|
|
object oItem;
|
|
oTarget = oPC;
|
|
|
|
oItem = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oTarget);
|
|
|
|
itemproperty ipAdd;
|
|
ipAdd = ItemPropertyAttackBonus(10);
|
|
|
|
IPSafeAddItemProperty(oItem, ipAdd);
|
|
|
|
}
|
|
|