Advertisement
Gayngel

Untitled

Jan 24th, 2015
577
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. integer linknr;
  2. integer notecardLine;
  3. key notecardQueryId;
  4. string notecardName = "NotecardColors";
  5.  
  6.  
  7. say(string inputString)
  8. {
  9. llSay(0,inputString);
  10. }
  11.  
  12. default
  13. {
  14.  
  15.  
  16. touch_end(integer integer_num)
  17. {
  18. linknr = llDetectedLinkNumber(0);
  19. llSay(0,(string)linknr + llGetLinkName(linknr));
  20. notecardQueryId = llGetNotecardLine(notecardName, notecardLine);
  21.  
  22.  
  23.  
  24. }
  25.  
  26. dataserver(key query_id, string data)
  27. {
  28. if (query_id == notecardQueryId)
  29. {
  30.  
  31. if(linknr == 6)
  32. {
  33. integer Index = llSubStringIndex(data, "=");
  34. data = llGetSubString(data,Index+1,-1);
  35. if (data == "Orange")
  36. say((string)data);
  37. }
  38.  
  39. }
  40. }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement