166
Stealth archive / Corpse Looting Help
« on: March 28, 2015, 08:11:08 AM »
I'm really close to getting this program done but I've been stuck on getting the loot routine for a couple days now...
Does GetTooltip work correctly? It either hangs the program or I get back a very odd-looking string of different names of items with odd characters.
Example: ""ded gorget7?\0\0\0studded sleeves8?\0\0\0studded leggings9?\0\0\r\0studded tunic:?\0\0\0studded leggings;?\0\0\r\0studded tunic<?\0\0\0studded sleeves=?\0\0\0studded gloves>?\0\0\0studded sleeves??\0\0\0studded le""
I looked at Crome696's SpeedLooter for example, GetCliloc no longer exists in ScriptDotNet2, so I'm assuming it was replaced by GetClilocByID.
GetCliocByID(item.ID) returns ""
Maybe I'm not doing something right?
Does GetTooltip work correctly? It either hangs the program or I get back a very odd-looking string of different names of items with odd characters.
Example: ""ded gorget7?\0\0\0studded sleeves8?\0\0\0studded leggings9?\0\0\r\0studded tunic:?\0\0\0studded leggings;?\0\0\r\0studded tunic<?\0\0\0studded sleeves=?\0\0\0studded gloves>?\0\0\0studded sleeves??\0\0\0studded le""
I looked at Crome696's SpeedLooter for example, GetCliloc no longer exists in ScriptDotNet2, so I'm assuming it was replaced by GetClilocByID.
GetCliocByID(item.ID) returns ""
Maybe I'm not doing something right?
Code: [Select]
Container lootContainer = new Container(corpse.ID);
lootContainer.Open();
List<Item> foundList = lootContainer.Inventory();
foreach (Item item in foundList)
{
if (lootTypes.Contains(item.Type))
{
response("Item found in list: " + item.Type);
string toolTip = Stealth.Default.GetTooltip(item.ID);
response("tooltip: " + toolTip);
//string itemProperties = Stealth.Default.GetClilocByID(item.ID);
//string toolTip = item.Tooltip;
//response("tooltip: " + item.Tooltip);
/*response("tooltip: " + item.Tooltip);
response("Properties: " + itemProperties);*/
}
}