i have changed one of the scripts of the wiki library and it functions a bit different than i wanted, but i have no idea why..
integer chat;
integer chan=0;
string avName;
key avKey;
integer avListen;
integer key_chan;
integer die_chan = -942;
integer key_rem_chan = -133;
on_rez(integer start_param) {
rPos = llGetPos();
key_chan = start_param;
llListen(die_chan, "", "", ""

avListen = llListen(key_chan, "", "", ""

chat=llListen(chan, "", "", ""

}
listen(integer c, string n, key id, string msg) {
if (c == die_chan)
llDie();
else if (c==key_chan){
avKey = (key) msg;
llSensorRepeat("", avKey, AGENT, 96, PI, 1.0);
llListenRemove(avListen);
}
else if (avKey=id){ //when the specific avatar says sth on channel 0
if (c==chan)
{string said=msg;
llSetText(said, <1, 0, 1 >, 1);
llListenRemove(chat);
and so on... the problem is that also i have defined the key in the third part of the listen event just for the avatar the ball is rezzed to, it sets the text over the ball when some other avatar says something, too..maybe the balls are getting mixed up.. have no idea..
perhaps the script has somewhere something wrong and u can help me, thnks ,
pari