Linden Script 99 Bottle Of Beer


SUBMITTED BY: Guest

DATE: Jan. 17, 2013, 3:44 a.m.

FORMAT: Text only

SIZE: 1.0 kB

HITS: 1153

  1. Found online, sharing out for my Second Life Friends.
  2. integer bottles = 99;
  3. default
  4. {
  5. state_entry()
  6. {
  7. llSetObjectName("99 Bottles Of Beer");
  8. llSay(0, "99 Bottle of Beer on the Wall - mnmnk");
  9. }
  10. touch_start(integer total_number)
  11. {
  12. while ( bottles > 0 )
  13. {
  14. llSay(0, (string)bottles+ " bottles of beer on the wall,");
  15. llSay(0, (string)bottles+" bottles of beer.");
  16. llSay(0,"Take one down, pass it around,");
  17. --bottles;
  18. if(bottles == 0)
  19. {
  20. llSay(0, "No More Beer On the Wall....");
  21. llSay(0, "Go to the store and buy some more,99 bottles of beer on the wall");
  22. }
  23. else
  24. {
  25. llSay(0, (string)bottles+" bottles of beer on the wall.");
  26. }
  27. }
  28. }
  29. }

comments powered by Disqus