Hi
just tested the wormhole script, works really fast!
small edit for me : i had to remove all the "Round(number*x_ratio, ..." stuff and replace em with the hardcoded coords (which are the exact numbers you took in the "Round(
NUMBER*ratio ...)
to make the checkdead function work. i ahven't had the chance to test the checkwindow function yet + so far i didnt get stuck in a loop in the menus yet. have not tested the script for long though.
For the checkloot function : still not working for me. I'm 90% sure it has something to do with how the script looks for the yellow pixel of rare items and then using the wrong coords for my 'pick item mouseclick'. I ran multiple tests in a game where the cellar door was open, where i dropped a yellow item on the floor.
test 1 :
drop the item on the floor, go back to the start area and run the script from the top (so he teleports, looks for open cellar and moves to cellar, spam the attacks like the enemy is still there, pick up the gold and the run the checkloot function) it looks like he reacts to there being an item on the floor, but he clicks on the wrong spot in the room. this click is nowhere near a torch or my flaming weapon or the familiar, and every time i restart the run, he moves to the exact same location in the room, as long as i leave the dropped yellow item in the same spot
test 2 : drop the yellow item on another spot and run test 1 again (also multiple times). now he runs to a different location in the room, but to the exact same location every time i restart the script from the top (again leaving the dropped item in the same spot for every run during test 2)
test 3 : NO yellow item on the floor, run the script multiple times in the same game, walking back to the start every time. This is to test if my char doesn't detect any other pixels, like the one from the torches/familiar/force weapon flames as a pickable item. In this case, my char never moves after picking up the gold, he immediately teleports to town to leave game and start the next run.
(Test 1 and 2 are basically the same, just the item dropped in a different spot. I even ran it in like 5 or 6 different spots, which all give me the same result. thats why i'm not listing them as test 3, 4, 5 ... there's no point - just trying to state my case here as clear as possible)
these tests convinced me the pixel detection in the checkloot is working fine, just that it detects the wrong coords for the found pixels and enters those wrong coords in this line :
MouseClick ('left', $RareLoot[0], $RareLoot[1])
here's my full script :
wittekop's edit of wizardscript - Pastebin.com
You can see how i changed the pixelsearch lines for different functions (checkdead/checkwindow/checkloot...) to the hardcoded coords like this example :
$YouHaveDied = PixelSearch(620, 325, 625, 330, 0xFFFFFF) ; checks for white text "YOU HAVE DIED"
instead of using the Round(coord*x_ratio ... ones
$YouHaveDied = PixelSearch(Round(620*$x_ratio), Round(325*$y_ratio), Round(625*$x_ratio), Round(330*$y_ratio), 0xFFFFFF) ; checks for white text "YOU HAVE DIED"
otherwise my checkdead function wouldn't work and it wouldn't detect a yellow pixel of a dropped rare item like stated in my tests.
My ingame settings are : fullscreen windowed, 1920x1080 (but this setting is faded in the game options menu, so i'm thinking it doesn't really take this into consideration?)
does anyone else have this problem ? Or anyone know what i'm doing wrong ? I've been editing notAres' / Mackus101's script from the start of this project, an always had this problem.
I think the problem lies somewhere within the Resolution - recalculations/rounding, since my checkdead function never worked until i replaced the recalculations/roundings with the hardcoded values.
Can someone with alot of experience on the matter take a look at this coz i'm getting very frustrated. My 'skills' only go as far as editing other people's stuff to my needs, analyzing the script itself is way beyong my level of expertise
thank you for all your hard work so far!