|
Gau Hax
Registered User
Join date: 4 May 2008
Posts: 9
|
06-07-2008 07:14
Hello, i`m german. excuses my bad English i have ask, i search for the instruction to set a Sim "Karte" map the UUID on an side on prims. I look for the instruction, in order to get me the UUID sim of the map ?
please you can help me, I find unfortunately not the correct in the Wiki !!!
many dear owing to, gau
|
|
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
|
06-07-2008 07:52
key http_request_id; string URL = "http://www.subnova.com/secondlife/api/map.php"; string SIM_NAME; integer iLine = 0; integer CHANNEL = 1000; string name = "Sabnock"; default { on_rez(integer n) { llResetScript(); } state_entry() { vector temp; list temp_name; integer i=0; temp = llGetScale(); http_request_id = llHTTPRequest(URL + "?" + "sim" + "=", [], ""); iLine = 0; temp_name = llParseString2List(name,[],[" "]); for (i = 0; i < llGetListLength(temp_name); i++) { if (llList2String(temp_name,i) == " ") { temp_name = llListReplaceList(temp_name,["_"],i,i); } } SIM_NAME = llDumpList2String(temp_name,""); http_request_id = llHTTPRequest(URL + "?" + "sim" + "=" + SIM_NAME, [], ""); llSetTimerEvent(86400); } timer () { llResetScript(); }
http_response(key request_id, integer status, list metadata, string body) { if (request_id == http_request_id) { llSetTexture(body, 0); } } }
I believe this was written by Jana Kamachi, so credit where credit's due. This will update once per day, so when the sim map is updated on the grid, it will reflect on the prim as well. http://www.secondscripter.com/
_____________________
My tutes http://www.youtube.com/johanlaurasia
|
|
Gau Hax
Registered User
Join date: 4 May 2008
Posts: 9
|
06-07-2008 08:19
Love owing to, thanks for your assistance. here must then only the names sim register! string name = "Sabnock";
finely, love greeting gau
|
|
bigmoe Whitfield
I>3 Foxes
Join date: 29 Jul 2007
Posts: 459
|
10-08-2008 14:17
old thread is old. but wanted to thank you for posting this and for the OP for asking. this is what I have been needing 
_____________________
GoodBye Forums we will miss you ~moe 2-2-2010~
|