47 lines
692 B
Plaintext
47 lines
692 B
Plaintext
#include "nw_i0_tool"
|
|
/* Script generated by
|
|
Lilac Soul's NWN Script Generator, v. 1.3
|
|
|
|
For download info, please visit:
|
|
http://www.lilacsoul.revility.com */
|
|
|
|
//Put this OnDeath
|
|
void main()
|
|
{
|
|
|
|
|
|
{
|
|
object oPC = GetLastKiller();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
RewardPartyXP(2500, oPC, FALSE);
|
|
|
|
RewardPartyGP(5000, oPC, FALSE);
|
|
}
|
|
|
|
|
|
{
|
|
|
|
object oPC = GetLastKiller();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
if (GetItemPossessedBy(oPC, "ShroudoftheAvatar")!= OBJECT_INVALID)
|
|
return;
|
|
|
|
if (GetItemPossessedBy(oPC, "MephistophelesHand")!= OBJECT_INVALID)
|
|
return;
|
|
|
|
if (!(GetHitDice(oPC) >= 40))
|
|
return;
|
|
|
|
AddJournalQuestEntry("Avatar", 2, oPC, FALSE, FALSE);
|
|
|
|
CreateItemOnObject("item011", oPC);
|
|
|
|
}
|
|
|
|
|
|
}
|