Apaec Posted August 4, 2015 Posted August 4, 2015 Hi guys Was just wondering about this. I've currently got it working pretty efficiently with my script calculating the position of the dying enemy and collecting loot only from that tile, but this can cause issues for ironmen especially if there's already loot on said tile. I was wondering if there was any config-esque way of checking if a drop is yours / if it's visible only to you? Let me know if you guys have any ideas! apa x)
FrostBug Posted August 4, 2015 Posted August 4, 2015 Pretty sure there isn't. Unfortunately I suppose you could make delta comparisons of the ground items available and see if the loot appeared around the same time as your target died 3
Bobrocket Posted August 4, 2015 Posted August 4, 2015 I'm pretty sure that each GroundItem has a hashcode, so you could loop through all the hashcodes to see ones that aren't already there?
Gilgad Posted August 4, 2015 Posted August 4, 2015 Do a scan of the tile during NPC Death animation, then do a tile scan when the NPC is dead and filter the difference.
Apaec Posted August 4, 2015 Author Posted August 4, 2015 I'm pretty sure that each GroundItem has a hashcode, so you could loop through all the hashcodes to see ones that aren't already there? will take a look... but generally.. screw ironmen really... 4
Joseph Posted August 4, 2015 Posted August 4, 2015 Do a scan of the tile during NPC Death animation, then do a tile scan when the NPC is dead and filter the difference.
Th3 Posted August 4, 2015 Posted August 4, 2015 (edited) I have looked into this a while back. There is nothing in the gamepack for this besides attempting to do it the suggested ways above, which could fail if there is a dc or something. There are few methods in the game that get called when a loot is added on the scene but there is no additional data with it. Edited August 4, 2015 by Th3 1
Russian_Savage Posted August 4, 2015 Posted August 4, 2015 I don't know much about ironmen, but does a message pop up in chat box if you can't pick up items? You could look for that.
Apaec Posted August 4, 2015 Author Posted August 4, 2015 I don't know much about ironmen, but does a message pop up in chat box if you can't pick up items? You could look for that. Yes. I've implemented this to blacklist items which when you click them trigger this message to pop up. However i'm not actually sure what the exact message is as I don't have an ironman account lelll
Russian_Savage Posted August 4, 2015 Posted August 4, 2015 Yes. I've implemented this to blacklist items which when you click them trigger this message to pop up. However i'm not actually sure what the exact message is as I don't have an ironman account lelll ffuucckk. that's the worst. 1 little stupid thing that holds you back.