HiddenTradition_PRC8/_module/nss/at_pjohnquest5.nss

19 lines
450 B
Plaintext
Raw Permalink Normal View History

#include "nw_j_assassin"
#include "nw_i0_tool"
void main()
{
// Give the speaker some XP
RewardPartyXP(400, GetPCSpeaker());
// Remove items from the player's inventory
object oItemToTake;
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "LettertoPresterJohn");
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
// Set the variables
aSetPLocalInt(GetPCSpeaker(), "PresterJohnQuest", 5);
}