mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-02 03:15:52 -04:00
18 lines
633 B
Python
18 lines
633 B
Python
from resources.common import RadialOptions
|
|
import sys
|
|
|
|
def createRadial(core, owner, target, radials):
|
|
radials.add(RadialOptions(0, 21, 1, ''))
|
|
radials.add(RadialOptions(0, 7, 1, ''))
|
|
radials.add(RadialOptions(0, 21, 3, '@collection:consume_item'))
|
|
return
|
|
|
|
def handleSelection(core, actor, target, option):
|
|
if option == 21 and target:
|
|
if target.getAttachment('CollectionItemName'):
|
|
print (target.getAttachment('CollectionItemName'))
|
|
core.collectionService.addCollection(actor, target.getAttachment('CollectionItemName'))
|
|
core.objectService.useObject(actor, target)
|
|
core.objectService.destroyObject(target)
|
|
return
|