Knowledgebase
Storm Palace Hosting
>
Storm Hosting Help Desk
>
Knowledgebase
Ask a question:
Loading knowledgebase suggestions...
Offer/Accept
Solution
The purpose of this script is to be able to swap props member to member without the use of allscray or having to drop props to the floor and picking them up. You wear what you want to "offer" and whisper offer to them. They, in turn, whisper back accept and are dressed in the prop you are wearing for them to save now.
;This goes at your gate
ON SIGNON
{
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 }
;this goes in all other rooms you want this to be available to members
ON OUTCHAT { offerOutScript GLOBAL offerOutScript EXEC }
ON INCHAT { offerInScript GLOBAL offerInScript EXEC }
Was this article helpful?
yes
/
no
Article details
Article ID:
227
Category:
Room Scripts
Date added:
07-11-2011 20:43:03
Views:
324
Rating (Votes):
(1)
<<
Go back
Powered by
Help Desk Software
HESK™