Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. integer listen_id;
  2. default
  3. {
  4.  
  5. state_entry()
  6. {
  7. listen_id =llListen(0,"", NULL_KEY, "");
  8. llSetText("I AM SARA", <1,1,1>, 2.0);
  9. }
  10.  
  11. listen(integer channel, string name, key id, string message)
  12. {
  13. if (llToLower(message) == "hello sara")
  14. {
  15. llSay(0,"Hi, Thanks for comming to this training. \n I hope you do well. \n This is the office where I work. \n We had a bad fire last year and I almost died \n from smoke inhalation. \n Don't want that to happen again. I will see you inside.");
  16. vector pos = llGetPos();
  17. pos.y = pos.y - 1;
  18. llSetPos(pos);
  19. llListenRemove(listen_id) ;
  20. state other;
  21. }
  22. }
  23. }
  24. state other
  25. {
  26. touch_start(integer ng)
  27. {
  28. vector pos = llGetPos();
  29. pos.y = pos.y + 1;
  30. llSetPos(pos);
  31. llResetScript();
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement