33 lines
725 B
Plaintext
33 lines
725 B
Plaintext
#include "prc_x2_itemprop"
|
|
/* Script generated by
|
|
Lilac Soul's NWN Script Generator, v. 2.2
|
|
|
|
For download info, please visit:
|
|
http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */
|
|
|
|
//Put this on action taken in the conversation editor
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetPCSpeaker();
|
|
|
|
AssignCommand(GetObjectByTag("student"), SetFacingPoint(GetPosition(oPC)));
|
|
|
|
object oTarget;
|
|
oTarget = oPC;
|
|
|
|
ActionCastFakeSpellAtObject(SPELL_SPELLSTAFF, oTarget, PROJECTILE_PATH_TYPE_DEFAULT);
|
|
|
|
object oItem;
|
|
oTarget = GetObjectByTag("X0_WSWMDG002");
|
|
|
|
oItem = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oTarget);
|
|
|
|
itemproperty ipAdd;
|
|
ipAdd = ItemPropertyVisualEffect(ITEM_VISUAL_HOLY);
|
|
|
|
IPSafeAddItemProperty(oItem, ipAdd);
|
|
|
|
}
|
|
|