mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-14 00:02:07 -04:00
(Added) Entertainers can now add Cover Charges for their performance (Feature) Using a performance effect that has multiple effect levels will use the highest effect for the entertainers level (Code) Added 2 new methods (Jython and Java version) for Input Boxes that automatically adds the input text to return list. (Code) Moved essential spectating code from /watch script to startSpectating (BugFix) Fixed Null Error when trying to cancel Experience tick if leveled with a cheat. (BugFix) Fixed system messages error on performance abilities
40 lines
1.1 KiB
Python
40 lines
1.1 KiB
Python
from protocol.swg import PlayClientEffectObjectMessage
|
|
import sys
|
|
|
|
def setup():
|
|
return
|
|
|
|
def run(core, actor, target, commandString):
|
|
level = actor.getLevel()
|
|
command = 'SpotLight1'
|
|
effect = 'clienteffect/entertainer_spot_light_level_1.cef'
|
|
rLevel = 1 # minimum level to perform this effect
|
|
|
|
if commandString is None or commandString == '':
|
|
if level >= 30:
|
|
command = 'SpotLight3'
|
|
effect = 'clienteffect/entertainer_spot_light_level_3.cef'
|
|
|
|
elif level >= 20:
|
|
command = 'SpotLight2'
|
|
effect = 'clienteffect/entertainer_spot_light_level_2.cef'
|
|
|
|
if commandString is not None:
|
|
if commandString == '2':
|
|
command = 'SpotLight2'
|
|
effect = 'clienteffect/entertainer_spot_light_level_2.cef'
|
|
rLevel = 20
|
|
|
|
elif commandString == '3':
|
|
command = 'SpotLight3'
|
|
effect = 'clienteffect/entertainer_spot_light_level_3.cef'
|
|
rLevel = 30
|
|
|
|
if level < rLevel:
|
|
actor.sendSystemMessage('@performance:effect_lack_skill_self', 0)
|
|
return
|
|
|
|
if core.entertainmentService.performEffect(actor, command, effect, None) is True:
|
|
actor.sendSystemMessage('@performance:effect_perform_spot_light', 0)
|
|
return
|