WhiteTigers
12-31-2004, 03:44 PM
ON ENTER {
"If you want someones avatar whisper 'take to them, if your not willing to give an avatar out put on one you do" LOCALMSG
}
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
}
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
}
But, one thing is.
To make it work you'll need to ask your host to add "Take 262" Thats just an example give him the room id, of the room you want to be the Take Av Room.
"If you want someones avatar whisper 'take to them, if your not willing to give an avatar out put on one you do" LOCALMSG
}
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
}
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
}
But, one thing is.
To make it work you'll need to ask your host to add "Take 262" Thats just an example give him the room id, of the room you want to be the Take Av Room.