removed useless _ folders
This commit is contained in:
3
Name2Key/Name2Key.sol
Normal file
3
Name2Key/Name2Key.sol
Normal file
@@ -0,0 +1,3 @@
|
||||
<Solution name="Name2Key">
|
||||
<Project name="Name2Key" path="Name2Key\Name2Key.prj" active="true"/>
|
||||
</Solution>
|
||||
12
Name2Key/Name2Key/Name2Key.prj
Normal file
12
Name2Key/Name2Key/Name2Key.prj
Normal file
@@ -0,0 +1,12 @@
|
||||
<Project name="Name2Key" guid="D8BCC01D-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D8BCC0F3-6C00-1014-B904-200204C60A89">
|
||||
<Script name="Name2Key_1.lsl" guid="D8BCE2A2-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
<Script name="Name2Key_2.lsl" guid="D8BCF4AB-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
<Script name="Name2Key_3.lsl" guid="D8BD0CFC-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
<Script name="Name2Key_4.lsl" guid="D8BD1ACB-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
28
Name2Key/Name2Key/Object/Name2Key_1.lsl
Normal file
28
Name2Key/Name2Key/Object/Name2Key_1.lsl
Normal file
@@ -0,0 +1,28 @@
|
||||
// :CATEGORY:Owner Key
|
||||
// :NAME:Name2Key
|
||||
// :AUTHOR:Takat Su
|
||||
// :CREATED:2011-10-16 19:28:26.180
|
||||
// :EDITED:2013-09-18 15:38:58
|
||||
// :ID:551
|
||||
// :NUM:749
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// Usage sample
|
||||
// :CODE:
|
||||
integer cmdName2Key = 19790;
|
||||
|
||||
integer cmdName2KeyResponse = 19791;
|
||||
|
||||
|
||||
|
||||
default {
|
||||
|
||||
state_entry() {
|
||||
|
||||
llMessageLinked( LINK_SET, cmdName2Key, "Test Name", NULL_KEY );
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
46
Name2Key/Name2Key/Object/Name2Key_2.lsl
Normal file
46
Name2Key/Name2Key/Object/Name2Key_2.lsl
Normal file
@@ -0,0 +1,46 @@
|
||||
// :CATEGORY:Owner Key
|
||||
// :NAME:Name2Key
|
||||
// :AUTHOR:Takat Su
|
||||
// :CREATED:2011-10-16 19:28:26.180
|
||||
// :EDITED:2013-09-18 15:38:58
|
||||
// :ID:551
|
||||
// :NUM:750
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// Google App Python Code - not needed unless you want to make your own app engine
|
||||
// :CODE:
|
||||
rom google.appengine.ext import webapp
|
||||
|
||||
from google.appengine.ext.webapp.util import run_wsgi_app
|
||||
|
||||
import urllib, urlparse
|
||||
|
||||
|
||||
|
||||
kURL = 'http://vwrsearch.secondlife.com/client_search.php?session=00000000-0000-0000-0000-000000000000&q='
|
||||
|
||||
kProfile = "Resident profile"
|
||||
|
||||
kResult = "secondlife:///app/agent/"
|
||||
|
||||
|
||||
|
||||
class MainPage( webapp.RequestHandler ):
|
||||
|
||||
def get(self):
|
||||
|
||||
inName = self.request.get("name").upper()
|
||||
|
||||
name = inName.replace(" ", "%20")
|
||||
|
||||
data = urllib.urlopen(kURL + name).read()
|
||||
|
||||
start = data.index( kProfile )
|
||||
|
||||
foundName = data[start+18:start+18+len(inName)]
|
||||
|
||||
key = '00000000-0000-0000-0000-000000000000'
|
||||
|
||||
if foundName.upper() == inName:
|
||||
|
||||
20
Name2Key/Name2Key/Object/Name2Key_3.lsl
Normal file
20
Name2Key/Name2Key/Object/Name2Key_3.lsl
Normal file
@@ -0,0 +1,20 @@
|
||||
// :CATEGORY:Owner Key
|
||||
// :NAME:Name2Key
|
||||
// :AUTHOR:Takat Su
|
||||
// :CREATED:2011-10-16 19:28:26.180
|
||||
// :EDITED:2013-09-18 15:38:58
|
||||
// :ID:551
|
||||
// :NUM:751
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// app.yaml file - not needed unless you want to make your own app engine
|
||||
// :CODE:
|
||||
application: name2key
|
||||
|
||||
version: 1
|
||||
|
||||
runtime: python
|
||||
|
||||
api_version: 1
|
||||
|
||||
38
Name2Key/Name2Key/Object/Name2Key_4.lsl
Normal file
38
Name2Key/Name2Key/Object/Name2Key_4.lsl
Normal file
@@ -0,0 +1,38 @@
|
||||
// :CATEGORY:Owner Key
|
||||
// :NAME:Name2Key
|
||||
// :AUTHOR:Takat Su
|
||||
// :CREATED:2011-10-16 19:28:26.180
|
||||
// :EDITED:2013-09-18 15:38:58
|
||||
// :ID:551
|
||||
// :NUM:752
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// Library
|
||||
// :CODE:
|
||||
integer cmdName2Key = 19790;
|
||||
|
||||
integer cmdName2KeyResponse = 19791;
|
||||
|
||||
|
||||
|
||||
list gRequests;
|
||||
|
||||
|
||||
|
||||
key requestName2Key( string inName ) {
|
||||
|
||||
list lNameParts = llParseString2List( inName, [" "], [] );
|
||||
|
||||
string lFirstName = llList2String( lNameParts, 0 );
|
||||
|
||||
string lLastName = llList2String( lNameParts, 1 );
|
||||
|
||||
return llHTTPRequest( "http://name2key.appspot.com/?name=" + lFirstName + "%20" + lLastName, [], "" );
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
default {
|
||||
|
||||
Reference in New Issue
Block a user