Jump to content

Bent Luik

Resident
  • Posts

    85
  • Joined

Everything posted by Bent Luik

  1. In line 14 edited to say that I changed the frame texture in the script, so the texture UUID below is not the same as yours. float time = 30.0;integer DISPLAY_ON_SIDE = 5; //Change this to change where the image will be displayedinteger current_texture = 0; //Current texture number in inventory being displayed (picture mode)key BLANK = "5748decc-f629-461c-9a36-a35a221fe21f"; //Blank texture - Used when there are no textures to display in Picture modepictures() //Change mode to Picture Viewer{//Change prim to Light material while coloring face 0 black to prevent light-lag generation.vector height = llGetScale();llSetPrimitiveParams([PRIM_BUMP_SHINY,DISPLAY_ON_SIDE,PRIM_SHINY_NONE,PRIM_BUMP_NONE,PRIM_COLOR,DISPLAY_ON_SIDE,<0,0,0>,1.0,PRIM_MATERIAL,PRIM_MATERIAL_LIGHT]);llSetPrimitiveParams([PRIM_TYPE, PRIM_TYPE_BOX, PRIM_HOLE_SQUARE, <0.0, 1.0, 0.0>, 0.90, <0.0, 0.0, 0.0>, <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, PRIM_SIZE, <height.x, height.x * 0.020, height.x * 0.720>]);llSetColor(<0,0,0>,ALL_SIDES);llSetColor(<1,1,1>,3);llSetColor(<1,1,1>,5);llSetTexture(BLANK,ALL_SIDES);llScaleTexture(1, 1, ALL_SIDES);llScaleTexture(-4.400, 1.200, DISPLAY_ON_SIDE);llOffsetTexture(0.0, 0.0, ALL_SIDES);llOffsetTexture(-0.705, 0.000, DISPLAY_ON_SIDE);//Initilize variablescurrent_texture = 0;//Set to first texture if availableinteger check = llGetInventoryNumber(INVENTORY_TEXTURE);if(check > 0)display_texture(check);else{llSetObjectDesc("No pictures found.");llSetTexture(BLANK,DISPLAY_ON_SIDE);}}display_texture(integer check) //Display texture and set name in description (picture mode){ //"Check" holds the number of textures in contents. The function uses "current_texture" to display.string name = llGetInventoryName(INVENTORY_TEXTURE,current_texture);//llSay(0,(string)llGetInventoryKey(name));llSetTexture(name,DISPLAY_ON_SIDE);llSetObjectDesc("Showing picture: "+name+" ("+(string)(current_texture+1)+"/"+(string)check+")");}next() //Change to next texture (picture mode){ //This function is used twice - by the menu and timer. Therefor, it is a dedicated function.current_texture++;integer check = llGetInventoryNumber(INVENTORY_TEXTURE);if(check == 0){llSetTexture(BLANK,DISPLAY_ON_SIDE);current_texture = 0;llSetObjectDesc("No pictures found.");return;}if(check == current_texture)current_texture = 0;display_texture(check);return;} default{state_entry(){pictures();llSetTimerEvent(time);}touch_start(integer total_number){llSetTimerEvent(0.1);}timer(){next(); //Next picturellSetTimerEvent(time);}}
  2. Hi Aglaia, I would say that the result is more than ok. Great video and song. And you have a beautiful voice. Keep up the good work, but maybe a happier song next time :matte-motes-grin:
  3. I didn't say Qie was wrong, because he is right.:matte-motes-big-grin: I said the script rotate two faces, and it does one face at the time. About the lag, that is what i meant by "not a good script". I just tested it in a place with about 2800 scripts running. I had 10 objects with this script running and there was no change in any of the statistics numbers other than the usual, I did not try with more than 10 because I figured that no one would use more.
  4. This rotate two faces BUT not smooth. And I admit it is not a good script, maybe one of the real scripters can make a better cript for you. integer f=0;default{ state_entry() { llSetTimerEvent(0.01); } timer() { f=f+1; if (f ==1 ) {llSetTextureAnim(ANIM_ON | SMOOTH | ROTATE | LOOP, 1,1,1,0, TWO_PI, 0.1*TWO_PI);} if( f== 2) {llSetTextureAnim(ANIM_ON | SMOOTH | ROTATE | LOOP, 0,1,1,0, TWO_PI, 0.1*TWO_PI); f=0; }}}
  5. I am not sure that this is what you want, but it rotate a texture default{ state_entry() { llSetTextureAnim(ANIM_ON | SMOOTH | ROTATE | LOOP, ALL_SIDES,1,1,0, TWO_PI, *TWO_PI); } } edited to add: the number marked in blue is where you change the speed and, if you want to rotate the other way just put a - (minus) in front of the number, and i guess that you know that you can change all_sides with a face number.
  6. I think your first script would work fine if you just added one line with "llSleep". It will wait the time you set it for and even if someone else click it it won't work until the sleep time is over. Your script with the sleep line: default{ touch(integer num_detected) { key id = llDetectedKey(0); integer randomIndex = llGetInventoryNumber(INVENTORY_OBJECT); randomIndex = (integer)llFrand(randomIndex); string itemName = llGetInventoryName(INVENTORY_OBJECT,randomIndex); llGiveInventory(id, itemName); } }
  7. Derek Torvalar wrote: No one here has any 'rights'. "Participation on the community forums is a privilege, not a right." Debbi Linden Director, Customer Support Linden Lab In my opinion a privilege is a right granted, so by joining Sesond Life: Splatulated has been granted the right to participate in these forums, therefore he/she have the same right as everyone else in the Second life forums to ask questions, answer questions or even ramble on about whatever comes into mind. To those that get annoyed about the questions Splatulated asks, when you see a thread made by Splatulated just don't open it and move on to the next one OR open it and get annoyed in a really feel good way:smileywink:.
  8. It's been some time since i added L$ as payment on marketplace,it was when LL changed it so you can use real money. When you buy something on the marketplace for the first time or the first time after it was changed then you should get the option to choose what payment to use, there you should be able to select L$. But as i said it have been a while since i did it, i think it was over a year ago, so it may have changed again. I hope you can get it to work.
  9. If you haven't bought from the marketplace after they changed it some time ago, it will ask you to add payment method, the payment method if ask for is only for the MP. when MP ask for payment method just add L$ as payment method.
  10. This should do it default{ on_rez(integer start_param) { llResetScript(); } touch_start(integer total_number) { key other = "AV-key"; // the key of the one you want to get the message llGiveInventory(llDetectedKey(0), "LM name"); // the name of the LM llInstantMessage( llGetOwner(), "message" ); llInstantMessage( other, "message" ); }} Remember to put the LM in the object edited to add: If you don't know how to get an av key then just send me an im in world and I'll send you a key finder.
  11. Like Rolig i don't see any reason for the sleep part so i removed that. I made the script to only say welcome one time to each av until 50 avs have been on the mat, and you get a list of names when you click on the mat. Here is how i would make it: string Welcome = "Welcome to my humble abode";string Online = "Mat Online.";list av;add_avatar(string name) { if(!seen(name)) { av += name; if (llGetListLength(av) > 50) { av = llDeleteSubList(av,0,0); } }}integer seen(string name) { if(llListFindList(av,[name]) > -1) { return TRUE; } return FALSE;}default { state_entry() { llSay(0, Online); } collision_start(integer total_number) { if(!seen(llDetectedName(0))) { llInstantMessage(llDetectedKey(0), Welcome + " " + llDetectedName(0)); } add_avatar(llDetectedName(0)); } on_rez(integer start_param) { llResetScript(); } touch_start(integer total_number) { if(llDetectedKey(0)==llGetOwner()) { integer i; integer s = llGetListLength(av); do llOwnerSay ((llList2String(av,i))); while(s>++i); } integer navn = llGetListLength(av); llOwnerSay ("There are "+ (string) navn + " names on the list"); } } this is a fast made script, I would add more if it was for me to use :smileyhappy:
  12. Hi Nathan, i send you a script but i got a busy response, so if you didn't get the script just im me and i send it again :smileyhappy:
  13. I don't really care that much about my profile, so i won't download new browsers just to change my profile. But thanks for taking time to check it for me.:smileyhappy: And now I'll leave the internet for today, maybe it will be much better tomorrow. :smileyvery-happy:
  14. Well it won’t work for me, I tried I don’t know how many times and it is still the same as what dear Mr./Ms. Someone Linden set it to. So if this MyFaceTwits stuff keep getting more and more in Second Life I guess my SL days are numbered. @ Ceera Murakami. I use IE and Win Vista. @ Void Singer. That didn't help either, but thanks for your help :smileyhappy:
  15. Does anything work for other people, it don’t work for me. I get the profile but when I change anything in the Privacy tab ( I tried to set the feed to nobody) it change back next time I look, I don’t have a save button on the Privacy tab. And nothing on the Profile tab works.
  16. I guess that you are talking about AvaLine, if you are I don't think you can have other people answer it unless they are at your computer using your avatar.
×
×
  • Create New...