Thursday, 1 May 2014

Send email from Second Life

Sends an email to address with subject and message.
• string address
• string subject
• string message
The entire message (including the address, subject and other miscellaneous fields) can't be longer than 4096 bytes combined.

Specification

The message is prefixed with information about the prim sending the email.
Template Example
Object-Name: *prim*
Region: *simname* (*simpos.x*, *simpos.y*)
Local-Position: (*primpos.x*, *primpos.y*, *primpos.z*)

*message*
Object-Name: Object
Region: Gibson (254976, 256000)
Local-Position: (117, 129, 50)

The real message starts here.

Examples


string emailAddress = "somebody@example.com";
string emailHeader = "Someone touched me!";
 
 
default
{
    touch_start(integer num_detected)
    {
        // llSay(PUBLIC_CHANNEL, "Sending eMail report now, this will take ~20 seconds.");
 
        key id = llDetectedKey(0);
        string name = llDetectedName(0);
 
        llEmail(emailAddress, emailHeader,
            "I was touched by: '" + name + "' (" + (string)id + ").");
 
        // llSay(PUBLIC_CHANNEL, "Email has been sent.");
    }

Script to open a website in the browser as soon as the script starts running

Script to open a website in the browser as soon as the script starts running
Shows dialog to avatar offering to load web page at url with message.
If user clicks yes, launches the page in their web browser, starting the browser if required.
• key avatar avatar UUID that is in the same region
• string message message to be displayed in the dialog box
• string url
The url is truncated to 255 characters and message is truncated to 254 characters.
The protocol for the url must be specified, currently only "https://" and "http://" are supported.
The URL should be RFC-1738 compliant with proper escapes.

default
{
    touch_start(integer num_detected)
    {
    key id = llDetectedKey(0);

        // if the touching avatar is in the same sim
        if ( llGetAgentSize(id) )
        {
          string info = "My best website!";

            // must start with either "http://..." or "https://..."
            string url = "http://www.yahoo.co.uk";

            llLoadURL(id, info, url);
        }
        else
            llInstantMessage(id, "I can open it any time!");
    }
}

script to create a note card giver in Second Life

script  to create a note card giver in Second Life






1
string notecard = "Welcome Notecard";

default
{
    state_entry()
    {
       llSetText("Welcome to Notecard", <1,1,1>, 1.0);
    }

    touch_start(integer total_number)
    {
      llGiveInventory( llDetectedKey(0), notecard);
    }
}
2
when you touch the object, it gives error:
Unable to give inventory: 'No item named 'Welcome Notecard'.'.
3
solution:
put the notecard in the inventory box
4
click on inventory -> my inventory -> right click on notecards -> new notecards
in the name, type Welcome Notecard
description: notecard
Touch notecard giver


save the notecard.
drag notecard1 to contents folder.

5
now if you touch the object, it gives message:


Remember: your note card name has to be same as notecard string name


Thursday, 24 April 2014

Upload files by php script

By uploading php script to your web server you can upload many files to the server.


<form enctype="multipart/form-data" action="1-2upload.php" method="POST">
 Please choose a file: <input name="uploaded" type="file" /><br />
 <input type="submit" value="Upload" />
 </form>


Create web directry

To create an directy you have many ways, one of the ways is by php script


<form action="" method="post" >
<table width="400" border="0" cellspacing="0" cellpadding="5">
  <tr>
    <td colspan="3" align="center">Please write your preferred directory name </td>
  </tr>
  <tr>
    <td>Name </td>
    <td>&nbsp;</td>
    <td><input type="text" name="gname" id="text" value=""></td>
  </tr>

  <tr>
    <td colspan="3" align="center"><input type="submit" name="submit" id="submit" value="Submit"></td>
  </tr>
</table>
</form>



<?php



if (isset($_POST['submit'])) {

$name = $_POST['gname'];


mkdir ("$name", 0777);

}


?>





Thursday, 13 March 2014

Second Life – Mailbox


Once we got to know how to tackle note cards and sending emails, we were asked to create a mailbox object which allows an avatar to drop a note card and this is sent to the owner of the mailbox – in this case, my avatar. A notecard is available to be viewed at a later stage. This is the required work for the next two weeks.
The mailbox is created using a typical London red mailbox as an inspiration as shown below.
images
This object is made up of a number of cylinders of different sizes. At the top, a semicircle is added with custom settings in order to produce the same rotating top of a mailbox.
creating
Color is added.
addingcolor
A small box which  would ‘insert’ a notecard is added to the mailbox to make it more realistic.
black
Next, a script is added. This is discussed later on in this blog entry. The script initially asks to user to touch the mailbox and the small entry in it would light up. Also, on dropping a notecard on it, my avatar is able to read the notecard later on.
lighton
Some explanations on the script used for this mailbox is done below. Later on, a link is provided to see the full script.
Light
The light script has been researched for and found through this link: http://wiki.secondlife.com/wiki/Category:LSL_Light. Initially, a number of variables are declared and initialised. The first method is switchit() which basically occurs on an avatar’s request to switch the light on or off. If it is not switched on, it will do so by the llSetColor() function.
llSetColor()
By default, the mailbox displays a message stating “Touch for light”. This is shown in the images above. One important function for this work is the llAllowInventoryDrop() function which must be set to TRUE. This is the script which allows a notecard, which is later on specified, to be added by another avatar.
AllowInventoryDrop
Sending notecard
On clicking on the mailbox, the switchit() method is called and the light is switched on or off accordingly. Also, the llGiveInventory() function is triggered which finds the notecard to be sent to my avatar.
on touch_start
When the inventory is changed, which means that a notecard has been dropped in the mailbox, a message is displayed to my avatar. This has been tested by a number of my colleagues when their avatar sent a notecard to mine. This is shown  in the image below.
notecards sent by avatars
The script for both light and sending notecard can be seen through this link:

Second Life – Letterbox with Drag and Drop.



Today I created a letterbox that allows any item to be dragged and dropped from the inventory on it. To do this I used the same letterbox as I used in my previous post, and edited the script.
I used the CHANGE_ALLOW_DROP, which will allow objects to be dropped into the letterbox.
Image
letterbox3 letterbox2letterbox5letterbox4

Avastar: -2- Adding Clothes


Avastar: -5- Mesh Rigging


Create clothes on Second Life


Let's Play Second Life #24


Let's Play Second Life


Workshop Bauen in Second Life

http://www.youtube.com/watch?v=XrZVimd76Ac

Second Life Workshop: ‘A Global Perspective on Gifted Education’

On Saturday 26 March at 8.00PM UK time, I will be leading a workshop in Second Life taking ‘A Global Perspective on Gifted Education).
The Workshop is my personal contribution to the inaugural celebration of the European Day of Talent, celebrated on 9 April 2011, which has been organised by the Hungarians as part of their drive to support European gifted education while they hold the EU Presidency.
The corresponding times for other parts of the world are:
  • 9.00 PM CEST
  • 4.00 PM US Eastern
  • 1.00 PM US Pacific
  • 7.00 AM Aus (Victoria) (Sun 27 March)
  • 9.00 AM NZ (Sun 27 March)
