Fixed an error in the setgodmode command

This commit is contained in:
Seefo
2014-04-16 13:35:00 -04:00
parent b0a4204a49
commit 77bea7604e
2 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -6,8 +6,8 @@ def setup():
def run(core, actor, target, commandString):
##To do make it reset moodanimations when meditation is cancled.
if core.collectionService.isComplete(actor, 'inv_holocron_collection_02') is False:
return
# if core.collectionService.isComplete(actor, 'inv_holocron_collection_02') is False:
# return
if actor.getPosture() != 0x08:
actor.sendSystemMessage('You need to sit',0)
+3 -2
View File
@@ -57,14 +57,13 @@ def run(core, actor, target, commandString):
position = Point3D(float(arg3), float(arg4), float(arg5))
core.simulationService.transferToPlanet(player, core.terrainService.getPlanetByName(arg2), position, player.getOrientation(), None)
elif command == 'credits' and arg1:
actor.setCashCredits(actor.getCashCredits() + int(arg1))
actor.sendSystemMessage('The Galactic Empire has transferred ' + arg1 + ' credits to you for your service.', 0)
elif command == 'addability' and arg1:
actor.addAbility(str(arg1))
actor.sendSystemMessage('You have learned ' + arg1 + '')
actor.sendSystemMessage('You have learned ' + arg1 + '.', 0)
elif command == 'anim' and arg1:
actor.doSkillAnimation(arg1)
@@ -110,8 +109,10 @@ def run(core, actor, target, commandString):
playerObject.setHoloEmote('holoemote_' + arg1)
playerObject.setHoloEmoteUses(20)
actor.sendSystemMessage('Holo-Emote Generator set to ' + 'holoemote_' + arg1, 0)
elif command == 'off':
if playerObject.getGodLevel > 0:
actor.removeAbility("admin")
playerObject.setGodLevel(0)
return