Go Back   The Palace Avatar Chat Community Forums. > Palace Builders Palace Users > Room Scripts

Room Scripts Use this forum for your room scripts, copy them or add them.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-27-2004, 12:04 PM
Palace User
 
Join Date: Aug 2004
Posts: 169
Rep Power: 6
complexity is on a distinguished road
Offer-Accept

;Almost all hosted palaces come with the offer and accept script because of the plugin (offer/accept), but a great script for a free palace server that doesnt support plugins.

To use: whisper offer


;This is the part that goes in a door at your gate

Quote: Originally Posted by
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 offer/accept to be available to members

Quote: Originally Posted by
ON OUTCHAT { offerOutScript GLOBAL offerOutScript EXEC }
ON INCHAT { offerInScript GLOBAL offerInScript EXEC }
__________________
www.palaceplanet.net

The formidable palace site.
Reply With Quote
  #2 (permalink)  
Old 11-29-2009, 02:07 PM
HarleQuiNN's Avatar
Palace User
 
Join Date: Jan 2006
Location: West Virginia
Posts: 14
Rep Power: 0
HarleQuiNN is on a distinguished road
Icon5 Need A PX Mod

I use the private palace server. I had no problems with this script originally.However I have noticed a few scripts including this one that does not work with PX or PalChat. If anyone would have a mod that fixes this problem it would be greatly appreachiated.


HarleQuinn AKA §}{.)v(oon£îgh†.]:§:[
-----------------------------------------------------------------------------------------
“A dreamer is one who can only find his way by moonlight, and his punishment is that he sees the dawn before the rest of the world.”
Reply With Quote
  #3 (permalink)  
Old 11-29-2009, 06:28 PM
maarten's Avatar
Palace Planet Founder
 
Join Date: Oct 2002
Location: DiGiLaNd
Posts: 1,123
Rep Power: 10
maarten is on a distinguished road
Do they offer IptScrae support these days? I remember both did not have IPTScrae a while ago. When I try the 4.0 palchat on my mac it does not have any support for IPtscrae Palace Scripts at all.
__________________
Please don't ask me for help in private, use the USER QUESTIONS forum if you need help.
Reply With Quote
Reply
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


The Latest Posts
Title, Username, & Date Last Post Forum
Sister Palace December Events
12-10-2009 06:20 PM
by ¥Wi£dFi®e¥©
Event announcements.
Linpal is working
12-06-2009 06:38 AM
by staticextasy
Planet Community
Random Disconnects..?
12-06-2009 04:46 AM
by Vagabond.01
User Questions
Buster Client Problem
12-05-2009 05:34 AM
by Fahima_NFE
User Questions
welcome palace
12-01-2009 05:48 AM
by Equalizer
Planet Community
Any client developments?
12-01-2009 02:37 AM
by theturtle32
Developers Forum
Online Users: 65
0 members and 65 guests
No Members online
Most users ever online was 1,010, 06-28-2007 at 12:45 AM.
Stats
Members: 2,675
Threads: 1,082
Posts: 3,850
Top Poster: maarten (1,123)
Welcome to our newest member, scottisabo


All times are GMT +2. The time now is 01:23 AM.


Powered by vBulletin
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0