Files
dsrc/sku.0/sys.server/compiled/game/script/library/trainerlocs.java
T
TekaohandGitHub 5c2e112349 Java 11.0.2 migration (#32)
* Code compiles - execution NOT tested

* updating gitignore

* Removed intellij settings files

* Removed more intellij files

* Added exclusion for JDK classes.

* Fixed purchasing script for vendors that have listed coin types.

* Updated script to not kick off until the entire preload is complete.

* adds static name entry for Solo movie poster and tcg9 vendor entry

* clean up empty and orphaned object templates

* adds placeholder black market (static) spawns

* corrects entries for the video game table to correctly set it in tcg series 2 and remove series 1 console errors

* Updated gitignore and removed intellij project files

* Fixed appearance reference for thranta payroll and kashyyyk door, added skipLosCheck objvar due to cannit see issue. Requires updated src

* Fixed appearance and template for terminal (#2)

* Fixed appearance and template for terminal (#3)

* Fixed appearance and template for terminal (#4)

* Deleted another faulty/orphaned object template

* Fixed gcw ranks option on frog. Only issue is that it doesn't award the officer commands or badges.

* Fixed some unneeded java 11 changes
2019-04-18 18:31:52 -05:00

113 lines
4.1 KiB
Java
Executable File

package script.library;
import script.location;
import script.obj_id;
import script.string_id;
public class trainerlocs extends script.base_script
{
public trainerlocs()
{
}
public static obj_id getTrehlaKeeloLocation(obj_id player, String profession, String track) throws InterruptedException
{
location targetLoc = new location();
targetLoc.area = track;
String waypName = "Trehla Keelo";
targetLoc.x = 3484.0f;
targetLoc.y = 0.0f;
targetLoc.z = -4808.0f;
obj_id wayp = createWaypointInDatapad(player, targetLoc);
String playerArea = getLocation(player).area;
if (playerArea != null && playerArea.equals(targetLoc.area))
{
setWaypointActive(wayp, true);
}
setWaypointName(wayp, waypName);
return wayp;
}
public static obj_id getTrainerLocationWaypoint(obj_id player, String profession, String track) throws InterruptedException
{
location targetLoc = new location();
targetLoc.area = track;
String waypName;
switch (track) {
case "naboo":
switch (profession) {
case "imperial":
targetLoc.x = 5182.0f;
targetLoc.y = -192.0f;
targetLoc.z = 6750.0f;
waypName = "barn_sinkko";
break;
case "rebel":
targetLoc.x = 4767.0f;
targetLoc.y = 4.22f;
targetLoc.z = -4812.0f;
waypName = "v3_fx";
break;
default:
targetLoc.x = -5495.0f;
targetLoc.y = 14.00f;
targetLoc.z = 4476.0f;
waypName = "dinge";
break;
}
break;
case "corellia":
switch (profession) {
case "imperial":
targetLoc.x = -2184.0f;
targetLoc.y = 20.0f;
targetLoc.z = 2273.0f;
targetLoc.area = "talus";
waypName = "hakassha_sireen";
break;
case "rebel":
targetLoc.x = -5170.0f;
targetLoc.y = 21.00f;
targetLoc.z = -2295.0f;
waypName = "kreezo";
break;
default:
targetLoc.x = -275.0f;
targetLoc.y = 28.0f;
targetLoc.z = -4695.0f;
waypName = "rhea";
break;
}
break;
default:
switch (profession) {
case "imperial":
targetLoc.x = -1132.0f;
targetLoc.y = 13.32f;
targetLoc.z = -3542.0f;
waypName = "akal_colzet";
break;
case "rebel":
targetLoc.x = -2991.0f;
targetLoc.y = 5.0f;
targetLoc.z = 2123.0f;
waypName = "da_la_socuna";
break;
default:
targetLoc.x = 3381.0f;
targetLoc.y = 5.0f;
targetLoc.z = -4799.0f;
waypName = "dravis";
break;
}
break;
}
obj_id wayp = createWaypointInDatapad(player, targetLoc);
String playerArea = getLocation(player).area;
if (playerArea != null && playerArea.equals(targetLoc.area))
{
setWaypointActive(wayp, true);
}
setWaypointName(wayp, utils.packStringId(new string_id("npc_spawner_n", waypName)));
return wayp;
}
}