Hey All! For those scripters out there who like nice Name2Key Services, Check out my latest string black_db_name2key_service = "http://blackclan.net/name2key/n2k.php?ss=";
key QID;
string Name;
key UUID;
llName2Key(string name)
{
QID = llHTTPRequest(black_db_name2key_service+llEscapeURL(name), [], "");
}
default
{
state_entry()
{
llListen(0, "", llGetOwner(), "");
}
listen(integer channel, string name, key id, string str)
{
Name = str;
llName2Key(name);
}
http_response(key req, integer status, list meta, string body)
{
if(req == QID && status == 200)
{
UUID = (key)(llStringTrim(body, STRING_TRIM));
if(UUID == NULL_KEY)
{
//None found
}
else
{
llOwnerSay(Name + "'s UUID Key = "+(string)UUID);
}
}
}
} BlackDB Only has a small database but also uses the SLSearch to find those missing uuid's and is added to the db for faster search results. (And if LL change the slsearch more.... ggrrr!) Anyways, Hope it's liked! Thanks, Nika Rugani.