Resource icon

Approved DestroySystem 1.7.6

No permission to download
When players are using destroyall on a building / structure they receive only the item back (in the amount of all total building parts) which they hit first.

E.g. my building has 36 parts. I hit the doorway with destroyall on and I receive 36 doorways back.
 
which is the command that I use in ADMIN mode to remove abandoned structures?

Please help !!! thanks
 
It has to be:

self.TurnOfAfterATime = int(ini.GetSetting("options", "TurnOfAfterATime"))
self.Time = int(ini.GetSetting("options", "Time")) * 1000
 
It has to be

if DataStore.Get("DestroySystem", id) is not None:
DataStore.Remove("DestroySystem", Player.SteamID)
Player.Message("---DestroySystem---")
Player.Message("You quit Destroy mode!")
elif DataStore.Get("DestroySystem2", id) is not None:
DataStore.Remove("DestroySystem2", Player.SteamID)
Player.Message("---DestroySystem---")
Player.Message("You quit Destroy ALL mode!")

otherwise the destroy mode wont be exited.

The timer does not have to be kllled when you use /destory again to end Destroy Mode before the timer ends?
 
Last edited:
[4/4/2016 2:32:43 PM] [Error] [IronPython] Error in plugin DestroySystem:
[4/4/2016 2:32:43 PM] [Error] Traceback (most recent call last):
File "<string>", line 256, in On_EntityHurt
AttributeError: 'NoneType' object has no attribute 'AddItem'
[4/4/2016 2:32:46 PM] [Error] [IronPython] Error in plugin DestroySystem:
[4/4/2016 2:32:46 PM] [Error] Traceback (most recent call last):
File "<string>", line 256, in On_EntityHurt
AttributeError: 'NoneType' object has no attribute 'AddItem'
[4/4/2016 2:32:49 PM] [Error] [IronPython] Error in plugin DestroySystem:
[4/4/2016 2:32:49 PM] [Error] Traceback (most recent call last):
File "<string>", line 256, in On_EntityHurt
AttributeError: 'NoneType' object has no attribute 'AddItem'
[4/4/2016 2:32:51 PM] [Error] [IronPython] Error in plugin DestroySystem:
[4/4/2016 2:32:51 PM] [Error] Traceback (most recent call last):
File "<string>", line 256, in On_EntityHurt
AttributeError: 'NoneType' object has no attribute 'AddItem'
 
NEW error

[4/5/2016 6:26:17 PM] [Error] [IronPython] Error in plugin DestroySystem:
[4/5/2016 6:26:17 PM] [Error] Traceback (most recent call last):
File "<string>", line 254, in On_EntityHurt
AttributeError: 'NoneType' object has no attribute 'AddItem'