Author |
Message |
Scotsman Site Admin
Joined: 03 Aug 2004 Posts: 705 Location: MadWolf Software
|
Posted: Sun Mar 05, 2006 11:17 pm Post subject: Default Cyborg |
|
|
Several have asked for the default cyborg code, so here it is:
Code: | import manor
#----------------------------------------------------------------------------
# OutChat event
#
def mnr_outchat(chatText):
if chatText == "list props":
propID = manor.getTopPropID()
while propID:
print propID
manor.doffProp()
propID = manor.getTopPropID()
chatText = ""
return chatText
#----------------------------------------------------------------------------
# InChat event
#
def mnr_inchat(userID, chatText):
if chatText == "you devil":
manor.clearProps()
manor.donProp("45AE90FE45AE90FE45AE90FE45AE90FE45AE90F2")
if chatText == "!FIRE":
manor.clearProps()
manor.donProp("45AE90FE45AE90FE45AE90FE45AE90FE45AE90F6")
if chatText == "!HELP, POLICE":
manor.clearProps()
manor.donProp("45AE90FE45AE90FE45AE90FE45AE90FE45AE90F4")
return chatText
|
|
|
Back to top |
|
|
Setalia
Joined: 04 Sep 2004 Posts: 50
|
Posted: Sun Mar 05, 2006 11:37 pm Post subject: |
|
|
Excellent, thanks. Now once I comment out the devil, fire, and police bits, I'll be good to go.
-Ami Mercury |
|
Back to top |
|
|
|