Func RandSleep($min = 30, $max = 60, $chance = 5)
If $Timer And Round(Random(1, 100)) <= $chance Then
Sleep(Random($min*1000, $max*1000))
EndIf
EndFuc
How do you call the function? RandSleep() ?
Func RandSleep($min = 30, $max = 60, $chance = 5)
If $Timer And Round(Random(1, 100)) <= $chance Then
Sleep(Random($min*1000, $max*1000))
EndIf
EndFuc
How do you call the function? RandSleep() ?
Set your resolution to 1280x720 (you need to switch to fullscreen mode for that and then back to windowed mode)
This older script works (Version 13a) http://www.ownedcore.com/forums/diab...ml#post2296479 (A guide to get notAres's script running on various 16:10 and above resolutions.)
Yea
RandSleep() ; Sleeps for 30-60 5% of the time
RandSleep(15, 45) ; Sleeps for 15-45 5% of the time
RandSleep(20, 40, 100) ; Sleeps for 20-40 100% of the time
EDIT::
I then placed the function call in multiple places in my script with various times and chances.
Low chance for a long sleep 3-5min on the menu
Med chance for a med sleep 30-60s in town
High chance for a small sleep 5-15s after killing Sarkoth
Last edited by Shimizoki; 06-11-2012 at 10:53 PM.
-Darkling Lord
Still not able to get it to work, but ive been up for like 20 hours, so im for sure missing something.Code:Func RandSleep($min = 30, $max = 60, $chance = 5) If $Timer And Round(Random(1, 100)) <= $chance Then Sleep(Random($min*1000, $max*1000)) EndIf EndFuc
I see that EndFuc should be EndFunc. Are there any other mistakes in your previous post for this? Usually when i see a function its something like InTown(), LeaveGame(), etc. But i dont see the () in your code tho ($min = 30, $max = 60, $chance = 5) may be your brackets.
Also you need a $Timer = True near the top of the script?
Why does the run automatically start without me pressing '='?
Anybody experience this?
@Shim
Sent a PM, if you could look it over for me real fast. Thanks!
Hrm, I wonder how the picking up random items can be fixed.
It happens because an item decides to drop where the mouse is when the script moves you into the room.
So the first thing you do is move to that item and pick it up
Lol I noticed... I still have the PM popups turned on, when I refresh the page it gets all up in my grill dizzawg. (Or something to that effect)
Responded.
When you move into the room you should be middle clicking. That wont pick up anything. Any random items you are getting is most likely because your tolerances arent set perfectly.
-Darkling Lord
If I start the script while in the menu to 'resume game' the checkdead, checkwindow, or checkexit should do something but it thinks im in game and starts the run. Why? Code looks like this:
Call("RestartRun")
Func RestartRun()
While $go
if($Leave) Then
$i = 0
Call("CheckExit")
Sleep(1000)
Call("CheckDead")
Call("CheckRepair")
If $Window Then
MouseClick("left", Round(140*$x_ratio),Round(420*$y_ratio)) ;button to resume game from main menu
Sleep($loadtime)
$Window = False
ExitLoop
ElseIf $Dead or $Logout Then
ExitLoop
EndIf
Send("{SPACE}")
Sleep(50)
Mousemove(742, 399,1) ;Starts the run
Sleep(300)
Hrm yes my movement seems to be off for some reason, not sure why.
It's that last attack right that's messing me up.
The mob is dead, so instead of attacking it moves me in to pick up whatever item or gold is in it's place.
Then the script tries to move me in the middle of the room, which now is the wall.
Edit: FIXED. Woo hoo.
For anyone else who is picking up random items... It may be because you kill the far right mob too soon.
This creates a problem for the movement path.
A way to tell if this is your problem is that the table/chair don't get broken
My stats were 13k+ DPS (no sharpshooter) with 1.5 attacks per second
I removed all of the "attack right" areas and it started working fine
Last edited by krims0nknite; 06-12-2012 at 12:26 AM.
Hello guys!
My windows is 8 beta and I'm running sarkoth_farm_script_1.3b in x86 mode, is working well, loot, everything looks great... But sometimes the game ask me if I want to quit:
EXIT GAME
"Are you sure you want to quit?"
OK/CANCEL
How can I fix it?
Then I tried the version sarkoth_farm_script_1.4a with the ImageSearch.au3/images/dll/etc from 1.3b, but it is not looting, no gems and no rares.
Should I replace ImageSearch.au3/images/dll/etc? or stick with 1.3b and try to fix the "exit game" problem?
I'm at a loss with this script. I'm using the correct resolution, correct fullscreen/windowed. I have reinstalled several times.
Everything works properly in regards to starting games, cellar checks, entering the cellar. Even the looting works correctly.
after killing sarkoth, I move to the right side of the room, get stuck on the chest, randomly shoot the wall instead of the table. (this part I fixed manually by editing the cursor locations)
The issue I'm having is that is the portalling gets inturrupted outside, or If I die outside before completing the portal, the script assumes I finished the portal and tries to resume game while I'm still waiting on the 10 sec leave game timer. this causes the script to hit "exit diablo 3" and it hangs up there every time.
Ive racked my brain trying to think of what graphics setting needs tweaked, because it's obviously not seeing the cancel button on the timer, etc.
Any help would be greatly appreciated.