
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...
.