mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-02 17:12:58 -04:00
Refined the loot system
Added more py scripts for krayt pearls and junk Made system more flexible
This commit is contained in:
@@ -110,6 +110,16 @@ public class ScriptService {
|
||||
return func;
|
||||
}
|
||||
|
||||
public String fetchString(String path, String method) {
|
||||
PyObject result = core.scriptService.callScript(path, "", method);
|
||||
return ((PyObject)result).asString();
|
||||
}
|
||||
|
||||
public int fetchInteger(String path, String method) {
|
||||
PyObject result = core.scriptService.callScript(path, "", method);
|
||||
return ((PyObject)result).asInt();
|
||||
}
|
||||
|
||||
public Vector<String> fetchStringVector(String path, String method) {
|
||||
Vector<String> vector = new Vector<String>();
|
||||
PyObject result = core.scriptService.callScript(path, "", method);
|
||||
|
||||
Reference in New Issue
Block a user