mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-31 01:15:57 -04:00
(Bug Fix) Band Flourishes will now give experience (Added) Performance Commands (Code) Changed to ConcurrentHashMap for performance tables
19 lines
476 B
Python
19 lines
476 B
Python
import sys
|
|
|
|
def setup():
|
|
return
|
|
|
|
def run(core, actor, target, commandString):
|
|
|
|
command = 'Distract1'
|
|
effect = 'entertainer_distract_level_1.cef'
|
|
|
|
if actor.getLevel() < 18:
|
|
actor.sendSystemMessage('@performance:effect_lack_skill_self')
|
|
return
|
|
|
|
# TODO: Find out levels for other distract 2 and 3
|
|
|
|
if core.entertainmentService.performEffect(actor, command, effect, target) is True:
|
|
actor.sendSystemMessage('@performance:effect_perform_distract', 0)
|
|
return |