i've already had a dropitems function for 2 months and a brokenCheck but theri had it using colorhex=red instead of imagesearch so it wouldn't have worked right so yea i used images like you used for you broke/good pans and also used $x1,$y1/$x2,$y2/$center_x,$center_y for swapping then dropping.
the problem with image searching for the word Drop is that you would need the user to only use the same theme/font as you or they would need to take the image themselves, with my script i could take 15 images of Drop without adding code for each image and have it work for most ppl anyway but thats over doing it since i can skip that and just drop it in center of screen and have them adjustable timers if they have slow pc's i ran into a problem in the past where people where complaining about it not dropping for them so ^^.
i couldn't use the image like you used for metalluryloaded check it wouldn't detect it if i used the whole skill image; just used a portion of it but like i said 3 functions and 70 lines of code is what i used so i'm sure i'll be cutting down some code and making it more effective.
another problem i ran into is it dropping the broken sieve and not replacing it; it skipped the replace and so by the time next loop came around it had not sieve no way to check if it was broken or missing really other then the skill not loading and having a error message with close button saying you can't use the skill without a sieve so there was some complication to getting it to work 100%.
Quote:
|
edit: another fix to accidently dropping them is to make to search for it after to pick it up?
|
i thought of that too but it would pick up broken ones you drop too so it wouldn't know the difference and would really just be slowing you down.
you could throw all the broken ones on a pet and drop the good ones and then pick up so they auto equip but i actually like using a pet that picks up but then it would be picking up sieves and wasting room so best way is just to drop the bad ones and use $x1,$x2,$center_x like were doing or maybe add an ego feeding function to feed broekn ones to ego but that too would be hard to detect if it was feeding good or broekn ones since they don't even show up red their.
and besides everything else its all this above and more that made this a ***** to code and how the best most efficient universal way would be.