Initial commit. Updated release archive.
This commit is contained in:
32
_module/nss/at_castlesupp2.nss
Normal file
32
_module/nss/at_castlesupp2.nss
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
#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);
|
||||
|
||||
}
|
Reference in New Issue
Block a user