palace://hidden.fastpalaces.com

Welcome Guest
Register | Log in

Home
 Lost Password
 Member List
 Gallery
 Reviews
 Glossary
 Events
 FAQ

Cool Stuff!
 GoogleMap
 TOPList
 GAMES
 SHOP
 
User Input!
 Submit Link
 Submit Event
 Submit Article

Quick Downloads
 PC 3.6 Client
 PC Client Upgrader
 Mac Client (OsX)
 Mac Client (os9)
 Mac Client fix
 PC Server

Online Guidelines
 What is the Palace
 How to get on Palace
 Picture to Avatar
 Kids Online safety
 Netiquette

for more guides click
manuals



members: 9720
guests online: 55
member online: 1


You are an anonymous user. You can register for free by clicking here




Subscribe to Palace
support Group



Vote for us!


Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
SilivrenionOffline
Post subject: Alternative abbreviated commands  PostPosted: Sep 02, 2005 - 03:03 PM



Joined: Sep 02, 2005
Posts: 7

Status: Offline
I noticed the abbreviated commands script a while down in the script list here, and I decided to share this little marvel..

Code:
;Quick Listing Script by Silivrenion
;Works with both ' and `
;Used to provide easier access to commands needing to be issued rapidly
;Syntax :: ['`]l [-kopw] <user>
 { 
    "" chatstr =
     data global
     "$1" grepsub data =
    {data global "'list" data & say } {data global "'list" data & whotarget privatemsg} whotarget 0 == ifelse
  }chatstr "^['`]l(.*)$" grepstr chatstr "list" substr not and if
;End Script


all the script does is convert 'l in a charstr to 'list ... this could however be modified to work with so many other commands too, making it completely scalable for your needs, for example..

Code:
;Quick NameGagging Script by Silivrenion
;Works with both ' and `
;Used to provide easier access to commands needing to be issued rapidly
;Syntax :: ['`]ng <user>
 { 
    "" chatstr =
     data global
     "$1" grepsub data =
    {data global "'namegag" data & say } {data global "'namegag" data & whotarget privatemsg} whotarget 0 == ifelse
  }chatstr "^['`]ng(.*)$" grepstr chatstr "namegag" substr not and if
;End Script


Only a few entries and you can completely change the function of it to do anything you want... a definite improvement over heavily using globals and complete on alarm events to something so easy.. Very Happy

another Digital Distillation Studios product thingy
 
 View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
©Palaceplanet 2000-2006