mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-02 03:15:52 -04:00
58 lines
3.3 KiB
Python
58 lines
3.3 KiB
Python
import sys
|
|
from engine.resources.scene import Point3D
|
|
from resources.common import MathUtilities
|
|
|
|
def setup():
|
|
return
|
|
|
|
def run(core, actor, target, commandString):
|
|
|
|
#actor.sendSystemMessage('CellNumber: ' + str(actor.getContainer().getObjectID()), 0)
|
|
actor.sendSystemMessage('x: ' + str(actor.getPosition().x) , 0)
|
|
actor.sendSystemMessage('y: ' + str(actor.getPosition().y) , 0)
|
|
actor.sendSystemMessage('z: ' + str(actor.getPosition().z) , 0)
|
|
actor.sendSystemMessage('qy: ' + str(actor.getOrientation().y) , 0)
|
|
actor.sendSystemMessage('qw: ' + str(actor.getOrientation().w) , 0)
|
|
actor.sendSystemMessage('targetID: ' + str(actor.getTargetId()) , 0) # 200336
|
|
|
|
stcSvc = core.staticService
|
|
#hunter1 = stcSvc.spawnObject('force_sensitive_crypt_crawler', 'dantooine', long(8535484), float(26), float(-41), float(-68), float(2.77), float(1.82))
|
|
#hunter2 = stcSvc.spawnObject('untrained_wielder_of_the_dark_side', 'dantooine', long(8535484), float(23), float(-41), float(-65), float(1.52), float(2.94))
|
|
#hunter3 = stcSvc.spawnObject('untrained_wielder_of_the_dark_side', 'dantooine', long(8535484), float(47), float(-48), float(-65), float(0.72), float(-0.68))
|
|
#hunter4 = stcSvc.spawnObject('untrained_wielder_of_the_dark_side', 'dantooine', long(8535484), float(49.12), float(-47.48), float(-13.41), float(1), float(-0.05))
|
|
#hunter5 = stcSvc.spawnObject('dark_force_crystal_hunter', 'dantooine', long(8535485), float(93.10), float(-61.87), float(-14.25), float(-0.7), float(0.7))
|
|
#hunter6 = stcSvc.spawnObject('force_sensitive_crypt_crawler', 'dantooine', long(8535485), float(62.2), float(-69.0), float(-37.8), float(0.68), float(0.72))
|
|
#hunter7 = stcSvc.spawnObject('dark_force_crystal_hunter', 'dantooine', long(8535484), float(52.14), float(-67.8), float(-42.9), float(0.51), float(0.86))
|
|
#hunter8 = stcSvc.spawnObject('force_sensitive_crypt_crawler', 'dantooine', long(8535486), float(84.94), float(-77.09), float(-63.28), float(-0.19), float(0.98))
|
|
#hunter9 = stcSvc.spawnObject('force_sensitive_crypt_crawler', 'dantooine', long(8535486), float(65.30), float(-76.16), float(-70.15), float(0.38), float(0.92))
|
|
#hunter10 = stcSvc.spawnObject('untrained_wielder_of_the_dark_side', 'dantooine', long(8535486), float(65.636), float(-76.87), float(-81.40), float(-0.123), float(0.99))
|
|
#hunter11 = stcSvc.spawnObject('dark_force_crystal_hunter', 'dantooine', long(8535487), float(80.34), float(-77.29), float(-92.77), float(-0.2), float(0.97))
|
|
#hunter12 = stcSvc.spawnObject('dark_force_crystal_hunter', 'dantooine', long(8535487), float(80.34), float(-77.29), float(-92.77), float(-0.2), float(0.97))
|
|
|
|
objSvc = core.objectService
|
|
#magSeal1 = objSvc.getObject(200336-1);
|
|
magSeal1 = objSvc.getObject(200335);
|
|
actor.sendSystemMessage('getTemplate: ' + magSeal1.getTemplate() , 0) # 200336
|
|
lootPoolNames_1 = ['Junk']
|
|
lootPoolChances_1 = [100]
|
|
lootGroupChance_1 = 90
|
|
magSeal1.addToLootGroups(lootPoolNames_1,lootPoolChances_1,lootGroupChance_1)
|
|
|
|
#magSeal1Inv = magSeal1.getSlottedObject("inventory");
|
|
#lotSvc.getContainerContent()
|
|
#magSeal1Inv.
|
|
|
|
|
|
|
|
lotSvc = core.lootService
|
|
lotSvc.handleContainer(actor,200336,'Junk','dantooine')
|
|
|
|
|
|
if actor.getPosture() == 13 or actor.getPosture() == 14:
|
|
return
|
|
|
|
actor.setPosture(1)
|
|
actor.setSpeedMultiplierBase(0)
|
|
actor.setTurnRadius(0)
|
|
return
|
|
|