Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Im not entirely sure how to title this, so instead, here's a picture of a baboon

Rayne Ghia
Registered User
Join date: 16 Sep 2005
Posts: 28
03-21-2006 20:58
I just bought a scripted lightsaber from someone's store, however the commands to use it are chat commands.

For example, whereas i'm used to just typing "/1 something on" this thing requires me to type "something on".

Obviously i end up spamming whatever sim i'm in if I intend to have the thing active.
The lightsaber itself is no copy/no mod.

Is there anything I can do my end to use the commands without spamming or is it literally a case of b1tch at the thing's original author?
Nexus Nash
Undercover Linden
Join date: 18 Dec 2002
Posts: 1,084
03-21-2006 22:05
The '/1' is for the channel and I think the command is '-ls on' so '/1 -ls on' should do it. It's based off a lightsaber script I made in beta. Last I remember those are the commands.
_____________________
Rayne Ghia
Registered User
Join date: 16 Sep 2005
Posts: 28
03-21-2006 22:22
From: Nexus Nash
The '/1' is for the channel and I think the command is '-ls on' so '/1 -ls on' should do it. It's based off a lightsaber script I made in beta. Last I remember those are the commands.


No, The help file gives the command as 'ma on' or 'ma off' etc etc.

Does an item require special coding to gain a /channel or is it automatic. That's the question.
Kairen Overdrive
Registered User
Join date: 12 Jul 2005
Posts: 38
03-21-2006 22:30
It requires a very small bit of coding.
Rayne Ghia
Registered User
Join date: 16 Sep 2005
Posts: 28
03-21-2006 22:32
From: Kairen Overdrive
It requires a very small bit of coding.


Right, so basically I need to seek out the original author and beg him to alter the item slightly.
Ok, thanks :)
Nexus Nash
Undercover Linden
Join date: 18 Dec 2002
Posts: 1,084
03-21-2006 22:33
Oh sorry, i'll go off on a tagent a little.

The '/1' is you are setting the channel is which you are speaking. By default if you don't put anything you are speaking in channel 0, the public channel, where everyone can hear. When you set '/1 blah', I just said 'blah' in channel 1 and set your channel to 1. You can set channels all the way up to like 2 billion or something. (llPow(2,31) I think). If you want to repeat stuff in the 'set' channel all you need to do is '// blah' and you'll say 'blah' in th e channel you previously set, in this case it's #1. If you just want to speak in general/public chat just type stuff normally without '//' or '/[number]'.

Please note these channels are in no way secure. Anyone with a script can be snooping on these channels. Although highly against the TOS (it will get you banned) i'm still sure some people do it.

To set an item to listen on that channel all you need to do is..

CODE

state_entry() {
llListen(1,"","","");
}
listen(integer channel, string name, key id, string message) {
llOwnerSay(message);
}
_____________________
Rayne Ghia
Registered User
Join date: 16 Sep 2005
Posts: 28
03-22-2006 07:27
Thanks :)
At least now I can tell the author exactly how to change his code. A few lines doesn't seem that difficult :)
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
03-22-2006 08:13
[insert flame about creators that insist on public whispers and listens instead of private/1 "because customers prefer it that way"]
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
03-22-2006 08:16
From: Argent Stonecutter
[insert flame about creators that insist on public whispers and listens instead of private/1 "because customers prefer it that way"]

Yeah, dicks.

(See what I did there?)
Newfie Pendragon
Crusty and proud of it
Join date: 19 Dec 2003
Posts: 1,025
03-22-2006 08:38
[insert flame about creators that insist on using perpetually open listeners and whispers instead of menu-driven, time-limited listeners and llOwnerSay because it takes slightly more work to do]


:D
_____________________