Amon_PRC8/_module/nss/pl_razingtorch.nss
Jaysyn904 c5cffc37af Initial Commit
Initial Commit [v1.01]
2025-04-03 19:00:46 -04:00

22 lines
553 B
Plaintext

void main()
{
if((GetLocalInt(GetModule(), "RazingTorch") == 0))
{
object oPC = GetEnteringObject();
object oItemToTake1;
object oItemToTake2;
oItemToTake1 = GetItemPossessedBy(oPC, "RazingTorch");
oItemToTake2 = GetItemPossessedBy(oPC, "RazingTorch");
DestroyObject(oItemToTake1);
DestroyObject(oItemToTake2);
CreateItemOnObject("RazingTorch", oPC);
SetLocalInt(GetModule(), "RazingTorch", 1);
DelayCommand(15.0, SetLocalInt(GetModule(), "RazingTorch", 0));
}
}