mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-21 11:03:00 -04:00
fix SWGList on audience, however, the old field needs removing.
depend inspire on watching
This commit is contained in:
@@ -6,16 +6,30 @@ def setup():
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
|
||||
if (actor.getProfession() != "entertainer_1a"):
|
||||
playerObject = actor.getSlottedObject('ghost')
|
||||
print playerObject.getProfession()
|
||||
if not playerObject or playerObject.getProfession() != "entertainer_1a":
|
||||
return
|
||||
|
||||
print 'x'
|
||||
if actor.getPosture() != 0x09:
|
||||
actor.sendSystemMessage('@performance:insp_buff_must_perform')
|
||||
return
|
||||
|
||||
if (target.getPerformanceWatchee() != actor):
|
||||
if actor.getPerformanceType():
|
||||
actor.sendSystemMessage('@performance:insp_buff_must_watch')
|
||||
return
|
||||
|
||||
else:
|
||||
actor.sendSystemMessage('@performance:insp_buff_must_listen')
|
||||
return
|
||||
|
||||
print ('Buffing Player: ' + str(target.getObjectId()) + ' or: ' + target.getCustomName())
|
||||
openBuffWindow = BuffBuilderStartMessage(actor.getObjectId(), actor.getObjectId(), target.getObjectId())
|
||||
objController = ObjControllerMessage(11, openBuffWindow)
|
||||
actor.getClient().getSession().write(objController.serialize())
|
||||
|
||||
penBuffWindow = BuffBuilderStartMessage(target.getObjectId(), actor.getObjectId(), target.getObjectId())
|
||||
objController2 = ObjControllerMessage(11, penBuffWindow)
|
||||
openBuffWindow = BuffBuilderStartMessage(target.getObjectId(), actor.getObjectId(), target.getObjectId())
|
||||
objController2 = ObjControllerMessage(11, openBuffWindow)
|
||||
target.getClient().getSession().write(objController2.serialize())
|
||||
return
|
||||
return
|
||||
|
||||
@@ -19,7 +19,7 @@ def run(core, actor, target, commandString):
|
||||
return
|
||||
|
||||
oldWatchee = actor.getPerformanceWatchee()
|
||||
if oldWatchee:
|
||||
if oldWatchee and oldWatchee != target:
|
||||
oldWatchee.removeAudience(actor)
|
||||
|
||||
actor.setPerformanceWatchee(target)
|
||||
|
||||
Reference in New Issue
Block a user