PoA_PRC8/_module/nss/respawnthrone.nss

20 lines
551 B
Plaintext
Raw Normal View History

2022-10-07 14:20:31 -04:00
void CreateItemOnObjectVoid(string sItemTemplate, object oTarget=OBJECT_SELF, int nStackSize=1)
{
CreateItemOnObject(sItemTemplate, oTarget, nStackSize);
}
//Put this script OnOpen
void main()
{
object oPC = GetLastOpenedBy();
if (!GetIsPC(oPC)) return;
int DoOnce = GetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF));
if (DoOnce==TRUE) return;
SetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF), TRUE);
DelayCommand(8000.0, CreateItemOnObjectVoid("thequeensdiary", OBJECT_SELF));
DelayCommand(30000.0, CreateItemOnObjectVoid("note2looter", OBJECT_SELF));
}