// Nabaztag simple script// Sends agent name and short message to your Nabaztag in real life// by Opensource Obscure - 15 feb 2008 - released under license: // Creative Commons Attribution 3.0 Unported - http://creativecommons.org/licenses/by/3.0// You have to customize these ones:string serial = "123"; // Your Nabaztag serial numberstring token = "456"; // Your Nabaztag token// You may want to customize ones:string settext = "Clicca e il Nabaztag pronuncera' in RL il tuo nome."; // Hover textstring message = "mi ha toccato."; // This is pronounced by the RL Nabaztag after the name of the residentstring answer = "Tra poco pronuncero' (in real life) il tuo nome."; // Sent via IM to the resident who touches// string message2 = " ha cliccato il Nabaztag."; // Sent via IM to the owner - (*) optional// Scriptkey http_request_id;string url_tiktok = "http://api.nabaztag.com/vl/FR/api.jsp?sn=";default{ state_entry() { llSetText(settext,<1,1,1>,1); } touch_start(integer total_number) { http_request_id = llHTTPRequest(url_tiktok + serial + "\&token=" + token + "\&tts=" + llDetectedName(0) + " " + message, [], ""); // llOwnerSay((string)llDetectedName(0) + message2); // (*) optional llInstantMessage(llDetectedKey(0), answer); } http_response(key request_id, integer status, list metadata, string body) { if (request_id == http_request_id) { // llOwnerSay(body); // Uncomment for debug } }}