mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-01 02:16:15 -04:00
23 lines
502 B
Python
23 lines
502 B
Python
import sys
|
|
|
|
def setup():
|
|
return
|
|
|
|
def run(core, actor, target, commandString):
|
|
parsedMsg = commandString.split(' ', 3)
|
|
objService = core.objectService
|
|
containerID = long(parsedMsg[1])
|
|
container = objService.getObject(containerID)
|
|
|
|
if target and container and target.getContainer():
|
|
oldContainer = target.getContainer()
|
|
|
|
if container == oldContainer:
|
|
print 'Error: New container is same as old container.'
|
|
return;
|
|
|
|
oldContainer.transferTo(actor, container, target)
|
|
|
|
return
|
|
|