Added a frog building outside of Mos Espa near West Shuttleport - spawns on server startup with 1 frog

Removed frog from Mos Eisley
Added "New Frog" option for GMs on CBT
Added addToFrogAdminList argument for setGodMode for GMs - allows GMs to
put down items inside the frog building (ie more frogs!)
This commit is contained in:
Waverunner
2014-07-13 14:21:17 -04:00
parent 71f66c0556
commit 02d03e2caa
5 changed files with 53 additions and 8 deletions
+17 -2
View File
@@ -50,9 +50,9 @@ def run(core, actor, target, commandString):
core.playerService.grantLevel(actor, int(arg1))
elif command == 'setSpeed' and arg1:
actor.sendSystemMessage('Your speed was ' + str(actor.getSpeedMultiplierBase()) + '. Don\'t forget to set this back or it\'ll permanently imbalance your speed. Default without buffs or mods is 1.', 2)
#actor.sendSystemMessage("Your speed was " + str(actor.getSpeedMultiplierBase()) + ". Don\'t forget to set this back or it\'ll permanently imbalance your speed. Default without buffs or mods is 1.", 2)
actor.setSpeedMultiplierBase(float(arg1))
actor.sendSystemMessage('Your new speed is ' + str(actor.getSpeedMultiplierBase()) + '.', 2)
actor.sendSystemMessage('Your new speed is ' + arg1 + '.', 2)
elif command == 'teleport' and arg2 and arg3 and arg4:
position = Point3D(float(arg2), float(arg3), float(arg4))
@@ -146,10 +146,15 @@ def run(core, actor, target, commandString):
planetName = actor.getPlanet().getName()
actor.sendSystemMessage('Position.x : %s' % pos.x, 0)
print ('Position.x : %s' % pos.x, 0)
actor.sendSystemMessage('Position.y : %s' % pos.y, 0)
print ('Position.y : %s' % pos.y, 0)
actor.sendSystemMessage('Position.z : %s' % pos.z, 0)
print ('Position.z : %s' % pos.z, 0)
actor.sendSystemMessage('Orientation.y : %s' % ori.y, 0)
print ('Orientation.y : %s' % ori.y, 0)
actor.sendSystemMessage('Orientation.w : %s' % ori.w, 0)
print ('Orientation.w : %s' % ori.w, 0)
if (actor.getContainer()):
cid = actor.getContainer().getObjectID()
cellid = cid
@@ -185,4 +190,14 @@ def run(core, actor, target, commandString):
playerObject.setCurrentRank(int(arg1))
print (playerObject.getCurrentRank())
return
elif command == 'addToFrogAdminList':
frogBuilding = core.objectService.getObject(core.devService.getFrogBuildingId())
if frogBuilding is None:
return
frogBuilding.addPlayerToAdminList(None, actor.getObjectID(), actor.getCustomName().split(' ')[0])
actor.sendSystemMessage('You were added to the Admin list for the Frog Building.', 0)
return
return
+1 -1
View File
@@ -10,7 +10,7 @@ def addPlanetSpawns(core, planet):
########################################################
stcSvc = core.staticService
# Blue Frog: Uncomment only when needed for testing.
stcSvc.spawnObject('object/tangible/terminal/shared_terminal_character_builder.iff', 'tatooine', long(0), float(3525), float(4), float(-4801), float(0.70), float(0.71))
#stcSvc.spawnObject('object/tangible/terminal/shared_terminal_character_builder.iff', 'tatooine', long(0), float(3525), float(4), float(-4801), float(0.70), float(0.71))
########################################################
# DO NOT ADD ANYTHING ELSE TO THIS SCRIPT, PLEASE USE THE