This is the script for automatically answer to Camp Master.
To use it
- copy the code below
- click on the 'Python' tab on SM
- copy the code on the upper section of the tab
- click the 'Execute' button.
Now you can login to the Camp Master with the procedure described in Camp Master
def OnScriptDialog(message,objectName,objectID,firstName,lastName,chatChannel,buttons):
print "message:",message
print "objectName:",objectName
print "objectID:",objectID
print "firstName:",firstName
print "lastName:",lastName
print "chatChannel:",chatChannel
print "buttons:",buttons
print dir(buttons)
try:
number=message[ (message.index(":")+2) : ]
print "number: '%s'" % number
i = buttons.index(number)
print "Replying: %s-%s" % (i,buttons[i])
PyClient.ReplyScriptDialog(objectID,chatChannel,i,buttons[i])
return True
except Exception, e:
print "Exception:",e
return False


Second Messenger ™ 
