Blizzard Sector
D2NT 3.1 - How do you show who dropped an item? - Printable Version

+- Blizzard Sector (https://www.blizzsector.co)
+-- Forum: Diablo II (https://www.blizzsector.co/forum-4.html)
+--- Forum: Hacks Bots and Editors (https://www.blizzsector.co/forum-16.html)
+--- Thread: D2NT 3.1 - How do you show who dropped an item? (/thread-46687.html)



D2NT 3.1 - How do you show who dropped an item? - Solstice - 08-18-2010

One thing that has been bothering me, statistically, is that I never know who I picked up [x] item from. How do you get D2NT to show who dropped what [Kept] item? Because literally speaking, if you notice that a certain monster drops an item more than another certain monster, you can just "remove" the other monster from your to-do list.


D2NT 3.1 - How do you show who dropped an item? - telconstar99 - 08-21-2010

This has been bugging me too. Currently I've got an IP ban (that's another issue that I thought I had solved....who knows) so I can't test out my theory. Anyway, after taking a gander it seems that this *should* do the trick:

1) Open up your NTSnagit file (in your libs section). Look in the SnagIt() function for this line:

Quote:NTC_SendLogToOOG(NTC_LOG_ITEM, "Kept " + NTC_ItemQualityToMGRColor[_item.quality] + _item.name.split("\n")[0] + ";" + _item.itemdesc);

Change it to:

NTC_SendLogToOOG(NTC_LOG_ITEM, "Kept " + NTC_ItemQualityToMGRColor[_item.quality] + " from " + boss + _item.name.split("\n")[0] + ";" + _item.itemdesc);


2) Open up all the files found in NTBot\bots. You will need to add a single line to all of them.

For example, this is my old NTAndariel file:

Quote:function NTMain()
{
Include("libs/common/NTCommon.ntl");

My new file:

Quote:function NTMain()
{
var boss="Andy";

Include("libs/common/NTCommon.ntl");

Of course the word "Andy" can say whatever you want. That's the text that will appear in your manager. At least that's the theory - I can't verify right now due to IP ban.[COLOR="Silver"]

---------- Post added 08-21-2010 at 02:59 AM ---------- Previous post was 08-20-2010 at 08:35 PM ----------

[/COLOR]I had a chance to test this tonight. It turns out your NTBots\bots file should look like this (this is my Andariel file):

Quote:var boss="Andy";

function NTMain()
{
Include("libs/common/NTCommon.ntl");

Also, this is what the NTSnagIt line should look like:

Quote:NTC_SendLogToOOG(NTC_LOG_ITEM, "Kept " + NTC_ItemQualityToMGRColor[_item.quality] + _item.name.split("\n")[0] + " from " + boss + ";" + _item.itemdesc);

Now my manager says Kept <item> from <boss>. Hope that is clear.