mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-01 02:16:15 -04:00
36 lines
1.1 KiB
Python
36 lines
1.1 KiB
Python
from resources.common import Console
|
|
import sys
|
|
|
|
def setup():
|
|
return
|
|
|
|
def run(core, actor, target, commandString):
|
|
trvSvc = core.travelService
|
|
ticketList = trvSvc.getTicketList(actor)
|
|
nearestPoint = trvSvc.getNearestTravelPoint(actor)
|
|
|
|
#print (nearestPoint.getName())
|
|
|
|
if nearestPoint.isShuttleAvailable() is True:
|
|
|
|
if ticketList.size() >= 1:
|
|
trvSvc.sendTicketWindow(actor, target)
|
|
return
|
|
|
|
elif ticketList.isEmpty:
|
|
actor.sendSystemMessage('You do not have a ticket to board this shuttle.', 0)
|
|
return
|
|
|
|
return
|
|
elif nearestPoint.isShuttleLanding() is True:
|
|
actor.sendSystemMessage('The next shuttle is about to begin boarding.', 0)
|
|
return
|
|
else:
|
|
|
|
actor.sendSystemMessage('The next shuttle will arrive in 60 seconds.', 0)
|
|
#TODO: Counter for time when shuttle will arrive
|
|
return
|
|
return
|
|
# NOTE: In NGE video from Jan. 4th, 2010, ticket purchase window is shown with just 1 ticket and does not
|
|
# automatically transport the player.
|