mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-14 00:02:07 -04:00
/pvp imperial or /pvp rebel to claim a faction for now. (will be removed when NPCs in)
28 lines
817 B
Python
28 lines
817 B
Python
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
|
|
|