Jump to content

Yamil Dagger

Resident
  • Posts

    58
  • Joined

  • Last visited

Everything posted by Yamil Dagger

  1. Can somebody tell me what the easiest way would be to find a string/value in a list and return how many times that string or value is in the list? so... [1,2,2,2,3,4,5,5] How can I pull the total number of "2"s from this string so it would return 3? Would I have to make a loop check each index?
  2. I know that adding a ! in scripts means "NOT" but how can I use this code and say while NOT flying? Where do I add the ! or how would I put it? if (llGetAgentInfo(llGetOwner()) & AGENT_IN_AIR) Basically I need to detect falling or jumping but not flying.
  3. in regards to the audio, I meant I own web hosting (like for websites) and they said that it can do audio streaming. I figured instead of software I'd run off my computer, there'd be a php script or something out there that would somehow stream the music I upload. And when I say upload, I don't mean for others to download for themselves, it'd be for streaming only, most of which would be us talking anyways. Has anybody heard of streaming audio without running software?
  4. I was wondering if anybody can explain a bit on the correct way to play videos using land media and also how to setup audio streaming using my hosting space (without needing a program running on my computer). Video: So I uploaded a test video (I guess it needs to be .mov format to play in SL... right?) and although it takes forever to load, it starts playing for me but sofar hasn't worked for anybody else. I simply put the direct url of the .mov video and it should work right? or am I doing this wrong? Audio: I have unlimited hosting space and they suposivly support audio streaming. So I upload a directory full of music... but how do I stream the music in SL without running a program on my computer? Does anybody have the files I need to upload to my server to make it stream a folder full of music?
  5. llSetVehicleType(VEHICLE_TYPE_AIRPLANE); llRemoveVehicleFlags(1|2|4|8|16|32|64|128|256|512); llSetVehicleFlags(VEHICLE_FLAG_LIMIT_ROLL_ONLY); llSetVehicleVectorParam(VEHICLE_LINEAR_MOTOR_DIRECTION,<3.0,0.0,0.0>); llSetVehicleFloatParam(VEHICLE_LINEAR_MOTOR_TIMESCALE,10.0); llSetVehicleFloatParam(VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE,10.0); llSetVehicleVectorParam(VEHICLE_LINEAR_FRICTION_TIMESCALE,<2.0,0.5,1.0>); llSetVehicleVectorParam(VEHICLE_ANGULAR_MOTOR_DIRECTION,<60.0,30.0,15.0>); llSetVehicleFloatParam(VEHICLE_ANGULAR_MOTOR_TIMESCALE,0.05); llSetVehicleFloatParam(VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE,0.05); llSetVehicleFloatParam(VEHICLE_ANGULAR_FRICTION_TIMESCALE,0.05); llSetVehicleFloatParam(VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY,0.0); llSetVehicleFloatParam(VEHICLE_VERTICAL_ATTRACTION_TIMESCALE,1.0); llSetVehicleFloatParam(VEHICLE_LINEAR_DEFLECTION_EFFICIENCY,0.0); llSetVehicleFloatParam(VEHICLE_LINEAR_DEFLECTION_TIMESCALE,0.0); llSetVehicleFloatParam(VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY,0.1); llSetVehicleFloatParam(VEHICLE_ANGULAR_DEFLECTION_TIMESCALE,6.0); llSetVehicleFloatParam(VEHICLE_BANKING_EFFICIENCY, 1.0); llSetVehicleFloatParam(VEHICLE_BANKING_MIX, 1.0); llSetVehicleFloatParam(VEHICLE_BANKING_TIMESCALE, 0.5); llSetVehicleRotationParam(VEHICLE_REFERENCE_FRAME,ZERO_ROTATION); I'm using the above for my vehicle I'm working on but it would seem if I rez it at a 90 degree angle, it drives backwards for some reason. That is, when I press forward, it drives backwards. It seems like the angle I rez the vehicle is making the "front" of the vehicle change. How can I tell it to go what I want to be considered... forward? It's rotation is 0,0,0 so with the way it rezzes, it SHOULD begin driving on x axis.
  6. The first page only has 8 buttons but then it looks like the following ones have 9. I think this fixed my issues though, Thanks!
  7. found=10; for (x=(Page*10);x<found+(Page*9);x++) { Documents+=llGetInventoryName(INVENTORY_NOTECARD,x); } I'm trying to make a list of notecards that are inside of this object and I want the dialog screens to show 9 per page. For some reason, no matter what numbers I plug in, it's missing some notecards between pages. What calculation am I doing wrong? 'Page' simply goes from 0, to 1, to 2...etc so it should be 1-9 then 10-18 then 19-27 ...etc
  8. I just noticed in SL that my avi CANNOT say the word "stop" for some reason! If I type "testing stop testing" and press enter, it chats.. "testing testing" What could cause that??? I'm using firestorm. Could it be the viewer or is it something in SL?
  9. Thank for all the answers. Regarding US laws, I know them. I said this script is SIMILAR to the lottery, as in it's NOT the lottery. This is a very extremely small portion of the script I'm making and I simply used the 'lottery' idea to help clarify things. Thanks again to everybody.
  10. Does anybody know any way of healing an avatar's health? I don't know any commands for that. Is it possible? EDIT: Rolig Loon, I don't know why you keep saying my questions don't belong here. It's my understanding 'Answers' is used for simple answers and the forums are used for more in-depth questions. It is then emplied that it's up to the asker how much they want to get into it. I simply asked if there was a way. 'no' would be a simple answer. Thank you.
  11. I'm working on a script right now and I've hit a wall. I'm out of ideas on how this can be done... I have a list which is setup by a number then a key, number, key, number...etc The number is how many chances or 'entries' they have and the key is the person's key. How can I pick a random person/key from the list giving the people with higher entries a better chance of winning? It's kinda similar to the lottery. I can't simply list repeat keys because people can buy 100+ entries so how can this be done?
  12. I'm working on a script right now and I've hit a wall. I'm out of ideas on how this can be done... I have a list which is setup by a number then a key, number, key, number...etc The number is how many chances or 'entries' they have and the key is the person's key. How can I pick a random person/key from the list giving the people with higher entries a better chance of winning? It's kinda similar to the lottery. I can't simply list repeat keys because people can buy 100+ entries so how can this be done? EDIT: I'm already filtering for duplicates, I just need the randomization part. Thanks for anybody who trys to help!
  13. OMG why does llAllowInventoryDrop allow linked prims to take the textures!? so annoying! How the heck am I supposed to collect all textures from linked prims to be usable in the root prim. Pointless to allow added invintory items to non scripted linked prims. gerr...
  14. ok I'm having an odd problem and I'm not sure if I'm just overlooking something... I set llAllowInventoryDrop(TRUE); then I hold CTRL and drop in a texture. I told the script to tell me every step of the way, what it's doing and it registers the inventory has changed, then shows 0 textures inside. When I open inventory, it doesn't look like it transfered. If I drag the texture directly into the inventory, it shows inventory changed, 1 texture inside, and it processes it like I told it to... not to mention it shows up in inventory. So why is holding CTRL working, but it's not staying inside? Almost like it's auto deleting.
  15. llCeil(14/12) why is this returning 1 instead of 2? 14 devided by 12 should be 1.16 rounded up to 2 using Ceil... What am I doing wrong? Thanks guys! For anybody else wondering... My problem was llCeil(Total/12) where total was 14. So I simply did llCeil((float)Total/12). yay :)
  16. I figured that would work but there's no easy or in-line way of simply saying "no change"?
  17. llSetLinkPrimitiveParamsFast(1, [PRIM_COLOR, 3, <1,1,1>, 1,PRIM_TEXTURE, 3, TEXTUREUUID, SAME, SAME, SAME ]);I'm trying to use llSetLinkPrimitiveParamsFast to set both color and texture like above but I have no clue what vectors or whatever to set for the other 3 values it needs. How can I set the texture using this command but leave the next 3 values to same as they are already set to. Yes, the repeats,offset, and rotations are all set and unique and yes I NEED to use this command for this project. Help?
  18. I'll be contacting you in-world. I think I can help.
  19. So, I finally got fed up with my corrupt managers at work and just quit my job. I'm getting married soon so I'm doing everything I can to earn a little extra cash. I'm taking script requests right now if anybody wants me to make something for you. I'll even sell full perms if you need it. Contact me in-world: Yamil Dagger or ask here and I'll try to check in every so often.
  20. I am using llGetVel(); to get my avatar's moving speed (running on a script that is in an attachment) but I was wondering if there's a good way to get ONE number that represents how fast I'm moving. Since llGetVel returns a vector of 3 numbers, how can I either convert that into one number or what other things can I try?
  21. I'm trying to work with particales to emit them from an attachment, laying them behind me but have them traveling toward where I'm facing/moving. It seems I have the particles working just fine but I can't get the angle to make them move in the direction I'm moving.
×
×
  • Create New...