OpenSimWorld is the directory of 3D Virtual Worlds based on OpenSimulator and connected through the HyperGrid. Learn More

Can anyone spot the error in my code, OR is llRequestSimulatorData not working properly? i.e. unable to get true sim status of other sims like in sL ?
key gKyStatusQuery;
list gLstRegionNames = [];
integer gIntRegionNameIndex;
integer gIntLstLenRegionName;

default
{
on_rez(integer Setting)
{
llResetScript();
}

state_entry()
{
llInstantMessage(llGetOwner(),"Sim Status Reporter RESET ****");
gLstRegionNames = ["Elf Beach", "Wizardry", "Matrix", "DragonFyre", "SandBox", "The Secret Lab", "CyberCity", "Welcome", "Elfmore Castle"];
gIntLstLenRegionName = llGetListLength(gLstRegionNames);
llSetText("Sim Status Reporter",,1.0);
llSetTimerEvent(10);
}

timer()
{
gKyStatusQuery = llRequestSimulatorData( llList2String(gLstRegionNames,gIntRegionNameIndex), DATA_SIM_STATUS );
gIntRegionNameIndex++;
if (gIntRegionNameIndex == gIntLstLenRegionName) {gIntRegionNameIndex = 0; }
}

dataserver(key query_id, string data)
{
if (query_id == gKyStatusQuery)
{
if (data == "up")
{
llInstantMessage(llGetOwner(), llList2String(gLstRegionNames,gIntRegionNameIndex) + " is up and running fine.");
}
else if (data != "up")
{
llInstantMessage(llGetOwner(), llList2String(gLstRegionNames,gIntRegionNameIndex) + " is " + data);
}
data = "";
}
}
}