Jump to content

I am going mad or something is wrong with these scripts


Gregory McLeod
 Share

You are about to reply to a thread that has been inactive for 3661 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Two prims won't talk to each other. They will respond to external chat but not their own.

PRIM 1

integer ComChannel = 99;
integer listenHandle;
default
{
    state_entry()
    {
        llOwnerSay("Hello, Avatar!");
        llOwnerSay("I am Prim 1.");
        listenHandle = llListen(ComChannel, "", llGetOwner(), "");
    }

    touch_start(integer total_number)
    {
        llOwnerSay("Touched.");
        llOwnerSay("I am Prim 1.");
        llWhisper(ComChannel,"test from Prim 1.");
    }
    
    listen(integer channel, string name, key id, string message)
    {
        llOwnerSay("Message received on\n" + (string)channel + "\n" + name + "\n" + (string)id + "\n" + message);
    }
}

 and PRIM 2

integer ComChannel = 99;
integer listenHandle;
default
{
    state_entry()
    {
        llOwnerSay("Hello, Avatar!");
        llOwnerSay("I am Prim 2.");
        listenHandle = llListen(ComChannel, "", llGetOwner(), "");
    }

    touch_start(integer total_number)
    {
        llOwnerSay("Touched.");
        llOwnerSay("I am Prim 2.");
        llWhisper(ComChannel,"test from Prim 2.");
    }
    
    listen(integer channel, string name, key id, string message)
    {
        llOwnerSay("Message received on\n" + (string)channel + "\n" + name + "\n" + (string)id + "\n" + message);
    }
}

 What have I done wrong?

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3661 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...