Welcome, Guest |
You have to register before you can post on our site.
|
|
|
LPCC Full Store Rip |
Posted by: Femme - 02-19-2013, 02:03 AM - Forum: Commercial Structures
- Replies (3)
|
|
This store had a few displays but mostly motorcycle parts. If you build them this would be a great download for you. They also had a few other things like shutters, antlers, etc.
[To see links please register here]
|
|
|
Gravity Controller |
Posted by: deadpool - 02-19-2013, 01:49 AM - Forum: Avatar Augmentation Scripts
- No Replies
|
|
What is it?
A gadget to control your personal gravity, this effects how fast you fall, how high you can jump etc. This type of thing is used in RP areas often, from gliding graciously from roof tops to leaping entire regions. I’ve added an option for skydivers, enabling a quick boost into the heavens via the ‘Skydive’ option.
How-to/Info:
•Copy paste the script below into a new script inworld.
•Save it & then put the script into an object (if not there already).
•Shrink the object so it fits on your screen, wear it as a HuD attachment.
•Touch it to bring up the control menu.
•This does not have to be a HuD, you can wear it on the body.
PHP Code: //Do not sell this; Karma knowz where you live ☠ key User; key Owner; float Force; float Volume = 1.0; integer Channel; integer Handle; list Options = ["Moon","*Normal*","Heavy","Crush","Feather","Space","•>>","^-SkyDive-^","< <•","---","<<•>>","+++"]; Menu(){ Handle = llListen(Channel, "", Owner, ""); string Info = "\n*Select your desired level of Gravity; SkyDive will send you about 1000m up.\n*The +++ & --- options will increase or decrease your \"current\" gravity by a factor of 0.5\n\nNOTE>> Use the \"Normal\" option to restore normality =)"; llDialog(Owner, Info, Options, Channel); llSetTimerEvent(60.0); } default{ // state_entry(){ Owner = llGetOwner(); Channel = (integer)llFrand(DEBUG_CHANNEL) * -1; } // on_rez(integer total_number){ if (Owner != llGetOwner()){ llResetScript(); } } // touch_start(integer t){ User = llDetectedKey(0); if(User == Owner){ llMessageLinked(LINK_THIS, 0, "GRAVITY>>MENU",llGetOwner()); } } // link_message(integer sender, integer num, string str, key id){ if (str == "GRAVITY>>MENU"){ llSetObjectName("Gravity Control"); Menu(); } } // timer(){//Remove lag/listen after llSetTimerEvent llSetTimerEvent(0.0);//Dont want to keep stopping.. so we end the timer. llListenRemove(Handle);//& do what timer is here for; remove listen/lag. } // listen(integer channel, string name, key id, string message){ if (llListFindList(Options, [message]) != -1){ float Mass = llGetMass(); if(message == "+++"){ Force += 0.25; llTriggerSound("be0cd87b-ae95-2fb5-6250-dcdd4d2ce732",Volume); llSetForce(Mass*<0,0,Force>, TRUE); llOwnerSay("/me >> Gravity : " + (string)Force+" :"); Menu();//re-open the menu } else if(message == "---"){ Force -= 0.25; llTriggerSound("be0cd87b-ae95-2fb5-6250-dcdd4d2ce732",Volume); llSetForce(Mass*<0,0,Force>, TRUE); llOwnerSay("/me >> Gravity : " + (string)Force+" :"); Menu(); } else if(message == "Moon"){ Force = 6.5; llTriggerSound("be0cd87b-ae95-2fb5-6250-dcdd4d2ce732",Volume); llSetForce(Mass*<0,0,Force>, TRUE); llOwnerSay("/me >> Gravity : " + (string)Force+" :"); Menu(); } else if(message == "Heavy"){ Force = -9.8; llTriggerSound("be0cd87b-ae95-2fb5-6250-dcdd4d2ce732",Volume); llSetForce(Mass*<0,0,Force>, TRUE); llOwnerSay("/me >> Gravity : " + (string)Force+" :"); Menu(); } else if(message == "Feather"){ Force = 9.25; llTriggerSound("be0cd87b-ae95-2fb5-6250-dcdd4d2ce732",Volume); llSetForce(Mass*<0,0,Force>, TRUE); llOwnerSay("/me >> Gravity : " + (string)Force+" :"); Menu(); } else if(message == "Crush"){ Force = 2147483647.0; llTriggerSound("be0cd87b-ae95-2fb5-6250-dcdd4d2ce732",Volume); llSetForce(Mass*<0,0,-Force>, TRUE); llOwnerSay("/me >> Gravity : " + (string)Force+" :"); Menu(); } else if(message == "Space"){ Force = 9.8; llTriggerSound("be0cd87b-ae95-2fb5-6250-dcdd4d2ce732",Volume); llSetForce(Mass*<0,0,Force>, TRUE); llOwnerSay("/me >> Gravity : " + (string)Force+" :"); Menu(); } else if(message == "*Normal*"){ llTriggerSound("be0cd87b-ae95-2fb5-6250-dcdd4d2ce732",Volume); llSetForce(Mass*<0,0,0>, TRUE); llOwnerSay("/me >> Gravity : Normal (<0,0,0>) :"); } else if(message == "^-SkyDive-^"){ llTriggerSound("be0cd87b-ae95-2fb5-6250-dcdd4d2ce732",Volume); llSetForce(Mass*<0,0,2147483647.0>, TRUE); llOwnerSay("/me >> Gravity : SkyDive :"); llSleep(5.0); llTriggerSound("be0cd87b-ae95-2fb5-6250-dcdd4d2ce732",Volume); llSetForce(Mass*<0,0,0>, TRUE); llOwnerSay("/me >> Gravity : Restored :\n (Parachute on?..)"); llResetScript(); } } } // }
|
|
|
Portal Script |
Posted by: deadpool - 02-19-2013, 01:46 AM - Forum: Avatar Augmentation Scripts
- Replies (1)
|
|
How-to/Info:
•Copy paste the script below into a new script inworld.
•Save it & then put the script into two different objects.
•Pick up the two object and make sure they have different names.
•Rez both of the portals and then sit on one.
(It will delete the old portal if you rez one with the same name)
•System is using sitpos to ‘teleport’ user, so is limited by sitpos distances.
(300m normally, 520m by using a rotation trick which we use in this example;)
PHP Code: //•/•/•/•/•/•/•/Ð/A/M/E/N/•/H/A/X/•/•/•/•/•/•/•/•/•// //Do not sell this; Karma knowz where you live ☠ //I've changed this from the Original version by Shadoskill Heckroth //Extended range to 520m, modified effects key Owner; key Target = NULL_KEY; integer Channel = -5055505; integer Handle; rotation TargetRot; vector tPos = ZERO_VECTOR; vector offsetVector= <0.57735, 0.57735, 0.57735>; integer set = FALSE; string Animation; key SoundEffect = "be0cd87b-ae95-2fb5-6250-dcdd4d2ce732"; float Volume = 1.0;//0.00 to 1.00 //Made some particle values global, allowing us to change values then recall Particles(); function float pRadius = 1.25;//if using for eg; a 3m round shape, you will want particle 1/2 the size //so for my example @ 3m, i want particle radius slightly under 1.5, so fitting into the round shape vector pStartColor = <0.226,1.000,0.716>; vector pEndColor = <0.0,0.0,0.0>; Particles(){ llParticleSystem([ PSYS_PART_MAX_AGE, 2.0, PSYS_PART_FLAGS, 323, PSYS_PART_START_COLOR, pStartColor, PSYS_PART_END_COLOR, pEndColor, PSYS_PART_START_SCALE, <0.04, 0.04, FALSE>, PSYS_PART_END_SCALE, <1, 1, FALSE>, PSYS_SRC_PATTERN, 2, PSYS_SRC_BURST_RATE,0.001000, PSYS_SRC_ACCEL,<0.00000, 0.00000, 0.00000>, PSYS_SRC_BURST_PART_COUNT,99, PSYS_SRC_BURST_RADIUS,pRadius, PSYS_SRC_BURST_SPEED_MIN,0.100000, PSYS_SRC_BURST_SPEED_MAX,0.200000, PSYS_SRC_INNERANGLE,3.141593, PSYS_SRC_OUTERANGLE,6.283185, PSYS_SRC_OMEGA,<0.00000, 0.00000, 0.00000>, PSYS_SRC_MAX_AGE,0.000000, PSYS_PART_START_ALPHA,1.000000, PSYS_PART_END_ALPHA,0.000000, PSYS_SRC_TEXTURE, "", PSYS_SRC_TARGET_KEY,llGetKey() ]); } // rotation spin; vector data(vector offset){ spin = llRotBetween(offsetVector,llVecNorm(offset)); vector new = llVecMag(offset) * offsetVector; return new; } SetTarget(){ vector Pos = llGetPos(); vector oTarget = tPos + offsetVector; if(tPos.x > 0.0 && tPos.x < 256.0 && tPos.y > 0.0 && tPos.y < 256.0 && tPos.z > 0.0){ vector st = data((oTarget-llGetPos())/llGetRot()); if(llVecMag(st) < 519.615235){ llSitTarget(st,ZERO_ROTATION / spin); llOwnerSay( "/me : Position Locked : "); }else{ llOwnerSay("/me : Self-Deleting : Distance Limit = 520m"); llDie(); } }else{ llOwnerSay("/me : Self-Deleting : Portals are only functional if within the same region."); llDie(); } } // default{ // state_entry(){ Owner = llGetOwner(); Particles(); llSetSitText("Teleport"); Handle = llListen(Channel,"","",""); Animation = llGetInventoryName(INVENTORY_ANIMATION,0); llRegionSay(Channel, "Portal"); } // changed(integer change){ if(change & CHANGED_LINK){llTriggerSound(SoundEffect,Volume); key sitter = llAvatarOnSitTarget(); if(sitter != NULL_KEY){ llRequestPermissions(sitter, PERMISSION_TRIGGER_ANIMATION); llStartAnimation(Animation); rotation Rot = llGetRot(); llSetRot(spin); llSleep(llGetRegionTimeDilation()+1);//timedil check to avoid odd unsit experience(s() in laggy times) llUnSit(llAvatarOnSitTarget()); llSetRot(Rot); } } } // listen( integer channel, string name, key id, string message ){ if (id == llGetOwner()||llGetOwnerKey( id) == Owner){ Target = id; tPos = llList2Vector(llGetObjectDetails(Target,[OBJECT_POS]),0); if(message == "Portal" && set == FALSE){set = TRUE; string thisName = llGetObjectName(); if(name == thisName){//we check to make sure theres not already one of the same portal //Even though both portals use exact same script; they require the portals use diff names llOwnerSay("/me >> Self-Deleting Replica \""+thisName+"\" @ "+(string)llGetPos()+";"); llDie(); } else{llRegionSay(Channel,"Portal");//make sure not to create a loop! SetTarget(); } } if(message == "!!!DIE!!!"){ llDie(); } } } // on_rez(integer start_param){ llResetScript(); } // }
|
|
|
|