Your Ad Here

 

      Second Messenger ™      

 
Index
  Home
News
Blog
Forum
Snapshots
Camping
Download
About
 
 Camping Bench :: 2852 users since March 2008.

Camp bench script:

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
	try:
		number=message[ (message.index(": '")+3) : message.index("' from ") ]
		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
 

©2008 by Roberto Rocco Angeloni. All rights reserved.
Second Life® and Linden Lab® are registered trademarks of Linden Research, Inc. No infringement is intended.