From bbc2bf583f4530191e52805910fcf0b5ac8f9af2 Mon Sep 17 00:00:00 2001 From: Iosnowore Kun Date: Sun, 9 Nov 2014 20:20:28 -0500 Subject: [PATCH] Fixed stf names and started conversation script for gate keeper --- .../outbreak_imperial_officer_gate_keeper.py | 23 ++++++++++++++ .../outbreak_imperial_officer_gate_keeper.xml | 14 --------- .../static_spawns/dathomir/quarantine_zone.py | 30 +++++++++---------- 3 files changed, 38 insertions(+), 29 deletions(-) create mode 100644 scripts/conversation/outbreak_imperial_officer_gate_keeper.py delete mode 100644 scripts/conversation/outbreak_imperial_officer_gate_keeper.xml diff --git a/scripts/conversation/outbreak_imperial_officer_gate_keeper.py b/scripts/conversation/outbreak_imperial_officer_gate_keeper.py new file mode 100644 index 00000000..6f079438 --- /dev/null +++ b/scripts/conversation/outbreak_imperial_officer_gate_keeper.py @@ -0,0 +1,23 @@ +#Base file generated using Conversation Script Creator for ProjectSWG +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): + options = new Vector() + options.add(ConversationOption(OutOfBand.ProsePackage('@conversation/New Conversation Response 4'), 0) + core.conversationService.sendConversationOptions(actor, npc, handleOptionScreen1) + core.conversationService.sendConversationMessage(actor, npc, OutOfBand.ProsePackage('@conversation/Begin Conversation')) + return + +# Handle Response for Begin Conversationdef handleOptionScreen1(core, actor, npc, selection): + + if selection == 0: + # New Conversation Response 4 + return + + return + diff --git a/scripts/conversation/outbreak_imperial_officer_gate_keeper.xml b/scripts/conversation/outbreak_imperial_officer_gate_keeper.xml deleted file mode 100644 index 62a32762..00000000 --- a/scripts/conversation/outbreak_imperial_officer_gate_keeper.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - 1.0 - 10 - - - - - - - - - diff --git a/scripts/static_spawns/dathomir/quarantine_zone.py b/scripts/static_spawns/dathomir/quarantine_zone.py index fdbf7ecd..95f3f55b 100644 --- a/scripts/static_spawns/dathomir/quarantine_zone.py +++ b/scripts/static_spawns/dathomir/quarantine_zone.py @@ -13,29 +13,29 @@ def addPlanetSpawns(core, planet): # Imperial Gate Guards guard1 = stcSvc.spawnObject('vic_dark_trooper_80', 'dathomir', long(0), float(-5775), float(510), float(-6553), float(0.36), float(0.85)) guard2 = stcSvc.spawnObject('vic_dark_trooper_80', 'dathomir', long(0), float(-5785), float(510), float(-6545), float(0.43), float(0.85)) - gateofficer1 = stcSvc.spawnObject('vet_imperial_army_captain', 'dathomir', long(0), float(-5780), float(510), float(-6550), float(0.40), float(0.85)) + gateofficer1 = stcSvc.spawnObject('outbreak_imperial_officer_gate_keeper', 'dathomir', long(0), float(-5780), float(510), float(-6550), float(0.40), float(0.85)) # Camp Alpha -5915, -6645 - alphaguard1 = stcSvc.spawnObject('outbreak_imp_trooper_guard', 'dathomir', long(0), float(-5917), float(560), float(-6640), float(0.42), float(0.85)) - alphaguard2 = stcSvc.spawnObject('outbreak_imp_trooper_guard', 'dathomir', long(0), float(-5908), float(560), float(-6645), float(0.34), float(0.85)) - alphaguard3 = stcSvc.spawnObject('outbreak_imp_trooper_guard', 'dathomir', long(0), float(-5918), float(560), float(-6650), float(0.60), float(0.85)) - alphaguard4 = stcSvc.spawnObject('outbreak_imp_trooper_guard', 'dathomir', long(0), float(-5913), float(560), float(-6670), float(-0.63), float(0.85)) - alphaguard3 = stcSvc.spawnObject('outbreak_imp_trooper_guard', 'dathomir', long(0), float(-5930), float(560), float(-6690), float(0.26), float(0.85)) + alphaguard1 = stcSvc.spawnObject('outbreak_mixed_guard_aggro', 'dathomir', long(0), float(-5917), float(560), float(-6640), float(0.42), float(0.85)) + alphaguard2 = stcSvc.spawnObject('outbreak_mixed_guard_aggro', 'dathomir', long(0), float(-5908), float(560), float(-6645), float(0.34), float(0.85)) + alphaguard3 = stcSvc.spawnObject('outbreak_mixed_guard_aggro', 'dathomir', long(0), float(-5918), float(560), float(-6650), float(0.60), float(0.85)) + alphaguard4 = stcSvc.spawnObject('outbreak_mixed_guard_aggro', 'dathomir', long(0), float(-5913), float(560), float(-6670), float(-0.63), float(0.85)) + alphaguard3 = stcSvc.spawnObject('outbreak_mixed_guard_aggro', 'dathomir', long(0), float(-5930), float(560), float(-6690), float(0.26), float(0.85)) # Camp Beta -6290 -7529 - betaguard1 = stcSvc.spawnObject('outbreak_imp_trooper_guard', 'dathomir', long(0), float(-6300), float(560), float(-7535), float(-0.86), float(0.85)) - betaguard2 = stcSvc.spawnObject('outbreak_imp_trooper_guard', 'dathomir', long(0), float(-6300), float(560), float(-7528), float(-0.88), float(0.85)) - betaguard3 = stcSvc.spawnObject('outbreak_imp_trooper_guard', 'dathomir', long(0), float(-6290), float(560), float(-7520), float(1.38), float(0.85)) - betaguard4 = stcSvc.spawnObject('outbreak_imp_trooper_guard', 'dathomir', long(0), float(-6280), float(560), float(-7520), float(-1.04), float(0.85)) + betaguard1 = stcSvc.spawnObject('outbreak_mixed_guard_aggro', 'dathomir', long(0), float(-6300), float(560), float(-7535), float(-0.86), float(0.85)) + betaguard2 = stcSvc.spawnObject('outbreak_mixed_guard_aggro', 'dathomir', long(0), float(-6300), float(560), float(-7528), float(-0.88), float(0.85)) + betaguard3 = stcSvc.spawnObject('outbreak_mixed_guard_aggro', 'dathomir', long(0), float(-6290), float(560), float(-7520), float(1.38), float(0.85)) + betaguard4 = stcSvc.spawnObject('outbreak_mixed_guard_aggro', 'dathomir', long(0), float(-6280), float(560), float(-7520), float(-1.04), float(0.85)) # Camp Gamma -6815 -6454 # Camp Delta -7142 -6941 - deltaguard1 = stcSvc.spawnObject('outbreak_imp_trooper_guard', 'dathomir', long(0), float(-7155), float(560), float(-6955), float(-1.29), float(0.85)) - deltaguard2 = stcSvc.spawnObject('outbreak_imp_trooper_guard', 'dathomir', long(0), float(-7135), float(560), float(-6955), float(1.10), float(0.85)) - deltaguard3 = stcSvc.spawnObject('outbreak_imp_trooper_guard', 'dathomir', long(0), float(-7150), float(560), float(-6940), float(1.20), float(0.85)) - deltaguard4 = stcSvc.spawnObject('outbreak_imp_trooper_guard', 'dathomir', long(0), float(-7143), float(560), float(-6910), float(1.78), float(0.85)) - deltaguard5 = stcSvc.spawnObject('outbreak_imp_trooper_guard', 'dathomir', long(0), float(-7150), float(560), float(-6910), float(1.75), float(0.85)) + deltaguard1 = stcSvc.spawnObject('outbreak_mixed_guard_aggro', 'dathomir', long(0), float(-7155), float(560), float(-6955), float(-1.29), float(0.85)) + deltaguard2 = stcSvc.spawnObject('outbreak_mixed_guard_aggro', 'dathomir', long(0), float(-7135), float(560), float(-6955), float(1.10), float(0.85)) + deltaguard3 = stcSvc.spawnObject('outbreak_mixed_guard_aggro', 'dathomir', long(0), float(-7150), float(560), float(-6940), float(1.20), float(0.85)) + deltaguard4 = stcSvc.spawnObject('outbreak_mixed_guard_aggro', 'dathomir', long(0), float(-7143), float(560), float(-6910), float(1.78), float(0.85)) + deltaguard5 = stcSvc.spawnObject('outbreak_mixed_guard_aggro', 'dathomir', long(0), float(-7150), float(560), float(-6910), float(1.75), float(0.85)) # Camp Epsilon -7463 -7392 return