Default prop on connect

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:36 pm    Post subject: Default prop on connect Reply with quote

This bit of code will put a prop on you on connect. Change <username> to your username, and <propid> to the desired prop. You can have multiple default props based on user name if you wish by duplicating those two lines and changing as appropriate.

The default cyborg has a command "list props" built in to give the prop id's of the props you are wearing.
Code:
#----------------------------------------------------------------------------
# SignOn event
#
def mnr_signon():
    id = manor.myID()
    if manor.getUserName(id) == "<username>":
        manor.donProp("<propid>")
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