Initial Commit
Initial Commit [v1.01]
This commit is contained in:
21
_module/nss/pl_razingtorch.nss
Normal file
21
_module/nss/pl_razingtorch.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user