mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-15 00:07:39 -04:00
Cleaned up Surveyservice
and give all survey tools from frog at once
This commit is contained in:
@@ -99,14 +99,7 @@ public class DevService implements INetworkDispatch {
|
||||
case 4: // [Items] Misc Items
|
||||
suiOptions.put((long) 40, "Unity Ring");
|
||||
case 5: // [Items] Tools
|
||||
suiOptions.put((long) 110, "Mineral Survey Device");
|
||||
suiOptions.put((long) 111, "Chemical Survey Device");
|
||||
suiOptions.put((long) 112, "Flora Survey Device");
|
||||
suiOptions.put((long) 113, "Gas Survey Device");
|
||||
suiOptions.put((long) 114, "Water Survey Device");
|
||||
suiOptions.put((long) 115, "Wind Survey Device");
|
||||
suiOptions.put((long) 116, "Solar Survey Device");
|
||||
suiOptions.put((long) 117, "Swoop");
|
||||
suiOptions.put((long) 110, "Survey Devices");
|
||||
}
|
||||
|
||||
final SUIWindow window = core.suiService.createListBox(ListBoxType.LIST_BOX_OK_CANCEL, "Character Builder Terminal", "Select the desired option and click OK.", suiOptions, creature, null, 10);
|
||||
@@ -309,47 +302,32 @@ public class DevService implements INetworkDispatch {
|
||||
SurveyTool mineralSurveyTool = (SurveyTool) core.objectService.createObject("object/tangible/survey_tool/shared_survey_tool_mineral.iff", planet);
|
||||
mineralSurveyTool.setCustomName("Mineral Survey Device");
|
||||
inventory.add(mineralSurveyTool);
|
||||
case 111:
|
||||
|
||||
SurveyTool chemicalSurveyTool = (SurveyTool) core.objectService.createObject("object/tangible/survey_tool/shared_survey_tool_inorganic.iff", planet);
|
||||
chemicalSurveyTool.setCustomName("Chemical Survey Device");
|
||||
inventory.add(chemicalSurveyTool);
|
||||
case 112:
|
||||
|
||||
SurveyTool floraSurveyTool = (SurveyTool) core.objectService.createObject("object/tangible/survey_tool/shared_survey_tool_lumber.iff", planet);
|
||||
floraSurveyTool.setCustomName("Flora Survey Device");
|
||||
inventory.add(floraSurveyTool);
|
||||
case 113:
|
||||
|
||||
SurveyTool gasSurveyTool = (SurveyTool) core.objectService.createObject("object/tangible/survey_tool/shared_survey_tool_gas.iff", planet);
|
||||
gasSurveyTool.setCustomName("Gas Survey Device");
|
||||
inventory.add(gasSurveyTool);
|
||||
case 114:
|
||||
|
||||
SurveyTool waterSurveyTool = (SurveyTool) core.objectService.createObject("object/tangible/survey_tool/shared_survey_tool_moisture.iff", planet);
|
||||
waterSurveyTool.setCustomName("Water Survey Device");
|
||||
inventory.add(waterSurveyTool);
|
||||
case 115:
|
||||
|
||||
SurveyTool windSurveyTool = (SurveyTool) core.objectService.createObject("object/tangible/survey_tool/shared_survey_tool_wind.iff", planet);
|
||||
windSurveyTool.setCustomName("Wind Survey Device");
|
||||
inventory.add(windSurveyTool);
|
||||
case 116:
|
||||
|
||||
SurveyTool solarSurveyTool = (SurveyTool) core.objectService.createObject("object/tangible/survey_tool/shared_survey_tool_solar.iff", planet);
|
||||
solarSurveyTool.setCustomName("Solar Survey Device");
|
||||
inventory.add(solarSurveyTool);
|
||||
case 117:
|
||||
// CreatureObject swoop = (CreatureObject) core.objectService.createObject("object/mobile/vehicle/shared_speederbike_swoop.iff", planet);
|
||||
// swoop.setCustomName("Swoop");
|
||||
// int resCRC = CRC.StringtoCRC("object/mobile/vehicle/shared_speederbike_swoop.iff");
|
||||
// SceneCreateObjectByCrc createObjectMsg = new SceneCreateObjectByCrc(swoop.getObjectID(), player.getOrientation().x, player.getOrientation().y, player.getOrientation().z, player.getOrientation().w, player.getPosition().x, player.getPosition().y, player.getPosition().z, resCRC, (byte) 0);
|
||||
// player.getClient().getSession().write(createObjectMsg.serialize());
|
||||
// services.resources.CharonPacketUtils.printAnalysis(createObjectMsg.serialize());
|
||||
// swoop.sendBaselines(player.getClient());
|
||||
// SceneEndBaselines sceneEndBaselinesMsg = new SceneEndBaselines(swoop.getObjectID());
|
||||
// player.getClient().getSession().write(sceneEndBaselinesMsg.serialize());
|
||||
// services.resources.CharonPacketUtils.printAnalysis(sceneEndBaselinesMsg.serialize());
|
||||
// System.out.println("SWOOP");
|
||||
// UpdateContainmentMessage updateContainmentMessage= new UpdateContainmentMessage(player.getObjectID(), swoop.getObjectID(), -1);
|
||||
// player.getClient().getSession().write(updateContainmentMessage.serialize());
|
||||
|
||||
TangibleObject deed = (TangibleObject) core.objectService.createObject("object/tangible/deed/vehicle_deed/shared_speederbike_swoop_deed.iff", planet);
|
||||
inventory.add(deed);
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user