mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-21 06:13:13 -04:00
Added accepting for missions, added first phase for delivery missions
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
from resources.common import OutOfBand
|
||||
from resources.common import ProsePackage
|
||||
from resources.objectives import DeliveryMissionObjective
|
||||
import sys
|
||||
|
||||
def startConversation(core, actor, npc):
|
||||
mission = npc.getAttachment('assignedMission')
|
||||
|
||||
if mission is None:
|
||||
return
|
||||
|
||||
objective = mission.getObjective()
|
||||
|
||||
if mission.getGrandparent().getObjectId() != actor.getObjectId() or objective is None:
|
||||
core.conversationService.sendStopConversation(actor, npc, 'conversation/respecseller', 's_38')
|
||||
return
|
||||
|
||||
if objective.getObjectivePhase() == 0:
|
||||
handleFirstDeliveryStage(core, actor, npc, objective, mission)
|
||||
return
|
||||
|
||||
#convSvc.sendConversationMessage(actor, npc, OutOfBand(ProsePackage(mission.getMissionDescription(), 'm' + str(mission.getMissionId()) + 'p')))
|
||||
return
|
||||
|
||||
def endConversation(core, actor, npc):
|
||||
return
|
||||
|
||||
def handleFirstDeliveryStage(core, actor, npc, objective, mission):
|
||||
core.conversationService.sendStopConversation(actor, npc, mission.getMissionDescription(), 'm' + str(mission.getMissionId()) + 'p')
|
||||
objective.createDeliveryItem()
|
||||
objective.setObjectivePhase(1)
|
||||
return
|
||||
@@ -9,7 +9,6 @@ def createRadial(core, owner, target, radials):
|
||||
|
||||
def handleSelection(core, owner, target, option):
|
||||
if option == 26 and target:
|
||||
print 'test'
|
||||
core.conversationService.handleStartConversation(owner, target)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user