Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Online Status

Nisa Maverick
Registered User
Join date: 3 Jun 2007
Posts: 224
02-23-2009 23:57
Has anyone got a simple script to show offline or online just for the floating text.

All the ones I have seen either change the colour of the texture/prim, and also to leave messages.

I just want a simple one to show on/off on the text, Any ideas please, thank you.
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
02-24-2009 01:05
Make your own. Take one of those "does too much" freebies and start deleting parts you don't need.

This forum isn't for "please give me free scripts".. if you don't want to write your own, you really should post this request in "Products Wanted".
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
Nisa Maverick
Registered User
Join date: 3 Jun 2007
Posts: 224
02-24-2009 03:32
Well bully for you Winter, as it happens I have been trying to delete parts of a free one, and cannot get it to work,
Sheesh climb off that high horse you are on.
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
02-24-2009 03:45
From: Nisa Maverick
I have been trying to delete parts of a free one, and cannot get it to work.
Why not post what you've got so far? People here will be happy to help you get it working, but we can't unless we can see it.
Pedro McMillan
SLOODLE Developer
Join date: 28 Jul 2007
Posts: 231
02-24-2009 04:04
From: Nisa Maverick
climb off that high horse you are on.


Bear in mind it's pretty hard to tell the difference sometimes between folks who are genuinely looking for help in learning to script, and folks who are just looking for a free ride. Many of the people on this forum are (or could be) selling a lot of their work for profit, so for somebody to come by and expect it for free (sometimes with a view to selling it on themselves) is rather galling.

Just remember to make it clear that you're looking for help, and not just free stuff, and we'll all be happy to help. :-)
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
02-24-2009 14:30
From: Nisa Maverick
Sheesh climb off that high horse you are on.


I'm not upset.. but you should try doing a search on this forum, on the phrase "products wanted" sometime.This kind of thing comes up constantly, and your original request said this.

From: Nisa Maverick
Has anyone got a simple script to show offline or online just for the floating text.


That's not "please help me" that's "please give me". Anyone posting a thread like that would get the same response from any number of people in this forum.. because we deal with that kind of "begging" constantly. Some of us have been here for years, and we get real tired of the "can I haz" crowd.

That said, My response to you wasn't malicious, or rude. IF you don't want to write it.. IF you want someone else to write it for you, then the "Products Wanted" forum is the right place to ask. IF you want to write your own, then we're willing to help you.. but we're not here to do all the work for you.

From: Pedro McMillan
Just remember to make it clear that you're looking for help, and not just free stuff, and we'll all be happy to help. :-)


Exactly.
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
02-24-2009 16:02
In defense of Winter.

Glad you got the help you were looking for Nisa in the other thread you posted. I knew your name because you needed help in another thread. We do want people to learn and Winter has answered more then her fair share of questions here, helping numerous people. But unfortunately we really are flooded here with request after request for free scripts. I have jumped the gun on more then one occasion myself and responded for someone to go to Products Wanted. So please do not think less of Winter or the seemingly cold greeting. There are only a handful of us actively answering questions now compared to the way it used to be. We try to concentrate on helping the ones that really do want help and to learn. Hopefully you will continue to learn and someday you might even be here answering a question every now and then.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Nisa Maverick
Registered User
Join date: 3 Jun 2007
Posts: 224
02-24-2009 22:54
Thank you Jesse, and yes I did get the help I needed on my other thread.

And I am trying to learn and understand this scripting, but I am finding it extremely difficult to understand, (maybe my age) lol.

Could do with someone sat beside me to teach.

Thanks again
Lazink Maeterlinck
Registered User
Join date: 8 Nov 2005
Posts: 332
02-25-2009 01:42
I don't like to plug products too much, but if you don't like reading web pages, and trying to decipher people who understand something trying to explain it, and failing miserably, you might look at a book that came out a few months ago.

http://www.amazon.com/Scripting-Your-World-Official-Second/dp/0470339837/ref=pd_bbs_6?ie=UTF8&s=books&qid=1235554637&sr=8-6

I happen to look at this book in the bookstore, and it really explains the language and how to use it well, especially if you are a beginner. So if you serious about learning the LSL language, and are like me (like to have a physical book, get tired of reading computer screens) take a look at this book and see if it's for you.

Also don't be afraid to go with the in-world tutorials. Some of them are really well presented, and have been tailored for beginners. DO NOT take any freebie script and try to learn that way, often they are coded poorly for someone trying to learn.

