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
This commit is contained in:
Waverunner
2014-03-20 18:00:13 -04:00
parent 36458239d3
commit ca4e0559a1
18 changed files with 482 additions and 11 deletions
+2 -8
View File
@@ -31,15 +31,10 @@ def run(core, actor, target, commandString):
if actor.getPerformanceId() <= 0:
actor.sendSystemMessage('@performance:flourish_not_performing', 0)
return
animation = 'skill_action_' + str(flourish)
if flourish == 9:
animation = 'mistake'
if actor.getAcceptBandflourishes():
actor.sendSystemMessage('@performance:flourish_perform_band_self', 0)
actor.sendSystemMessage('@performance:flourish_perform', 0)
actor.doSkillAnimation(animation)
core.entertainmentService.performFlourish(actor, flourish)
group = core.objectService.getObject(actor.getGroupId())
if not group:
@@ -50,8 +45,7 @@ def run(core, actor, target, commandString):
continue
if creature.getAcceptBandflourishes():
creature.sendSystemMessage('@performance:flourish_perform_band_member', 0)
creature.sendSystemMessage('@performance:flourish_perform', 0)
creature.doSkillAnimation(animation)
core.entertainmentService.performFlourish(creature, flourish)
return
+14
View File
@@ -0,0 +1,14 @@
import sys
def setup():
return
def run(core, actor, target, commandString):
if actor.getLevel() < 66:
actor.sendSystemMessage('@performance:effect_lack_skill_self')
return
if core.entertainmentService.performEffect(actor, 'CenterStage', 'clienteffect/entertainer_center_stage.cef', target) is True:
actor.sendSystemMessage('@performance:effect_perform_center_stage', 0)
return
+14
View File
@@ -0,0 +1,14 @@
import sys
def setup():
return
def run(core, actor, target, commandString):
if actor.getLevel() < 34:
actor.sendSystemMessage('@performance:effect_lack_skill_self')
return
if core.entertainmentService.performEffect(actor, 'ColorSwirl', 'clienteffect/entertainer_color_swirl.cef', target) is True:
actor.sendSystemMessage('@performance:effect_perform_color_swirl', 0)
return
+19
View File
@@ -0,0 +1,19 @@
import sys
def setup():
return
def run(core, actor, target, commandString):
command = 'ColorLights1'
effect = 'entertainer_color_lights_level_1.cef'
if actor.getLevel() < 4:
actor.sendSystemMessage('@performance:effect_lack_skill_self')
return
# TODO: Find out levels for other colored light 2 and 3
if core.entertainmentService.performEffect(actor, command, effect, target) is True:
actor.sendSystemMessage('@performance:effect_perform_color_lights', 0)
return
+19
View File
@@ -0,0 +1,19 @@
import sys
def setup():
return
def run(core, actor, target, commandString):
command = 'Dazzle1'
effect = 'entertainer_dazzle_level_1.cef'
if actor.getLevel() < 10:
actor.sendSystemMessage('@performance:effect_lack_skill_self')
return
# TODO: Find out levels for other dazzle 2 and 3
if core.entertainmentService.performEffect(actor, command, effect, target) is True:
actor.sendSystemMessage('@performance:effect_perform_dazzle', 0)
return
+19
View File
@@ -0,0 +1,19 @@
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
+14
View File
@@ -0,0 +1,14 @@
import sys
def setup():
return
def run(core, actor, target, commandString):
if actor.getLevel() < 90:
actor.sendSystemMessage('@performance:effect_lack_skill_self')
return
if core.entertainmentService.performEffect(actor, 'FeaturedSolo', 'clienteffect/entertainer_featured_solo.cef', target) is True:
actor.sendSystemMessage('@performance:effect_perform_featured_solo', 0)
return
+19
View File
@@ -0,0 +1,19 @@
import sys
def setup():
return
def run(core, actor, target, commandString):
command = 'FireJets1'
effect = 'entertainer_fire_jets_level_1.cef'
if actor.getLevel() < 26:
actor.sendSystemMessage('@performance:effect_lack_skill_self')
return
# TODO: Find out levels for other firejets 2 and 3
if core.entertainmentService.performEffect(actor, command, effect, target) is True:
actor.sendSystemMessage('@performance:effect_perform_fire_jets', 0)
return
+14
View File
@@ -0,0 +1,14 @@
import sys
def setup():
return
def run(core, actor, target, commandString):
if actor.getLevel() < 76:
actor.sendSystemMessage('@performance:effect_lack_skill_self')
return
if core.entertainmentService.performEffect(actor, 'FireJetsB', 'clienteffect/entertainer_fire_jets2.cef', target) is True:
actor.sendSystemMessage('@performance:effect_perform_fire_jets_2', 0)
return
+14
View File
@@ -0,0 +1,14 @@
import sys
def setup():
return
def run(core, actor, target, commandString):
if actor.getLevel() < 82:
actor.sendSystemMessage('@performance:effect_lack_skill_self')
return
if core.entertainmentService.performEffect(actor, 'DanceFloor', 'clienteffect/entertainer_dance_floor.cef', target) is True:
actor.sendSystemMessage('@performance:effect_perform_dance_floor', 0)
return
+14
View File
@@ -0,0 +1,14 @@
import sys
def setup():
return
def run(core, actor, target, commandString):
if actor.getLevel() < 42:
actor.sendSystemMessage('@performance:effect_lack_skill_self')
return
if core.entertainmentService.performEffect(actor, 'LaserShow', 'clienteffect/entertainer_laser_show.cef', target) is True:
actor.sendSystemMessage('@performance:effect_perform_lase_show', 0)
return
+19
View File
@@ -0,0 +1,19 @@
import sys
def setup():
return
def run(core, actor, target, commandString):
command = 'SmokeBomb1'
effect = 'entertainer_smoke_bomb_level_1.cef'
if actor.getLevel() < 50:
actor.sendSystemMessage('@performance:effect_lack_skill_self')
return
# TODO: Find out levels for other smoke bomb 2 and 3
if core.entertainmentService.performEffect(actor, command, effect, target) is True:
actor.sendSystemMessage('@performance:effect_perform_smoke_bomb', 0)
return
+24
View File
@@ -0,0 +1,24 @@
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
+19
View File
@@ -0,0 +1,19 @@
import sys
def setup():
return
def run(core, actor, target, commandString):
command = 'Ventriloquism1'
effect = 'entertainer_ventriloquism_level_1.cef'
if actor.getLevel() < 58:
actor.sendSystemMessage('@performance:effect_lack_skill_self')
return
# TODO: Find out levels for other ventriloquism 2 and 3
if core.entertainmentService.performEffect(actor, command, effect, target) is True:
actor.sendSystemMessage('@performance:effect_perform_ventriloquism', 0)
return