HiddenTradition_PRC8/_module/nss/at_castlesupp2.nss
2024-06-20 15:47:42 -04:00

33 lines
560 B
Plaintext

#include "nw_i0_tool"
#include "nw_j_assassin"
void main()
{
object oPC = GetPCSpeaker();
// Give the speaker some gold
RewardPartyGP(200, oPC);
// Give the speaker some XP
RewardPartyXP(50, oPC);
// Remove items from the player's inventory
object oItemToTake;
oItemToTake = GetItemPossessedBy(oPC, "it_CastleSupplies");
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
// Set the variables
aSetPLocalInt(oPC, "CastleSupplies", 2);
AdjustAlignment(oPC, ALIGNMENT_GOOD, 10);
}