def handleSelection(core, owner, target, option): if option == 136 and target or option == 138 and target: id = owner.getPlayerObject().getBountyMissionId() if id is None or id == 0: owner.sendSystemMessage('@mission/mission_generic:bounty_no_mission', 0) return mission = core.objectService.getObject(id) if mission is None: owner.sendSystemMessage('@mission/mission_generic:bounty_no_mission', 0) return if mission.getObjective().isSeekerActive(): owner.sendSystemMessage('@mission/mission_generic:bounty_already_tracking', 0) return if target.getUses() == 0: core.objectService.destroyObject(target) else: target.setUses(target.getUses() - 1) pos = SpawnPoint.getRandomPosition(owner.getPosition(), 1, 3, owner.getPlanetId()) ori = owner.getOrientation() seeker = core.staticService.spawnObject('object/creature/npc/droid/crafted/shared_probe_droid_advanced.iff', owner.getPlanet().getName(), 0, pos.x, pos.y, pos.z, ori.y, ori.w) owner.sendSystemMessage('@mission/mission_generic:seeker_droid_standby', 0) time.sleep(3) seeker.setPosture(8) time.sleep(6.5) core.objectService.destroyObject(seeker) mission.getObjective().beginSeekerUpdates(core, owner) return if option == 137 and target: id = owner.getPlayerObject().getBountyMissionId() if id is None or id == 0: owner.sendSystemMessage('@mission/mission_generic:bounty_no_mission', 0) return mission = core.objectService.getObject(id) if mission is None: owner.sendSystemMessage('@mission/mission_generic:bounty_no_mission', 0) return if mission.getObjective().isSeekerActive(): owner.sendSystemMessage('@mission/mission_generic:bounty_already_tracking', 0) return if target.getUses() == 0: core.objectService.destroyObject(target) else: target.setUses(target.getUses() - 1) pos = SpawnPoint.getRandomPosition(owner.getPosition(), 1, 3, owner.getPlanetId()) ori = owner.getOrientation() seeker = core.staticService.spawnObject('object/creature/npc/droid/crafted/shared_probe_droid_advanced.iff', owner.getPlanet().getName(), 0, pos.x, pos.y, pos.z, ori.y, ori.w) owner.sendSystemMessage('@mission/mission_generic:seeker_droid_standby', 0) time.sleep(3) seeker.setPosture(8) time.sleep(6.5) core.objectService.destroyObject(seeker) mission.getObjective().beginIdentifyTarget(core, owner) return return
def setup(core, object): objSvc = core.objectService objSvc.createChildObject(object, 'object/tangible/terminal/shared_terminal_cloning.iff', float(-0.134662), float(0.125265), float(-5.80915), float(-0.0238176), float(0.998716), 3) spawnPoints = Vector() spawnPoints.add(SpawnPoint(4.42891, 0.125266, -3.717, 0.712528, -0.701643, 5)) spawnPoints.add(SpawnPoint(4.45469, 0.125266, 1.18026, 0.72696, -0.68668, 4)) spawnPoints.add(SpawnPoint(4.73, 0.125266, 3.02662, 0.717716, -0.696336, 4)) object.setAttachment('spawnPoints', spawnPoints) return
def setup(core, object): objSvc = core.objectService objSvc.createChildObject( object, 'object/tangible/terminal/shared_terminal_cloning.iff', float(-5.5), float(0.13), float(-3.44), float(0.70), float(0.71), 6) spawnPoints = Vector() spawnPoints.add(SpawnPoint(4.45, 0.13, -3.80, -0.71, 0.71, 5)) spawnPoints.add(SpawnPoint(4.65, 0.13, 1.50, 0.71, -0.70, 4)) spawnPoints.add(SpawnPoint(-3.99, 0.13, -3.52, 0.70, 0.71, 6)) object.setAttachment('spawnPoints', spawnPoints) return
def setup(core, object): stcSvc = core.staticService cell = object.getCellByCellNumber(2) if cell: stcSvc.spawnObject( 'object/tangible/terminal/shared_terminal_cloning.iff', object.getPlanet().getName(), cell.getObjectID(), float(1), float(-0.05), float(2.5), float(0), float(1)) stcSvc.spawnObject( 'object/tangible/terminal/shared_terminal_cloning.iff', object.getPlanet().getName(), cell.getObjectID(), float(1), float(-0.05), float(-1.35), float(1), float(0)) spawnPoints = Vector() spawnPoints.add( SpawnPoint(-16.6514, -4.29167, -10.4976, 0.709453, 0.704753, 4)) spawnPoints.add( SpawnPoint(-16.5965, -4.29167, -14.1652, 0.721346, 0.692575, 4)) spawnPoints.add( SpawnPoint(16.5771, -4.29167, -14.2091, 0.71195, -0.702231, 4)) spawnPoints.add( SpawnPoint(16.6876, -4.29167, -10.5391, -0.6972, 0.716877, 4)) spawnPoints.add( SpawnPoint(6.32992, -4.79167, 0.613332, 0.999992, 0.00405023, 4)) spawnPoints.add( SpawnPoint(1.58067, -4.79167, 0.582775, 0.989691, 0.0143216, 4)) spawnPoints.add( SpawnPoint(-2.84125, -4.79167, 0.657588, -0.0356012, 0.999366, 4)) object.setAttachment('spawnPoints', spawnPoints) return
def setup(core, object): objSvc = core.objectService objSvc.createChildObject( object, 'object/tangible/terminal/shared_terminal_cloning.iff', float(1), float(-0.05), float(2.5), float(0), float(1), 2) objSvc.createChildObject( object, 'object/tangible/terminal/shared_terminal_cloning.iff', float(1), float(-0.05), float(-1.35), float(1), float(0), 2) spawnPoints = Vector() spawnPoints.add( SpawnPoint(-16.6514, -4.29167, -10.4976, 0.709453, 0.704753, 4)) spawnPoints.add( SpawnPoint(-16.5965, -4.29167, -14.1652, 0.721346, 0.692575, 4)) spawnPoints.add( SpawnPoint(16.5771, -4.29167, -14.2091, 0.71195, -0.702231, 4)) spawnPoints.add( SpawnPoint(16.6876, -4.29167, -10.5391, -0.6972, 0.716877, 4)) spawnPoints.add( SpawnPoint(6.32992, -4.79167, 0.613332, 0.999992, 0.00405023, 4)) spawnPoints.add( SpawnPoint(1.58067, -4.79167, 1.00877, 0.989691, -0.143217, 4)) spawnPoints.add( SpawnPoint(-2.84125, -4.79167, 1.26153, -0.0356012, 0.999366, 4)) object.setAttachment('spawnPoints', spawnPoints) core.mapService.addLocation(object.getPlanet(), 'Cloning Facility', object.getPosition().x, object.getPosition().z, 5, 0, 0) return
def setup(core, object): objSvc = core.objectService objSvc.createChildObject( object, 'object/tangible/terminal/shared_terminal_cloning.iff', float(1), float(-0.05), float(2.5), float(0), float(1), 2) objSvc.createChildObject( object, 'object/tangible/terminal/shared_terminal_cloning.iff', float(1), float(-0.05), float(-1.35), float(1), float(0), 2) spawnPoints = Vector() spawnPoints.add( SpawnPoint(-16.6514, -4.29167, -10.4976, 0.709453, 0.704753, 4)) spawnPoints.add( SpawnPoint(-16.5965, -4.29167, -14.1652, 0.721346, 0.692575, 4)) spawnPoints.add( SpawnPoint(16.5771, -4.29167, -14.2091, 0.71195, -0.702231, 4)) spawnPoints.add( SpawnPoint(16.6876, -4.29167, -10.5391, -0.6972, 0.716877, 4)) spawnPoints.add( SpawnPoint(6.32992, -4.79167, 0.613332, 0.999992, 0.00405023, 4)) spawnPoints.add( SpawnPoint(1.58067, -4.79167, 0.582775, 0.989691, 0.0143216, 4)) spawnPoints.add( SpawnPoint(-2.84125, -4.79167, 0.657588, -0.0356012, 0.999366, 4)) object.setAttachment('spawnPoints', spawnPoints) return
def setup(core, object): objSvc = core.objectService objSvc.createChildObject( object, 'object/tangible/terminal/shared_terminal_cloning.iff', float(-5.5), float(0.125265), float(-3.43841), float(0.699512), float(0.714621), 6) spawnPoints = Vector() spawnPoints.add( SpawnPoint(4.44727, 0.125266, -3.80136, -0.706468, 0.707745, 5)) spawnPoints.add( SpawnPoint(4.65395, 0.125266, 1.49466, 0.714548, -0.699587, 4)) spawnPoints.add( SpawnPoint(-3.99569, 0.125266, -3.51553, 0.70407, 0.710131, 6)) object.setAttachment('spawnPoints', spawnPoints) return
def setup(core, object): objSvc = core.objectService objSvc.createChildObject(object, 'object/tangible/terminal/shared_terminal_cloning.iff', float(-0.42), float(-0.38), float(-0.4), float(1), float(0), 10) spawnPoints = Vector() spawnPoints.add(SpawnPoint(0.445015, 0.271775, 1.39199, 0.707038, 0.707176, 9)) object.setAttachment('spawnPoints', spawnPoints) return
def setup(core, object): objSvc = core.objectService objSvc.createChildObject( object, 'object/tangible/terminal/shared_terminal_cloning.iff', float(0.04), float(0.16), float(-6), float(-0.06), float(0.99), 3) spawnPoints = Vector() spawnPoints.add(SpawnPoint(3.24, 0.16, -3.60, 0.71, -0.71, 5)) object.setAttachment('spawnPoints', spawnPoints) return
def setup(core, object): stcSvc = core.staticService cell = object.getCellByCellNumber(6) if cell: stcSvc.spawnObject( 'object/tangible/terminal/shared_terminal_cloning.iff', object.getPlanet().getName(), cell.getObjectID(), float(-5.5), float(0.125265), float(-3.43841), float(0.699512), float(0.714621)) spawnPoints = Vector() spawnPoints.add( SpawnPoint(4.44727, 0.125266, -3.80136, -0.706468, 0.707745, 5)) spawnPoints.add( SpawnPoint(4.65395, 0.125266, 1.49466, 0.714548, -0.699587, 4)) spawnPoints.add( SpawnPoint(-3.99569, 0.125266, -3.51553, 0.70407, 0.710131, 6)) object.setAttachment('spawnPoints', spawnPoints) return
def setup(core, object): stcSvc = core.staticService cell = object.getCellByCellNumber(3) if cell: stcSvc.spawnObject( 'object/tangible/terminal/shared_terminal_cloning.iff', object.getPlanet().getName(), cell.getObjectID(), float(-0.134662), float(0.125265), float(-5.80915), float(-0.0238176), float(0.998716)) spawnPoints = Vector() spawnPoints.add( SpawnPoint(4.42891, 0.125266, -3.717, 0.712528, -0.701643, 5)) spawnPoints.add( SpawnPoint(4.45469, 0.125266, 1.18026, 0.72696, -0.68668, 4)) spawnPoints.add(SpawnPoint(4.73, 0.125266, 3.02662, 0.717716, -0.696336, 4)) object.setAttachment('spawnPoints', spawnPoints) return
def setup(core, object): objSvc = core.objectService objSvc.createChildObject( object, 'object/tangible/terminal/shared_terminal_cloning.iff', float(0.0387871), float(0.125265), float(-6), float(-0.0595427), float(0.998226), 3) spawnPoints = Vector() spawnPoints.add( SpawnPoint(3.2408, 0.125266, -3.59732, 0.707641, -0.706572, 5)) object.setAttachment('spawnPoints', spawnPoints) return
def setup(core, object): stcSvc = core.staticService cell = object.getCellByCellNumber(10) if cell: stcSvc.spawnObject( 'object/tangible/terminal/shared_terminal_cloning.iff', object.getPlanet().getName(), cell.getObjectID(), float(-0.42), float(-0.38), float(-0.4), float(1), float(0)) spawnPoints = Vector() spawnPoints.add( SpawnPoint(0.445015, 0.271775, 1.39199, 0.707038, 0.707176, 9)) object.setAttachment('spawnPoints', spawnPoints) return
def setup(core, object): stcSvc = core.staticService cell = object.getCellByCellNumber(3) if cell: stcSvc.spawnObject( 'object/tangible/terminal/shared_terminal_cloning.iff', object.getPlanet().getName(), cell.getObjectID(), float(0.0387871), float(0.125265), float(-6), float(-0.0595427), float(0.998226)) spawnPoints = Vector() spawnPoints.add( SpawnPoint(3.2408, 0.125266, -3.59732, 0.707641, -0.706572, 5)) object.setAttachment('spawnPoints', spawnPoints) return
def handleSelection(core, owner, target, option): if option == 136 and target or option == 138 and target: id = owner.getPlayerObject().getBountyMissionId() if id is None or id == 0: owner.sendSystemMessage( '@mission/mission_generic:bounty_no_mission', 0) return mission = core.objectService.getObject(id) if mission is None: owner.sendSystemMessage( '@mission/mission_generic:bounty_no_mission', 0) return if mission.getObjective().isSeekerActive(): owner.sendSystemMessage( '@mission/mission_generic:bounty_already_tracking', 0) return if target.getUses() == 0: core.objectService.destroyObject(target) else: target.setUses(target.getUses() - 1) pos = SpawnPoint.getRandomPosition(owner.getPosition(), 1, 3, owner.getPlanetId()) ori = owner.getOrientation() seeker = core.staticService.spawnObject( 'object/creature/npc/droid/crafted/shared_probe_droid_advanced.iff', owner.getPlanet().getName(), 0, pos.x, pos.y, pos.z, ori.y, ori.w) time.sleep(3) owner.sendSystemMessage( '@mission/mission_generic:seeker_droid_standby', 0) seeker.setPosture(8) time.sleep(6.5) core.objectService.destroyObject(seeker) mission.getObjective().beginSeekerUpdates(core, owner) return if option == 137 and target: return return
def setup(core, object): stcSvc = core.staticService cell = object.getCellByCellNumber(4) if cell: stcSvc.spawnObject( 'object/tangible/terminal/shared_terminal_player_structure.iff', object.getPlanet().getName(), cell.getObjectID(), float(-13.28604), float(-2.110639), float(-6.443224), float(0.707107), float(0.707107)) stcSvc.spawnObject( 'object/tangible/terminal/shared_terminal_cloning.iff', object.getPlanet().getName(), cell.getObjectID(), float(-13.57625), float(-2.5), float(3.1), float(0.707107), float(0.707107)) spawnPoints = Vector() spawnPoints.add(SpawnPoint(-9.7, -1.2, -6.2, 0, 1, 4)) object.setAttachment('spawnPoints', spawnPoints) return
def setup(core, object): objSvc = core.objectService objSvc.createChildObject( object, 'object/tangible/terminal/shared_terminal_cloning.iff', float(-0.42), float(-0.38), float(-0.4), float(1), float(0), 10) objSvc.createChildObject(object, 'object/mobile/shared_21b_surgical_droid.iff', float(3.8), float(0.3), float(5.1), float(0), float(0), 1) spawnPoints = Vector() spawnPoints.add( SpawnPoint(0.445015, 0.271775, 1.39199, 0.707038, 0.707176, 9)) object.setAttachment('spawnPoints', spawnPoints) core.mapService.addLocation(object.getPlanet(), 'Cloning Facility', object.getPosition().x, object.getPosition().z, 5, 0, 0) return
def setup(core, object): objSvc = core.objectService objSvc.createChildObject( object, 'object/tangible/terminal/shared_terminal_cloning.iff', float(1), float(-0.05), float(2.5), float(0), float(1), 2) objSvc.createChildObject( object, 'object/tangible/terminal/shared_terminal_cloning.iff', float(1), float(-0.05), float(-1.35), float(1), float(0), 2) spawnPoints = Vector() spawnPoints.add(SpawnPoint(-16.66, -4.29, -10.50, 0.71, 0.70, 4)) spawnPoints.add(SpawnPoint(-16.60, -4.29, -14.17, 0.72, 0.69, 4)) spawnPoints.add(SpawnPoint(16.58, -4.29, -14.21, 0.71, -0.70, 4)) spawnPoints.add(SpawnPoint(16.69, -4.29, -10.54, -0.70, 0.72, 4)) spawnPoints.add(SpawnPoint(6.33, -4.79, 0.61, 0.99, 0.01, 4)) spawnPoints.add(SpawnPoint(1.58, -4.79, 0.58, 0.99, 0.01, 4)) spawnPoints.add(SpawnPoint(-2.84, -4.79, 0.66, -0.04, 0.99, 4)) object.setAttachment('spawnPoints', spawnPoints) return
def setup(core, object): objSvc = core.objectService objSvc.createChildObject(object, 'object/tangible/terminal/shared_terminal_cloning.iff', float(1), float(-0.05), float(2.5), float(0), float(1), 2) objSvc.createChildObject(object, 'object/tangible/terminal/shared_terminal_cloning.iff', float(1), float(-0.05), float(-1.35), float(1), float(0), 2) objSvc.createChildObject(object, 'object/mobile/shared_21b_surgical_droid.iff', float(-3.2), float(0.1), float(0.6), float(0), float(0), 2) spawnPoints = Vector() spawnPoints.add(SpawnPoint(-16.66, -4.29, -10.50, 0.71, 0.70, 4)) spawnPoints.add(SpawnPoint(-16.60, -4.29, -14.17, 0.72, 0.69, 4)) spawnPoints.add(SpawnPoint(16.58, -4.29, -14.21, 0.71, -0.70, 4)) spawnPoints.add(SpawnPoint(16.69, -4.29, -10.54, -0.70, 0.72, 4)) spawnPoints.add(SpawnPoint(6.33, -4.79, 0.61, 0.99, 0.01, 4)) spawnPoints.add(SpawnPoint(1.58, -4.79, 0.58, 0.99, 0.01, 4)) spawnPoints.add(SpawnPoint(-2.84, -4.79, 0.66, -0.04, 0.99, 4)) object.setAttachment('spawnPoints', spawnPoints) core.mapService.addLocation(object.getPlanet(), 'Cloning Facility', object.getPosition().x, object.getPosition().z, 5, 0, 0) return