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 = "";
}
}
}
| Lone Wolf: Works fine on Wolf Territories Grid correctly reporting unknown sims and regions there are up down. Except this line
llSetText("Sim Status Reporter",,1.0)
Should be
llSetText("Sim Status Reporter",... 1 years ago |