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
25 lines
696 B
Python
25 lines
696 B
Python
from protocol.swg import PlayClientEffectObjectMessage
|
|
import sys
|
|
|
|
def setup():
|
|
return
|
|
|
|
def run(core, actor, target, commandString):
|
|
|
|
command = 'SpotLight1'
|
|
effect = 'clienteffect/entertainer_spot_light_level_1.cef'
|
|
|
|
# TODO: Figure out what levels the spotlight effects upgraded at.
|
|
|
|
if actor.getLevel() >= 80:
|
|
command == 'SpotLight3'
|
|
effect = 'clienteffect/entertainer_spot_light_level_3.cef'
|
|
|
|
elif actor.getLevel() >= 40:
|
|
command == 'SpotLight2'
|
|
effect = 'clienteffect/entertainer_spot_light_level_2.cef'
|
|
|
|
if core.entertainmentService.performEffect(actor, command, effect, None) is True:
|
|
actor.sendSystemMessage('@performance:effect_perform_spot_light', 0)
|
|
return
|