mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-12 02:13:48 -04:00
fixed giveitem
This commit is contained in:
@@ -4,6 +4,18 @@ def setup():
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
core.playerService.giveExperience(actor, 25000)
|
||||
return
|
||||
|
||||
|
||||
if not commandString.startswith('object/tangible') and not commandString.startswith('object/weapon'):
|
||||
return
|
||||
|
||||
object = core.objectService.createObject(commandString, actor.getPlanet())
|
||||
|
||||
if not object:
|
||||
return
|
||||
|
||||
inventory = actor.getSlottedObject('inventory')
|
||||
|
||||
if inventory:
|
||||
inventory.add(object)
|
||||
|
||||
return
|
||||
Reference in New Issue
Block a user