mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-13 03:13:26 -04:00
Merge branch 'master' of https://github.com/ProjectSWGCore/NGECore2
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
from resources.objects.creature import CreatureObject
|
||||
import sys
|
||||
|
||||
def setup():
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
actorFaction = actor.getFaction()
|
||||
actorStatus = actor.getFactionStatus()
|
||||
if commandString.startswith('imperial') and actorFaction != "imperial":
|
||||
actor.setFaction('imperial')
|
||||
return
|
||||
|
||||
if commandString.startswith('rebel') and actorFaction != "rebel":
|
||||
actor.setFaction('rebel')
|
||||
return
|
||||
|
||||
if actorStatus != 0 and actorStatus == 1:
|
||||
actor.setFactionStatus(2)
|
||||
actor.sendSystemMessage('@faction_recruiter:overt_complete', 0)
|
||||
return
|
||||
|
||||
if actorStatus == 2:
|
||||
actor.setFactionStatus(1)
|
||||
actor.sendSystemMessage('@faction_recruiter:covert_complete', 0)
|
||||
return
|
||||
return
|
||||
|
||||
@@ -109,6 +109,7 @@ public class SimulationService implements INetworkDispatch {
|
||||
core.commandService.registerCommand("giveitem");
|
||||
core.commandService.registerCommand("object");
|
||||
core.commandService.registerCommand("getattributesbatch");
|
||||
core.commandService.registerCommand("pvp");
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -79,12 +79,12 @@ public class SUIService implements INetworkDispatch {
|
||||
|
||||
if(target == null || owner == null)
|
||||
return;
|
||||
|
||||
|
||||
|
||||
core.scriptService.callScript("scripts/radial/", getRadialFilename(target), "createRadial", core, owner, target, request.getRadialOptions());
|
||||
if(getRadialFilename(target).equals("default"))
|
||||
return;
|
||||
|
||||
|
||||
sendRadial(owner, target, request.getRadialOptions(), request.getRadialCount());
|
||||
|
||||
}
|
||||
@@ -290,7 +290,30 @@ public class SUIService implements INetworkDispatch {
|
||||
return window;
|
||||
|
||||
}
|
||||
|
||||
public SUIWindow createInputBox(int type, String title, String promptText, SWGObject owner, SWGObject rangeObject, float maxDistance) {
|
||||
SUIWindow window = createSUIWindow("Script.inputBox", owner, rangeObject, maxDistance);
|
||||
|
||||
window.setProperty("bg.caption.lblTitle:Text", title);
|
||||
window.setProperty("Prompt.lblPrompt:Text", promptText);
|
||||
|
||||
switch(type) {
|
||||
case InputBoxType.INPUT_BOX_OK:
|
||||
window.setProperty("btnOk:visible", "True");
|
||||
window.setProperty("btnOk:Text", "@ok");
|
||||
window.setProperty("btnCancel:visible", "False");
|
||||
window.setProperty("cmbInput:visible", "False");
|
||||
break;
|
||||
case InputBoxType.INPUT_BOX_OK_CANCEL:
|
||||
window.setProperty("btnOk:visible", "True");
|
||||
window.setProperty("btnCancel:visible", "True");
|
||||
window.setProperty("btnCancel:Text", "@cancel");
|
||||
window.setProperty("btnOk:Text", "@ok");
|
||||
window.setProperty("cmbInput:visible", "False");
|
||||
}
|
||||
return window;
|
||||
}
|
||||
|
||||
public void closeSUIWindow(SWGObject owner, int id) {
|
||||
|
||||
if(owner.getClient() == null || owner.getClient().getSession() == null)
|
||||
|
||||
Reference in New Issue
Block a user