Battousai
2015-02-15 20:11:58
Was wondering if anyone knew a better way to find NPC other than mainScreen.findObject , It seems really unreliable when it comes to NPC.
2015-02-15 20:11:58
2015-02-15 20:14:57
2015-02-15 20:56:26
2015-02-15 21:33:40
From: Clarity
When color scripting, there is usually no AIO universal NPC detection method that is superior in all cases. The best NPC finders are tailored specifically for the situation, in my opinion. Mainscreen.findObject is likely unreliable because it is an attempt at making a general function for use in all environments, which is no simple task at all.
Take a look at NPC finders in other scripts, and then add in custom filtering for the TPAs/ATPAs. Making stuff like this is a lot of trial and error, and seeing what works.
If you aren't familiar with what I mentioned, and want a more extended example, let me know!
2015-02-15 23:28:28
From: Battousai
I have only made 2 scripts so far, all of which are very very simple scripts not using TPAs and ATPAs and stuff like that, so a more detailed example would be nice lol
From: Clarity
When color scripting, there is usually no AIO universal NPC detection method that is superior in all cases. The best NPC finders are tailored specifically for the situation, in my opinion. Mainscreen.findObject is likely unreliable because it is an attempt at making a general function for use in all environments, which is no simple task at all.
Take a look at NPC finders in other scripts, and then add in custom filtering for the TPAs/ATPAs. Making stuff like this is a lot of trial and error, and seeing what works.
If you aren't familiar with what I mentioned, and want a more extended example, let me know!