Default Cyborg

Post new topic   Reply to topic Scripting Resources View previous topic :: View next topic  
Author Message
Scotsman
Site Admin


Joined: 03 Aug 2004
Posts: 705
Location: MadWolf Software

PostPosted: Sun Mar 05, 2006 11:17 pm    Post subject: Default Cyborg Reply with quote

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
View user's profile Send private message Visit poster's website
Setalia



Joined: 04 Sep 2004
Posts: 50

PostPosted: Sun Mar 05, 2006 11:37 pm    Post subject: Reply with quote

Excellent, thanks. Now once I comment out the devil, fire, and police bits, I'll be good to go.

-Ami Mercury
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic All times are GMT - 6 Hours
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum