Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- listen(integer channel, string name, key sender_uuid, string message)
- {
- //llSay(0,message);
- if(message!="Next Page" && message!="Prev Page")
- {
- llListenRemove(glisten);
- url="https://fractaledimages.000webhostapp.com/Nes/"+message+".html";
- // llSetClickAction(CLICK_ACTION_PAY);
- // llSay(0,"Please Pay the Game 1 L$ for 5 Minutes of PlayTime.");
- llSay(0,"loading: "+message);
- llSetPrimMediaParams( face,[ PRIM_MEDIA_CURRENT_URL,url,
- PRIM_MEDIA_AUTO_PLAY ,TRUE,
- PRIM_MEDIA_PERMS_INTERACT ,PRIM_MEDIA_PERM_ANYONE ,
- PRIM_MEDIA_PERMS_CONTROL ,PRIM_MEDIA_PERM_OWNER ,
- PRIM_MEDIA_AUTO_PLAY,TRUE,
- PRIM_MEDIA_FIRST_CLICK_INTERACT,FALSE,
- PRIM_MEDIA_HOME_URL,url,
- PRIM_MEDIA_AUTO_ZOOM,TRUE
- ] );
- llSetClickAction(CLICK_ACTION_NONE);
- // time=5;
- llSleep(10);
- llSay(0,"Touch screen to start playing, controls are arrow keys and z=a button, x=b button, enter=start, tab=select");
- }
- if (message=="Next Page")
- {
- if (page< maxpage)
- {
- page=page+1;
- }
- else
- {
- page=0;
- }
- diag=[];
- diag=["Prev Page"];
- diag+=llList2List(games,page*10,page*10+10);
- diag= llListReplaceList(diag,["Next Page"],11,11);
- llDialog( sitter," Select A Game", diag, 8 );
- }
- if (message=="Prev Page")
- {
- if (page>0)
- {
- page=page-1;
- }
- else
- {
- page=maxpage;
- }
- diag=[];
- diag=["Prev Page"];
- diag+=llList2List(games,page*10,page*10+10);
- diag= llListReplaceList(diag,["Next Page"],11,11);
- llDialog( sitter," Select A Game", diag, 8 );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement