Files
NGECore2/scripts/radial/npc/corpse.py
T
CharonInferar 37dc1a45c2 Loot window added
Loot window implemented
Loot info effect added
2014-04-16 05:23:30 +02:00

20 lines
643 B
Python

from resources.common import RadialOptions
import sys
def createRadial(core, owner, target, radials):
radials.clear()
radials.add(RadialOptions(0, 36, 0, 'Loot'))
return
def handleSelection(core, owner, target, option):
if option == 36 and target:
#core.lootService.handleLootRequest(owner,target)
core.lootService.handleLootRequest(owner,target)
#lootedObjectInventory = target.getSlottedObject("inventory")
#core.simulationService.openContainer(owner, lootedObjectInventory)
#core.lootService.handleCreditDrop(owner, lootedObjectInventory)
if option == 15 and target:
core.objectService.destroyObject(target)
return