Files
NGECore2/scripts/commands/spotlight.py
T
Waverunner ca4e0559a1 Added performance effects, fixed band flos, minor ent service code changes
(Bug Fix) Band Flourishes will now give experience
(Added) Performance Commands
(Code) Changed to ConcurrentHashMap for performance tables
2014-03-20 18:00:13 -04:00

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