Just my advise :)
Papalopulus Kobolowski
working mind
Join date: 11 Aug 2006
Posts: 326
02-25-2009 08:57
If you continue posting here responses that mean .." you are interest on learn LSL"
So lets start!

First of all you need to know a few things:

1.-

An event in this case "datasever".
This event permit to know several info from determinated avatar(agent in lsl)like.


DATA_NAME
DATA_BORN
DATA_ONLINE <--- this is what you need.
etc..

You can find the complete list here:
http://wiki.secondlife.com/wiki/Dataserver

2.-

a function in this case:

llRequestAgentData(key id, integer data)



From the wiki:

"Requests data about agent id. When data is available the dataserver event will be raised"

http://wiki.secondlife.com/wiki/LlRequestAgentData

3.-

llSetTimerEvent( float sec ); "float sec" is the time in seconds to execute the timer() event (see below).

from the wiki:

http://wiki.secondlife.com/wiki/LlSetTimerEvent


timer();
Repeats the code in the timer(). Result of the llSetTimerEvent function call.
we need the timer to execute the llRequestAgentData function and keep the status actualized.

4.-
llGetOwner();

Returns a key that is the object owner's UUID (or key).

llSetText( string text, vector color, float alpha );//we use this to show the status ina text floating over the prim.

from the wiki:

Displays text that hovers over the prim with specific color and translucency (specified with alpha).
full sintax here :
http://wiki.secondlife.com/wiki/LlSetText

5.-
llResetScript();

Resets the script.

http://wiki.secondlife.com/wiki/LlResetScript

=====================================
Ok lets start some code:

first you need to know the key to do the pull out of the data you need in this case your key (owner)for this we need to use:



http://wiki.secondlife.com/wiki/LlGetOwner


CODE

//Lets start some variables to use later

key owner;//like i say before this will keep in this case your key.
string name;// this string keep the name of the owner.
float time=60.0;// time to execute the timer event 60 sec its ok i think.


default
{
state_entry() //here the script execute all the data inside of this first
{
owner=llGetOwner();// get the key to track teh status
name=llKey2Name(owner);// convert the key into a string to use later
llSetText("Getting online status for " +"\n"+ name,<1,1,1>,1);// set the first floating text in this case to show the "Getting online status for" , the "+"sign mean a second concatenated data to show (we can concatenate all the data we need allways as a string)the "\n" means a jump for asecond line bellow the first one.
llSetTimerEvent(time);//we define the time to execute the event timer()
}



dataserver(key req, string data)// the data server event (this part is waiting the request allways return 1="online" and 0="offline")

{
if (data=="1") //check if the agent is online

{

llSetText(name +"\n"+" is Online!",<0,255,0>,1);//we set the floating text to online


}

else{

llSetText(name +"\n"+" is Offline :(",<255,0,0>,1);//we set the floating text to offline.
}

}

on_rez(integer n)// on rez event (this will be execute when the object its rezzed)

{
llResetScript();//reset the script.
}


timer()// the event executing the request DATA, this will be executed with the function llSetTimerEvent(time);
{
llRequestAgentData(owner, DATA_ONLINE);

}
}


I hope this help you to undestend a little more the LSL mistery ;).

PS:sorry for my poor english ;)
_____________________


RAW terrain files - terraform your SIM!!
http://www.wishland.info/
PD:the wiki its your friend ;)
http://wiki.secondlife.com/wiki/LSL_Portal
Very Keynes
LSL is a Virus
Join date: 6 May 2006
Posts: 484
02-25-2009 11:44
I don't recall the details, hence my question, but I am sure I saw a hack that allows you to determine online status without having to do a dataserver call, can anyone confirm?

I suspect it was something to do with llKey2Name or some similar function that only works if the Avatar is online.
Papalopulus Kobolowski
working mind
Join date: 11 Aug 2006
Posts: 326
02-25-2009 13:08
From: Very Keynes
I don't recall the details, hence my question, but I am sure I saw a hack that allows you to determine online status without having to do a dataserver call, can anyone confirm?

I suspect it was something to do with llKey2Name or some similar function that only works if the Avatar is online.

Maybe but i dont know that way.
I saw another script on the wiki but works with the second life search.
Also Nisa Maverick was just asking for some script to get the online status only in floating text format and teh only way i know is making the data server call.
_____________________


RAW terrain files - terraform your SIM!!
http://www.wishland.info/
PD:the wiki its your friend ;)
http://wiki.secondlife.com/wiki/LSL_Portal