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

17 lines
527 B
Plaintext

#include "NW_I0_Plot"
void main()
{
object oItem = GetInventoryDisturbItem();
int nItemBase =GetBaseItemType(oItem);
if(GetLocalInt(OBJECT_SELF,"NW_L_M1S1Opened") == FALSE &&
GetTag(oItem) == "MagicalStone" )
{
DestroyObject(oItem);
object oDoor = GetNearestObjectByTag("HighClericDoor");
AssignCommand(oDoor,ActionOpenDoor(oDoor));
SetLocked(oDoor,FALSE);
SetLocalInt(OBJECT_SELF,"NW_L_M1S1Opened",TRUE);
RewardXP("m1q1_Never",50,GetPCSpeaker());
}
}