You can find further details about me and about how to join the event on the website of theBavarian Centre for Gifted and Talented Children which has been organising a series of Global Gifted Education meetings in Second Life, this being the sixth in the series.
Roya Klingner, the Head of the Bavarian Centre, has designed specially for the event a Gifted Phoenix avatar, which is literally the embodiment of the ‘headshot’ avatar I use for this Blog, Twitter and Facebook. Doesn’t he look a fine figure!
So you will be interacting with a hybrid personality, combining the body of Gifted Phoenix and the voice of his alter ego Tim Dracup. (My normal gender-shifting SL avatar Tiresius Draconia is resting on this occasion.)
I want to take a slightly different direction to my predecessors in the series by making a serious effort to maximise interaction with you, the participants.
While it’s fine to come along, take a back seat and watch the proceedings, I’m really keen to get some proper discussion going amongst those willing to take part.
To that end, I’ve decided to share my presentation a week in advance, so participants can see broadly what I plan to cover and so prepare their own contributions. You can find it at:
As a lead-in to the discussion I shall be relying on a graphical version of my very first post on this Blog, which I have also reproduced below.

Thursday, 30 January 2014


We create here A billboard in SL.

Intrcuctions:


  1. Get a cube
  2. right click on the cube > edit item
  3. Choose size X=0.1 y=5 z=3
  4. Use rotate botton to rotate the board
  5. Use mouse wheel to zoom in and out.
  6. Texture tab> texure>pick texture>Library>photo album>asian teahouse-ok.

