Files
dsrc/sku.0/sys.server/compiled/game/script/library/prose.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

306 lines
11 KiB
Java
Executable File

package script.library;
import script.obj_id;
import script.prose_package;
import script.string_id;
public class prose extends script.base_script
{
public prose()
{
}
public static prose_package setStringId(prose_package pp, string_id strSpam) throws InterruptedException
{
pp.stringId = strSpam;
return pp;
}
public static prose_package setTT(prose_package pp, String strTarget) throws InterruptedException
{
pp.target.set(strTarget);
return pp;
}
public static prose_package setTT(prose_package pp, obj_id objTarget) throws InterruptedException
{
pp.target.set(objTarget);
return pp;
}
public static prose_package setTT(prose_package pp, string_id strTarget) throws InterruptedException
{
pp.target.set(strTarget);
return pp;
}
public static prose_package setTU(prose_package pp, String strTarget) throws InterruptedException
{
pp.actor.set(strTarget);
return pp;
}
public static prose_package setTU(prose_package pp, obj_id objTarget) throws InterruptedException
{
pp.actor.set(objTarget);
return pp;
}
public static prose_package setTU(prose_package pp, string_id strTarget) throws InterruptedException
{
pp.actor.set(strTarget);
return pp;
}
public static prose_package setTO(prose_package pp, String strTarget) throws InterruptedException
{
pp.other.set(strTarget);
return pp;
}
public static prose_package setTO(prose_package pp, obj_id objTarget) throws InterruptedException
{
pp.other.set(objTarget);
return pp;
}
public static prose_package setTO(prose_package pp, string_id strTarget) throws InterruptedException
{
pp.other.set(strTarget);
return pp;
}
public static prose_package setDI(prose_package pp, int intTest) throws InterruptedException
{
pp.digitInteger = intTest;
return pp;
}
public static prose_package setDF(prose_package pp, float fltTest) throws InterruptedException
{
pp.digitFloat = fltTest;
return pp;
}
public static prose_package getPackage(string_id sid) throws InterruptedException
{
prose_package pp = new prose_package();
pp.stringId = sid;
return pp;
}
public static prose_package getPackage(string_id sid, obj_id actor, String actorString, string_id actorStringId, obj_id target, String targetString, string_id targetStringId, obj_id other, String otherString, string_id otherStringId, int di, float df) throws InterruptedException
{
if (actorString != null && !actorString.equals(""))
{
actorStringId = null;
}
if (targetString != null && !targetString.equals(""))
{
targetStringId = null;
}
prose_package pp = new prose_package();
pp.stringId = sid;
pp.actor.set(actor, actorStringId, actorString);
pp.target.set(target, targetStringId, targetString);
pp.other.set(other, otherStringId, otherString);
pp.digitInteger = di;
pp.digitFloat = df;
return pp;
}
public static prose_package getPackage(string_id sid, obj_id actor, obj_id target, obj_id other, int di) throws InterruptedException
{
prose_package pp = new prose_package();
pp.stringId = sid;
if (actor != null)
{
pp.actor.set(actor);
}
if (target != null)
{
pp.target.set(target);
}
if (other != null)
{
pp.other.set(other);
}
pp.digitInteger = di;
return pp;
}
public static prose_package getPackage(string_id sid, obj_id actor, obj_id target, obj_id other) throws InterruptedException
{
return getPackage(sid, actor, target, other, 0);
}
public static prose_package getPackage(string_id sid, obj_id actor, obj_id target, string_id other, int di) throws InterruptedException
{
prose_package pp = new prose_package();
pp.stringId = sid;
if (actor != null)
{
pp.actor.set(actor);
}
if (target != null)
{
pp.target.set(target);
}
pp.other.set(other);
pp.digitInteger = di;
return pp;
}
public static prose_package getPackage(string_id sid, obj_id actor, obj_id target, string_id other) throws InterruptedException
{
return getPackage(sid, actor, target, other, 0);
}
public static prose_package getPackage(string_id sid, obj_id target, string_id other) throws InterruptedException
{
return getPackage(sid, null, target, other, 0);
}
public static prose_package getPackage(string_id sid, obj_id actor, obj_id target, String other, int di) throws InterruptedException
{
prose_package pp = new prose_package();
pp.stringId = sid;
if (actor != null)
{
pp.actor.set(actor);
}
if (target != null)
{
pp.target.set(target);
}
pp.other.set(other);
pp.digitInteger = di;
return pp;
}
public static prose_package getPackage(string_id sid, obj_id actor, obj_id target, String other) throws InterruptedException
{
return getPackage(sid, actor, target, other, 0);
}
public static prose_package getPackage(string_id sid, obj_id target, String other) throws InterruptedException
{
return getPackage(sid, null, target, other, 0);
}
public static prose_package getPackage(string_id sid, obj_id actor, obj_id target, int di) throws InterruptedException
{
prose_package pp = new prose_package();
pp.stringId = sid;
if (actor != null)
{
pp.actor.set(actor);
}
if (target != null)
{
pp.target.set(target);
}
pp.digitInteger = di;
return pp;
}
public static prose_package getPackage(string_id sid, obj_id actor, obj_id target) throws InterruptedException
{
return getPackage(sid, actor, target, 0);
}
public static prose_package getPackage(string_id sid, obj_id target) throws InterruptedException
{
return getPackage(sid, null, target, 0);
}
public static prose_package getPackage(string_id sid, obj_id target, int di) throws InterruptedException
{
return getPackage(sid, null, target, di);
}
public static prose_package getPackage(string_id sid, string_id other, int di, float df) throws InterruptedException
{
prose_package pp = new prose_package();
pp.stringId = sid;
pp.other.set(other);
pp.digitInteger = di;
pp.digitFloat = df;
return pp;
}
public static prose_package getPackage(string_id sid, string_id other) throws InterruptedException
{
return getPackage(sid, other, 0, 0.0f);
}
public static prose_package getPackage(string_id sid, string_id other, int di) throws InterruptedException
{
return getPackage(sid, other, di, 0.0f);
}
public static prose_package getPackage(string_id sid, string_id other, float df) throws InterruptedException
{
return getPackage(sid, other, 0, df);
}
public static prose_package getPackage(string_id sid, string_id target, string_id other, int di) throws InterruptedException
{
prose_package pp = new prose_package();
pp.stringId = sid;
pp.target.set(target);
pp.other.set(other);
pp.digitInteger = di;
return pp;
}
public static prose_package getPackage(string_id sid, string_id target, string_id other) throws InterruptedException
{
return getPackage(sid, target, other, 0);
}
public static prose_package getPackage(string_id sid, string_id target, String other, int di) throws InterruptedException
{
prose_package pp = new prose_package();
pp.stringId = sid;
pp.target.set(target);
pp.other.set(other);
pp.digitInteger = di;
return pp;
}
public static prose_package getPackage(string_id sid, string_id target, String other) throws InterruptedException
{
return getPackage(sid, target, other, 0);
}
public static prose_package getPackage(string_id sid, String other, int di, float df) throws InterruptedException
{
prose_package pp = new prose_package();
pp.stringId = sid;
pp.other.set(other);
pp.digitInteger = di;
pp.digitFloat = df;
return pp;
}
public static prose_package getPackage(string_id sid, String other) throws InterruptedException
{
return getPackage(sid, other, 0, 0.0f);
}
public static prose_package getPackage(string_id sid, String other, int di) throws InterruptedException
{
return getPackage(sid, other, di, 0.0f);
}
public static prose_package getPackage(string_id sid, String other, float df) throws InterruptedException
{
return getPackage(sid, other, 0, df);
}
public static prose_package getPackage(string_id sid, int di, float df) throws InterruptedException
{
prose_package pp = new prose_package();
pp.stringId = sid;
pp.digitInteger = di;
pp.digitFloat = df;
return pp;
}
public static prose_package getPackage(string_id sid, int di) throws InterruptedException
{
return getPackage(sid, di, 0.0f);
}
public static prose_package getPackage(string_id sid, float df) throws InterruptedException
{
return getPackage(sid, 0, df);
}
public static prose_package getPackage(string_id sid, String target, String other) throws InterruptedException
{
prose_package pp = new prose_package();
pp.stringId = sid;
pp.target.set(target);
pp.other.set(other);
return pp;
}
public static prose_package getPackage(string_id sid, String target, String other, int di) throws InterruptedException
{
prose_package pp = new prose_package();
pp.stringId = sid;
pp.target.set(target);
pp.other.set(other);
pp.digitInteger = di;
return pp;
}
public static prose_package getPackage(string_id sid, String target, String other, String actor) throws InterruptedException
{
prose_package pp = new prose_package();
pp.stringId = sid;
pp.target.set(target);
pp.other.set(other);
pp.actor.set(actor);
return pp;
}
}