Jump to content

Xiija

Resident
  • Posts

    912
  • Joined

  • Last visited

Everything posted by Xiija

  1. you will need a listen, and a run time event... something like this...(umtested) you may want to add a check to see if the animation is in the poseball's inventory and an on / off switch to kill the listen, if it is something you will leave lying out. integer listen_handle;string pose; default{ state_entry() { // Registers the listen to the owner of the object at the moment of the call. listen_handle = llListen(0, "", llGetOwner(), ""); } listen( integer channel, string name, key id, string message ) { llStopAnimation(pose); pose = message; llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION); } run_time_permissions(integer perm) { if (perm & PERMISSION_TRIGGER_ANIMATION) { llStartAnimation(pose); llOwnerSay("animation is: " + pose); } } }
  2. here is a snippet of a door script...may help a bit? opens on left hinge-outward no prim cutting needed...linked doors need llSetLinkPrimitiveParams.. http://forums-archive.secondlife.com/54/85/170765/1.html //--ged larsson's edge rotation script, expanded to a function//--to rotate on any edge/axis combination//--fixed for child/attached prims with info from lex neva//--compiled by bloodsong termagantinteger Y_POS = 3; //hinge on left ... 90 = open ininteger Z_AXIS = 3;RotFromEdge(float fAngle, integer iSide, integer iAxis){ vector size = llGetScale(); //--gets length of sides to find edges. vector currentRot = <0.0,0.0,0.0>; rotation desiredRot; //--we will build this from our single angle vector rotOriginBefore; //--starting origin position rotation currentRot.z = fAngle*DEG_TO_RAD; desiredRot = llEuler2Rot(currentRot); rotOriginBefore = (llRot2Left(llGetLocalRot()) * size.y / 2.0); //hinge on left// size.y /-2.0 for right rotation newLocalRot = desiredRot * llGetLocalRot(); vector rotOriginAfter; //--same as before, but with our new rotation rotOriginAfter = (llRot2Left(newLocalRot) * size.y / 2.0); //hinge on left// size.y /-2.0 for right llSetPrimitiveParams([PRIM_POSITION, llGetLocalPos() + rotOriginBefore - rotOriginAfter, PRIM_ROTATION, newLocalRot]);}integer k;integer open = -90; // 90 for open indefault{ touch_start(integer num) { k = !k; if(k) { llOwnerSay("open"); RotFromEdge(open, Y_POS, Z_AXIS); } else { llOwnerSay("closed"); RotFromEdge(-open, Y_POS, Z_AXIS); } }}
  3. Xiija

    Rental Script

    Some rental scripts here...http://www.free-lsl-scripts.com/cgi/freescripts.plx?Category=Rental
  4. The season is over. The trophies have been handed out. The tears have been shed and the blood has been cleaned off the tracks. Now, just as the bruises have started to heal and the questions are being asked, it's time for us, the fans, supporters and sponsors of SLRDA to come together and support the ladies. We want to ensure that avatars are being beaten bloody for many seasons to come so we present to you DERBITHON 2013: Derb So Hard! An entire evening dedicated to bringing together all lovers of derby to show support for the upcoming season and the amazing ladies and men of this non-profit organization. When: Saturday January 19th @ 5pm http://maps.secondlife.com/secondlife/Secrets%20of%20Gaia/53/174/3143/ 5:00 - 5:30 DJ Cat 5:30 - 6:30 Mary and Mark (live) 6:30 - 7:00 DJ Allure 7:00 - 8:00 Java Joe Macintyre (live) 8:00 - 8:30 DJ Nap 8:30 - 9:30 Iron Seat (Aerosmith Tribute) 9:30 Nap DJ til we all pass out! There will be a week long silent auction (LM below) filled with awesome items and services provided by some amazing sponsors. Look for more auction items being added over the next few days. Those auction boards also have some pretty amazing dates you can win! Yes, thats right! Real dates! With real avatars! http://maps.secondlife.com/secondlife/Ceres/160/212/2038/ Auction will include items from Epic Clothing, Razorblade Jacket, A & S Visions, M Inc, Seddy's Creations, Warrior Instinct Nations, Psych0, Cummere Mayo Designs, Overland Choppers, Secrets Of Gaia, Blue Blood, Cr@cky, Favole, Presence, XD Deigns, JSF Designs and more!!! And remember, rink rash is sexy.....
  5. kinda like this? default{ touch_start(integer num) { llPlaySound(llGetInventoryName(INVENTORY_SOUND,0),1.0); } collision_start(integer total_number) { integer type = llDetectedType(0); if (type & AGENT_BY_LEGACY_NAME ) llPlaySound(llGetInventoryName(INVENTORY_SOUND,0),1.0); }}
  6. i have had scripts act weird like that before... try making a new HUD and pasting the scipt in that? .your script worked in a HUD when i tested it
  7. Here is a kind of example... if you make a root prim like a long plank like a 2x4..and put a 2nd prim child on top of it.(linked) ,.and put this in the root it will slide the child up & back along the root plank's length. float fTimer = 10.0; //how long to go the entire distanceinteger iSteps = 200; //how many steps to go from start to endinteger iLinknumber = 2; //link number of the moving primvector vAxis = <0.0,1.0,0.0>; //axis to move along. <1,0,0> is x-axis, <0,1,0> is y-axis, <0,0,1> is z-axisinteger iStep = 0; //control variable, don't changeinteger k;integer toggle;default{ state_entry() { //start timer // llSetTimerEvent((fTimer/iSteps)); } touch_start(integer num) { k = !k; if (k) { llSetTimerEvent((fTimer/iSteps)); llOwnerSay("on"); } else { llSetTimerEvent(0); llOwnerSay("off"); // llResetScript(); } } timer() { //remove un-changeable axis-parameters from scale vector vScale = llGetScale(); if (vAxis.x == 0.0) {vScale.x = 0;} if (vAxis.y == 0.0) {vScale.y = 0;} if (vAxis.z == 0.0) {vScale.z = 0;} if (iStep >= iSteps) { toggle = -1; } else if (iStep <= 0) { toggle = 1; } llSetLinkPrimitiveParamsFast(iLinknumber, [PRIM_POS_LOCAL, (-vScale / 2.0) + (vScale / iSteps)*iStep]); iStep = iStep + toggle; //add 1 or -1 to step }}
  8. Brought to you by S.L.R.D.A. ( SecondLife Roller Derby Association) The season is over. The trophies have been handed out. The tears have been shed and the blood has been cleaned off the tracks. Now, just as the bruises have started to heal and the questions are being asked, it's time for us, the fans, supporters and sponsors of SLRDA to come together and support the ladies. We want to ensure that avatars are being beaten bloody for many seasons to come so we present to you DERBITHON 2013: Derb So Hard! An entire evening dedicated to bringing together all lovers of derby to show support for the upcoming season and the amazing ladies and men of this non-profit organization. When: Saturday January 19th @ 5pm (location TBA) What is Derbithon? Two live artists, one silent auction, one cover band, a DJ and a partridge in a pear tree! Featuring: Iron Seat (Aerosmith Cover band) Java Joe MacIntyre (live artist) Fiddlah (live artist) Plus a guest DJ! There will be a week long silent auction (LM below) filled with awesome items and services provided by some amazing sponsors. Look for more auction items being added over the next few days. Those auction boards also have some pretty amazing dates you can win! Yes, thats right! Real dates! With real avatars! ______________________________________________ SOMA is proud and honoured to be a sponsor of SLRDA, and as such is hosting a silent auction this week. Come down and bid on everything from dates with SOMA members and Derby Girls to a brand new custom car or motorbike! Come check out the goods and support a good cause!!! http://maps.secondlife.com/secondlife/Ceres/160/212/2038 And remember, rink rash is sexy.....
  9. from the lsl wiki.. http://wiki.secondlife.com/wiki/LlGetSunDirection you could add this to a script with a timer? This can be used to quickly determine whether it is day or night (in shortened SL days) as the script runs: if the returned vector's Z element is positive, then the sun is above the horizon. integer lightsOn = -1;//not TRUE or FALSE CheckSun(){ vector sun = llGetSunDirection(); integer turnLightsOn = (sun.z < 0); if(turnLightsOn != lightsOn) { lightsOn = turnLightsOn; llSetPrimitiveParams([ PRIM_FULLBRIGHT, ALL_SIDES, lightsOn ]); }}
  10. ooo, good call, if i'd known about those, thats what i would have used, then you wouldn't need a script in the display prim you could just change the llSay(-9,(string)uuidSend); to llSetLinkTexture(4,(string)uuidSend, ALL_SIDES); or something like that, and get rid of the second script?
  11. just basic.... make a notecard called URL and add your url's change the delay to what you want... key kQuery;integer iLine = 0;integer delay = 60;string CurrNC = "URL";default { state_entry() { kQuery = llGetNotecardLine(CurrNC, iLine); llSetTimerEvent(delay); } timer() { kQuery = llGetNotecardLine(CurrNC, iLine); } dataserver(key query_id, string data) { if (query_id == kQuery) { if (data == EOF) { iLine = 0; kQuery = llGetNotecardLine(CurrNC, iLine); } else { llParcelMediaCommandList([PARCEL_MEDIA_COMMAND_URL,data]); llParcelMediaCommandList([PARCEL_MEDIA_COMMAND_PLAY]); ++iLine; } } } }
  12. here is a basic example, for this example: 4 prims, root(1), forward(2) back(3) display(4) this goes in the root prim integer primNum; integer Current ; integer max; key uuidSend; string txtrName; default { state_entry() { max = llGetInventoryNumber( INVENTORY_TEXTURE ); --max; string nameMain = llGetInventoryName(INVENTORY_TEXTURE,0); key uuidMain = llGetInventoryKey(nameMain); llSay(-9,(string)uuidMain); } touch_start(integer total_number) { primNum = llDetectedLinkNumber(0); if (primNum == 4) { llGiveInventory(llDetectedKey(0), llGetInventoryName(INVENTORY_TEXTURE, Current)); } if (primNum == 3) { --Current; if (Current < 0) Current = max; txtrName = llGetInventoryName(INVENTORY_TEXTURE, Current); uuidSend = llGetInventoryKey(txtrName); llSay(-9,(string)uuidSend); } if (primNum == 2) { ++Current; if (Current > max) Current = 0; txtrName = llGetInventoryName(INVENTORY_TEXTURE, Current); uuidSend = llGetInventoryKey(txtrName); llSay(-9,(string)uuidSend); } } } in the display prim (link #4) you would put something like this default{ state_entry() { llListen(-9, "", "", ""); } listen( integer channel, string name, key id, string message ) { string displaying = message; llSetTexture(displaying, ALL_SIDES); }}
  13. Championship Bout, live radio commentary, prizes...it's a PARTY! There can be only ONE!
  14. some linkset resizer scripts here...http://wiki.secondlife.com/wiki/LSL_Library here is one... http://wiki.secondlife.com/wiki/Linkset_resizer_with_menu
  15. Ferd's has a lot of handy scripts...2 updaters there.... http://www.free-lsl-scripts.com/cgi/freescripts.plx?Category=Updater
  16. Xiija

    Need help

    try here mebbe? http://www.free-lsl-scripts.com/cgi/freescripts.plx?Category=Tip%20Jar
  17. no need for states or a timer mebbe? this is a small tweak, works on channel 1.... key owner;default{ state_entry() { owner = llGetOwner(); llListen(1,"","",""); } listen(integer channel, string name, key id, string message) // listens to the channel. { if(llGetOwnerKey(id) == owner) { if (message == "ColdBreath On") { llParticleSystem([PSYS_PART_MAX_AGE,4.0, PSYS_PART_FLAGS,1, PSYS_PART_START_COLOR, <1,1,1>, PSYS_PART_END_COLOR, <2,2,2>, PSYS_PART_START_SCALE,<0.1,0.1,0.1>, PSYS_PART_END_SCALE,<0.4,0.4,0.4>, PSYS_SRC_PATTERN, PSYS_SRC_PATTERN_EXPLODE, PSYS_SRC_BURST_RATE,5.0, PSYS_SRC_ACCEL, 0.2 * llRot2Fwd(llGetRot()), PSYS_SRC_BURST_PART_COUNT,15, PSYS_SRC_BURST_RADIUS,0.02, PSYS_SRC_BURST_SPEED_MIN,0.0, PSYS_SRC_BURST_SPEED_MAX,0.2, PSYS_SRC_TARGET_KEY,llGetOwner(), PSYS_SRC_ANGLE_BEGIN,0.0, PSYS_SRC_ANGLE_END,0.0, PSYS_SRC_OMEGA, <0.2,0.2,0.2>, PSYS_SRC_MAX_AGE, 0.0, PSYS_SRC_TEXTURE, "8146459e-47a2-47ce-93d6-bac9359afa84", PSYS_PART_START_ALPHA, 0.3, PSYS_PART_END_ALPHA, 1.0 ]): llOwnerSay ( "On"); } else if ( message == "ColdBreath Off") { llParticleSystem([]); llOwnerSay( "Off"); } } }}
  18. default{ touch_start{integer num) { llAddToLandBanList(llDetectedKey(0),0.0); llTeleportAgentHome(llDetectedKey(0)); }} like so?
  19. AnsheX has free 1ksqm land for landless folks...for the holidays only
  20. or make a list of list-names, if you have a bunch of lists?
  21. http://wiki.secondlife.com/wiki/LlSameGroup or.. http://wiki.secondlife.com/wiki/LlDetectedGroup should get ya started
  22. tried this in a box i rezzed on the ground...seems to work. default{ state_entry() { key ID = llGetOwner(); llRequestPermissions(ID,PERMISSION_ATTACH | PERMISSION_TRIGGER_ANIMATION); } touch_start(integer total_number) { } run_time_permissions(integer perm) { if( perm & PERMISSION_ATTACH ) { llAttachToAvatarTemp( ATTACH_LHAND ); } if (perm & PERMISSION_TRIGGER_ANIMATION) { llStartAnimation("sit"); } }}
  23. ***quote my object will rez an objects depends on how many agents in the parcel. The problem is I don't want to affect the prim counts by rezzing multiple objects ***quote the object that detects the agents on the parcel can also detect how many objects have been rezzed just get an object count, and set a max for how many objects you want? llSensor( "yourOBJECTnameHERE", NULL_KEY, ( ACTIVE ), 15.0, PI ); sensor( integer detected ) { if(detected > max) { llResetScript(); } }
  24. if ..gsAgentHistory...is a list...then you mebbe could change a few things? you could cast the list to a string.. string Visitors = (string)gsAgentHistory; and then do "Noon report : \n" + Visitors); or try... "Noon report:\n" + (string) gsAgentHistory ); gsAgentHistory = [];
  25. can you post the function.... myCheckAgents( ); ....so we can see it?
×
×
  • Create New...