mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-13 03:13:26 -04:00
Added Underworld Smuggler Tatooine Quests
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
from resources.common import ConversationOption
|
||||
from resources.common import OutOfBand
|
||||
from resources.common import ProsePackage
|
||||
from java.util import Vector
|
||||
import sys
|
||||
|
||||
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 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
|
||||
|
||||
def handleOptionsTwo(core, actor, npc, selection):
|
||||
core.conversationService.sendStopConversation(actor, npc, 'conversation/generic_broker_1', 's_26')
|
||||
core.questService.sendQuestAcceptWindow(actor, 'quest/smuggle_generic_1')
|
||||
return
|
||||
|
||||
def endConversation(core, actor, npc):
|
||||
core.conversationService.sendStopConversation(actor, npc, 'conversation/generic_broker_1', 's_4')
|
||||
return
|
||||
@@ -0,0 +1,23 @@
|
||||
from resources.common import ConversationOption
|
||||
from resources.common import OutOfBand
|
||||
from resources.common import ProsePackage
|
||||
from java.util import Vector
|
||||
import sys
|
||||
|
||||
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():
|
||||
core.conversationService.sendStopConversation(actor, npc, 'conversation/fence', 's_10')
|
||||
elif quest.isTaskActive(3) and quest.isTaskCompleted(7):
|
||||
core.conversationService.sendStopConversation(actor, npc, 'conversation/fence', 's_5')
|
||||
core.questService.completeTask(actor, quest, 3)
|
||||
else:
|
||||
core.conversationService.sendStopConversation(actor, npc, 'conversation/fence', 's_9')
|
||||
return
|
||||
|
||||
def endConversation(core, actor, npc):
|
||||
core.conversationService.sendStopConversation(actor, npc, 'conversation/fence', 's_10')
|
||||
return
|
||||
@@ -0,0 +1,23 @@
|
||||
from resources.common import ConversationOption
|
||||
from resources.common import OutOfBand
|
||||
from resources.common import ProsePackage
|
||||
from java.util import Vector
|
||||
import sys
|
||||
|
||||
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():
|
||||
core.conversationService.sendStopConversation(actor, npc, 'conversation/fence', 's_10')
|
||||
elif quest.isTaskActive(2) and quest.isTaskCompleted(7):
|
||||
core.conversationService.sendStopConversation(actor, npc, 'conversation/fence', 's_5')
|
||||
core.questService.completeTask(actor, quest, 2)
|
||||
else:
|
||||
core.conversationService.sendStopConversation(actor, npc, 'conversation/fence', 's_9')
|
||||
return
|
||||
|
||||
def endConversation(core, actor, npc):
|
||||
core.conversationService.sendStopConversation(actor, npc, 'conversation/fence', 's_10')
|
||||
return
|
||||
@@ -0,0 +1,23 @@
|
||||
from resources.common import ConversationOption
|
||||
from resources.common import OutOfBand
|
||||
from resources.common import ProsePackage
|
||||
from java.util import Vector
|
||||
import sys
|
||||
|
||||
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():
|
||||
core.conversationService.sendStopConversation(actor, npc, 'conversation/fence', 's_10')
|
||||
elif quest.isTaskActive(1) and quest.isTaskCompleted(7):
|
||||
core.conversationService.sendStopConversation(actor, npc, 'conversation/fence', 's_5')
|
||||
core.questService.completeTask(actor, quest, 1)
|
||||
else:
|
||||
core.conversationService.sendStopConversation(actor, npc, 'conversation/fence', 's_9')
|
||||
return
|
||||
|
||||
def endConversation(core, actor, npc):
|
||||
core.conversationService.sendStopConversation(actor, npc, 'conversation/fence', 's_10')
|
||||
return
|
||||
@@ -0,0 +1,23 @@
|
||||
from resources.common import ConversationOption
|
||||
from resources.common import OutOfBand
|
||||
from resources.common import ProsePackage
|
||||
from java.util import Vector
|
||||
import sys
|
||||
|
||||
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():
|
||||
core.conversationService.sendStopConversation(actor, npc, 'conversation/fence', 's_10')
|
||||
elif quest.isTaskActive(5) and quest.isTaskCompleted(7):
|
||||
core.conversationService.sendStopConversation(actor, npc, 'conversation/fence', 's_5')
|
||||
core.questService.completeTask(actor, quest, 5)
|
||||
else:
|
||||
core.conversationService.sendStopConversation(actor, npc, 'conversation/fence', 's_9')
|
||||
return
|
||||
|
||||
def endConversation(core, actor, npc):
|
||||
core.conversationService.sendStopConversation(actor, npc, 'conversation/fence', 's_10')
|
||||
return
|
||||
@@ -0,0 +1,23 @@
|
||||
from resources.common import ConversationOption
|
||||
from resources.common import OutOfBand
|
||||
from resources.common import ProsePackage
|
||||
from java.util import Vector
|
||||
import sys
|
||||
|
||||
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():
|
||||
core.conversationService.sendStopConversation(actor, npc, 'conversation/fence', 's_10')
|
||||
elif quest.isTaskActive(4) and quest.isTaskCompleted(7):
|
||||
core.conversationService.sendStopConversation(actor, npc, 'conversation/fence', 's_5')
|
||||
core.questService.completeTask(actor, quest, 4)
|
||||
else:
|
||||
core.conversationService.sendStopConversation(actor, npc, 'conversation/fence', 's_9')
|
||||
return
|
||||
|
||||
def endConversation(core, actor, npc):
|
||||
core.conversationService.sendStopConversation(actor, npc, 'conversation/fence', 's_10')
|
||||
return
|
||||
Reference in New Issue
Block a user