mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-12 02:13:48 -04:00
Fixed #621, added missing sys message for tracking droids, fixed bounties db null error & wp null error
This commit is contained in:
@@ -9,6 +9,10 @@ def run(core, actor, target, commandString):
|
||||
return
|
||||
waypointTarget = core.objectService.getObject(target.getObjectID())
|
||||
wp = playerObject.getWaypointFromList(target)
|
||||
|
||||
if wp is None:
|
||||
return
|
||||
|
||||
if wp.isActive() == True:
|
||||
wp.setActive(False)
|
||||
playerObject.waypointUpdate(wp)
|
||||
|
||||
@@ -289,7 +289,7 @@ public class BountyMissionObjective extends MissionObjective {
|
||||
return;
|
||||
} else {
|
||||
|
||||
if (updates.get() >= 5) {
|
||||
if (updates.get() >= 6) {
|
||||
actor.sendSystemMessage("@mission/mission_generic:target_track_lost", DisplayType.Broadcast);
|
||||
cancelLocationUpdates();
|
||||
return;
|
||||
@@ -306,12 +306,12 @@ public class BountyMissionObjective extends MissionObjective {
|
||||
waypoint.setPlanetCRC(CRC.StringtoCRC(target.getPlanet().getName()));
|
||||
waypoint.setStringAttribute("", "");
|
||||
getMissionObject().setAttachedWaypoint(waypoint);
|
||||
actor.sendSystemMessage("@mission/mission_generic:target_location_updated_ground", DisplayType.Broadcast);
|
||||
} else {
|
||||
missionWp.setPosition(target.getWorldPosition());
|
||||
mission.setAttachedWaypoint(missionWp);
|
||||
actor.sendSystemMessage("@mission/mission_generic:target_location_updated_ground", DisplayType.Broadcast);
|
||||
}
|
||||
actor.sendSystemMessage("@mission/mission_generic:target_location_updated_ground", DisplayType.Broadcast);
|
||||
actor.sendSystemMessage("@mission/mission_generic:target_continue_tracking", DisplayType.Broadcast);
|
||||
updates.getAndIncrement();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -179,7 +179,7 @@ public class TangibleObject extends SWGObject implements Serializable {
|
||||
this.customization = customization;
|
||||
}
|
||||
|
||||
notifyObservers(messageBuilder.buildCustomizationDelta(customization), false);
|
||||
notifyObservers(messageBuilder.buildCustomizationDelta(customization), true);
|
||||
}
|
||||
|
||||
public List<Integer> getComponentCustomizations() {
|
||||
|
||||
@@ -585,7 +585,8 @@ public class MissionService implements INetworkDispatch {
|
||||
ODBCursor cursor = bountiesODB.getCursor();
|
||||
while(cursor.hasNext()) {
|
||||
BountyListItem bounty = (BountyListItem) cursor.next();
|
||||
if (!core.characterService.playerExists(bounty.getObjectId())) {
|
||||
|
||||
if (bounty != null && !core.characterService.playerExists(bounty.getObjectId())) {
|
||||
bounties.add(bounty);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user