Files
NGECore2/scripts/radial/npc/mobile.py
T
2014-06-04 14:20:18 +01:00

16 lines
532 B
Python

from resources.common import RadialOptions
import sys
def createRadial(core, owner, target, radials):
radials.clear()
if target.getAttachment('AI') and core.resourceService and core.resourceService.canMilk(owner, target):
radials.add(RadialOptions(0, 167, 3, '@pet/pet_menu:milk_me'))
return
def handleSelection(core, owner, target, option):
if option == 167 and target.getAttachment('AI') and core.resourceService and core.resourceService.canMilk(owner, target):
core.resourceService.doMilk(owner, target)
return