Initial Upload
Initial Upload
This commit is contained in:
11
_module/nss/tb_chestopen.nss
Normal file
11
_module/nss/tb_chestopen.nss
Normal file
@@ -0,0 +1,11 @@
|
||||
void main()
|
||||
{
|
||||
object oCloak = GetObjectByTag("MedusasShawl");
|
||||
|
||||
if(GetLocalInt(OBJECT_SELF, "CloakTaken") != 1 && GetItemPossessor(oCloak) != OBJECT_SELF)
|
||||
{
|
||||
SetLocalInt(OBJECT_SELF, "CloakTaken", 1);
|
||||
CreateItemOnObject("MedusasShawl", OBJECT_SELF, 6);
|
||||
DelayCommand(300.0, SetLocalInt(OBJECT_SELF, "CloakTaken", 0));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user