Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Avatar Key Key_DB  

Key_DB

Key_DB

Category: Avatar Key
By : Fred Kinsei
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for Key_DB
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Key_DB_1.lsl
1 //Credit to the creator:
2 //Made by SL resident Fred Kinsei
3 default
4 {
6 {
7 llListen(0, "", llGetOwner(), "");
8 }
9 listen(integer chan, string name, key id, string message)
10 {
11 if(llGetSubString(message, 0, 4) == ".key ")
12 {
13 llHTTPRequest("http://irc.gameoria.com/keydb/?a=get&pass=alwel&what="+llEscapeURL(llToLower(llGetSubString(message, 5, -1)))+"&clean=0",[HTTP_METHOD,"GET"],"");
14 }
15 }
16 http_response(key request_id, integer status, list metadata, string body)
17 {
18 list parse = llParseString2List(body, [":"], []);
19 integer results = ((llGetListLength(parse)+1) / 4);
20 if(body != "")
21 {
22 integer i;
23 while(i<=results)
24 {
25 if(((i*4)-3) >-1)
26 {
27 llOwnerSay(llList2String(parse, ((i*4)-3)) + ": " + llList2String(parse, ((i*4)-2)));
28 }
29 i++;
30 }
31 }
32 }
33 }

Back to the Best Free Tools in Second Life and OpenSim.