fix SWGList on audience, however, the old field needs removing.

depend inspire on watching
This commit is contained in:
darkk1138
2013-12-09 18:09:40 +01:00
parent 471fab10d8
commit 760aea96f2
3 changed files with 36 additions and 13 deletions
+20 -6
View File
@@ -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
+1 -1
View File
@@ -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)