mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-14 00:02:07 -04:00
Merge branch 'master' of https://github.com/ProjectSWGCore/NGECore2
Conflicts: src/main/NGECore.java
This commit is contained in:
+1
-4
@@ -61,9 +61,6 @@ odb/resourcehistory/je.info.*
|
||||
odb/resourceroots/je.info.*
|
||||
odb/resources/je.info.*
|
||||
|
||||
# PSWG Configs
|
||||
options.cfg
|
||||
|
||||
# External tool builders
|
||||
.externalToolBuilders/
|
||||
|
||||
@@ -214,4 +211,4 @@ pip-log.txt
|
||||
#############
|
||||
## PyCharm
|
||||
#############
|
||||
.idea
|
||||
.idea
|
||||
|
||||
@@ -13,5 +13,4 @@ GALAXY_ID=2
|
||||
GALAXY_NAME=Local Connection
|
||||
XPMULTIPLIER=1.0
|
||||
MAXNUMBEROFCHARACTERS=2
|
||||
LOAD.RESOURCE.SYSTEM=1
|
||||
MOTD=Welcome to PSWG Test Center!
|
||||
+2
-1
@@ -1,2 +1,3 @@
|
||||
LOAD.SNAPSHOT_OBJECTS=1
|
||||
LOAD.BUILDOUT_OBJECTS=1
|
||||
LOAD.BUILDOUT_OBJECTS=1
|
||||
LOAD.RESOURCE.SYSTEM=1
|
||||
@@ -1,13 +0,0 @@
|
||||
from resources.datatables import PlayerFlags
|
||||
import sys
|
||||
|
||||
def setup():
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
command = core.commandService.getCommandByName("toggleawayfromkeyboard")
|
||||
|
||||
if command:
|
||||
core.commandService.processCommand(actor, target, command, 0, commandString)
|
||||
|
||||
return
|
||||
@@ -0,0 +1,10 @@
|
||||
import sys
|
||||
|
||||
def setup():
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.harvesterService.handleHarvesterActivateCommand(actor, target, commandString)
|
||||
return
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
import sys
|
||||
|
||||
def setup():
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.harvesterService.handleHarvesterDeactivateCommand(actor, target, commandString)
|
||||
return
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
import sys
|
||||
|
||||
def setup():
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
actor.sendSystemMessage('handleEmptyHarvester', 0)
|
||||
core.harvesterService.handleEmptyHarvester(actor, target, commandString)
|
||||
return
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
import sys
|
||||
|
||||
def setup():
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.harvesterService.handleHarvesterSelectResourceCommand(actor, target, commandString)
|
||||
return
|
||||
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
import sys
|
||||
from engine.resources.scene import Point3D
|
||||
|
||||
def setup():
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
tarObj = core.objectService.getObject(actor.getTargetId())
|
||||
|
||||
container = actor.getContainer()
|
||||
parsedMsg = commandString.split(' ', 2)
|
||||
|
||||
if core.housingService.getPermissions(actor, container): # i should probably relook into my permissions system... it kinda sucks
|
||||
if parsedMsg[0] == "up":
|
||||
core.simulationService.transform(tarObj, Point3D(0, float(parsedMsg[1]) * 0.01, 0))
|
||||
return
|
||||
elif parsedMsg[0] == "down":
|
||||
core.simulationService.transform(tarObj, Point3D(0, float(parsedMsg[1]) * -0.01, 0))
|
||||
return
|
||||
elif parsedMsg[0] == "forward":
|
||||
core.simulationService.transform(tarObj, Point3D(0, 0, float(parsedMsg[1]) * 0.01))
|
||||
return
|
||||
elif parsedMsg[0] == "back":
|
||||
core.simulationService.transform(tarObj, Point3D(0, 0, float(parsedMsg[1]) * -0.01))
|
||||
return
|
||||
elif parsedMsg[0] == "right":
|
||||
core.simulationService.transform(tarObj, Point3D(float(parsedMsg[1]) * 0.01, 0, 0))
|
||||
return
|
||||
elif parsedMsg[0] == "left":
|
||||
core.simulationService.transform(tarObj, Point3D(float(parsedMsg[1]) * -0.01, 0, 0))
|
||||
return
|
||||
|
||||
elif container.getTemplate() == "object/cell/shared_cell.iff":
|
||||
actor.sendSystemMessage("You do not have permission to access that container!", 0)
|
||||
return
|
||||
|
||||
return
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
import sys
|
||||
|
||||
def setup():
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.harvesterService.handlePermissionListModify(actor, target, commandString)
|
||||
return
|
||||
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
import sys
|
||||
import resources.objects.deed.Harvester_Deed
|
||||
|
||||
def setup():
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
cmdArgs = commandString.split(" ")
|
||||
|
||||
deedId = long(cmdArgs[0])
|
||||
deed = core.objectService.getObject(deedId)
|
||||
|
||||
if (actor.getAttachment('UsingHarvesterDeed') == '1'):
|
||||
actor.setAttachment('UsingHarvesterDeed', '0');
|
||||
core.harvesterService.handlePlaceStructureCommand(actor, target, commandString)
|
||||
return
|
||||
|
||||
positionX = float(cmdArgs[1])
|
||||
positionZ = float(cmdArgs[2])
|
||||
#positionY = core.terrainService.getHeight(actor.getPlanetId(), positionX, positionZ) + 2
|
||||
|
||||
rotation = float(cmdArgs[3])
|
||||
|
||||
|
||||
#structureTemplate = deed.getAttachment("structureTemplate")
|
||||
|
||||
core.housingService.placeStructure(actor, deed, positionX, positionZ, rotation)
|
||||
|
||||
#building = core.objectService.createObject(structureTemplate, actor.getPlanet(), positionX, positionZ, positionY);
|
||||
#core.simulationService.add(building, building.getPosition().x, building.getPosition().z);
|
||||
|
||||
return
|
||||
@@ -0,0 +1,10 @@
|
||||
import sys
|
||||
|
||||
def setup():
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.harvesterService.handleHarvesterDeactivateCommand(actor, target, commandString)
|
||||
return
|
||||
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
import sys
|
||||
from engine.resources.scene import Point3D
|
||||
|
||||
def setup():
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
tarObj = core.objectService.getObject(actor.getTargetId())
|
||||
|
||||
container = actor.getContainer()
|
||||
parsedMsg = commandString.split(' ', 2)
|
||||
|
||||
if core.housingService.getPermissions(actor, container): # i should probably relook into my permissions system... it kinda sucks
|
||||
if parsedMsg[0] == "pitch":
|
||||
core.simulationService.transform(tarObj, float(parsedMsg[1]), Point3D(1, 0, 0)) # this is messed up ???
|
||||
return
|
||||
elif parsedMsg[0] == "yaw":
|
||||
core.simulationService.transform(tarObj, float(parsedMsg[1]), Point3D(0, 1, 0)) # this is correct
|
||||
return
|
||||
elif parsedMsg[0] == "roll":
|
||||
core.simulationService.transform(tarObj, float(parsedMsg[1]), Point3D(0, 0, 1)) # this is messed up ???
|
||||
return
|
||||
|
||||
elif container.getTemplate() == "object/cell/shared_cell.iff":
|
||||
actor.sendSystemMessage("You do not have permission to access that container!", 0)
|
||||
return
|
||||
|
||||
return
|
||||
|
||||
@@ -1,18 +1,29 @@
|
||||
import sys
|
||||
|
||||
from engine.resources.scene import Quaternion
|
||||
|
||||
def setup():
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
parsedMsg = commandString.split(' ', 3)
|
||||
objService = core.objectService
|
||||
containerID = long(parsedMsg[1])
|
||||
container = objService.getObject(containerID)
|
||||
actorContainer = actor.getContainer()
|
||||
|
||||
if actorContainer != None and (container.getTemplate() == "object/cell/shared_cell.iff") & core.housingService.getPermissions(actor, actorContainer):
|
||||
target.getContainer().transferTo(actor, container, target)
|
||||
core.simulationService.teleport(target, actor.getPosition(), Quaternion(1,0,0,0), containerID)
|
||||
return
|
||||
elif actorContainer != None and container.getTemplate() == "object/cell/shared_cell.iff":
|
||||
actor.sendSystemMessage("You do not have permission to access that container!", 0)
|
||||
return
|
||||
|
||||
if core.equipmentService.canEquip(actor, target) is False:
|
||||
actor.sendSystemMessage('@error_message:insufficient_skill', 0)
|
||||
return
|
||||
|
||||
|
||||
parsedMsg = commandString.split(' ', 3)
|
||||
objService = core.objectService
|
||||
containerID = long(parsedMsg[1])
|
||||
container = objService.getObject(containerID)
|
||||
if target and container and target.getContainer():
|
||||
oldContainer = target.getContainer()
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import sys
|
||||
|
||||
def addAbilities(core, actor, player):
|
||||
actor.addAbility("expertise_of_purge_1")
|
||||
actor.addAbility("of_purge_1")
|
||||
return
|
||||
|
||||
def removeAbilities(core, actor, player):
|
||||
actor.removeAbility("expertise_of_purge_1")
|
||||
actor.removeAbility("of_purge_1")
|
||||
return
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
import sys
|
||||
from services.housing import HouseTemplate
|
||||
from engine.resources.scene import Point3D
|
||||
|
||||
def setup(core):
|
||||
houseTemplate = HouseTemplate("object/tangible/deed/player_house_deed/shared_generic_house_small_deed.iff", "object/building/player/shared_player_house_generic_small_style_01.iff", 2)
|
||||
|
||||
houseTemplate.addBuildingSign("object/tangible/sign/player/shared_house_address.iff", Point3D(1, 2, 3))
|
||||
houseTemplate.addPlaceablePlanet("tatooine")
|
||||
houseTemplate.addPlaceablePlanet("corellia")
|
||||
houseTemplate.addPlaceablePlanet("naboo")
|
||||
houseTemplate.addPlaceablePlanet("talus")
|
||||
houseTemplate.addPlaceablePlanet("rori")
|
||||
houseTemplate.addPlaceablePlanet("dantooine")
|
||||
houseTemplate.addPlaceablePlanet("lok")
|
||||
houseTemplate.setDefaultItemLimit(200)
|
||||
|
||||
core.housingService.addHousingTemplate(houseTemplate)
|
||||
return
|
||||
@@ -0,0 +1,21 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/component/weapon/lightsaber/shared_lightsaber_module_force_crystal.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return ''
|
||||
|
||||
def customItemStackCount():
|
||||
|
||||
return 1
|
||||
|
||||
def customizationAttributes():
|
||||
|
||||
return []
|
||||
|
||||
def customizationValues():
|
||||
|
||||
return []
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/creature_loot/generic/shared_generic_antennae.iff'
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/npc_loot/shared_armor_repair_device_generic.iff'
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/creature_loot/generic/shared_brain_s01.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return 'Brain'
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/generic_usable/shared_chassis_blueprint_usuable.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return 'Chassis Blueprint'
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/npc_loot/shared_comlink_civilian_generic.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return 'Comlink'
|
||||
@@ -0,0 +1,9 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/misc/shared_damaged_datapad.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return 'Damaged Datapad'
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return '/object/tangible/loot/npc_loot/shared_jewelry_ear_s02.iff'
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return '/object/tangible/loot/npc_loot/shared_firework_dud_s1.iff'
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/creature_loot/generic/shared_generic_eye.iff'
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/creature_loot/generic/shared_lungs_gland.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return 'Gland'
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/creature_loot/generic/shared_generic_heart.iff'
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/miscshared_hyperdrive_part_s01.iff'
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/npc_loot/shared_id_chip_generic.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return 'ID Chip'
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/npc_loot/shared_impulse_detector_01_generic.iff'
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/npc_loot/shared_laser_trap_generic.iff'
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/npc_loot/shared_launcher_tube_generic.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return 'Launcher Tube'
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/npc_loot/shared_ledger_generic.iff'
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/npc_loot/shared_magseal_detector_generic.iff'
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/npc_loot/shared_medical_console_generic.iff'
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/npc_loot/shared_medical_device_generic.iff'
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/npc_loot/shared_small_motor_generic.iff'
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/npc_loot/shared_power_output_analyzer_generic.iff'
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/npc_loot/shared_red_wiring_generic.iff'
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/npc_loot/shared_shield_module_generic.iff'
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/npc_loot/shared_software_module_generic.iff'
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/creature_loot/generic/shared_generic_stomach.iff'
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/npc_loot/shared_survival_equipment_generic.iff'
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/npc_loot/shared_survey_pad_adv_generic.iff'
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/npc_loot/shared_serum_vial_generic.iff'
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/npc_loot/shared_notebook_generic.iff'
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/generic/shared_battery_useable_generic.iff'
|
||||
@@ -0,0 +1,21 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/loot/npc_loot/shared_worklight_generic.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return ''
|
||||
|
||||
def customItemStackCount():
|
||||
|
||||
return 1
|
||||
|
||||
def customizationAttributes():
|
||||
|
||||
return []
|
||||
|
||||
def customizationValues():
|
||||
|
||||
return []
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/component/weapon/lightsaber/shared_lightsaber_module_krayt_dragon_pearl.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return ''
|
||||
@@ -0,0 +1,12 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/component/weapon/lightsaber/shared_lightsaber_module_krayt_dragon_pearl.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return ''
|
||||
|
||||
def customItemName():
|
||||
|
||||
return ''
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/component/weapon/lightsaber/shared_lightsaber_module_krayt_dragon_pearl.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return ''
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/component/weapon/lightsaber/shared_lightsaber_module_krayt_dragon_pearl.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return ''
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/component/weapon/lightsaber/shared_lightsaber_module_krayt_dragon_pearl.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return ''
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/component/weapon/lightsaber/shared_lightsaber_module_krayt_dragon_pearl.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return ''
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/component/weapon/lightsaber/shared_lightsaber_module_krayt_dragon_pearl.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return ''
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/component/weapon/lightsaber/shared_lightsaber_module_krayt_dragon_pearl.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return ''
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/component/weapon/lightsaber/shared_lightsaber_module_krayt_dragon_pearl.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return ''
|
||||
@@ -0,0 +1,12 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/component/weapon/lightsaber/shared_lightsaber_module_force_crystal.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return ''
|
||||
|
||||
def customItemName():
|
||||
|
||||
return ''
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/component/weapon/lightsaber/shared_lightsaber_module_force_crystal.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return ''
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/component/weapon/lightsaber/shared_lightsaber_module_force_crystal.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return ''
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/component/weapon/lightsaber/shared_lightsaber_module_force_crystal.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return ''
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/component/weapon/lightsaber/shared_lightsaber_module_force_crystal.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return ''
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/component/weapon/lightsaber/shared_lightsaber_module_force_crystal.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return ''
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/component/weapon/lightsaber/shared_lightsaber_module_force_crystal.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return ''
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/component/weapon/lightsaber/shared_lightsaber_module_force_crystal.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return ''
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/item/shared_rare_loot_chest_3.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return ''
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/tangible/item/shared_rare_loot_chest_3.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return ''
|
||||
@@ -0,0 +1,20 @@
|
||||
|
||||
def itemTemplate():
|
||||
|
||||
return 'object/weapon/ranged/rifle/shared_rifle_cdef.iff'
|
||||
|
||||
def customItemName():
|
||||
|
||||
return ''
|
||||
|
||||
def customItemStackCount():
|
||||
|
||||
return 1
|
||||
|
||||
def customizationAttributes():
|
||||
|
||||
return []
|
||||
|
||||
def customizationValues():
|
||||
|
||||
return []
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
def itemNames():
|
||||
|
||||
return ['colorCrystal']
|
||||
|
||||
def itemChances():
|
||||
|
||||
return [70]
|
||||
@@ -0,0 +1,15 @@
|
||||
|
||||
def itemNames():
|
||||
|
||||
templates=['damaged_datapad','red_wiring','worklight_generic','antenna','brain','eye','gland','heart','stomach','armor_repair_device'] #10
|
||||
templates=templates+['brain','chassis_blueprint','comlink','explosive_dud','hyperdrive_unit','id_chip','impulse_detector','laser_trap'] #8
|
||||
templates=templates+['launcher_tube','ledger','magseal_detector','medical_console','medical_device','motor','power_output_analyzer','shield_module'] #8
|
||||
templates=templates+['software_module','survival_gear','underpowered_survey_pad','unidentified_serum_vial','used_notebook','weak_droid_battery'] #6
|
||||
return templates
|
||||
|
||||
def itemChances():
|
||||
chances=[3.125,3.125,3.125,3.125,3.125,3.125,3.125,3.125]
|
||||
chances=chances+[3.125,3.125,3.125,3.125,3.125,3.125,3.125,3.125]
|
||||
chances=chances+[3.125,3.125,3.125,3.125,3.125,3.125,3.125,3.125]
|
||||
chances=chances+[3.125,3.125,3.125,3.125,3.125,3.125,3.125,3.125]
|
||||
return chances #32
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
def itemNames():
|
||||
|
||||
return ['kraytpearl_cracked','kraytpearl_scratched','kraytpearl_poor']
|
||||
|
||||
def itemChances():
|
||||
|
||||
return [33,33,34]
|
||||
@@ -0,0 +1,6 @@
|
||||
|
||||
def itemTemplates():
|
||||
return ['kraytpearl_fair','kraytpearl_good','kraytpearl_quality','kraytpearl_select','kraytpearl_premium','kraytpearl_flawless']
|
||||
|
||||
def itemChances():
|
||||
return [10,20,30,34,5,1] #= 100%
|
||||
@@ -0,0 +1,6 @@
|
||||
|
||||
def itemNames():
|
||||
return ['powercrystal_premium','powercrystal_flawless','powercrystal_perfect']
|
||||
|
||||
def itemChances():
|
||||
return [94,5,1] #= 100%
|
||||
@@ -0,0 +1,9 @@
|
||||
|
||||
|
||||
def itemNames():
|
||||
|
||||
templates=['rarelootchest1','rarelootchest2']
|
||||
return templates
|
||||
|
||||
def itemChances():
|
||||
return [70,30]
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
def itemNames():
|
||||
|
||||
return ['shared_rifle_cdef']
|
||||
|
||||
def itemChances():
|
||||
return [100]
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
|
||||
def itemTemplates():
|
||||
templates = ['Biological_Focus_Crystal','Synapse_Focus_Crystal','Concentrated_Bacta_Tank','DNA_Storage_Device_Kowakian']
|
||||
templates = templates + ['Dug_Costume_Instructions','Dusk_in_Kachirho','Mercenaries_Despair','Mercenaries_Lament','Nightsister_Melee_Armguard']
|
||||
templates = templates + ['Rare_Painting','Sunriders_Destiny']
|
||||
return templates
|
||||
|
||||
def itemChances():
|
||||
chances = [9,9,9,9]
|
||||
chances = chances+[9,9,9,9,9]
|
||||
chances = chances+[9,9] #= 100%
|
||||
return chances
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
def itemNames():
|
||||
|
||||
return ['colorCrystal']
|
||||
|
||||
def itemChances():
|
||||
|
||||
return [70]
|
||||
@@ -0,0 +1,19 @@
|
||||
import sys
|
||||
from services.spawn import MobileTemplate
|
||||
from java.util import Vector
|
||||
|
||||
def addTemplate(core):
|
||||
mobileTemplate = MobileTemplate()
|
||||
templates = Vector()
|
||||
templates.add('object/mobile/shared_krayt_dragon.iff')
|
||||
mobileTemplate.setTemplates(templates)
|
||||
mobileTemplate.setLevel(10)
|
||||
mobileTemplate.setDifficulty(2)
|
||||
attacks = Vector()
|
||||
mobileTemplate.setDefaultAttack('creatureMeleeAttack')
|
||||
mobileTemplate.setAttacks(attacks)
|
||||
mobileTemplate.setCreatureName('krayt_dragon')
|
||||
mobileTemplate.setScale(2)
|
||||
mobileTemplate.setAttackRange(12)
|
||||
core.spawnService.addMobileTemplate('krayt_dragon', mobileTemplate)
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
import sys
|
||||
from services.spawn import MobileTemplate
|
||||
from java.util import Vector
|
||||
|
||||
def addTemplate(core):
|
||||
mobileTemplate = MobileTemplate()
|
||||
|
||||
mobileTemplate.setCreatureName('tuskenraider')
|
||||
mobileTemplate.setLevel(90)
|
||||
mobileTemplate.setDifficulty(0)
|
||||
mobileTemplate.setAttackRange(24)
|
||||
|
||||
templates = Vector()
|
||||
templates.add('object/mobile/shared_tusken_raider.iff')
|
||||
mobileTemplate.setTemplates(templates)
|
||||
|
||||
weaponTemplates = Vector()
|
||||
weaponTemplates.add('object/weapon/ranged/rifle/shared_rifle_e11.iff')
|
||||
weaponTemplates.add('object/weapon/ranged/rifle/shared_rifle_t21.iff')
|
||||
mobileTemplate.setWeaponTemplates(weaponTemplates)
|
||||
|
||||
|
||||
attacks = Vector()
|
||||
mobileTemplate.setDefaultAttack('rangedShot')
|
||||
mobileTemplate.setAttacks(attacks)
|
||||
|
||||
core.spawnService.addMobileTemplate('tuskenraider', mobileTemplate)
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
import sys
|
||||
|
||||
def setup(core, object):
|
||||
sign = core.objectService.createChildObject(object, 'object/tangible/sign/player/shared_house_address.iff', -7.39, 2.36, 2, -1, 0, -1)
|
||||
print(sign)
|
||||
object.setAttachment("structureSign", sign)
|
||||
|
||||
core.objectService.createChildObject(object, 'object/tangible/terminal/shared_terminal_player_structure.iff', -5, 0.74, -1.81, 0.707107, -0.707107, 1)
|
||||
return
|
||||
@@ -1,4 +1,8 @@
|
||||
import sys
|
||||
|
||||
def setup(core, object):
|
||||
object.setAttachment('radial_filename', 'generator')
|
||||
object.setHarvester_type(5)
|
||||
object.setMaintenanceCost(30)
|
||||
object.setGenerator(1)
|
||||
return
|
||||
@@ -1,4 +1,8 @@
|
||||
import sys
|
||||
|
||||
def setup(core, object):
|
||||
object.setAttachment('radial_filename', 'generator')
|
||||
object.setHarvester_type(5)
|
||||
object.setMaintenanceCost(30)
|
||||
object.setGenerator(1)
|
||||
return
|
||||
@@ -1,4 +1,8 @@
|
||||
import sys
|
||||
|
||||
def setup(core, object):
|
||||
object.setAttachment('radial_filename', 'generator')
|
||||
object.setHarvester_type(5)
|
||||
object.setMaintenanceCost(30)
|
||||
object.setGenerator(1)
|
||||
return
|
||||
@@ -1,4 +1,8 @@
|
||||
import sys
|
||||
|
||||
def setup(core, object):
|
||||
object.setAttachment('radial_filename', 'generator')
|
||||
object.setHarvester_type(5)
|
||||
object.setMaintenanceCost(30)
|
||||
object.setGenerator(1)
|
||||
return
|
||||
@@ -1,4 +1,8 @@
|
||||
import sys
|
||||
|
||||
def setup(core, object):
|
||||
object.setAttachment('radial_filename', 'generator')
|
||||
object.setHarvester_type(5)
|
||||
object.setMaintenanceCost(20)
|
||||
object.setGenerator(1)
|
||||
return
|
||||
@@ -1,4 +1,8 @@
|
||||
import sys
|
||||
|
||||
def setup(core, object):
|
||||
object.setAttachment('radial_filename', 'harvester')
|
||||
object.setHarvester_type(3)
|
||||
object.setPowerCost(25);
|
||||
object.setMaintenanceCost(16);
|
||||
return
|
||||
@@ -1,4 +1,8 @@
|
||||
import sys
|
||||
|
||||
def setup(core, object):
|
||||
object.setAttachment('radial_filename', 'harvester')
|
||||
object.setHarvester_type(3)
|
||||
object.setPowerCost(60);
|
||||
object.setMaintenanceCost(60);
|
||||
return
|
||||
@@ -1,4 +1,8 @@
|
||||
import sys
|
||||
|
||||
def setup(core, object):
|
||||
object.setAttachment('radial_filename', 'harvester')
|
||||
object.setHarvester_type(3)
|
||||
object.setPowerCost(75);
|
||||
object.setMaintenanceCost(90);
|
||||
return
|
||||
@@ -1,4 +1,8 @@
|
||||
import sys
|
||||
|
||||
def setup(core, object):
|
||||
object.setAttachment('radial_filename', 'harvester')
|
||||
object.setHarvester_type(3)
|
||||
object.setPowerCost(100);
|
||||
object.setMaintenanceCost(120);
|
||||
return
|
||||
@@ -1,4 +1,8 @@
|
||||
import sys
|
||||
|
||||
def setup(core, object):
|
||||
object.setAttachment('radial_filename', 'harvester')
|
||||
object.setHarvester_type(1)
|
||||
object.setPowerCost(25);
|
||||
object.setMaintenanceCost(16);
|
||||
return
|
||||
@@ -1,4 +1,8 @@
|
||||
import sys
|
||||
|
||||
def setup(core, object):
|
||||
object.setAttachment('radial_filename', 'harvester')
|
||||
object.setHarvester_type(1)
|
||||
object.setPowerCost(60);
|
||||
object.setMaintenanceCost(60);
|
||||
return
|
||||
@@ -1,4 +1,8 @@
|
||||
import sys
|
||||
|
||||
def setup(core, object):
|
||||
object.setAttachment('radial_filename', 'harvester')
|
||||
object.setHarvester_type(1)
|
||||
object.setPowerCost(75);
|
||||
object.setMaintenanceCost(90);
|
||||
return
|
||||
@@ -1,4 +1,8 @@
|
||||
import sys
|
||||
|
||||
def setup(core, object):
|
||||
object.setAttachment('radial_filename', 'harvester')
|
||||
object.setHarvester_type(1)
|
||||
object.setPowerCost(100);
|
||||
object.setMaintenanceCost(120);
|
||||
return
|
||||
@@ -1,4 +1,8 @@
|
||||
import sys
|
||||
|
||||
def setup(core, object):
|
||||
object.setAttachment('radial_filename', 'harvester')
|
||||
object.setHarvester_type(4)
|
||||
object.setPowerCost(25);
|
||||
object.setMaintenanceCost(16);
|
||||
return
|
||||
@@ -1,4 +1,8 @@
|
||||
import sys
|
||||
|
||||
def setup(core, object):
|
||||
object.setAttachment('radial_filename', 'harvester')
|
||||
object.setHarvester_type(4)
|
||||
object.setPowerCost(100);
|
||||
object.setMaintenanceCost(120);
|
||||
return
|
||||
@@ -1,4 +1,8 @@
|
||||
import sys
|
||||
|
||||
def setup(core, object):
|
||||
object.setAttachment('radial_filename', 'harvester')
|
||||
object.setHarvester_type(4)
|
||||
object.setPowerCost(75);
|
||||
object.setMaintenanceCost(90);
|
||||
return
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user