Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- integer CHANNEL_ASK = -120003;
- integer CHANNEL_RESPOND = -120004;
- string QUESTION = "ping";
- string RESPONSE = "pong";
- default
- {
- state_entry(){
- llListen(CHANNEL_ASK, "",NULL_KEY,QUESTION);
- llListen(CHANNEL_RESPOND,"",NULL_KEY,RESPONSE);
- }
- touch_start(integer total_number){
- llRegionSay(CHANNEL_ASK,QUESTION);
- }
- listen(integer channel, string name, key id, string message){
- if(channel == CHANNEL_ASK && llGetAttached())
- llRegionSay(CHANNEL_RESPOND, RESPONSE);
- else if(channel == CHANNEL_RESPOND){
- string owner_name = llKey2Name(llGetOwnerKey(id));
- llOwnerSay(owner_name + " is wearing the item");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement