Advertisement
Guest User

Untitled

a guest
Jan 14th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. listen(integer channel, string name, key sender_uuid, string message)
  2.     {
  3.         //llSay(0,message);
  4.          if(message!="Next Page" && message!="Prev Page")
  5.         {  
  6.         llListenRemove(glisten);
  7.         url="https://fractaledimages.000webhostapp.com/Nes/"+message+".html";
  8.        // llSetClickAction(CLICK_ACTION_PAY);
  9.       //  llSay(0,"Please Pay the Game 1 L$ for 5 Minutes of PlayTime.");
  10.          llSay(0,"loading: "+message);
  11.           llSetPrimMediaParams( face,[ PRIM_MEDIA_CURRENT_URL,url,
  12.                                PRIM_MEDIA_AUTO_PLAY ,TRUE,
  13.                                PRIM_MEDIA_PERMS_INTERACT ,PRIM_MEDIA_PERM_ANYONE ,
  14.                                 PRIM_MEDIA_PERMS_CONTROL ,PRIM_MEDIA_PERM_OWNER ,
  15.                                 PRIM_MEDIA_AUTO_PLAY,TRUE,
  16.                                  PRIM_MEDIA_FIRST_CLICK_INTERACT,FALSE,
  17.                                   PRIM_MEDIA_HOME_URL,url,
  18.                                   PRIM_MEDIA_AUTO_ZOOM,TRUE
  19.                                   ] );
  20.         llSetClickAction(CLICK_ACTION_NONE);
  21.        // time=5;
  22.          llSleep(10);
  23.          llSay(0,"Touch screen to start playing, controls are arrow keys and z=a button, x=b button, enter=start, tab=select");
  24.         }
  25.         if (message=="Next Page")
  26.         {
  27.             if (page< maxpage)
  28.             {
  29.             page=page+1;
  30.             }
  31.             else
  32.             {
  33.                 page=0;
  34.             }
  35.             diag=[];
  36.             diag=["Prev Page"];
  37.            
  38.             diag+=llList2List(games,page*10,page*10+10);
  39.             diag= llListReplaceList(diag,["Next Page"],11,11);
  40.             llDialog( sitter," Select A Game", diag, 8 );
  41.         }
  42.          if (message=="Prev Page")
  43.         {
  44.             if (page>0)
  45.             {
  46.             page=page-1;
  47.             }
  48.             else
  49.             {
  50.                 page=maxpage;
  51.             }
  52.             diag=[];
  53.             diag=["Prev Page"];
  54.             diag+=llList2List(games,page*10,page*10+10);
  55.             diag= llListReplaceList(diag,["Next Page"],11,11);
  56.             llDialog( sitter," Select A Game", diag, 8 );
  57.         }
  58.      
  59.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement