Avatar Sharing Script (Offer/Accept)

 

Avatar Sharing Script (Offer/Accept)

If you dont know how this script works, just visit Mansion, Welcome or The Avatatr palace and have a friend whisper "offer" to you. You will recieve an offer of his current avatar, then when you say "accept" you will wear those props. The AvShare script allows you to do away with your old dressing room and make your whole palace av friendly ;)
 To Install, put this script in your gate:

ON ENTER
{
offeredAvatar GLOBAL
offerInScript GLOBAL
offerOutScript GLOBAL
{
offeredAvatar GLOBAL prps GLOBAL
{
"$1" GREPSUB prps =
{
"[ " prps & " ] SETPROPS" & offeredAvatar =
"@" WHOCHAT WHOPOS ITOA SWAP ITOA "," & SWAP & &
" You have been offered an avatar by " & WHOCHAT WHONAME &
". To accept it, type \"accept\"." & LOCALMSG
} prps ".* .* .* .* .* .* .* .* .* .*" GREPSTR NOT prps "-$" GREPSTR
NOT AND
prps "- " GREPSTR NOT AND prps ">$" GREPSTR NOT AND prps "> " GREPSTR
NOT AND
prps "<$" GREPSTR NOT AND prps "< " GREPSTR NOT AND WHOCHAT WHOME <> AND IF
"" CHATSTR =
} CHATSTR "^;avoffer [\[] ([0-9<>A-Fa-f -]+) [\]]" GREPSTR IF
} offerInScript DEF
{
offeredAvatar GLOBAL
{
{
{
0 i = ";avoffer [ "
{
i USERPROP ITOA & " " & i ++
} { i NBRUSERPROPS < } WHILE "]" & WHOTARGET PRIVATEMSG
} NBRUSERPROPS IF
}
{
"You have to whisper the offer." STATUSMSG
} WHOTARGET IFELSE
"" CHATSTR =
} CHATSTR "offer" == IF
{
"" CHATSTR = offeredAvatar STRTOATOM EXEC
} "accept" CHATSTR == "\"accept\"" CHATSTR == OR offeredAvatar "" <> AND IF
{
"" CHATSTR =
} CHATSTR "^;avoffer" GREPSTR IF
} offerOutScript DEF
}

ON OUTCHAT { offerOutScript GLOBAL offerOutScript EXEC }
ON INCHAT { offerInScript GLOBAL offerInScript EXEC }

 Then, in every room youd like the script to work in, add this script:
ON OUTCHAT { offerOutScript GLOBAL offerOutScript EXEC }
ON INCHAT { offerInScript GLOBAL offerInScript EXEC }
Thats all there is too it! Enjoy! = )
More from
Previous
Submit a story or news
Got anything to share? Palace related or just a personal view? Submit it as a story! Simply follow this link: http://www.palaceplanet.net/submit_story/index.html...
Palace Manuals and Guides
Palace Client Guides and Manuals Manuals go into every detail of Palace operations. Guides just give you a quick overview of the basics. HowTo: Client ...
Iptscrae Language Reference
This section is a reference to the Iptscrae language: * Data types * Event handlers * Commands and functions * Operators Iptscrae possesses over 100 specialized commands and keywords, as well as its own versions of many commonly-used operators and functions; each of these represents a wide range of interactive possibilities awaiting your imagination. ...
Quick Reference
The following table is a brief summary of the Iptscrae commands and their meanings. ...
Adding Machine Exercise
The following exercise provides a step-by-step look at the creation of a script called "Adding Machine," which performs addition problems. With this script in place, whenever you type in something like "673 plus 897" your avatar will say "673 plus 897 equals 1570", and at last your parents will see the point behind all that tuition ...
Code Limitations
This section describes the current Iptscrae implementation limits. No matter how cleverly you assign variable names and swap graphic elements, there are some data handling boundaries hard-coded into the software. In general, The Palace Viewer version of Iptscrae is limited only by the memory available in the browser, so these limits only apply to The Palace User Software clients for Windows and Macintosh. Note that client and server limites may override those noted below. ...
Iptscrae Index
Alphabetical Index Page of the Iptscrae manual...
image
Wizard Manual Contents
An overview of all available topics covered in the Wizards Manual....
image
Operators and Owners
Like most text-based chat systems and Internet MUDs (Multi-User Dimensions), The Palace software allows you to assign special powers to a select group of trusted users, making them "virtual authority figures" on your site. In Palace parlance, these individuals are known as operators and owners. This chapter has the following sections: * The Palace user hierarchy * Palace operators * Palace owners * Personal styles ...
image
The Operator's Interface
This section describes the advanced authoring features accessible by operators and owners via the Palace User Software interface: * Becoming an operator * Becoming an owner * Using the Operator menu * The Windows operator avatar pop-up menu ...
image
Operator and Owner Commands
The following section describes the syntax and function of all special commands available in operator mode: * Operator commands * Owner commands * The 'page command revisited ...
image
Being a Responsible Operator
This section contains a number of guidelines and discussions intended to help you "grow" your site and maintain a positive and effective reputation as a operator. Some of these guidelines suggest general attitudes and actions to be performed on a continual basis, while others are intended to help you recognize and deal with disruptive or abusive users, in specific circumstances. * Overview * Roles and responsibilities * Security functions * Authoring ...
image
Palace Design Tips & Techniques
This section describes various means of adding advanced functionality to your Palace site, and includes an examination of the limitations faced by Palace designers. * Using a new template * Authoring with The Palace Authoring Tool * Linking Palace sites and web sites * Palace limitations and workarounds ...
image
Adding A Server Monitor To A Web Page
Palace Server version 4.3.2, which shipped for Unix, Linux, and Windows NT platforms, shipped with a Server Monitor as part of the InstantPalace files. This small java applet should be run from a web server that is on the same machine as your Palace Server. The Server Monitor (also called PalaceServer Resource Center) has a red and green light that shows whether your server is running. It also displays how many people are on your server, the server version, and the server capacity. ...
Next