Thursday, 23 January 2014

Whatever happened to Second Life?

Whatever happened to Second Life?


It's desolate, dirty, and sex is outcast to a separate island. Barry Collins returns to Second Life to find out what went wrong, and why it’s raking in more cash than ever before
Three years ago, I underwent one of the most eye-opening experiences of my life – and I barely even left the office.
I spent a week virtually living and breathing inside Second Life: the massively multiplayer online world that contains everything from lottery games to libraries, penthouses to pubs, skyscrapers to surrogacy clinics.
Oh, and an awful lot of virtual sex.
Back then, the world and his dog were falling over themselves to “be 
a part of it”. Rock stars were queuing up to play virtual gigs, Microsoft and IBM were setting up elaborate pixellated offices to host staff training seminars, Reuters even despatched a correspondent to report back on the latest in-world developments. 
Brighton pier
At its peak, the Second Life economy had more money swilling about than several third-world countries. It had even produced its own millionaire, Anshe Chung, who made a very real fortune from buying and selling property that existed only on Second Life servers.
Three years on, and the hype has been extinguished. Second Life has seen its status as the web wonderchild supplanted by Facebook and Twitter. The newspapers have forgotten about it, the Reuters correspondent has long since cleared his virtual desk, and you can walk confidently around tech trade shows without a ponytailed “Web 2.0 Consultant” offering to put your company on the Second Life map for the price of a company car.
But what has happened to Second Life? Have the hundreds of thousands of registered players logged off and found a real life? Has the Second Life economy collapsed? And what’s become of the extroverts, entrepreneurs and evangelists I encountered on my first visit? There’s only one way to find out. I’m going back in.
Where is everybody?
The first thing I notice upon dropping out of the Second Life sky once more is how empty the place is. On my first visit back in 2006, I couldn’t walk through the training level without clumsily bumping into the throng of fellow newbies. Now, there’s enough room to swing the contents of Noah’s ark, let alone a cat.
I walk and then fly around the landscape for ten minutes or so, but can’t find a single soul to shoot the breeze with. Well, except for a smattering of Second Life bots, which is the intellectual equivalent of striking up a conversation with The Speaking Clock. 
Church
I decide to seek out Second Life’s tourist hotspots, using the game’s search engine as my guide. I check out an amazing Gothic castle, which must have taken someone half a real life to painstakingly cobble together, but I’m the only one admiring the architecture.
I dash off to a shopping mall, listed as one of the most popular sites in the game, and yet it’s only me perusing the countless fashion stores. Admittedly, it’s noon on Saturday in Britain – making it an indecent hour for Second Life’s US-oriented audience – but finding people was never this hard back in 2006.
So I change tack, and search for live events taking place now. Surely, the person who organised them would bother to turn up? The first draws a blank, the second likewise. Finally, I find a huddle of people at a “disco”, a good 20 minutes after I first completed my re-entry into Second Life.
I’m suddenly aware of French accents seeping from my laptop’s speakers. It takes me a few minutes to realise what’s going on. I vaguely remember reading that Second Life had introduced voice chat a while back, providing an audio accompaniment to the text-based chatter we used to make do with in “the good old days”. 


Second Life is...

Exploring and Discovery

Travel with friends to thousands of beautiful and exciting places — all created by the Second Life community. Join Now

Filled with Friends

Millions of people have already joined Second Life. Chat for free using voice or text with folks from around the world who share your passions and interests. Browse profile

Self-Expression

Dress up and design a new 3D you. There are thousands of designer items to explore in ourMarketplace where the selection is as endless as your imagination.

Endless Fun

Every day there are thousands of new experiences and events created by the Second Life community. Visit the Destination Guide to get a peek at some of the action.

Artistic Bliss

Discover your artistic t a lents and share them instantly with friends. Take beautiful snapshots, create machinima videos or build something from scratch inside Second Life.

Second life part two