Created goto command and added player spawns to qa recovery tool

This commit is contained in:
Obique PSWG
2015-10-03 20:19:28 -05:00
parent b04025c12d
commit 4cec3383c2
11 changed files with 254 additions and 71 deletions
+10 -4
View File
@@ -303,10 +303,16 @@ public class ObjectManager extends Manager {
private void processObjectTeleportIntent(ObjectTeleportIntent oti) {
SWGObject object = oti.getObject();
if (object instanceof CreatureObject && object.getOwner() != null){
objectAwareness.move(object, oti.getNewLocation());
sendPacket(object.getOwner(), new CmdStartScene(false, object.getObjectId(), ((CreatureObject)object).getRace(), object.getLocation(), (long)(ProjectSWG.getCoreTime()/1E3)));
object.createObject(object.getOwner());
if (object instanceof CreatureObject && object.getOwner() != null) {
Packet startScene = new CmdStartScene(false, object.getObjectId(), ((CreatureObject)object).getRace(), oti.getNewLocation(), (long)(ProjectSWG.getCoreTime()/1E3));
if (oti.getParent() != null) {
objectAwareness.move(object, oti.getParent(), oti.getNewLocation());
sendPacket(object.getOwner(), startScene);
} else {
objectAwareness.move(object, oti.getNewLocation());
sendPacket(object.getOwner(), startScene);
object.createObject(object.getOwner());
}
new PlayerEventIntent(object.getOwner(), PlayerEvent.PE_ZONE_IN).broadcast();
} else {
object.setLocation(oti.getNewLocation());