mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-08 23:12:57 -04:00
21 lines
518 B
Python
21 lines
518 B
Python
import sys
|
|
|
|
def setup():
|
|
return
|
|
|
|
def run(core, actor, target, commandString):
|
|
#print ('Command string: ' + commandString)
|
|
|
|
trvSvc = core.travelService
|
|
|
|
cmdArgs = commandString.split(" ")
|
|
|
|
departurePlanet = cmdArgs[0]
|
|
departureLoc = cmdArgs[1].replace("_"," ")
|
|
arrivalPlanet = cmdArgs[2]
|
|
arrivalLoc = cmdArgs[3].replace("_", " ")
|
|
# 4 int
|
|
# 5 int
|
|
trvSvc.purchaseTravelTicket(actor, departurePlanet, departureLoc, arrivalPlanet, arrivalLoc, '1')
|
|
|
|
return |