PWE_PRC8/_module/nss/at_060.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

58 lines
1.1 KiB
Plaintext

#include "nw_i0_tool"
/* 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();
object oItem;
oItem = GetFirstItemInInventory(oPC);
while (GetIsObjectValid(oItem))
{
if (GetTag(oItem)=="NW_ITEM_054") DestroyObject(oItem);
oItem = GetNextItemInInventory(oPC);
}
oItem = GetFirstItemInInventory(oPC);
while (GetIsObjectValid(oItem))
{
if (GetTag(oItem)=="NW_ITEM_055") DestroyObject(oItem);
oItem = GetNextItemInInventory(oPC);
}
oItem = GetFirstItemInInventory(oPC);
while (GetIsObjectValid(oItem))
{
if (GetTag(oItem)=="NW_ITEM_056") DestroyObject(oItem);
oItem = GetNextItemInInventory(oPC);
}
oItem = GetFirstItemInInventory(oPC);
while (GetIsObjectValid(oItem))
{
if (GetTag(oItem)=="NW_ITEM_057") DestroyObject(oItem);
oItem = GetNextItemInInventory(oPC);
}
RewardPartyXP(5000, oPC, FALSE);
RewardPartyGP(10000, oPC, FALSE);
CreateItemOnObject("bookoftravel001", oPC);
}