Lankhmar_PRC8/_module/nss/use_inrik_bag.nss

30 lines
557 B
Plaintext
Raw Permalink Normal View History

2025-04-03 12:54:47 -04:00
#include "x0_i0_partywide"
void main()
{
object oTarget;
// Get the PC who is in this conversation.
object oPC = GetLastUsedBy();
// Give 10 experience (to party) to the PC.
GiveXPToAll(oPC, 10);
// Only fire once.
if ( GetLocalInt(GetModule(), "DO_ONCE__" + GetTag(OBJECT_SELF)) )
return;
SetLocalInt(GetModule(), "DO_ONCE__" + GetTag(OBJECT_SELF), TRUE);
CreateItemOnObject("inrikvalinors", oPC);
oTarget = GetObjectByTag("Shaft_Blue_in");
DestroyObject(oTarget, 1.0);
oTarget = GetObjectByTag("inrik_bag");
DestroyObject(oTarget, 10.0);
}