Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- integer linknr;
- integer notecardLine;
- key notecardQueryId;
- string notecardName = "NotecardColors";
- say(string inputString)
- {
- llSay(0,inputString);
- }
- default
- {
- touch_end(integer integer_num)
- {
- linknr = llDetectedLinkNumber(0);
- llSay(0,(string)linknr + llGetLinkName(linknr));
- notecardQueryId = llGetNotecardLine(notecardName, notecardLine);
- }
- dataserver(key query_id, string data)
- {
- if (query_id == notecardQueryId)
- {
- if(linknr == 6)
- {
- integer Index = llSubStringIndex(data, "=");
- data = llGetSubString(data,Index+1,-1);
- if (data == "Orange")
- say((string)data);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement