def startConversation(core, actor, npc): convSvc = core.conversationService convSvc.sendConversationMessage( actor, npc, OutOfBand.ProsePackage('@conversation/junk_dealer_generic:s_bef51e38')) options = Vector() options.add( ConversationOption( OutOfBand.ProsePackage( '@conversation/junk_dealer_generic:s_54fab04f'), 0)) options.add( ConversationOption( OutOfBand.ProsePackage('@conversation/junk_dealer_generic:s_48'), 1)) options.add( ConversationOption( OutOfBand.ProsePackage( '@conversation/junk_dealer_generic:s_3aa18b2d'), 2)) buyBack = actor.getAttachment('buy_back') if buyBack is not None and buyBack != 0 and core.objectService.objsInContainer( actor, core.objectService.getObject(buyBack)) > 0: options.add( ConversationOption( OutOfBand.ProsePackage( '@conversation/junk_dealer_generic:s_43'), 3)) convSvc.sendConversationOptions(actor, npc, options, handleFirstScreen) return
def handleOptionsTwo(core, actor, npc, selection): if (selection == 0): # So what do I do now? options = Vector() options.add( ConversationOption( OutOfBand.ProsePackage( '@conversation/c_newbie_secondchance:s_68'), 0)) core.conversationService.sendConversationMessage( actor, npc, OutOfBand.ProsePackage('@conversation/c_newbie_secondchance:s_66')) core.conversationService.sendConversationOptions( actor, npc, options, handleOptionsThree) return elif (selection == 1): # I'm not doing anything you ask options = Vector() options.add( ConversationOption( OutOfBand.ProsePackage( '@conversation/c_newbie_secondchance:s_122'), 0)) core.conversationService.sendConversationMessage( actor, npc, OutOfBand.ProsePackage( '@conversation/c_newbie_secondchance:s_172')) core.conversationService.sendConversationOptions( actor, npc, options, handleOptionsTwo) return return
def startConversation(core, actor, npc): player = actor.getPlayerObject() if player is None: return quest = player.getQuest('smuggle_generic_1') if quest is None or quest.isCompleted(): options = Vector() options.add( ConversationOption( OutOfBand.ProsePackage('@conversation/generic_broker_1:s_17'), 0)) # Yes. options.add( ConversationOption( OutOfBand.ProsePackage('@conversation/generic_broker_1:s_18'), 0)) # Not right now. core.conversationService.sendConversationMessage( actor, npc, OutOfBand.ProsePackage('@conversation/generic_broker_1:s_14')) core.conversationService.sendConversationOptions( actor, npc, options, handleOptionsOne) return elif player.getFactionStanding() >= 1000: core.conversationService.sendStopConversation( actor, npc, 'conversation/generic_broker_1', 's_8') else: core.conversationService.sendStopConversation( actor, npc, 'conversation/generic_broker_1', 's_4') return
def startConversation(core, actor, npc): global coreRef coreRef = core convSvc = core.conversationService if actor.getBuffByName('cloning_sickness'): prose = ProsePackage('conversation/clone_droid', 's_6') outOfBand = OutOfBand() outOfBand.addProsePackage(prose) convSvc.sendConversationMessage(actor, npc, outOfBand) prose2 = ProsePackage('conversation/clone_droid', 's_8') outOfBand2 = OutOfBand() outOfBand2.addProsePackage(prose2) prose3 = ProsePackage('conversation/clone_droid', 's_12') outOfBand3 = OutOfBand() outOfBand3.addProsePackage(prose3) option1 = ConversationOption(outOfBand2, 0) option2 = ConversationOption(outOfBand3, 1) options = Vector() options.add(option1) options.add(option2) convSvc.sendConversationOptions(actor, npc, options, handleFirstScreen) return else: core.conversationService.sendStopConversation( actor, npc, 'conversation/clone_droid', 's_4') return return
def handleFirstScreen(core, actor, npc, selection): convSvc = core.conversationService # TODO: check for prices if selection == 0: # respec convSvc.sendConversationMessage( actor, npc, OutOfBand.ProsePackage('@conversation/respecseller:s_58')) options = Vector() options.add( ConversationOption( OutOfBand.ProsePackage('@conversation/respecseller:s_60'), 0)) options.add( ConversationOption( OutOfBand.ProsePackage('@conversation/respecseller:s_64'), 1)) convSvc.sendConversationOptions(actor, npc, options, handleRespecScreen) if selection == 1: # expertise reset convSvc.sendConversationMessage( actor, npc, OutOfBand.ProsePackage('@conversation/respecseller:s_35')) options = Vector() options.add( ConversationOption( OutOfBand.ProsePackage('@conversation/respecseller:s_71'), 0)) options.add( ConversationOption( OutOfBand.ProsePackage('@conversation/respecseller:s_72'), 1)) convSvc.sendConversationOptions(actor, npc, options, handleResetScreen) return
def lootKitScreen4(core, actor, npc): convSvc = core.conversationService prose = ProsePackage('conversation/junk_dealer_generic', 's_4d65752') outOfBand = OutOfBand() outOfBand.addProsePackage(prose) convSvc.sendConversationMessage(actor, npc, outOfBand) prose2 = ProsePackage('conversation/junk_dealer_generic', 's_d347bee3') outOfBand2 = OutOfBand() outOfBand2.addProsePackage(prose2) prose3 = ProsePackage('conversation/junk_dealer_generic', 's_b60b73f8') outOfBand3 = OutOfBand() outOfBand3.addProsePackage(prose3) option1 = ConversationOption(outOfBand2, 0) option2 = ConversationOption(outOfBand3, 0) options = Vector() options.add(option1) options.add(option2) convSvc.sendConversationOptions(actor, npc, options, handleLootScreenSelection5) return
def startConversation(core, actor, npc): player = actor.getPlayerObject() if player is None: return quest = player.getQuest('tatooine_eisley_tdc') if quest is None: options = Vector() options.add(ConversationOption(OutOfBand.ProsePackage('@conversation/tatooine_eisley_byxle:s_58'), 0)) core.conversationService.sendConversationMessage(actor, npc, OutOfBand.ProsePackage('@conversation/tatooine_eisley_byxle:s_56')) core.conversationService.sendConversationOptions(actor, npc, options, handleOptionsOne) return elif quest.isCompleted(): core.conversationService.sendStopConversation(actor, npc, 'conversation/tatooine_eisley_byxle', 's_48') elif quest.getActiveTask() == 8: options = Vector() # I don't know. He seemed pretty mad. options.add(ConversationOption(OutOfBand.ProsePackage('@conversation/tatooine_eisley_byxle:s_29'), 0)) core.conversationService.sendConversationMessage(actor, npc, OutOfBand.ProsePackage('@conversation/tatooine_eisley_byxle:s_17')) core.conversationService.sendConversationOptions(actor, npc, options, handleOptionsFive) else: core.conversationService.sendStopConversation(actor, npc, 'conversation/tatooine_eisley_byxle', 's_48') return
def lootKitScreen5a(core, actor, npc): convSvc = core.conversationService convSvc.sendConversationMessage( actor, npc, OutOfBand.ProsePackage('@conversation/junk_dealer_generic:s_3fc7eb45')) options = Vector() options.add( ConversationOption( OutOfBand.ProsePackage( '@conversation/junk_dealer_generic:s_ee977dee'), 0)) options.add( ConversationOption( OutOfBand.ProsePackage( '@conversation/junk_dealer_generic:s_8f39769'), 1)) options.add( ConversationOption( OutOfBand.ProsePackage( '@conversation/junk_dealer_generic:s_fe657cdd'), 2)) options.add( ConversationOption( OutOfBand.ProsePackage( '@conversation/junk_dealer_generic:s_9ede4b84'), 3)) options.add( ConversationOption( OutOfBand.ProsePackage( '@conversation/junk_dealer_generic:s_87c5851b'), 4)) convSvc.sendConversationOptions(actor, npc, options, handleLootScreenSelection6) return
def handleOptionsOne(core, actor, npc, selection): options = Vector() options.add( ConversationOption( OutOfBand.ProsePackage( '@conversation/c_newbie_secondchance:s_122'), 0)) options.add( ConversationOption( OutOfBand.ProsePackage( '@conversation/c_newbie_secondchance:s_170'), 1)) core.conversationService.sendConversationMessage( actor, npc, OutOfBand.ProsePackage('@conversation/c_newbie_secondchance:s_120')) core.conversationService.sendConversationOptions(actor, npc, options, handleOptionsTwo) return
def startConversation(core, actor, npc): convSvc = core.conversationService convSvc.sendConversationMessage( actor, npc, OutOfBand.ProsePackage('@conversation/respecseller:s_31')) options = Vector() options.add( ConversationOption( OutOfBand.ProsePackage('@conversation/respecseller:s_32'), 0)) options.add( ConversationOption( OutOfBand.ProsePackage('@conversation/respecseller:s_33'), 1)) convSvc.sendConversationOptions(actor, npc, options, handleFirstScreen) return
def handleFirstScreen(core, actor, npc, selection): convSvc = core.conversationService if selection == 0: prose = ProsePackage('conversation/clone_droid', 's_10') outOfBand = OutOfBand() outOfBand.addProsePackage(prose) convSvc.sendConversationMessage(actor, npc, outOfBand) prose2 = ProsePackage('conversation/clone_droid', 's_12') outOfBand2 = OutOfBand() outOfBand2.addProsePackage(prose2) option1 = ConversationOption(outOfBand2, 0) options = Vector() options.add(option1) convSvc.sendConversationOptions(actor, npc, options, handleSecondScreen) return if selection == 1: core.buffService.removeBuffFromCreature( actor, actor.getBuffByName("cloning_sickness")) core.conversationService.sendStopConversation( actor, npc, 'conversation/clone_droid', 's_14') return return
def handleOptionsOne(core, actor, npc, selection): options = Vector() # I am just delivering what Byxle gave me. options.add(ConversationOption(OutOfBand.ProsePackage('@conversation/tatooine_eisley_drixa:s_41'), 0)) core.conversationService.sendConversationMessage(actor, npc, OutOfBand.ProsePackage('@conversation/tatooine_eisley_drixa:s_9')) core.conversationService.sendConversationOptions(actor, npc, options, handleOptionsTwo) return
def handleOptionsFive(core, actor, npc, selection): options = Vector() # Thanks. options.add(ConversationOption(OutOfBand.ProsePackage('@conversation/tatooine_eisley_byxle:s_69'), 0)) core.conversationService.sendConversationMessage(actor, npc, OutOfBand.ProsePackage('@conversation/tatooine_eisley_byxle:s_30')) core.conversationService.sendConversationOptions(actor, npc, options, handleOptionsSix) return
def handleOptionsTwo(core, actor, npc, selection): options = Vector() # Ok, Sure. I can do that for you. options.add(ConversationOption(OutOfBand.ProsePackage('@conversation/tatooine_eisley_byxle:s_66'), 0)) core.conversationService.sendConversationMessage(actor, npc, OutOfBand.ProsePackage('@conversation/tatooine_eisley_byxle:s_64')) core.conversationService.sendConversationOptions(actor, npc, options, handleOptionsThree) return
def startConversation(core, actor, npc): player = actor.getPlayerObject() if player is None: return quest = player.getQuest('tatooine_eisley_tdc') if quest is None: # Too busy getting this cargo ready, no time to talk. core.conversationService.sendStopConversation( actor, npc, 'conversation/tatooine_eisley_nogri', 's_48') elif quest.isCompleted() or quest.getActiveTask() > 3: core.conversationService.sendStopConversation( actor, npc, 'conversation/tatooine_eisley_nogri', 's_42') else: options = Vector() # Got it right here. options.add( ConversationOption( OutOfBand.ProsePackage( '@conversation/tatooine_eisley_nogri:s_7'), 0)) core.conversationService.sendConversationMessage( actor, npc, OutOfBand.ProsePackage('@conversation/tatooine_eisley_nogri:s_5')) core.conversationService.sendConversationOptions( actor, npc, options, handleOptionsOne) return
def handleOptionsThree(core, actor, npc, selection): options = Vector() # I have to say that? options.add(ConversationOption(OutOfBand.ProsePackage('@conversation/tatooine_eisley_byxle:s_76'), 0)) core.conversationService.sendConversationMessage(actor, npc, OutOfBand.ProsePackage('@conversation/tatooine_eisley_byxle:s_68')) core.conversationService.sendConversationOptions(actor, npc, options, handleOptionsFour) return
def handleOptionsSeven(core, actor, npc, selection): options = Vector() # [Look in the bag] options.add(ConversationOption(OutOfBand.ProsePackage('@conversation/tatooine_eisley_nogri:s_40'), 0)) core.conversationService.sendConversationMessage(actor, npc, OutOfBand.ProsePackage('@conversation/tatooine_eisley_nogri:s_38')) core.conversationService.sendConversationOptions(actor, npc, options, handleOptionsEight) return
def handleOptionsOne(core, actor, npc, selection): options = Vector() # That's how you know it's fresh. options.add(ConversationOption(OutOfBand.ProsePackage('@conversation/tatooine_eisley_nogri:s_11'), 0)) core.conversationService.sendConversationMessage(actor, npc, OutOfBand.ProsePackage('@conversation/tatooine_eisley_nogri:s_9')) core.conversationService.sendConversationOptions(actor, npc, options, handleOptionsTwo) return
def handleOptionsTwo(core, actor, npc, selection): options = Vector() # You're serious, aren't you? options.add(ConversationOption(OutOfBand.ProsePackage('@conversation/tatooine_eisley_nogri:s_15'), 0)) core.conversationService.sendConversationMessage(actor, npc, OutOfBand.ProsePackage('@conversation/tatooine_eisley_nogri:s_13')) core.conversationService.sendConversationOptions(actor, npc, options, handleOptionsThree) return
def handleOptionsThree(core, actor, npc, selection): options = Vector() # TDC isn't fast food, it's good food delivered fast. options.add(ConversationOption(OutOfBand.ProsePackage('@conversation/tatooine_eisley_drixa:s_38'), 0)) core.conversationService.sendConversationMessage(actor, npc, OutOfBand.ProsePackage('@conversation/tatooine_eisley_drixa:s_32')) core.conversationService.sendConversationOptions(actor, npc, options, handleOptionsFour) return
def handleOptionsTwo(core, actor, npc, selection): options = Vector() # Of course options.add(ConversationOption(OutOfBand.ProsePackage('@conversation/tatooine_eisley_drixa:s_30'), 0)) core.conversationService.sendConversationMessage(actor, npc, OutOfBand.ProsePackage('@conversation/tatooine_eisley_drixa:s_28')) core.conversationService.sendConversationOptions(actor, npc, options, handleOptionsThree) return
def handleOptionsOne(core, actor, npc, selection): options = Vector() # So what do I need to do? options.add(ConversationOption(OutOfBand.ProsePackage('@conversation/tatooine_eisley_byxle:s_62'), 0)) core.conversationService.sendConversationMessage(actor, npc, OutOfBand.ProsePackage('@conversation/tatooine_eisley_byxle:s_60')) core.conversationService.sendConversationOptions(actor, npc, options, handleOptionsTwo) return
def startConversation(core, actor, npc): convSvc = core.conversationService probotRequester = core.objectService.getObject(long(npc.getAttachment('probotRequester'))) if probotRequester is None: core.objectService.destroyObject(npc) return if probotRequester.getObjectId() != actor.getObjectId(): convSvc.sendConversationMessage(actor, npc, OutOfBand.ProsePackage('@conversation/bounty_probot:s_6')) return mission = core.objectService.getObject(long(npc.getAttachment('attachedMission'))) if mission is None: convSvc.sendConversationMessage(actor, npc, OutOfBand.ProsePackage('@conversation/bounty_probot:s_4')) return objective = mission.getObjective() if objective is None: convSvc.sendConversationMessage(actor, npc, OutOfBand.ProsePackage('@conversation/bounty_probot:s_4')) return convSvc.sendConversationMessage(actor, npc, OutOfBand.ProsePackage('@conversation/bounty_probot:s_5')) options = Vector() options.add(ConversationOption(OutOfBand.ProsePackage('@conversation/bounty_probot:s_8'), 0)) convSvc.sendConversationOptions(actor, npc, options, handleBioTransmit) return
def handleOptionsSix(core, actor, npc, selection): options = Vector() options.add( ConversationOption( OutOfBand.ProsePackage( '@conversation/c_newbie_secondchance:s_134'), 0)) options.add( ConversationOption( OutOfBand.ProsePackage( '@conversation/c_newbie_secondchance:s_138'), 1)) #options.add(ConversationOption(OutOfBand.ProsePackage('@conversation/c_newbie_secondchance:s_142'), 2)) core.conversationService.sendConversationMessage( actor, npc, OutOfBand.ProsePackage('@conversation/c_newbie_secondchance:s_132')) core.conversationService.sendConversationOptions(actor, npc, options, handleOptionsSeven) return
def startConversation(core, actor, npc): player = actor.getPlayerObject() if player is None: return quest = player.getQuest('tatooine_eisley_tdc') if quest is None: core.conversationService.sendStopConversation( actor, npc, 'conversation/tatooine_eisley_jano', 's_22') elif quest.getActiveTask() == 4: options = Vector() # Here you go, four chewy Chuba combos. options.add( ConversationOption( OutOfBand.ProsePackage( '@conversation/tatooine_eisley_jano:s_18'), 0)) core.conversationService.sendConversationMessage( actor, npc, OutOfBand.ProsePackage('@conversation/tatooine_eisley_jano:s_11')) core.conversationService.sendConversationOptions( actor, npc, options, handleOptionsOne) elif quest.getActiveTask() == 6: options = Vector() # I am sure Byxle just made a mistake. options.add( ConversationOption( OutOfBand.ProsePackage( '@conversation/tatooine_eisley_jano:s_13'), 0)) core.conversationService.sendConversationMessage( actor, npc, OutOfBand.ProsePackage('@conversation/tatooine_eisley_jano:s_6')) core.conversationService.sendConversationOptions( actor, npc, options, handleOptionsTwo) elif quest.isCompleted() == True or quest.getActiveTask() > 6: core.conversationService.sendStopConversation( actor, npc, 'conversation/tatooine_eisley_jano', 's_16') else: core.conversationService.sendStopConversation( actor, npc, 'conversation/tatooine_eisley_jano', 's_22') return
def lootKitScreen5a(core, actor, npc): convSvc = core.conversationService prose = ProsePackage('conversation/junk_dealer_generic', 's_3fc7eb45') outOfBand = OutOfBand() outOfBand.addProsePackage(prose) convSvc.sendConversationMessage(actor, npc, outOfBand) prose2 = ProsePackage('conversation/junk_dealer_generic', 's_ee977dee') outOfBand2 = OutOfBand() outOfBand2.addProsePackage(prose2) prose3 = ProsePackage('conversation/junk_dealer_generic', 's_8f39769') outOfBand3 = OutOfBand() outOfBand3.addProsePackage(prose3) prose4 = ProsePackage('conversation/junk_dealer_generic', 's_fe657cdd') outOfBand4 = OutOfBand() outOfBand4.addProsePackage(prose4) prose5 = ProsePackage('conversation/junk_dealer_generic', 's_9ede4b84') outOfBand5 = OutOfBand() outOfBand5.addProsePackage(prose5) prose6 = ProsePackage('conversation/junk_dealer_generic', 's_87c5851b') outOfBand6 = OutOfBand() outOfBand6.addProsePackage(prose6) option1 = ConversationOption(outOfBand2, 0) option2 = ConversationOption(outOfBand3, 0) option3 = ConversationOption(outOfBand4, 0) option4 = ConversationOption(outOfBand5, 0) option5 = ConversationOption(outOfBand6, 0) options = Vector() options.add(option1) options.add(option2) options.add(option3) options.add(option4) options.add(option5) convSvc.sendConversationOptions(actor, npc, options, handleLootScreenSelection6) return
def handleOptionsFive(core, actor, npc, selection): options = Vector() options.add( ConversationOption( OutOfBand.ProsePackage('@conversation/c_newbie_secondchance:s_83'), 0)) core.conversationService.sendConversationMessage( actor, npc, OutOfBand.ProsePackage('@conversation/c_newbie_secondchance:s_79')) core.conversationService.sendConversationOptions(actor, npc, options, handleOptionsSix) return
def startConversation(core, actor, npc): #core.lootService.prepInv(actor) global coreRef global junkDealerRef global sellItemListRef sellItemListRef = core.lootService.getSellableInventoryItems(actor) coreRef = core junkDealerRef = npc convSvc = core.conversationService prose = ProsePackage('conversation/junk_dealer_generic', 's_bef51e38') outOfBand = OutOfBand() outOfBand.addProsePackage(prose) convSvc.sendConversationMessage(actor, npc, outOfBand) prose2 = ProsePackage('conversation/junk_dealer_generic', 's_54fab04f') outOfBand2 = OutOfBand() outOfBand2.addProsePackage(prose2) prose3 = ProsePackage('conversation/junk_dealer_generic', 's_48') outOfBand3 = OutOfBand() outOfBand3.addProsePackage(prose3) prose4 = ProsePackage('conversation/junk_dealer_generic', 's_3aa18b2d') outOfBand4 = OutOfBand() outOfBand4.addProsePackage(prose4) option1 = ConversationOption(outOfBand2, 0) option2 = ConversationOption(outOfBand3, 1) option3 = ConversationOption(outOfBand4, 1) options = Vector() options.add(option1) options.add(option2) options.add(option3) if len(core.lootService.getBuyHistory(actor,npc))!= 0: prose5 = ProsePackage('conversation/junk_dealer_generic', 's_43') outOfBand5 = OutOfBand() outOfBand5.addProsePackage(prose5) option4 = ConversationOption(outOfBand5, 1) options.add(option4) convSvc.sendConversationOptions(actor, npc, options, handleFirstScreen) return
def lootKitScreen4(core, actor, npc): convSvc = core.conversationService convSvc.sendConversationMessage( actor, npc, OutOfBand.ProsePackage('@conversation/junk_dealer_generic:s_4d65752')) options = Vector() options.add( ConversationOption( OutOfBand.ProsePackage( '@conversation/junk_dealer_generic:s_d347bee3'), 0)) options.add( ConversationOption( OutOfBand.ProsePackage( '@conversation/junk_dealer_generic:s_b60b73f8'), 1)) convSvc.sendConversationOptions(actor, npc, options, handleLootScreenSelection5) return
def handleOptionsOne(core, actor, npc, selection): convSvc = core.conversationService options = Vector() # I have authorization to enter. options.add(ConversationOption(OutOfBand.ProsePackage('@conversation/gate_keeper_quarantine_zone:s_12'), 0)) if selection == 0: # What? Let me see your authorization code. convSvc.sendConversationMessage(actor, npc, OutOfBand.ProsePackage('@conversation/gate_keeper_quarantine_zone:s_14')) convSvc.sendConversationOptions(actor, npc, options, handleOptionsTwo) return