spacer.png, 0 kB
EASY HOVER TEXT E-mail

easy_hover_text.jpg Just a small script I made,
the functions are simple and controlled by menu:

* Set hover text by object description
* Set hover text by chat, (multiple lines)
* Select hover text colour
*Clear hover text
*Remove hover text script

the listers in this script are only active for 120 seconds after the owner touched the object

 

 

 

 ///////////////////////////////////////////////////////////////
//////  SCRIPT MADE BY FLATER BAXTER                     //////
//////        FREE TO USE , NOT FOR RESELL :p           ///////
////////          MORE FREE SCRIPTS ON OUR WEBSITE     ////////
////////////            HTTP://WWW.LOOQZ.EU          //////////
//////////////////////////  KEEP THIS TEXT IN PLACE ///////////
///////////////////////////////////////////////////////////////


list menu =[ "description","clear","remove","listen","colour"];
list colours = ["black","white","yellow","magenta","green","blue","cyan","grey","red"];
integer zchan;
integer handle1;
integer handle2;
string text;
vector colour = <1,1,1>; //defauld colour
integer open = FALSE;

update(){
    llSetText(text,colour,1);
}

default
{
    state_entry()
    {
       text=  llGetObjectDesc();  
    }
    on_rez(integer start_param)
    {
          llResetScript();  
    }  
    touch_start(integer total_number)
    {
        if(llDetectedKey(0) == llGetOwner()){
        zchan = llFloor(llFrand(9999));
        if(zchan <= 5)zchan = llFloor(llFrand(9999));
        llDialog(llGetOwner(),"WHAt YOU WANNA DO? \n \n \n",menu,zchan);
        llListenRemove(handle1);
        handle1=llListen(zchan,"",llGetOwner(),"");
        llSetTimerEvent(120);
    }
    }
     listen( integer channel, string name, key id, string message )
    {
if(open ==FALSE){
    if (message == "description"){text=  llGetObjectDesc();update();}
    else if(message == "clear")llSetText("",<1,1,1>,0);
    else  if (message == "colour")llDialog(llGetOwner(),"select a colour \n \n \n",colours,zchan);
    
        else  if (message == "black"){colour = <0,0,0>;update();}
        else  if (message == "yellow"){colour = <1,1,0>;update();}
        else  if (message == "cyan"){colour = <0.0, 1.0, 1.0>;update();}
        else  if (message == "green"){colour = <0,1,0>;update();}
        else  if (message == "magenta"){colour =<1.0, 0.0, 1.0>;update();}
        else  if (message == "white"){colour = <1,1,1>;update();}
        else  if (message == "grey"){colour = <0.5, 0.5, 0.5>;update();}
        else  if (message == "blue"){colour =  <0.0, 0.0, 1.0>;update();}
        else  if (message == "red"){colour =  <1.0, 0.0, 0.0>;update();}
        
    else if(message == "remove")llRemoveInventory(llGetScriptName());
    else  if (message == "listen"){llListenRemove(handle1);llSetTimerEvent(120);llSleep(1);open =  TRUE; text = ""; llInstantMessage(llGetOwner(),"Just type what you want,\nevery chat line is a line of hover text,\nif your done, type: done");}
}
        if (open == TRUE){
            handle2=llListen(0,"",llGetOwner(),"");
            
            if ( message == "done"){llSetTimerEvent(0); open =  FALSE; llListenRemove(handle2);}
            else  if (channel ==0)text = text+message+" \n";
            update();
            
            }
}
timer()
{
    llListenRemove(handle1);
    llListenRemove(handle2);
    
}
}

 

 

 
Comments
Add comments: EASY HOVER TEXT

Enter your comment below:

(required)

(required)

Your email will not be displayed on the site; only to our administrator.





 

free lindens
 
spacer.png, 0 kB
   
free joomla templates Joomla tutorials joomla themes