def addTemplate(core): mobileTemplate = MobileTemplate() mobileTemplate.setCreatureName('eow_dark_jedi_sentinel_uber') mobileTemplate.setLevel(90) mobileTemplate.setDifficulty(2) mobileTemplate.setAttackRange(6) templates = Vector() templates.add('object/mobile/shared_dressed_dark_jedi_master_female_twk_01.iff') templates.add('object/mobile/shared_dressed_dark_jedi_master_female_twk_02.iff') templates.add('object/mobile/shared_dressed_dark_jedi_master_female_zab_01.iff') templates.add('object/mobile/shared_dressed_dark_jedi_master_female_zab_02.iff') templates.add('object/mobile/shared_dressed_dark_jedi_master_male_human_01.iff') templates.add('object/mobile/shared_dressed_dark_jedi_master_male_human_04.iff') templates.add('object/mobile/shared_dressed_dark_jedi_master_male_human_05.iff') templates.add('object/mobile/shared_dressed_dark_jedi_master_male_human_06.iff') mobileTemplate.setTemplates(templates) weaponTemplates = Vector() weaponTemplates.add('object/weapon/melee/sword/crafted_saber/shared_sword_lightsaber_one_handed_gen5.iff') weaponTemplates.add('object/weapon/melee/2h_sword/crafted_saber/shared_sword_lightsaber_two_handed_gen5.iff') weaponTemplates.add('object/weapon/melee/polearm/crafted_saber/shared_sword_lightsaber_polearm_gen5.iff') mobileTemplate.setWeaponTemplates(weaponTemplates) attacks = Vector() mobileTemplate.setDefaultAttack('saberHit') mobileTemplate.setAttacks(attacks) core.spawnService.addMobileTemplate('jedi_master', mobileTemplate)
def addTemplate(core): mobileTemplate = MobileTemplate() mobileTemplate.setCreatureName('tusken_raider') 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_tusken.iff') mobileTemplate.setWeaponTemplates(weaponTemplates) attacks = Vector() mobileTemplate.setDefaultAttack('rangedShot') mobileTemplate.setAttacks(attacks) core.spawnService.addMobileTemplate('tusken_raider', mobileTemplate)