PoA_PRC8/module/nss/respawnthrone.nss
Jaysyn904 128e7e59a4 Initial upload
Initial upload
2022-10-07 14:20:31 -04:00

20 lines
551 B
Plaintext

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));
}