Go Back   The Palace Avatar Chat Community Forums. > Palace Builders Palace Users > Scripting Help

Scripting Help Iptscrae et omni potentum, Scripting is all powerfull. So here you can ask for Help with your scripting problems.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-30-2009, 04:50 PM
Palace User
 
Join Date: Dec 2008
Posts: 1
Rep Power: 0
scriptbuilder is on a distinguished road
Icon2 Roomscript to give diff. Avs to diff. ppl in a room

i'd like to beg for some help. I have a script, i think it can be useful, but it should be overworked to work properly.
I'd like to give different ppl in a room e.g. max. 10 diff. but special Avs by typing e.g. av1 - av10 and whisper to the person(s), i want to dress with one of the 10 Avs. The following script includes a "take"-function, which is NOT needed.
I only want to dress visitors or want to change the av on 1 visitor (using e.g. max 10 SETPROPS lines in that roomscript for the special Avs to paste in).

ON OUTCHAT {
{ " " space = "" props =
{
{ "" space = } i 1 + NBRUSERPROPS == IF
props i USERPROP ITOA & space & props =
i ++
} { i NBRUSERPROPS < } WHILE
";give " props & WHOTARGET PRIVATEMSG
{ "You have to whisper" LOCALMSG } WHOTARGET NOT IF
"" CHATSTR =
} CHATSTR "give" == IF
{ "You have to whisper" LOCALMSG "" CHATSTR =
} CHATSTR "take" == WHOTARGET NOT AND IF
{ "" CHATSTR = } CHATSTR "^;give(.*)" GREPSTR IF
}
ON INCHAT {
av GLOBAL
{ "$1" GREPSUB P=
"[ " P & " ] SETPROPS" & STRTOATOM EXEC
} CHATSTR "^;give (.*)" GREPSTR av AND IF
{ av GLOBAL 1 av = { av GLOBAL 0 av = } 120 ALARMEXEC
{ " " space = "" props =
{
{ "" space= } i 1+ NBRUSERPROPS == IF
props i USERPROP ITOA & space & props =
i++
} { i NBRUSERPROPS < } WHILE
";give " props & WHOCHAT PRIVATEMSG
} WHOCHAT WHOME <> IF
} CHATSTR "take" == IF
}

Pally world needs entertainment and visitors should have fun - sometimes with special avs, they don't have in their own bags, Please help here...

.
Reply With Quote
  #2 (permalink)  
Old 02-09-2009, 06:18 PM
maarten's Avatar
Palace Planet Founder
 
Join Date: Oct 2002
Location: DiGiLaNd
Posts: 1,169
Rep Power: 10
maarten is on a distinguished road
Well I'm no scripter so all I can say is you can use the plugall plugin to dress people, but off course this only works if you have a Linux Palace Server so I guess that might be useless advice :)
__________________
Please don't ask me for help in private, use the USER QUESTIONS forum if you need help.
Reply With Quote
Reply

Tags
avs, dress, give, script
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
download
03-21-2011 11:20 AM
by maarten
User Questions
Palace for Mac OS 10.6?
03-13-2011 09:39 AM
by pawnipt
User Questions
Server
03-07-2011 04:52 PM
by satinrose
User Questions
Return room Script
02-24-2011 12:07 AM
by jaela
Room Scripts
Releasing source code
02-17-2011 09:19 AM
by Sman™
Developers Forum
Website spammers
01-26-2011 08:48 PM
by maarten
The Planet: Palace News
Online Users: 74
4 members and 70 guests
ADUSAPAHENSUT, BletriemeJext, SuekWequemokS, VeraFlorsewal
Most users ever online was 1,010, 06-27-2007 at 11:45 PM.
Stats
Members: 5,112
Threads: 1,141
Posts: 4,004
Top Poster: maarten (1,169)
Welcome to our newest member, cliffymayers


All times are GMT +2. The time now is 11:16 PM.


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