I just turned on $Timer = True and i see the delays lol.
You need to comment out RandSleep(5, 10, 50) which basically says " 50% chance to sleep 5-10 seconds". Not sure why this is there, i would have expected something like:
RandSleep(45, 120, 5) so that it looks like you went to take a piss or grab a drink ;p A 50% chance pause for 5-10 seconds really doesnt do much but delay the script ;p
What happens is that I make it to the vendor every time. I click on him and open up his and my window to get ready to sell my items to him. After about 1-2 seconds, the script closes the windows and just stands there. It doesn't sell for some reason. I did try changing Magic=False to Magic=True under vendoring in the ini file, but still didn't work. Also the cursor doesn't even attempt to move to my items. It just stays in the same spot it was when it originally clicks on the merchant. After the windows close it will click below me. I believe this is because when it pressed ESC to close the merchant's window, it's really pressing it to leave the game. Then the cursor moves down some so that it could click the area where the 'leave game' button is supposed to be.
So long story short... script won't sell.
Last edited by qu9ke; 06-16-2012 at 04:18 PM.
Your script is failing at the pixel check thats checking to see if the merchant is open. Mine did too. I fixed it by adding in my own pixel check. This is the part of the code you want to look for:
I had to use $VendorFound = PixelSearch(Round(184),Round(54),Round(191),Round(60),0xCFCD5F); for myself. This will 99% not work you for. You will have to find your own pixel to and coords for the check.Code:;Make sure window is open $VendorFound = PixelSearch(Round(150*$x_ratio), Round(0*$y_ratio), Round(300*$x_ratio), Round(100*$y_ratio), 0xC5C25A) ;checks for the bright spot on bag at top of vendor If Not @error Then ;All If $vendorAll == True Then For $c = 1 To $vendorCols For $r = 1 To $vendorRows MouseClick("right", (((($c-1)*50)+32+1398)*$x_ratio), (((($r-1)*51)+32+572)*$y_ratio)) Next Next EndIf
im getting MainMenu.png not recognized, though im pretty sure im using the right path..
i had the same problem...just go in game in main manu, and do a print screen , and make a resume button yourself... of the MainMenu.png file.... then replace it and it will work...for some reason it dosent like it! didnt do that with 1.3...but in 1.3.2 is something that he doesnt like
How can I find my own? I'm not exactly the most savvy when it comes to this. Also, when I do find what I'm looking for, how do I add what I find into the coding. You did tell where to look, which I appreciate, but adding what I find seems like a whole other level what with all the 'Round's' and what not.
I use an AutoHotKey script (note, NOT autoIt) to find my pixel and coords.
With this running, i just mouseover whatever i am looking for, hit the mouse2 button, and it will copy the coords and the color to my clipboard.Code:;------------------------------------------------ ; a simple screen location and color grabber for ; use in mmo's to grab important locations ; copies the x,y coordinates and the color at that ; location to the clipboard. Use paste or Ctrl-V ; to insert the color into a script or text file. ; this can be used for finding click locations, ; health and mana bar colors, on screen ui elements ; etc. XButton2:: DoFastGrab: MouseGetPos, oposx, oposy Sleep 300 PixelGetColor, grabcolor, %oposx%, %oposy%, RGB Sleep 300 Clipboard = %oposx%,%oposy%,%grabcolor% ClipWait Soundbeep,750 SoundBeep,750 Return
As far as what to replace, you just replace his coords and pixel color with your own. In my previous post i showed you what i used in place of his.
Okay 2 more questions:
1) When it says things like (Round(150*$x_ratio), is '150' an x value or y value or both?
2) I recently started using a script you gave out a few pages back that tells the coordinates of the current pos of your cursor by pressing 'q', and now I don't know how to turn it off xD. I suppose I could restart my comp or something, idk. The only way I can "type" that letter now is to copy and paste it.
150 in your example would be the x value. The Round just rounds the number.. ie if it was 56.7 it would change it to 57. The only reason you see the Round and the *$x_ratio in there is for compatiblity with many resolutions. I dont use those at all, since its a nightmare trying to make everything compatible with every resolution. Using the ratio gets things close on other resolutions, but in the end, most people still have to go in and tweak the numbers.
As for the other script lol, you can just mouse down near your clock, and click on Show Hidden Icons, then right click it and turn it off ;p
EDIT: I may have figured out how the pixel search works.
wow.... yea I was trying to run it with AutoIt which you specifically told me it's not for. I'll go download AutoHotkey now >.>
What do I put so I can use my right mouse button to use to use the script or something? I don't have the x buttons
Last edited by qu9ke; 06-16-2012 at 05:31 PM.
Running 1.3.2, got a weapon without any magic, just base dmg, my character is still walking around in the top right of the cellar for a while before he TPs, sometimes he won't pick up the blues and just continues to walk around, and then eventually will TP back to town
Sorry guys I had to step out for an hour and things seemed to get busy.
C is Columns, C-1 just means start at 0 for calculations on column 1Code:MouseClick("right", (((($c-1)*50)+32+1398)*$x_ratio), (((($r-1)*51)+32+572)*$y_ratio))
50 is the approximate width of a cell in your inventory on a 1920x1080
32 is the offset so it clicks somwhat near the middle of it.
1398 is the offset from the left side of the screen.
The same is true of the second part but for rows instead of cols.
@Robble, I was not able to test in on my system as I dont get disconnected... ever. Because of this I had to make guesses at the proper placement of it. I guessed wrong
@Satan, sucks dude. But it wasnt anything I did.
@Angry, If you just set AutoUpdate to false in the INI, none of the updateing code will run. I made sure of this since I knew not everyone would like it. All it basically does though is downloads a zip to the latest files. Those same files will be on the OP. It was just for a convienance.
@Robble, Does vendoring actually work when stashing is on? I tried to set it up that it didnt need to. But its highly advised that you do have stashing on so you dont vendor rares and legendaries.
@Angry, It wasnt there for a long break... just to add a small amount of variability to the script. I wanted the game times to fluctuate slightly for those who didnt like everything being so fast. They thought it looked safer. Thats why there are the longer breaks elsewhere. those are for going to get a drink, etc.
@Qu9ke, Thanks for that insight... it shouldnt be the case but I will look into it. It makes alot of sense that its trying to leave game. I personally have been running the script for 2 hours without a single error, so its somewhere in your resolution but not mine thats causing the problem. I'll doublecheck that its sending the escape fine.
@Angry, so the issue was the pixelcheck? I tried getting a few people to change the value, but it didnt work for them. Does the game run fine now that the check works?
@nikulay, Angry and momo are correct, also on the OP are quite a few troubleshooting things you can try. If it still doesnt work maybe we can figure something out.
@FFSmasher, Set all the loot settings to false one by one until the problem stops. Once you identify the issue you can give me more details. Also, if you are using lootMagic, its best to have LootTomes to false, since tomes are magic items they are already in there. It could cause some issues.
I think thats everyone....
As for the autohotkey thing you can make a script in autoIt that does the same thing. I can make one for you in a minute if you need it.
Last edited by Shimizoki; 06-16-2012 at 05:43 PM.
-Darkling Lord