add set user level command generating tool

This commit is contained in:
Justin Clark-Casey
2014-06-07 01:41:42 +01:00
parent 066c1febd8
commit a89867e2ea
2 changed files with 19 additions and 0 deletions
@@ -0,0 +1,4 @@
README
Another very basic script to generate a bunch of set user level lines for pasting
into an OpenSimulator ROBUST console. One use is to diable bots used for load testing.
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/python
from sys import argv
if len(argv) != 5:
print "Usage: %s <first-name> <last-name-stub> <new-level> <no-of-bots>" % argv[0]
exit(-1)
firstName = argv[1]
lastNameStub = argv[2]
newLevel = argv[3]
botCount = int(argv[4])
for i in range(botCount):
print "set user level %s %s_%s %s" % (firstName, lastNameStub, i, newLevel)