Lankhmar_PRC8/_module/nss/dstry_cbthse_5.nss
Jaysyn904 ebc0c6a9b2 Initial commit
Initial commit [v9.7]
2025-04-03 12:54:47 -04:00

33 lines
758 B
Plaintext

#include "x0_i0_partywide"
#include "MY_O2_CONINCLUDE"
void main()
{
// Get the creature who triggered this event.
object oPC = GetLastKiller();
// Only fire once.
if ( GetLocalInt(GetModule(), "DO_ONCE__" + GetTag(OBJECT_SELF)) )
return;
SetLocalInt(GetModule(), "DO_ONCE__" + GetTag(OBJECT_SELF), TRUE);
// Update the party's journals.
AddJournalQuestEntry("CorbettHouse", 5, oPC);
// Give 5 experience (to party) to the PC.
GiveXPToAll(oPC, 5);
//Give Stuff
if (GetLocalInt(OBJECT_SELF,"NW_DO_ONCE") != 0)
{
return;
}
object oLastOpener = GetLastOpener();
GenerateLowTreasure(oLastOpener, OBJECT_SELF);
SetLocalInt(OBJECT_SELF,"NW_DO_ONCE",1);
ShoutDisturbed();
}