mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-30 15:13:10 -04:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -13,6 +13,9 @@ def run(core, actor, target, commandString):
|
||||
|
||||
object = core.objectService.createObject(commandString, actor.getPlanet())
|
||||
|
||||
#object.setCustomizationVariable('/private/index_color_blade', 0x02)
|
||||
#object.setCustomizationVariable('private/alternate_shader_blade', 0x02)
|
||||
|
||||
if not object:
|
||||
return
|
||||
|
||||
|
||||
@@ -47,30 +47,30 @@ def run(core, actor, target, commandString):
|
||||
|
||||
if factionStatus == FactionStatus.OnLeave:
|
||||
actor.sendSystemMessage('@faction_recruiter:on_leave_to_covert', 0)
|
||||
actor.setPvpStatus(PvpStatus.GoingCovert, True)
|
||||
#actor.setPvpStatus(PvpStatus.GoingCovert, True)
|
||||
time.sleep(1)
|
||||
actor.setFactionStatus(FactionStatus.Combatant)
|
||||
actor.setPvpStatus(PvpStatus.GoingCovert, False)
|
||||
#actor.setPvpStatus(PvpStatus.GoingCovert, False)
|
||||
actor.sendSystemMessage('@faction_recruiter:covert_complete', 0)
|
||||
actor.updatePvpStatus()
|
||||
return
|
||||
|
||||
if factionStatus == FactionStatus.Combatant:
|
||||
actor.sendSystemMessage('@faction_recruiter:covert_to_overt', 0)
|
||||
actor.setPvpStatus(PvpStatus.GoingOvert, True)
|
||||
#actor.setPvpStatus(PvpStatus.GoingOvert, True)
|
||||
time.sleep(30)
|
||||
actor.setFactionStatus(FactionStatus.SpecialForces)
|
||||
actor.setPvpStatus(PvpStatus.GoingOvert, False)
|
||||
#actor.setPvpStatus(PvpStatus.GoingOvert, False)
|
||||
actor.sendSystemMessage('@faction_recruiter:overt_complete', 0)
|
||||
actor.updatePvpStatus()
|
||||
return
|
||||
|
||||
if factionStatus == FactionStatus.SpecialForces:
|
||||
actor.sendSystemMessage('@faction_recruiter:overt_to_covert', 0)
|
||||
actor.setPvpStatus(PvpStatus.GoingCovert, True)
|
||||
#actor.setPvpStatus(PvpStatus.GoingCovert, True)
|
||||
time.sleep(300)
|
||||
actor.setFactionStatus(FactionStatus.Combatant)
|
||||
actor.setPvpStatus(PvpStatus.GoingCovert, False)
|
||||
#actor.setPvpStatus(PvpStatus.GoingCovert, False)
|
||||
actor.sendSystemMessage('@faction_recruiter:covert_complete', 0)
|
||||
actor.updatePvpStatus()
|
||||
return
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
import sys
|
||||
from engine.resources.scene import Point3D
|
||||
from protocol.swg import CommPlayerMessage
|
||||
from protocol.swg.objectControllerObjects import ShowLootBox
|
||||
from protocol.swg import ObjControllerMessage
|
||||
from engine.resources.objects import SWGObject
|
||||
from jarray import array
|
||||
|
||||
def setup():
|
||||
return
|
||||
@@ -59,25 +56,11 @@ def run(core, actor, target, commandString):
|
||||
|
||||
elif command == 'changeBio' and arg1:
|
||||
actor.getSlottedObject('ghost').setBiography(arg1)
|
||||
|
||||
elif command == 'rewardMe':
|
||||
testObject = core.objectService.createObject('object/weapon/ranged/rifle/shared_rifle_t21.iff', actor.getPlanet())
|
||||
testObject.setCustomName('Crush4r')
|
||||
testObject.setStringAttribute('crafter', 'Wavescrub')
|
||||
dGun = core.objectService.createObject('object/weapon/ranged/rifle/shared_rifle_tc22_blaster.iff', actor.getPlanet())
|
||||
dGun.setCustomName('Supertoms Gun')
|
||||
dGun.setStringAttribute('crafter', 'Wavescrub')
|
||||
core.playerService.giveItems(actor, testObject, dGun)
|
||||
return
|
||||
|
||||
elif command == 'comm':
|
||||
comm = CommPlayerMessage(actor.getObjectId())
|
||||
actor.getClient().getSession().write(comm.serialize())
|
||||
|
||||
elif command == 'spawn' and arg1 and arg2:
|
||||
pos = actor.getWorldPosition()
|
||||
core.spawnService.spawnCreature(arg1, actor.getPlanet().getName(), 0, pos.x, pos.y, pos.z, 1, 0, 1, 0, int(arg2))
|
||||
|
||||
core.spawnService.spawnCreature(arg1, actor.getPlanet().getName(), 0, pos.x, pos.y, pos.z, 1, 0, 1, 0, int(arg2))
|
||||
elif command == 'instance' and arg1:
|
||||
core.instanceService.queue(arg1, actor)
|
||||
|
||||
@@ -89,5 +72,14 @@ def run(core, actor, target, commandString):
|
||||
|
||||
elif command == 'id':
|
||||
actor.sendSystemMessage('Your id is: ' + str(actor.getObjectId()), 0)
|
||||
|
||||
|
||||
elif command == 'stealth':
|
||||
if (actor.isInStealth()):
|
||||
actor.setInStealth(False)
|
||||
actor.setRadarVisible(True)
|
||||
actor.sendSystemMessage('You are now visible to other players.', 0)
|
||||
else:
|
||||
actor.setInStealth(True)
|
||||
actor.setRadarVisible(False)
|
||||
actor.sendSystemMessage('You are now hidden from players. "Stealth Effect" is not implemented, however players still won\'t be able to see you. Type /setgodmode stealth again to be visible.', 0)
|
||||
return
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
import sys
|
||||
from engine.resources.scene import Point3D
|
||||
|
||||
def setup():
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
|
||||
playerObject = actor.getSlottedObject('ghost')
|
||||
|
||||
if not playerObject:
|
||||
return
|
||||
|
||||
commandArgs = commandString.split(' ')
|
||||
if len(commandArgs) > 0:
|
||||
arg1 = commandArgs[0]
|
||||
if len(commandArgs) > 1:
|
||||
arg2 = commandArgs[1]
|
||||
if len(commandArgs) > 2:
|
||||
arg3 = commandArgs[2]
|
||||
if len(commandArgs) > 3:
|
||||
arg4 = commandArgs[3]
|
||||
|
||||
if arg1 and arg2 and arg3 and arg4 target:
|
||||
position = Point3D(float(arg2), float(arg3), float(arg4))
|
||||
core.simulationService.transferToPlanet(target, core.terrainService.getPlanetByName(arg1), position, actor.getOrientation(), None)
|
||||
|
||||
|
||||
return
|
||||
@@ -0,0 +1,26 @@
|
||||
import sys
|
||||
from services.spawn import MobileTemplate
|
||||
from java.util import Vector
|
||||
|
||||
def addTemplate(core):
|
||||
mobileTemplate = MobileTemplate()
|
||||
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)
|
||||
mobileTemplate.setLevel(90)
|
||||
mobileTemplate.setDifficulty(2)
|
||||
mobileTemplate.setCustomWeaponTemplate('object/weapon/melee/2h_sword/crafted_saber/shared_sword_lightsaber_two_handed_gen5.iff')
|
||||
attacks = Vector()
|
||||
mobileTemplate.setDefaultAttack('saberHit')
|
||||
mobileTemplate.setAttacks(attacks)
|
||||
mobileTemplate.setCreatureName('eow_dark_jedi_sentinel_uber')
|
||||
mobileTemplate.setAttackRange(6)
|
||||
core.spawnService.addMobileTemplate('jedi_master', mobileTemplate)
|
||||
|
||||
Reference in New Issue
Block a user