dont rename assetType 24
parent
050e53d5a1
commit
b21882eaa2
|
@ -11,18 +11,26 @@ while($InventarObjektRow = $InventarObjektStatement->fetch())
|
||||||
|
|
||||||
if($AssetMetaDataStatement->rowCount() == 0)
|
if($AssetMetaDataStatement->rowCount() == 0)
|
||||||
{
|
{
|
||||||
if(!(left($InventarObjektRow['inventoryName'], 8) == '[DEFEKT]'))
|
if($InventarObjektRow['assetType'] != '24')
|
||||||
{
|
{
|
||||||
$renameQuery = $RUNTIME['PDO']->prepare("UPDATE inventoryitems SET inventoryName = ? WHERE inventoryID = ? AND assetID = ?");
|
if(!(left($InventarObjektRow['inventoryName'], 8) == '[DEFEKT]'))
|
||||||
$renameQuery->execute(array(substr('[DEFEKT] '.$InventarObjektRow['inventoryName'], 0, 64), $InventarObjektRow['inventoryID'], $InventarObjektRow['assetID']));
|
{
|
||||||
|
$renameQuery = $RUNTIME['PDO']->prepare("UPDATE inventoryitems SET inventoryName = ? WHERE inventoryID = ? AND assetID = ?");
|
||||||
|
$renameQuery->execute(array(substr('[DEFEKT] '.$InventarObjektRow['inventoryName'], 0, 64), $InventarObjektRow['inventoryID'], $InventarObjektRow['assetID']));
|
||||||
|
|
||||||
echo "Found new missing asset for item '".$InventarObjektRow['inventoryName']."' from '".$RUNTIME['OPENSIM']->getUserName($InventarObjektRow['avatarID'])."'.\n";
|
echo "Found new missing asset for item '".$InventarObjektRow['inventoryName']."' from '".$RUNTIME['OPENSIM']->getUserName($InventarObjektRow['avatarID'])."'.\n";
|
||||||
sendInworldIM("00000000-0000-0000-0000-000000000000", $InventarObjektRow['avatarID'], "Inventory", $RUNTIME['GRID']['HOMEURL'], "WARNUNG: Die Assetdaten von einem deiner Inventarobjekte wurden nicht in der DB gefunden! Item Name: '".$InventarObjektRow['inventoryName']."'.");
|
sendInworldIM("00000000-0000-0000-0000-000000000000", $InventarObjektRow['avatarID'], "Inventory", $RUNTIME['GRID']['HOMEURL'], "WARNUNG: Die Assetdaten von einem deiner Inventarobjekte wurden nicht in der DB gefunden! Item Name: '".$InventarObjektRow['inventoryName']."'.");
|
||||||
|
}else{
|
||||||
|
echo "Found missing asset for item '".$InventarObjektRow['inventoryName']."' from '".$RUNTIME['OPENSIM']->getUserName($InventarObjektRow['avatarID'])."'.\n";
|
||||||
|
}
|
||||||
}else{
|
}else{
|
||||||
echo "Found missing asset for item '".$InventarObjektRow['inventoryName']."' from '".$RUNTIME['OPENSIM']->getUserName($InventarObjektRow['avatarID'])."'.\n";
|
if((left($InventarObjektRow['inventoryName'], 8) == '[DEFEKT]'))
|
||||||
|
{
|
||||||
|
echo " ==> Rename '".$InventarObjektRow['inventoryName']."' -> '".str_replace("[DEFEKT] ", "", $InventarObjektRow['inventoryName'])."'\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
echo "Checking asset for item '".$InventarObjektRow['inventoryName']."' from '".$RUNTIME['OPENSIM']->getUserName($InventarObjektRow['avatarID'])."'.\n";
|
//echo "Checking asset for item '".$InventarObjektRow['inventoryName']."' from '".$RUNTIME['OPENSIM']->getUserName($InventarObjektRow['avatarID'])."'.\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue