Jump to content

OddbroShillings

Resident
  • Posts

    18
  • Joined

  • Last visited

Everything posted by OddbroShillings

  1. The first script of the two was......PERFECT! Thank you so much Rolig, just what i needed.
  2. Well thats just it, I need a listen event in the script, but have no idea how to put one in and where to put it. I want the listen event to trigger that script. Does that help any? EDIT: I need it where, I say,(or an object) says something and it will trigger that whole script. Not only that, but I need an "off" portion for the script. BTW, you have been very helpful, Thank you very much.
  3. I have this script. Appearently I have issues with "llListen" If only somebody could make good clear sence or a good tutorial. Hmm. Anyways, I have this script and I need llListen added to is for the function. I also want it where it has 2 "if (message)" but i only have 1 funtion, so I need help with the other function in off mode. If some can show me the function for off(non fullbright), and also need help with this llListen thing. Please....anyone...I need your help. float delay = 2.0; //set the delay in seconds. integer On = FALSE; default { state_entry() { llSetTimerEvent(delay); } timer() { On = !On; llSetPrimitiveParams([PRIM_FULLBRIGHT,ALL_SIDES,On]); } } I tried to add a llListen but i dont know what Im doing wrong, because by the timmer() I keep getting a syntax error.
  4. I now see what you mean, it works, and thank you for both your help and help in making be a better scripter
  5. Good, script, but is doesnt go back to the default state, it onlys shuts off and stays on whatever color i said it on. Looking back at my DESC, I think I need to make an edit. Lets say the default object is Red. When I Say /911 lights on: It should start flashing between white and red. When I say /911 lights off: It should stop and only stopn back on red(or the default state.
  6. There was a syntax error listen(integer channel, string name, key id, string message){ message == llToLower(message) if(message == "lights on") llSetTimerEvent(0.2); else if (message == "lights off")llSetTimerEvent(0.0); where it says message == llToLower......... this is where the error message was. Any idea on why? Thank you for the help btw.
  7. Hello, Im back again with another question. (as you see Im not good of a scipter,but Hey! Im learning) Anyways, I have this script. I would like to to be able to be actiavted only if I say a certain thing on a certaion channel and go back to default state when I deactivate it: Example: Default state:(lights are off) Red,Red,Red,White,White,Red,Red,Red When I say: /911 Lights on: I want this script to become active. When I say: /911 lights off: I want the script to shut off, and the object go back to the default state. If anyone can help me it would be greatly appreciated as always. vector COLOR_1 = <1.0,0.0,0.0>; // Color 1 as RGB vector COLOR_2 = <255.0,255.0,255.0>; // COLOR 2 as RGB integer USE_COLOR_1; default { state_entry() { USE_COLOR_1 = FALSE; llSetTimerEvent( 0.2); } timer() { if (USE_COLOR_1) llSetColor( COLOR_1, ALL_SIDES ); else llSetColor( COLOR_2, ALL_SIDES ); USE_COLOR_1 = !USE_COLOR_1; } }
  8. Ok, in the basic curtain script below, I would like it to be group access only. I tried the llSameGroup, but i think i left something out and probaly placed it in the wrong spot. If anyone can simply show me where to place it or show me what needs to be added it would be greatly appreciated. Thank you in advance. vector offset = <1,0,0>; //Prim moves/changes size along this local coordinate float hi_end_fixed = FALSE; //Which end of the prim should remain in place when size changes? //The one with the higher (local) coordinate? float min = 0.2; //The minimum size of the prim relative to its maximum size integer ns = 15; //Number of distinct steps for move/size change default { state_entry() { offset *= ((1.0 - min) / ns) * (offset * llGetScale()); hi_end_fixed -= 0.5; } touch_start(integer detected) { integer i; do llSetPrimitiveParams([PRIM_SIZE, llGetScale() - offset, PRIM_POSITION, llGetLocalPos() + ((hi_end_fixed * offset) * llGetLocalRot())]); while ((++i) < ns); offset = - offset; } }
  9. Good and bad news.....Good news is that the help menu is back and running, bad news is I dont understand what channel everyone needs to transmit on. Let me clarify what I need. I think we are almost there . I would like this script to be able to do this: (lets say our transmit channel is 5) I want to say: Lets get a tow truck out to the corner. So this is what Id do: /5 Lets get a tow truck out to the corner. Anyone who has a walkie takie on would here this in owner say: OddbroShillings: Lets get a tow truck out to the corner. And noew they can say: /5 Copy that, doing it now. And anyone who has the walkie talkie on would hear in owner say: A. Random Dude: Copy that, doing it now. Does this help any?
  10. ok, I did what you 2 said. And nothing, not even the help meaasge pops up.....I dunno if i did something wrong or what, please help. Like I said, I did exactly what you 2 said to do.
  11. Oh, ok, I see, but after it say llOwnerSay(message)can I put in the channel it should send and recieve on. I want the channel to be, 5 so should it be llOwnerSay (5, message) and have both the sender and reciver get the message privatly, like in reg chat but it pops up in the yellow.
  12. I have this walkie talkie script, and I want it to do what another one does. Here is what I have and need. Ok, so i work in an rp sim. One dept. I work in is PD. We have a radio system, thats works on a certain channel. If I say "/2 Need back up!' anyone who is whereing the radio will be the ONLY ones to hear it. Like if Im standing next to a guy and get the call, he wont hear it, unless he has a radio on. Well my other Dept, is the Public works, we dont have a radio system and we need one. This script you can say what you need to say, like the one above but if you are standing next to a guy with that radio, you will hear it. I need the script edited so this DOESNT happen. Please take a look and help me asap. thanks in advance. integer transmit_channel = 4; integer listen_handle; say_message(string message) { llWhisper(0, message); llSetColor(<0, 1, 0>, ALL_SIDES); llSleep(0.5); llSetColor(<1, 1, 1>, ALL_SIDES); } transmit(string message) { llShout(transmit_channel, message); llSetColor(<1, 0, 0>, ALL_SIDES); llSleep(0.5); llSetColor(<1, 1, 1>, ALL_SIDES); } show_help() { llOwnerSay("Walkie Talkie Directions:"); llOwnerSay("/wt on: Turn on."); llOwnerSay("/wt off: Turn off."); llOwnerSay("/wt channel <number>: Transmit/Receive on channel <number>."); llOwnerSay("/wt reset: Reset."); llOwnerSay("/wt <message>: Transmit <message>."); llOwnerSay("/wt scan: Scan channels."); } default { state_entry() { llOwnerSay("Walkie Talkie enabled (status: ON). Type \"wt help \" for directions."); llSetObjectName(llKey2Name(llGetOwner()) + " (WT)"); state on; } } state on { state_entry() { llListen(0, "", llGetOwner(), ""); listen_handle = llListen(transmit_channel, "", NULL_KEY, ""); llOwnerSay("Walkie Talkie on."); llOwnerSay("Walkie Talkie listening on channel " + (string) transmit_channel); } attach(key attached) { if (attached != NULL_KEY) { llSetObjectName(llKey2Name(llGetOwner()) + " (WT)"); llOwnerSay("Walkie Talkie enabled (status: ON). Type \"wt help\" for directions."); } } changed(integer change) { if (change & CHANGED_OWNER) { llResetScript(); } } listen(integer channel, string name, key id, string message) { if (channel == 0 && id == llGetOwner() && llStringLength(message) > 4 && llGetSubString(llToLower(message), 0, 3) == "/wt ") { message = llDeleteSubString(message, 0, 3); if (llGetSubString(llToLower(message), 0, llStringLength("channel ") - 1) == "channel " && llStringLength(message) > llStringLength("channel ")) { message = llDeleteSubString(message, 0, llStringLength("channel ") - 1); if ((integer) message != 0) { transmit_channel = (integer) message; llListenRemove(listen_handle); listen_handle = llListen(transmit_channel, "", NULL_KEY, ""); llOwnerSay("Walkie Talkie listening on channel " + (string) transmit_channel); } } else if (llGetSubString(llToLower(message), 0, llStringLength("off") - 1) == "off") { state off; } else if (llGetSubString(llToLower(message), 0, llStringLength("help") - 1) == "help") { show_help(); } else if (llGetSubString(llToLower(message), 0, llStringLength("scan") - 1) == "scan") { state scan; } else if (llGetSubString(llToLower(message), 0, llStringLength("reset") - 1) == "reset") { llResetScript(); } else { transmit(message); } } else if (channel != 0) { if (id == llGetOwner()) { say_message(message); } else { say_message(name + ": " + message); } } } } state off { state_entry() { llListen(0, "", llGetOwner(), ""); llOwnerSay("Walkie Talkie off."); } attach(key attached) { if (attached != NULL_KEY) { llSetObjectName(llKey2Name(llGetOwner()) + " (WT)"); llOwnerSay("Walkie Talkie enabled (status: OFF). Type \"wt help\" for directions."); } } changed(integer change) { if (change & CHANGED_OWNER) { llResetScript(); } } listen(integer channel, string name, key id, string message) { if (channel == 0 && id == llGetOwner() && llStringLength(message) > 4 && llGetSubString(llToLower(message), 0, 3) == "/wt ") { message = llDeleteSubString(message, 0, 3); if (llGetSubString(llToLower(message), 0, llStringLength("on") - 1) == "on") { state on; } else if (llGetSubString(llToLower(message), 0, llStringLength("help") - 1) == "help") { show_help(); } else if (llGetSubString(llToLower(message), 0, llStringLength("scan") - 1) == "scan") { state scan; } else if (llGetSubString(llToLower(message), 0, llStringLength("reset") - 1) == "reset") { llResetScript(); } } } } state scan { state_entry() { llListen(0, "", llGetOwner(), ""); listen_handle = llListen(transmit_channel, "", NULL_KEY, ""); llSetTimerEvent(5); llOwnerSay("Channel Scanning...say \"wt stop\" to stop."); } attach(key attached) { if (attached != NULL_KEY) { llSetObjectName(llKey2Name(llGetOwner()) + " (WT)"); llOwnerSay("Walkie Talkie enabled (status: SCANNING). Type \"wt help\" for directions."); } } changed(integer change) { if (change & CHANGED_OWNER) { llResetScript(); } } timer() { transmit_channel++; llListenRemove(listen_handle); listen_handle = llListen(transmit_channel, "", NULL_KEY, ""); llOwnerSay("Walkie Talkie listening on channel " + (string) transmit_channel); } listen(integer channel, string name, key id, string message) { if (channel == 0 && id == llGetOwner() && llStringLength(message) > 4 && llGetSubString(llToLower(message), 0, 3) == "/wt ") { message = llDeleteSubString(message, 0, 3); if (llGetSubString(llToLower(message), 0, llStringLength("channel ") - 1) == "channel " && llStringLength(message) > llStringLength("channel ")) { message = llDeleteSubString(message, 0, llStringLength("channel ") - 1); if ((integer) message != 0) { transmit_channel = (integer) message; llListenRemove(listen_handle); listen_handle = llListen(transmit_channel, "", NULL_KEY, ""); llOwnerSay("Walkie Talkie listening on channel " + (string) transmit_channel); } } else if (llGetSubString(llToLower(message), 0, llStringLength("on") - 1) == "on") { state on; } else if (llGetSubString(llToLower(message), 0, llStringLength("stop") - 1) == "stop") { state on; } else if (llGetSubString(llToLower(message), 0, llStringLength("off") - 1) == "off") { state off; } else if (llGetSubString(llToLower(message), 0, llStringLength("help") - 1) == "help") { show_help(); } else if (llGetSubString(llToLower(message), 0, llStringLength("reset") - 1) == "reset") { llResetScript(); } else { transmit(message); } } else if (channel != 0) { if (id == llGetOwner()) { say_message(message); } else { say_message(name + ": " + message); } state on; } } }
  13. Thank You all for your suggestions, but I have 1 question: How the heck do you do this? Im not a very expirienced scripter.
  14. Hello, Im looking for a script for a police car light bar. I was wondering if its possible to make the light bar have specific patterns, like you would see on the road. what Im trying to say is that I dont want some old random flashing lights that arnt in sync, if ANYONE can help me with this that would be most appreciated. Ask me any questions because I dont think I gave enough detail, Thanks in advance.
  15. I think I will look into the both of these, thank you for the suggestions.
  16. Im looking for a place where I can drive my new vehicle. Of corse it has to be on road. If its out there I kinda want it to be in a small community, you know where I can drive past other drivers or look at the buildings in the city. If there isnt a place like this then Ill go far an area where I can still drive and mabey run into other peaple on the way. Any suggestions?
×
×
  • Create New...