|
|
|
@@ -9,222 +9,63 @@ from java.lang import Long
|
|
|
|
|
from java.util import Map
|
|
|
|
|
from java.util import TreeMap
|
|
|
|
|
from resources.datatables import GcwRank
|
|
|
|
|
from resources.datatables import WeaponType
|
|
|
|
|
import main.NGECore
|
|
|
|
|
from services.gcw import GCWService
|
|
|
|
|
import sys
|
|
|
|
|
import math
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def handleRebelItems1 (core, owner, target, option):
|
|
|
|
|
def handleRebelItems1 (core, owner):
|
|
|
|
|
actor = owner.getSlottedObject('ghost')
|
|
|
|
|
window = core.suiService.createSUIWindow('Script.listBox', owner, owner, 0);
|
|
|
|
|
window.setProperty('bg.caption.lblTitle:Text', 'Rebel Item Requisition')
|
|
|
|
|
window.setProperty('Prompt.lblPrompt:Text', 'Items')
|
|
|
|
|
if actor.getCurrentRank() == GcwRank.PRIVATE:
|
|
|
|
|
window.addListBoxMenuItem('Private',0)
|
|
|
|
|
window.setProperty('btnOk:visible', 'True')
|
|
|
|
|
window.setProperty('btnCancel:visible', 'True')
|
|
|
|
|
window.setProperty('btnOk:Text', '@ok')
|
|
|
|
|
window.setProperty('btnCancel:Text', '@cancel')
|
|
|
|
|
returnList = Vector()
|
|
|
|
|
returnList.add('List.lstList:SelectedRow')
|
|
|
|
|
window.addHandler(0, '', Trigger.TRIGGER_OK, returnList, setRebelBox1Callback)
|
|
|
|
|
core.suiService.openSUIWindow(window);
|
|
|
|
|
window.setProperty('Prompt.lblPrompt:Text', 'Items')
|
|
|
|
|
window.setProperty('btnOk:visible', 'True')
|
|
|
|
|
window.setProperty('btnCancel:visible', 'True')
|
|
|
|
|
window.setProperty('btnOk:Text', '@ok')
|
|
|
|
|
window.setProperty('btnCancel:Text', '@cancel')
|
|
|
|
|
returnList = Vector()
|
|
|
|
|
returnList.add('List.lstList:SelectedRow')
|
|
|
|
|
window.addHandler(0, '', Trigger.TRIGGER_OK, returnList, setRebelBox1Callback)
|
|
|
|
|
|
|
|
|
|
if actor.getCurrentRank() == GcwRank.TROOPER:
|
|
|
|
|
window.addListBoxMenuItem('Private',0)
|
|
|
|
|
window.addListBoxMenuItem('Trooper',1)
|
|
|
|
|
window.setProperty('btnOk:visible', 'True')
|
|
|
|
|
window.setProperty('btnCancel:visible', 'True')
|
|
|
|
|
window.setProperty('btnOk:Text', '@ok')
|
|
|
|
|
window.setProperty('btnCancel:Text', '@cancel')
|
|
|
|
|
returnList = Vector()
|
|
|
|
|
returnList.add('List.lstList:SelectedRow')
|
|
|
|
|
window.addHandler(0, '', Trigger.TRIGGER_OK, returnList, setRebelBox1Callback)
|
|
|
|
|
core.suiService.openSUIWindow(window);
|
|
|
|
|
if actor.getCurrentRank() >= GcwRank.PRIVATE:
|
|
|
|
|
window.addListBoxMenuItem('Private', 0)
|
|
|
|
|
|
|
|
|
|
if actor.getCurrentRank() >= GcwRank.TROOPER:
|
|
|
|
|
window.addListBoxMenuItem('Trooper', 1)
|
|
|
|
|
|
|
|
|
|
if actor.getCurrentRank() >= GcwRank.HIGHTROOPER:
|
|
|
|
|
window.addListBoxMenuItem('High Trooper', 2)
|
|
|
|
|
|
|
|
|
|
if actor.getCurrentRank() >= GcwRank.SERGEANT:
|
|
|
|
|
window.addListBoxMenuItem('Sergeant', 3)
|
|
|
|
|
|
|
|
|
|
if actor.getCurrentRank() >= GcwRank.SENIORSERGEANT:
|
|
|
|
|
window.addListBoxMenuItem('Senior Sergeant', 4)
|
|
|
|
|
|
|
|
|
|
if actor.getCurrentRank() >= GcwRank.SERGEANTMAJOR:
|
|
|
|
|
window.addListBoxMenuItem('Sergeant Major', 5)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if actor.getCurrentRank() == GcwRank.HIGHTROOPER:
|
|
|
|
|
window.addListBoxMenuItem('Private',0)
|
|
|
|
|
window.addListBoxMenuItem('Trooper',1)
|
|
|
|
|
window.addListBoxMenuItem('High Trooper',2)
|
|
|
|
|
window.setProperty('btnOk:visible', 'True')
|
|
|
|
|
window.setProperty('btnCancel:visible', 'True')
|
|
|
|
|
window.setProperty('btnOk:Text', '@ok')
|
|
|
|
|
window.setProperty('btnCancel:Text', '@cancel')
|
|
|
|
|
returnList = Vector()
|
|
|
|
|
returnList.add('List.lstList:SelectedRow')
|
|
|
|
|
window.addHandler(0, '', Trigger.TRIGGER_OK, returnList, setRebelBox1Callback)
|
|
|
|
|
core.suiService.openSUIWindow(window);
|
|
|
|
|
if actor.getCurrentRank() >= GcwRank.LIEUTENANT:
|
|
|
|
|
window.addListBoxMenuItem('Lieutenant', 6)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if actor.getCurrentRank() == GcwRank.SERGEANT:
|
|
|
|
|
window.addListBoxMenuItem('Private',0)
|
|
|
|
|
window.addListBoxMenuItem('Trooper',1)
|
|
|
|
|
window.addListBoxMenuItem('High Trooper',2)
|
|
|
|
|
window.addListBoxMenuItem('Sergeant',3)
|
|
|
|
|
returnList = Vector()
|
|
|
|
|
returnList.add('List.lstList:SelectedRow')
|
|
|
|
|
window.addHandler(0, '', Trigger.TRIGGER_OK, returnList, setRebelBox1Callback)
|
|
|
|
|
core.suiService.openSUIWindow(window);
|
|
|
|
|
if actor.getCurrentRank() >= GcwRank.CAPTAIN:
|
|
|
|
|
window.addListBoxMenuItem('Captain', 7)
|
|
|
|
|
|
|
|
|
|
if actor.getCurrentRank() >= GcwRank.MAJOR:
|
|
|
|
|
window.addListBoxMenuItem('Major', 8)
|
|
|
|
|
|
|
|
|
|
if actor.getCurrentRank() == GcwRank.SENIORSERGEANT:
|
|
|
|
|
window.addListBoxMenuItem('Private',0)
|
|
|
|
|
window.addListBoxMenuItem('Trooper',1)
|
|
|
|
|
window.addListBoxMenuItem('High Trooper',2)
|
|
|
|
|
window.addListBoxMenuItem('Sergeant',3)
|
|
|
|
|
window.addListBoxMenuItem('Senior Sergeant',4)
|
|
|
|
|
window.setProperty('btnOk:visible', 'True')
|
|
|
|
|
window.setProperty('btnCancel:visible', 'True')
|
|
|
|
|
window.setProperty('btnOk:Text', '@ok')
|
|
|
|
|
window.setProperty('btnCancel:Text', '@cancel')
|
|
|
|
|
returnList = Vector()
|
|
|
|
|
returnList.add('List.lstList:SelectedRow')
|
|
|
|
|
window.addHandler(0, '', Trigger.TRIGGER_OK, returnList, setRebelBox1Callback)
|
|
|
|
|
core.suiService.openSUIWindow(window);
|
|
|
|
|
if actor.getCurrentRank() >= GcwRank.COMMANDER:
|
|
|
|
|
window.addListBoxMenuItem('Commander', 9)
|
|
|
|
|
|
|
|
|
|
if actor.getCurrentRank() >= GcwRank.COLONEL:
|
|
|
|
|
window.addListBoxMenuItem('Colonel', 10)
|
|
|
|
|
|
|
|
|
|
if actor.getCurrentRank() >= GcwRank.GENERAL:
|
|
|
|
|
window.addListBoxMenuItem('General', 11)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if actor.getCurrentRank() == GcwRank.SERGEANTMAJOR:
|
|
|
|
|
window.addListBoxMenuItem('Private',0)
|
|
|
|
|
window.addListBoxMenuItem('Trooper',1)
|
|
|
|
|
window.addListBoxMenuItem('High Trooper',2)
|
|
|
|
|
window.addListBoxMenuItem('Sergeant',3)
|
|
|
|
|
window.addListBoxMenuItem('Senior Sergeant',4)
|
|
|
|
|
window.addListBoxMenuItem('Sergeant Major',5)
|
|
|
|
|
window.setProperty('btnOk:visible', 'True')
|
|
|
|
|
window.setProperty('btnCancel:visible', 'True')
|
|
|
|
|
window.setProperty('btnOk:Text', '@ok')
|
|
|
|
|
window.setProperty('btnCancel:Text', '@cancel')
|
|
|
|
|
returnList = Vector()
|
|
|
|
|
returnList.add('List.lstList:SelectedRow')
|
|
|
|
|
window.addHandler(0, '', Trigger.TRIGGER_OK, returnList, setRebelBox1Callback)
|
|
|
|
|
core.suiService.openSUIWindow(window);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if actor.getCurrentRank() == GcwRank.LIEUTENANT:
|
|
|
|
|
window.addListBoxMenuItem('Private',0)
|
|
|
|
|
window.addListBoxMenuItem('Trooper',1)
|
|
|
|
|
window.addListBoxMenuItem('High Trooper',2)
|
|
|
|
|
window.addListBoxMenuItem('Sergeant',3)
|
|
|
|
|
window.addListBoxMenuItem('Senior Sergeant',4)
|
|
|
|
|
window.addListBoxMenuItem('Sergeant Major',5)
|
|
|
|
|
window.addListBoxMenuItem('Lieutenant',6)
|
|
|
|
|
window.setProperty('btnOk:visible', 'True')
|
|
|
|
|
window.setProperty('btnCancel:visible', 'True')
|
|
|
|
|
window.setProperty('btnOk:Text', '@ok')
|
|
|
|
|
window.setProperty('btnCancel:Text', '@cancel')
|
|
|
|
|
returnList = Vector()
|
|
|
|
|
returnList.add('List.lstList:SelectedRow')
|
|
|
|
|
window.addHandler(0, '', Trigger.TRIGGER_OK, returnList, setRebelBox1Callback)
|
|
|
|
|
core.suiService.openSUIWindow(window);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if actor.getCurrentRank() == GcwRank.CAPTAIN:
|
|
|
|
|
window.addListBoxMenuItem('Private',0)
|
|
|
|
|
window.addListBoxMenuItem('Trooper',1)
|
|
|
|
|
window.addListBoxMenuItem('High Trooper',2)
|
|
|
|
|
window.addListBoxMenuItem('Sergeant',3)
|
|
|
|
|
window.addListBoxMenuItem('Senior Sergeant',4)
|
|
|
|
|
window.addListBoxMenuItem('Sergeant Major',5)
|
|
|
|
|
window.addListBoxMenuItem('Lieutenant',6)
|
|
|
|
|
window.addListBoxMenuItem('Captain',7)
|
|
|
|
|
window.setProperty('btnOk:visible', 'True')
|
|
|
|
|
window.setProperty('btnCancel:visible', 'True')
|
|
|
|
|
window.setProperty('btnOk:Text', '@ok')
|
|
|
|
|
window.setProperty('btnCancel:Text', '@cancel')
|
|
|
|
|
returnList = Vector()
|
|
|
|
|
returnList.add('List.lstList:SelectedRow')
|
|
|
|
|
window.addHandler(0, '', Trigger.TRIGGER_OK, returnList, setRebelBox1Callback)
|
|
|
|
|
core.suiService.openSUIWindow(window);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if actor.getCurrentRank() == GcwRank.MAJOR:
|
|
|
|
|
window.addListBoxMenuItem('Private',0)
|
|
|
|
|
window.addListBoxMenuItem('Trooper',1)
|
|
|
|
|
window.addListBoxMenuItem('High Trooper',2)
|
|
|
|
|
window.addListBoxMenuItem('Sergeant',3)
|
|
|
|
|
window.addListBoxMenuItem('Senior Sergeant',4)
|
|
|
|
|
window.addListBoxMenuItem('Sergeant Major',5)
|
|
|
|
|
window.addListBoxMenuItem('Lieutenant',6)
|
|
|
|
|
window.addListBoxMenuItem('Captain',7)
|
|
|
|
|
window.addListBoxMenuItem('Major',8)
|
|
|
|
|
window.setProperty('btnOk:visible', 'True')
|
|
|
|
|
window.setProperty('btnCancel:visible', 'True')
|
|
|
|
|
window.setProperty('btnOk:Text', '@ok')
|
|
|
|
|
window.setProperty('btnCancel:Text', '@cancel')
|
|
|
|
|
returnList = Vector()
|
|
|
|
|
returnList.add('List.lstList:SelectedRow')
|
|
|
|
|
window.addHandler(0, '', Trigger.TRIGGER_OK, returnList, setRebelBox1Callback)
|
|
|
|
|
core.suiService.openSUIWindow(window);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if actor.getCurrentRank() == GcwRank.COMMANDER:
|
|
|
|
|
window.addListBoxMenuItem('Private',0)
|
|
|
|
|
window.addListBoxMenuItem('Trooper',1)
|
|
|
|
|
window.addListBoxMenuItem('High Trooper',2)
|
|
|
|
|
window.addListBoxMenuItem('Sergeant',3)
|
|
|
|
|
window.addListBoxMenuItem('Senior Sergeant',4)
|
|
|
|
|
window.addListBoxMenuItem('Sergeant Major',5)
|
|
|
|
|
window.addListBoxMenuItem('Lieutenant',6)
|
|
|
|
|
window.addListBoxMenuItem('Captain',7)
|
|
|
|
|
window.addListBoxMenuItem('Major',8)
|
|
|
|
|
window.addListBoxMenuItem('Commander',9)
|
|
|
|
|
window.setProperty('btnOk:visible', 'True')
|
|
|
|
|
window.setProperty('btnCancel:visible', 'True')
|
|
|
|
|
window.setProperty('btnOk:Text', '@ok')
|
|
|
|
|
window.setProperty('btnCancel:Text', '@cancel')
|
|
|
|
|
returnList = Vector()
|
|
|
|
|
returnList.add('List.lstList:SelectedRow')
|
|
|
|
|
window.addHandler(0, '', Trigger.TRIGGER_OK, returnList, setRebelBox1Callback)
|
|
|
|
|
core.suiService.openSUIWindow(window);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if actor.getCurrentRank() == GcwRank.COLONEL:
|
|
|
|
|
window.addListBoxMenuItem('Private',0)
|
|
|
|
|
window.addListBoxMenuItem('Trooper',1)
|
|
|
|
|
window.addListBoxMenuItem('High Trooper',2)
|
|
|
|
|
window.addListBoxMenuItem('Sergeant',3)
|
|
|
|
|
window.addListBoxMenuItem('Senior Sergeant',4)
|
|
|
|
|
window.addListBoxMenuItem('Sergeant Major',5)
|
|
|
|
|
window.addListBoxMenuItem('Lieutenant',6)
|
|
|
|
|
window.addListBoxMenuItem('Captain',7)
|
|
|
|
|
window.addListBoxMenuItem('Major',8)
|
|
|
|
|
window.addListBoxMenuItem('Commander',9)
|
|
|
|
|
window.addListBoxMenuItem('Colonel',10)
|
|
|
|
|
window.setProperty('btnOk:visible', 'True')
|
|
|
|
|
window.setProperty('btnCancel:visible', 'True')
|
|
|
|
|
window.setProperty('btnOk:Text', '@ok')
|
|
|
|
|
window.setProperty('btnCancel:Text', '@cancel')
|
|
|
|
|
returnList = Vector()
|
|
|
|
|
returnList.add('List.lstList:SelectedRow')
|
|
|
|
|
window.addHandler(0, '', Trigger.TRIGGER_OK, returnList, setRebelBox1Callback)
|
|
|
|
|
core.suiService.openSUIWindow(window);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if actor.getCurrentRank() == GcwRank.GENERAL:
|
|
|
|
|
window.addListBoxMenuItem('Private',0)
|
|
|
|
|
window.addListBoxMenuItem('Trooper',1)
|
|
|
|
|
window.addListBoxMenuItem('High Trooper',2)
|
|
|
|
|
window.addListBoxMenuItem('Sergeant',3)
|
|
|
|
|
window.addListBoxMenuItem('Senior Sergeant',4)
|
|
|
|
|
window.addListBoxMenuItem('Sergeant Major',5)
|
|
|
|
|
window.addListBoxMenuItem('Lieutenant',6)
|
|
|
|
|
window.addListBoxMenuItem('Captain',7)
|
|
|
|
|
window.addListBoxMenuItem('Major',8)
|
|
|
|
|
window.addListBoxMenuItem('Commander',9)
|
|
|
|
|
window.addListBoxMenuItem('Colonel',10)
|
|
|
|
|
window.addListBoxMenuItem('General',11)
|
|
|
|
|
window.setProperty('btnOk:visible', 'True')
|
|
|
|
|
window.setProperty('btnCancel:visible', 'True')
|
|
|
|
|
window.setProperty('btnOk:Text', '@ok')
|
|
|
|
|
window.setProperty('btnCancel:Text', '@cancel')
|
|
|
|
|
returnList = Vector()
|
|
|
|
|
returnList.add('List.lstList:SelectedRow')
|
|
|
|
|
window.addHandler(0, '', Trigger.TRIGGER_OK, returnList, setRebelBox1Callback)
|
|
|
|
|
core.suiService.openSUIWindow(window);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core.suiService.openSUIWindow(window);
|
|
|
|
|
def setRebelBox1Callback(owner, window, eventType, returnList):
|
|
|
|
|
|
|
|
|
|
if returnList.size()==0:
|
|
|
|
@@ -976,12 +817,7 @@ def electrobinoculars(object, owner):
|
|
|
|
|
if owner.getCashCredits() >= 15000:
|
|
|
|
|
owner.setCashCredits(owner.getCashCredits() - 15000)
|
|
|
|
|
core = main.NGECore.getInstance()
|
|
|
|
|
electrobinoculars = core.objectService.createObject('object/tangible/loot/generic_usable/shared_binoculars_s2_generic.iff', owner.getPlanet())
|
|
|
|
|
electrobinoculars.setAttachment('radial_filename', 'object/usable')
|
|
|
|
|
electrobinoculars.setStfFilename('static_item_n')
|
|
|
|
|
electrobinoculars.setStfName('item_consumable_detect_hidden_02_01')
|
|
|
|
|
electrobinoculars.setDetailFilename('static_item_d')
|
|
|
|
|
electrobinoculars.setDetailName('item_consumable_detect_hidden_02_01')
|
|
|
|
|
electrobinoculars = core.objectService.createObject('object/tangible/loot/generic_usable/shared_binoculars_s2_generic.iff', owner.getPlanet(), 'item_consumable_detect_hidden_02_01')
|
|
|
|
|
inventory = owner.getSlottedObject('inventory')
|
|
|
|
|
inventory.add(electrobinoculars)
|
|
|
|
|
elif owner.sendSystemMessage('You do not have enough credits to purchase this item.', 0):
|
|
|
|
@@ -991,12 +827,7 @@ def advancedElectrobinoculars(object, owner):
|
|
|
|
|
if owner.getCashCredits() >= 22500:
|
|
|
|
|
owner.setCashCredits(owner.getCashCredits() - 22500)
|
|
|
|
|
core = main.NGECore.getInstance()
|
|
|
|
|
electrobinoculars = core.objectService.createObject('object/tangible/loot/generic_usable/shared_binoculars_s2_generic.iff', owner.getPlanet())
|
|
|
|
|
electrobinoculars.setAttachment('radial_filename', 'object/usable')
|
|
|
|
|
electrobinoculars.setStfFilename('static_item_n')
|
|
|
|
|
electrobinoculars.setStfName('item_consumable_detect_hidden_02_02')
|
|
|
|
|
electrobinoculars.setDetailFilename('static_item_d')
|
|
|
|
|
electrobinoculars.setDetailName('item_consumable_detect_hidden_02_02')
|
|
|
|
|
electrobinoculars = core.objectService.createObject('object/tangible/loot/generic_usable/shared_binoculars_s2_generic.iff', owner.getPlanet(), 'item_consumable_detect_hidden_02_02')
|
|
|
|
|
inventory = owner.getSlottedObject('inventory')
|
|
|
|
|
inventory.add(electrobinoculars)
|
|
|
|
|
elif owner.sendSystemMessage('You do not have enough credits to purchase this item.', 0):
|
|
|
|
@@ -1006,12 +837,7 @@ def superiorElectrobinoculars(object, owner):
|
|
|
|
|
if owner.getCashCredits() >= 30000:
|
|
|
|
|
owner.setCashCredits(owner.getCashCredits() - 30000)
|
|
|
|
|
core = main.NGECore.getInstance()
|
|
|
|
|
electrobinoculars = core.objectService.createObject('object/tangible/loot/generic_usable/shared_binoculars_s2_generic.iff', owner.getPlanet())
|
|
|
|
|
electrobinoculars.setAttachment('radial_filename', 'object/usable')
|
|
|
|
|
electrobinoculars.setStfFilename('static_item_n')
|
|
|
|
|
electrobinoculars.setStfName('item_consumable_detect_hidden_02_03')
|
|
|
|
|
electrobinoculars.setDetailFilename('static_item_d')
|
|
|
|
|
electrobinoculars.setDetailName('item_consumable_detect_hidden_02_03')
|
|
|
|
|
electrobinoculars = core.objectService.createObject('object/tangible/loot/generic_usable/shared_binoculars_s2_generic.iff', owner.getPlanet(), 'item_consumable_detect_hidden_02_03')
|
|
|
|
|
inventory = owner.getSlottedObject('inventory')
|
|
|
|
|
inventory.add(electrobinoculars)
|
|
|
|
|
elif owner.sendSystemMessage('You do not have enough credits to purchase this item.', 0):
|
|
|
|
@@ -1021,12 +847,7 @@ def experimentalElectrobinoculars(object, owner):
|
|
|
|
|
if owner.getCashCredits() >= 37500:
|
|
|
|
|
owner.setCashCredits(owner.getCashCredits() - 37500)
|
|
|
|
|
core = main.NGECore.getInstance()
|
|
|
|
|
electrobinoculars = core.objectService.createObject('object/tangible/loot/generic_usable/shared_binoculars_s1_generic.iff', owner.getPlanet())
|
|
|
|
|
electrobinoculars.setAttachment('radial_filename', 'object/usable')
|
|
|
|
|
electrobinoculars.setStfFilename('static_item_n')
|
|
|
|
|
electrobinoculars.setStfName('item_consumable_detect_hidden_02_04')
|
|
|
|
|
electrobinoculars.setDetailFilename('static_item_d')
|
|
|
|
|
electrobinoculars.setDetailName('item_consumable_detect_hidden_02_04')
|
|
|
|
|
electrobinoculars = core.objectService.createObject('object/tangible/loot/generic_usable/shared_binoculars_s1_generic.iff', owner.getPlanet(), 'item_consumable_detect_hidden_02_04')
|
|
|
|
|
inventory = owner.getSlottedObject('inventory')
|
|
|
|
|
inventory.add(electrobinoculars)
|
|
|
|
|
elif owner.sendSystemMessage('You do not have enough credits to purchase this item.', 0):
|
|
|
|
@@ -1221,7 +1042,6 @@ def specOpsLeggings(object, owner):
|
|
|
|
|
if owner.getCashCredits() >= 135000:
|
|
|
|
|
owner.setCashCredits(owner.getCashCredits() - 135000)
|
|
|
|
|
core = main.NGECore.getInstance()
|
|
|
|
|
print ('test1')
|
|
|
|
|
leggings = core.objectService.createObject('object/tangible/wearables/armor/rebel_assault/shared_armor_rebel_spec_ops_leggings.iff', owner.getPlanet())
|
|
|
|
|
inventory = owner.getSlottedObject('inventory')
|
|
|
|
|
inventory.add(leggings)
|
|
|
|
@@ -1342,16 +1162,7 @@ def crimsonPhoenixMedal(object, owner):
|
|
|
|
|
if owner.getCashCredits() >= 240000:
|
|
|
|
|
owner.setCashCredits(owner.getCashCredits() - 240000)
|
|
|
|
|
core = main.NGECore.getInstance()
|
|
|
|
|
necklace = core.objectService.createObject('object/tangible/wearables/necklace/shared_necklace_deepspace_rebel_f.iff', owner.getPlanet())
|
|
|
|
|
necklace.setStfFilename('static_item_n')
|
|
|
|
|
necklace.setStfName('item_pvp_rebel_sergeant_major_medal_03_01')
|
|
|
|
|
necklace.setDetailFilename('static_item_d')
|
|
|
|
|
necklace.setDetailName('item_pvp_rebel_sergeant_major_medal_03_01')
|
|
|
|
|
necklace.setIntAttribute('no_trade', 1)
|
|
|
|
|
necklace.setIntAttribute('cat_stat_mod_bonus.@stat_n:constitution_modified', 30)
|
|
|
|
|
necklace.setIntAttribute('cat_stat_mod_bonus.@stat_n:luck_modified', 30)
|
|
|
|
|
necklace.setIntAttribute('cat_stat_mod_bonus.@stat_n:precision_modified', 24)
|
|
|
|
|
necklace.setIntAttribute('cat_stat_mod_bonus.@stat_n:strength_modified', 24)
|
|
|
|
|
necklace = core.objectService.createObject('object/tangible/wearables/necklace/shared_necklace_deepspace_rebel_f.iff', owner.getPlanet(), 'item_pvp_rebel_sergeant_major_medal_03_01')
|
|
|
|
|
inventory = owner.getSlottedObject('inventory')
|
|
|
|
|
inventory.add(necklace)
|
|
|
|
|
elif owner.sendSystemMessage('You do not have enough credits to purchase this item.', 0):
|
|
|
|
@@ -1362,7 +1173,6 @@ def factionalBanner(object, owner):
|
|
|
|
|
owner.setCashCredits(owner.getCashCredits() - 80000)
|
|
|
|
|
core = main.NGECore.getInstance()
|
|
|
|
|
banner = core.objectService.createObject('object/tangible/gcw/pvp_rank_rewards/shared_pvp_rebel_battle_banner.iff', owner.getPlanet())
|
|
|
|
|
banner.setIntAttribute('no_trade', 1)
|
|
|
|
|
inventory = owner.getSlottedObject('inventory')
|
|
|
|
|
inventory.add(banner)
|
|
|
|
|
elif owner.sendSystemMessage('You do not have enough credits to purchase this item.', 0):
|
|
|
|
@@ -1372,16 +1182,7 @@ def colonelRing(object, owner):
|
|
|
|
|
if owner.getCashCredits() >= 2800000:
|
|
|
|
|
owner.setCashCredits(owner.getCashCredits() - 2800000)
|
|
|
|
|
core = main.NGECore.getInstance()
|
|
|
|
|
ring = core.objectService.createObject('object/tangible/wearables/ring/shared_ring_s03.iff', owner.getPlanet())
|
|
|
|
|
ring.setStfFilename('static_item_n')
|
|
|
|
|
ring.setStfName('item_pvp_rebel_colonel_signet_ring_05_01')
|
|
|
|
|
ring.setDetailFilename('static_item_d')
|
|
|
|
|
ring.setDetailName('item_pvp_rebel_colonel_signet_ring_05_01')
|
|
|
|
|
ring.setIntAttribute('no_trade', 1)
|
|
|
|
|
ring.setIntAttribute('cat_stat_mod_bonus.@stat_n:strength_modified', 24)
|
|
|
|
|
ring.setIntAttribute('cat_stat_mod_bonus.@stat_n:constitution_modified', 60)
|
|
|
|
|
ring.setIntAttribute('cat_stat_mod_bonus.@stat_n:precision_modified', 24)
|
|
|
|
|
ring.setIntAttribute('cat_stat_mod_bonus.@stat_n:agility_modified', 24)
|
|
|
|
|
ring = core.objectService.createObject('object/tangible/wearables/ring/shared_ring_s03.iff', owner.getPlanet(), 'item_pvp_rebel_colonel_signet_ring_05_01')
|
|
|
|
|
inventory = owner.getSlottedObject('inventory')
|
|
|
|
|
inventory.add(ring)
|
|
|
|
|
elif owner.sendSystemMessage('You do not have enough credits to purchase this item.', 0):
|
|
|
|
@@ -1394,10 +1195,10 @@ def laserCarbine(object, owner):
|
|
|
|
|
carbine = core.objectService.createObject('object/weapon/ranged/carbine/shared_carbine_laser.iff', owner.getPlanet())
|
|
|
|
|
carbine.setAttackSpeed(0.6)
|
|
|
|
|
carbine.setMaxRange(50)
|
|
|
|
|
carbine.setDamageType("energy")
|
|
|
|
|
carbine.setDamageType('energy')
|
|
|
|
|
carbine.setMinDamage(350)
|
|
|
|
|
carbine.setMaxDamage(700)
|
|
|
|
|
carbine.setWeaponType(1)
|
|
|
|
|
carbine.setWeaponType(WeaponType.CARBINE)
|
|
|
|
|
inventory = owner.getSlottedObject('inventory')
|
|
|
|
|
inventory.add(carbine)
|
|
|
|
|
elif owner.sendSystemMessage('You do not have enough credits to purchase this item.', 0):
|
|
|
|
@@ -1410,10 +1211,10 @@ def scoutPistol(object, owner):
|
|
|
|
|
pistol = core.objectService.createObject('object/weapon/ranged/pistol/shared_pistol_scout_blaster.iff', owner.getPlanet())
|
|
|
|
|
pistol.setAttackSpeed(0.4)
|
|
|
|
|
pistol.setMaxRange(35);
|
|
|
|
|
pistol.setDamageType("kinetic");
|
|
|
|
|
pistol.setDamageType('energy');
|
|
|
|
|
pistol.setMinDamage(80);
|
|
|
|
|
pistol.setMaxDamage(130);
|
|
|
|
|
pistol.setWeaponType(2);
|
|
|
|
|
pistol.setWeaponType(WeaponType.PISTOL);
|
|
|
|
|
inventory = owner.getSlottedObject('inventory')
|
|
|
|
|
inventory.add(pistol)
|
|
|
|
|
elif owner.sendSystemMessage('You do not have enough credits to purchase this item.', 0):
|
|
|
|
@@ -1425,11 +1226,11 @@ def metalStaff(object, owner):
|
|
|
|
|
core = main.NGECore.getInstance()
|
|
|
|
|
staff = core.objectService.createObject('object/weapon/melee/polearm/shared_lance_staff_metal.iff', owner.getPlanet())
|
|
|
|
|
staff.setAttackSpeed(1.0);
|
|
|
|
|
staff.setMaxRange(35);
|
|
|
|
|
staff.setDamageType("kinetic");
|
|
|
|
|
staff.setMaxRange(5);
|
|
|
|
|
staff.setDamageType('kinetic');
|
|
|
|
|
staff.setMinDamage(300);
|
|
|
|
|
staff.setMaxDamage(400);
|
|
|
|
|
staff.setWeaponType(2);
|
|
|
|
|
staff.setWeaponType(WeaponType.POLEARMMELEE);
|
|
|
|
|
inventory = owner.getSlottedObject('inventory')
|
|
|
|
|
inventory.add(staff)
|
|
|
|
|
elif owner.sendSystemMessage('You do not have enough credits to purchase this item.', 0):
|
|
|
|
@@ -1439,16 +1240,7 @@ def windusGuile(object, owner):
|
|
|
|
|
if owner.getCashCredits() >= 2000000:
|
|
|
|
|
owner.setCashCredits(owner.getCashCredits() - 2000000)
|
|
|
|
|
core = main.NGECore.getInstance()
|
|
|
|
|
windu = core.objectService.createObject('object/tangible/component/weapon/lightsaber/shared_lightsaber_module_force_crystal.iff', owner.getPlanet())
|
|
|
|
|
windu.setCustomizationVariable('/private/index_color_1', 20)
|
|
|
|
|
windu.setStfFilename('static_item_n')
|
|
|
|
|
windu.setStfName('item_color_crystal_02_20')
|
|
|
|
|
windu.setDetailFilename('static_item_d')
|
|
|
|
|
windu.setDetailName('item_color_crystal_02_20')
|
|
|
|
|
windu.setIntAttribute('no_trade', 1)
|
|
|
|
|
windu.setStringAttribute('condition', '1000/1000')
|
|
|
|
|
windu.getAttributes().put("@obj_attr_n:color", "Windu's Guile")
|
|
|
|
|
windu.setAttachment('radial_filename', 'item/tunable')
|
|
|
|
|
windu = core.objectService.createObject('object/tangible/component/weapon/lightsaber/shared_lightsaber_module_force_crystal.iff', owner.getPlanet(), 'item_color_crystal_02_20')
|
|
|
|
|
inventory = owner.getSlottedObject('inventory')
|
|
|
|
|
inventory.add(windu)
|
|
|
|
|
elif owner.sendSystemMessage('You do not have enough credits to purchase this item.', 0):
|
|
|
|
@@ -1458,7 +1250,7 @@ def exceptionalPistol(object, owner):
|
|
|
|
|
if owner.getCashCredits() >= 200000:
|
|
|
|
|
owner.setCashCredits(owner.getCashCredits() - 200000)
|
|
|
|
|
core = main.NGECore.getInstance()
|
|
|
|
|
core.scriptService.callScript("scripts/object/weapon/ranged/pistol/", "exceptional_pistol_rebel", "exceptionalPistol", core, object, owner);
|
|
|
|
|
core.objectService.createObject('object/weapon/ranged/pistol/shared_pistol_dl44.iff', owner.getPlanet(), 'weapon_pistol_pvp_rebel_general_reward_06_01')
|
|
|
|
|
elif owner.sendSystemMessage('You do not have enough credits to purchase this item.', 0):
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|