Added Populated Valarian hacker bunker

Added Valarian Hacker NPC script
This commit is contained in:
tacef
2014-07-08 20:04:35 +02:00
parent 21784643f8
commit f34b5c922b
2 changed files with 94 additions and 0 deletions
@@ -0,0 +1,56 @@
import sys
from services.spawn import MobileTemplate
from services.spawn import WeaponTemplate
from resources.datatables import WeaponType
from resources.datatables import Difficulty
from resources.datatables import Options
from java.util import Vector
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobileTemplate.setCreatureName('tatooine_valarian_hacker')
mobileTemplate.setLevel(19)
mobileTemplate.setDifficulty(Difficulty.NORMAL)
mobileTemplate.setMinSpawnDistance(4)
mobileTemplate.setMaxSpawnDistance(8)
mobileTemplate.setDeathblow(False)
mobileTemplate.setScale(1)
mobileTemplate.setSocialGroup("valarian_hacker")
mobileTemplate.setAssistRange(4)
mobileTemplate.setStalker(False)
mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE | Options.ATTACKABLE)
templates = Vector()
templates.add('object/mobile/shared_dressed_criminal_thug_aqualish_female_01.iff')
templates.add('object/mobile/shared_dressed_criminal_thug_aqualish_female_02.iff')
templates.add('object/mobile/shared_dressed_criminal_thug_aqualish_male_01.iff')
templates.add('object/mobile/shared_dressed_criminal_thug_aqualish_male_02.iff')
templates.add('object/mobile/shared_dressed_criminal_thug_bothan_female_01.iff')
templates.add('object/mobile/shared_dressed_criminal_thug_bothan_male_01.iff')
templates.add('object/mobile/shared_dressed_criminal_thug_human_female_01.iff')
templates.add('object/mobile/shared_dressed_criminal_thug_human_female_02.iff')
templates.add('object/mobile/shared_dressed_criminal_thug_human_male_01.iff')
templates.add('object/mobile/shared_dressed_criminal_thug_human_male_02.iff')
templates.add('object/mobile/shared_dressed_criminal_thug_rodian_female_01.iff')
templates.add('object/mobile/shared_dressed_criminal_thug_rodian_male_01.iff')
templates.add('object/mobile/shared_dressed_criminal_thug_trandoshan_female_01.iff')
templates.add('object/mobile/shared_dressed_criminal_thug_trandoshan_male_01.iff')
templates.add('object/mobile/shared_dressed_criminal_thug_zabrak_female_01.iff')
templates.add('object/mobile/shared_dressed_criminal_thug_zabrak_male_01.iff')
mobileTemplate.setTemplates(templates)
weaponTemplates = Vector()
weapontemplate = WeaponTemplate('object/weapon/ranged/pistol/shared_pistol_cdef.iff', WeaponType.PISTOL, 1.0, 15, 'energy')
weaponTemplates.add(weapontemplate)
mobileTemplate.setWeaponTemplateVector(weaponTemplates)
attacks = Vector()
mobileTemplate.setDefaultAttack('rangedShotpistol')
mobileTemplate.setAttacks(attacks)
core.spawnService.addMobileTemplate('valarian_hacker', mobileTemplate)
return
@@ -0,0 +1,38 @@
import sys
# Project SWG: Jabba TP Valarian Camp 2: Static Spawns
# (C)2014 ProjectSWG
from resources.datatables import Options
from resources.datatables import State
def addPlanetSpawns(core, planet):
stcSvc = core.staticService
objSvc = core.objectService
# TODO Check all NPCs for personalized scripting, change format.
stcSvc.spawnObject('valarian_hacker', 'tatooine', long(0), float(-5371.3), float(64.1), float(-6897.5), float(0), float(0), float(0), float(0), 45)
stcSvc.spawnObject('valarian_hacker', 'tatooine', long(0), float(-5372.5), float(64.3), float(-6902.4), float(0), float(0), float(0), float(0), 45)
bunker = core.objectService.getObject(long(-466404036467088174))
stcSvc.spawnObject('valarian_hacker', 'tatooine', bunker.getCellByCellNumber(2), float(-3.7), float(0.3), float(3.1), float(0), float(0), float(0), float(0), 45)
stcSvc.spawnObject('valarian_hacker', 'tatooine', bunker.getCellByCellNumber(3), float(3.8), float(-0.3), float(-4), float(0), float(0), float(0), float(0), 45)
stcSvc.spawnObject('valarian_hacker', 'tatooine', bunker.getCellByCellNumber(4), float(3.4), float(-3.3), float(4.8), float(0), float(0), float(0), float(0), 45)
stcSvc.spawnObject('valarian_hacker', 'tatooine', bunker.getCellByCellNumber(5), float(-2), float(-6.8), float(-8.7), float(0), float(0), float(0), float(0), 45)
stcSvc.spawnObject('valarian_hacker', 'tatooine', bunker.getCellByCellNumber(5), float(-7.4), float(-6.8), float(-1.6), float(0), float(0), float(0), float(0), 45)
stcSvc.spawnObject('valarian_hacker', 'tatooine', bunker.getCellByCellNumber(6), float(-7), float(-6.8), float(-14.5), float(0), float(0), float(0), float(0), 45)
stcSvc.spawnObject('valarian_hacker', 'tatooine', bunker.getCellByCellNumber(6), float(6.7), float(-6.8), float(-14.9), float(0), float(0), float(0), float(0), 45)
stcSvc.spawnObject('valarian_hacker', 'tatooine', bunker.getCellByCellNumber(7), float(5), float(-6.8), float(-1.8), float(0), float(0), float(0), float(0), 45)
stcSvc.spawnObject('valarian_hacker', 'tatooine', bunker.getCellByCellNumber(8), float(-2), float(-13.8), float(8.1), float(0), float(0), float(0), float(0), 45)
stcSvc.spawnObject('valarian_hacker', 'tatooine', bunker.getCellByCellNumber(9), float(1.5), float(-13.8), float(-3.9), float(0), float(0), float(0), float(0), 45)
stcSvc.spawnObject('valarian_hacker', 'tatooine', bunker.getCellByCellNumber(9), float(-6.7), float(-13.8), float(-15.1), float(0), float(0), float(0), float(0), 45)
stcSvc.spawnObject('valarian_hacker', 'tatooine', bunker.getCellByCellNumber(9), float(2.7), float(-13.8), float(-11.9), float(0), float(0), float(0), float(0), 45)
return