128bdc62-9af8-5b13-06ca-7354d923456d_script.lsl 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //
  2. // The line above should be left blank to avoid script errors in OpenSim.
  3. /*
  4. * Part of the Sloodle project (www.sloodle.org)
  5. *
  6. * Copyright (c) 2011-06 contributors (see below)
  7. * Released under the GNU GPL v3
  8. * -------------------------------------------
  9. *
  10. * This program is free software: you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation, either version 3 of the License, or
  13. * (at your option) any later version.
  14. *
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  22. *
  23. * All scripts must maintain this copyrite information, including the contributer information listed
  24. *
  25. * Contributors:
  26. * Paul Preibisch
  27. * Edmund Edgar
  28. *
  29. * DESCRIPTION
  30. */
  31. string view_url;
  32. string admin_url;
  33. string sloodleserverroot = "";
  34. string paramstr;
  35. integer SLOODLE_CHANNEL_OPEN_IN_BROWSER= -1639277000;
  36. default{
  37. on_rez(integer start_param) {
  38. llResetScript();
  39. }
  40. touch_start( integer total_number){
  41. integer j;
  42. for (j=0;j<total_number;j++){
  43. if (llDetectedKey(j)!=llGetOwner())return;
  44. llMessageLinked(LINK_ALL_OTHERS, SLOODLE_CHANNEL_OPEN_IN_BROWSER, "", llDetectedKey(j));
  45. }
  46. }
  47. }
  48. // Please leave the following line intact to show where the script lives in Git:
  49. // SLOODLE LSL Script Git Location: mod/scoreboard-1.0/objects/default/assets/btn_open_in_browser.lslp