From 9db2c03dcff2b82cacc9bbfad64b1f69b50ccbf0 Mon Sep 17 00:00:00 2001 From: tacef Date: Sun, 15 Jun 2014 21:09:45 +0200 Subject: [PATCH] More NPC Work Populated Jem Lavar place outside Darklighter cave --- scripts/mobiles/tatooine/gunrunner1.py | 1 + .../static_spawns/tatooine/jem_lavar_place.py | 36 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 scripts/static_spawns/tatooine/jem_lavar_place.py diff --git a/scripts/mobiles/tatooine/gunrunner1.py b/scripts/mobiles/tatooine/gunrunner1.py index c306089f..94ec84fb 100644 --- a/scripts/mobiles/tatooine/gunrunner1.py +++ b/scripts/mobiles/tatooine/gunrunner1.py @@ -21,6 +21,7 @@ def addTemplate(core): mobileTemplate.setSocialGroup("mercenary") mobileTemplate.setAssistRange(0) mobileTemplate.setStalker(False) + mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE + Options.ATTACKABLE) templates = Vector() templates.add('object/mobile/shared_dressed_tatooine_gunrunner.iff') diff --git a/scripts/static_spawns/tatooine/jem_lavar_place.py b/scripts/static_spawns/tatooine/jem_lavar_place.py new file mode 100644 index 00000000..4af6f2f3 --- /dev/null +++ b/scripts/static_spawns/tatooine/jem_lavar_place.py @@ -0,0 +1,36 @@ +import sys +# Project SWG: Jem Levar Place Spawn +# (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. + + jem = stcSvc.spawnObject('object/mobile/shared_dressed_legacy_lavar.iff', 'tatooine', long(0), float(-487.6), float(43.7), float(-7119.5), float(0), float(0)) + jem.setCustomName('Jem Lavar') + jem.setOptionsBitmask(256) + + #gunrunners + + stcSvc.spawnObject('gunrunner_1', 'tatooine', long(0), float(-483), float(42.7), float(-7107), float(0), float(0), float(0), float(0), 45) + stcSvc.spawnObject('gunrunner_1', 'tatooine', long(0), float(-475), float(42), float(-7106), float(0), float(0), float(0), float(0), 45) + stcSvc.spawnObject('gunrunner_1', 'tatooine', long(0), float(-466), float(41.4), float(-7101), float(0), float(0), float(0), float(0), 45) + stcSvc.spawnObject('gunrunner_1', 'tatooine', long(0), float(-476), float(42.9), float(-7119), float(0), float(0), float(0), float(0), 45) + stcSvc.spawnObject('gunrunner_1', 'tatooine', long(0), float(-477), float(43.7), float(-7129), float(0), float(0), float(0), float(0), 45) + stcSvc.spawnObject('gunrunner_1', 'tatooine', long(0), float(-490), float(45.7), float(-7134), float(0), float(0), float(0), float(0), 45) + stcSvc.spawnObject('gunrunner_1', 'tatooine', long(0), float(-495), float(44.3), float(-7124), float(0), float(0), float(0), float(0), 45) + stcSvc.spawnObject('gunrunner_1', 'tatooine', long(0), float(-505), float(47.1), float(-7119), float(0), float(0), float(0), float(0), 45) + stcSvc.spawnObject('gunrunner_1', 'tatooine', long(0), float(-507), float(44.7), float(-7100), float(0), float(0), float(0), float(0), 45) + stcSvc.spawnObject('gunrunner_1', 'tatooine', long(0), float(-494), float(43.9), float(-7108), float(0), float(0), float(0), float(0), 45) + + return +