mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-12 22:45:31 -04:00
@@ -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");
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user