示例#1
0
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
示例#2
0
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
示例#3
0
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
示例#4
0
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
示例#5
0
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
示例#6
0
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
示例#7
0
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
示例#8
0
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
示例#9
0
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
示例#10
0
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
示例#11
0
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
示例#12
0
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
示例#13
0
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
示例#14
0
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
示例#15
0
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
示例#16
0
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
示例#17
0
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 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
def startConversation(core, actor, npc):
	global coreRef
	coreRef = core
	convSvc = core.conversationService
	
	
		# The quarantine zone is a restricted area, citizen.
		core.conversationService.sendConversationMessage(actor, npc, OutOfBand.ProsePackage('@conversation/conversation/gate_keeper_quarantine_zone:s_10'))
		
		options = Vector()
		# I have authorization to enter.
		options.add(ConversationOption(OutOfBand.ProsePackage('@conversation/gate_keeper_quarantine_zone:s_12'), 0))
		core.conversationService.sendConversationOptions(actor, npc, handleOptionsOne)
		return
示例#20
0
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
示例#21
0
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
示例#22
0
def handleLootScreenSelection6(core, actor, npc, selection):

    convSvc = core.conversationService
    convSvc.sendConversationMessage(
        actor, npc,
        OutOfBand.ProsePackage('@conversation/junk_dealer_generic:s_14efaaa2'))
    if selection == 0:
        template = 'object/tangible/loot/collectible/kits/shared_orange_rug_kit.iff'
        addLootKit(core, actor, npc, template)

    if selection == 1:
        template = 'object/tangible/loot/collectible/kits/shared_blue_rug_kit.iff'
        addLootKit(core, actor, npc, template)

    if selection == 2:
        template = 'object/tangible/loot/collectible/kits/shared_gong_kit.iff'
        addLootKit(core, actor, npc, template)

    if selection == 3:
        template = 'object/tangible/loot/collectible/kits/shared_light_table_kit.iff'
        addLootKit(core, actor, npc, template)

    if selection == 4:
        template = 'object/tangible/loot/collectible/kits/shared_sculpture_kit.iff'
        addLootKit(core, actor, npc, template)

    return
示例#23
0
def handleOptionsOne(core, actor, npc, selection):
    if selection == 0:  # Yes.
        options = Vector()
        options.add(
            ConversationOption(
                OutOfBand.ProsePackage('@conversation/generic_broker_1:s_24'),
                0))  # OK
        core.conversationService.sendConversationMessage(
            actor, npc,
            OutOfBand.ProsePackage('@conversation/generic_broker_1:s_22'))
        core.conversationService.sendConversationOptions(
            actor, npc, options, handleOptionsTwo)
    elif selection == 1:  # Not right now.
        core.conversationService.sendStopConversation(
            actor, npc, 'conversation/generic_broker_1', 's_30')
    return
示例#24
0
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_drixa', 's_43')						
 	elif quest.isCompleted() == True or quest.getActiveTask() > 1:
		core.conversationService.sendStopConversation(actor, npc, 'conversation/tatooine_eisley_drixa', 's_40')
	else:
		options = Vector()
		# Here's your order.
		options.add(ConversationOption(OutOfBand.ProsePackage('@conversation/tatooine_eisley_drixa:s_7'), 0))
		core.conversationService.sendConversationMessage(actor, npc, OutOfBand.ProsePackage('@conversation/tatooine_eisley_drixa:s_5'))
		core.conversationService.sendConversationOptions(actor, npc, options, handleOptionsOne)
	return
示例#25
0
def setup(core, actor, target, command):

    if actor.hasCooldown('inside_info'):
        actor.sendSystemMessage('@bounty_hunter:sm_calling_contact_too_often',
                                0)
        return

    elif target.hasCooldown('inside_info_target'):
        actor.sendSystemMessage(
            '@bounty_hunter:sm_calling_contact_too_often_target', 0)
        return

    if target is None:
        target = actor

    bountyItem = core.missionService.getBountyListItem(target.getObjectID())

    if bountyItem is None:
        target.sendSystemMessage('@bounty_hunter:sm_no_bounty_self', 0)

    else:
        hunters = bountyItem.getAssignedHunters()
        if hunters.size() > 0:
            distance = hunterDistance(core, actor, target, hunters)
            if distance != 0:
                target.sendSystemMessage(
                    OutOfBand.ProsePackage(
                        '@bounty_hunter:sm_bounty_hunter_distance', 'DI',
                        int(distance)), 0)
                applyCooldowns(actor, target)
                return
            else:
                target.sendSystemMessage(
                    OutOfBand.ProsePackage(
                        '@bounty_hunter:sm_bounty_amount_target_with_bounties',
                        'TO', str(bountyItem.getCreditReward())), 0)
                applyCooldowns(actor, target)
                return
        else:
            target.sendSystemMessage(
                OutOfBand.ProsePackage(
                    '@bounty_hunter:sm_bounty_amount_target_no_bounties', 'TO',
                    str(bountyItem.getCreditReward())), 0)
            applyCooldowns(actor, target)
            return
        return
    return
def handleOptionsTwo(core, actor, npc, selection):
		convSvc = core.conversationService
	
		options = Vector()
		# Here...
		options.add(ConversationOption(OutOfBand.ProsePackage('@conversation/gate_keeper_quarantine_zone:s_16'), 1))
	
		if selection == 1: 
				# Well, I see. Everything checks out. I can't say that I envy you, but I certainly appreciate what you are doing for the Empire...whatever you are doing.
				convSvc.sendConversationMessage(actor, npc, OutOfBand.ProsePackage('@conversation/gate_keeper_quarantine_zone:s_19'))
				
				position = Point3D(-5789, 511, -6558)
				core.simulationService.transferToPlanet(owner, core.terrainService.getPlanetByName("dathomir"), position, owner.getOrientation(), None)
				convSvc.sendConversationMessage(actor, npc, OutOfBand.ProsePackage('@conversation/gate_keeper_quarantine_zone:s_14'))
		
				convSvc.sendConversationOptions(actor, npc, options, endConversation)
		return
示例#27
0
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):
		convSvc = core.conversationService
	
		# The quarantine zone is a restricted area, citizen.
		convSvc.sendConversationMessage(actor, npc, OutOfBand.ProsePackage('@conversation/gate_keeper_quarantine_zone:s_10'))
	
		convSvc.sendConversationOptions(actor, npc, options, handleOptionsOne)
		return
示例#29
0
def lootKitScreen2(core, actor, npc):

    convSvc = core.conversationService

    convSvc.sendConversationMessage(
        actor, npc,
        OutOfBand.ProsePackage('@conversation/junk_dealer_generic:s_e29f48dc'))

    options = Vector()
    options.add(
        ConversationOption(
            OutOfBand.ProsePackage(
                '@conversation/junk_dealer_generic:s_324b9b0f'), 0))

    convSvc.sendConversationOptions(actor, npc, options,
                                    handleLootScreenSelection3)

    return
示例#30
0
def lootKitScreen3(core, actor, npc):

    convSvc = core.conversationService

    convSvc.sendConversationMessage(
        actor, npc,
        OutOfBand.ProsePackage('@conversation/junk_dealer_generic:s_12fe83a6'))

    options = Vector()
    options.add(
        ConversationOption(
            OutOfBand.ProsePackage(
                '@conversation/junk_dealer_generic:s_e1a103e5'), 0))

    convSvc.sendConversationOptions(actor, npc, options,
                                    handleLootScreenSelection4)

    return