How to skip ahead in a long script with hotkeys?

I have recorded this very long script with Feiyue's macro recorder to autofarm a game. I have noticed that sometimes the script fails due to latency or other issues. I want to add hotkeys where I can skip ahead to certain parts of the script so it can continue autofarming past areas it already completed.

I have tried Goto with labels, but get this error message "A Goto/Gosub must not jump into a block that doesn't enclose it".

Is there an easy way to implement this without having to change my script into alot of functions? Or perhaps I need to separate all the regions into their own functions, and call them in the main loop.

Really appreciate any feedback. Thanks.

This is a gist of my script so far

Playspeed:=1 

Loop, 1
{
SetTitleMatchMode, 2
CoordMode, Mouse, Window

tt = ahk_exe Game.exe
      WinWait, %tt%
      IfWinNotActive, %tt%,, WinActivate, %tt%

RegionOneLabel:
; very long sequence for region one

RegionTwoLabel:
; very long sequence for region two

RegionThreeLabel:
; very long sequence for region three

Sleep, % 10000
Run taskkill.exe /f /im "Game.exe"
ExitApp
}

F5::
   Goto, RegionOneLabel
return

F6::
   Goto, RegionTwoLabel
return

F7::
   Goto, RegionThreeLabel
return
reddit.com
u/kakashisensei2000 — 5 days ago

I will hear no more Nagi slander! All A0F1

These are all A0F1 limited chars. Very good monsterlings, seven 4 trait primes (amon, el dorado, nokung, duoxini, gulgak, scar, ice fist dude) and one 2 trait prime (fiend). Nokjung is link chain 5, duoxini link chain 4. Angel is A2 with Esthers weapon and equipment. Lighning team was Pennie, Narae, and A2 Yeonwha.

Kept seeing "Nagi is a brick". She is so important to getting above 700k on this team. She stuns reginula so fast. If I change out Nagi with Narae, I only get like 640k. My Bonnie is A1, but I doubt A6 Bonnie will get this team above 700k. If Nagi had full wind set, maybe I can get to 720k breakpoint.

u/kakashisensei2000 — 6 days ago

Ophelia banner pity carryover?

I was dumping standard rolls into Ophelia's banner but didnt get a dupe. Now I realized the uncertainty of the pity carry over from doing this. In the roll history, her banner rolls show up under Event Limited Character history. But of course that pity did not apply to Limited banners. Theres 20 pages of rolls (~100 rolls) between my Nagi roll and my Narae roll since the Ophelia banner rolls are sandwiched in between.

Is Ophelia's banner pity supposed to carry over to the next 5* specific standard banner or the random 5* character banner? Did I just waste all my standard rolls and this pity buildup was wasted?

reddit.com
u/kakashisensei2000 — 17 days ago

Can someone explain how to double burst Tulpa shield?

I am stuck on Dire Tulpa with my c0r1 skirk team, c2 furina, c0 esco, c0 citlali. I am always like 3% hp short and cant improve. I was watching some videos like these one two. At first I thought it was editting a video to hide something. But I am reading you can double burst the shield phase. I am trying, but I cannot figure out how. Any advice? Thx so much.

u/kakashisensei2000 — 1 month ago

How to make script/batch file to run multiple macro recordings (from Feiyue script)?

I am trying to run multiple macro recordings in sequence. The macro recordings were made with the modified Feiyue macro recorder tool script here.

Something like a batch file or another script that is like

-run recording1

-wait 5 minutes

-run recording2

-wait 3 minutes

-run recording3

-wait 4 minutes

-terminate all ahk processes

It works well if I run them manually. I have to run Feiyue's macro recorder ahk script as admin. Then I run the recording ahk as admin separately. It hooks into the application window. The recording ahk has the info for the application window to hook into.

If I try to make a batch file like this, the recording ahk doesnt hook into right application window to run. Instead it just runs the recording commands on the desktop.

@echo off

start "" "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\YourFolder\macro_recorder.ahk" 

timeout /t 5 /nobreak >nul

start "" "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\YourFolder\Recording1.ahk"

exit

If I try to pass the Recording on as a parameter to the main Feiyue script, it doesnt work. Is this even possible?

start "" "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\YourFolder\macro_recorder.ahk" "C:\YourFolder\Recording1.ahk"

Any help would be much appreciated! Thx.

reddit.com
u/kakashisensei2000 — 1 month ago

How to get MacroRecorder (FeiYue) recording keys to be recognized by another script?

I am trying to record a script for a game task. But the game has locked mouse cursor that prevents Macro Recorder from properly recording mouse movements.

So I am also trying to use this mouse control by keyboard script. https://github.com/4strid/mouse-control.autohotkey/blob/master/mouse-control.ahk

I changed some of the hotkeys, so say I can control the mouse cursor with arrow keys, and left click with R. It works in game, I can control the camera with the keyboard.

I run both scripts simultaneously as admin. Macro Recorder records all my key presses, but when I play it back, those key presses (like arrow keys, R) are not being recognized by the mouse-control script.

Is there a way I can get this to work? Tried declaring #Include of the script, SendLevel 1, merging both scripts as one, but none of these worked.

Thanks!

u/kakashisensei2000 — 2 months ago

is mina's event shop also a scam after getting the lucrative items?

besides lucrative items like upgrade stones, pull currency, and animated background, esther's event shop was a scam in terms of rewards to keys spent. it was way better to spend keys on the paths to get those items instead.

is mina's event shop also the same case? thx

reddit.com
u/kakashisensei2000 — 2 months ago

Lack of delivering simple fixes or resolving the disappearing mon bug is concerning

A minor patch today and they still havent:

- Added lvled up equipment to be salvageable, which they promised and said it was a mistake because lvled up equipment had a different internal id. This should be a very simple fix and they didnt do it yet after a week.

- Disappearing mon bug. This is a harder issue to tackle, but this is more game breaking. At this point, it seems they just dont want to add more server cost and are ok with losing players fed up with this.

If I forgot something, please chime in.

reddit.com
u/kakashisensei2000 — 2 months ago

Are assassins supposed to be alot better for dps during stagger window?

Ive been stuck on rift 27 with an a0f1 mina, a0 angel or a1 yeonhwa, and a2 francis. The mini boss halfway takes too long to kill.

I have been using mina during the stagger windows instead of angel. Saw somewhere to say use angel during stagger because assassins do alot more dmg during stagger.

So I used a shit ton of resources to build up angel the rest of the way. Already lvl 60, lvled up talents to 9. I gave her all of my esther equipment and artifacts. She is over 8000 atk, capped cr/cdmg with food buffs, and has good monlings.

But during the stagger phase, she is not doing any more damage than mina during stagger phase. In fact, shes during worse than mina. What I do at the start of stagger is switch to francis for atk buff, then switch to angel and start with her ult, then skill and basic attack until stagger window is over.

Feels like I wasted a ton of resources on bad advice. Like to hear other peoples input on this. Thx.

reddit.com
u/kakashisensei2000 — 2 months ago

I just figured this out and surprised I didnt see a guide on this before, so I will share it. I just got my purple 4* el dorado to 5* doing this. And moving traits only cost me 20 puree (only 2 traits) because I failed once. But spending 20 puree is better than spending a golden upgrade stone!

Now why would you want to do this? Because they gave only 3 gold upgrade stones for f2p players. I think the only extra ones you can get are from the monthly subscription. So you want to save those gold upgrade stones for rare monlings.

FYI, this works best with a monster you have alot of (i.e. el dorado). Would advise not using this technique on a monster you have scarce amounts of. I would use el dorado as the example here.

Step 1. Try to get as many 5* monlings you can (any fodder kind). The best way to do this is to batch combine all monlings you dont need for mutations to fill up your pokedex, dont have 5* traits, etc... Lock all the good ones, batch combine the rest. This may cost alot of gold though.

As you batch combine, you may start getting purple 4* monlings. Include the 4* monlings in the batch combine auto select, and then you may start getting orange 5* monlings after batch combining.

I batch combined like 1600 monlings, and got like 4-5 five* monlings. It did cost alot, like 12M gold.

Step 2. Now if you have been doing the daily el dorado, you should have alot of 3* el dorados. Don't use the el dorado you already have 5* traits on. Use only fodder el dorados you have been saving. Now this step is to try to get one of these 3* el dorados into a 4* el dorado. There are several ways to do this.

You can combine two 3* el dorados until you get a 4* el dorado. This is only a 20% chance to get a 4* el dorado, but you get el dorado back all the time.

Another method is to combine a 3* el dorado with a 4* monling that you dont need. It has a 25* to get a 4* el dorado, 25* to get a 3* el dorado, or 50* to get the other monling back.

Alternatively, you may yolo and try to combine a 3* el dorado with a 5* monling you dont need. You could consider doing this if you dont have alot to work with and feeling lucky. It has these outcome rates:

5* el dorado - 20%, 5* other - 20%

4* el dorado - 17.5%, 4* other - 17.5%

3* el dorado - 12.5%, 3* other - 12.5%

Step 3. If you were able to get a 4* el dorado from this, now its time to try to get a 5* el dorado. If you managed to get a 5* el dorado straight from combining a 3* el dorado with a 5* monling, congrats and you dont need this part.

Take your 4* el dorado and combine with a 5* monling. The outcome rates are:

5* el dorado - 25%, 5* other - 25%

4* el dorado - 25%, 4* other - 25%

Step 4. Now if you have your 5* el dorado, its time to combine with your existing el dorado that has 5* traits. Combine and use puree to lock in the traits. You will always get an el dorado as the result, but it may be 3,4,5* depending on the quality of el dorados you put in. Hopefullyt it doesnt cost you too much puree to get the 5* el dorado with the locked traits.

reddit.com
u/kakashisensei2000 — 2 months ago

After todays refresh, got 3 free tickets and 3 tickets in the mail. The 3 tickets in mail were added as charge tickets. I noticed rift was consuming free tickets before any charge tickets.

Bought rift shop tickets and those are also charge tickets.

Do charge tickets have an expiration? Thanks

reddit.com
u/kakashisensei2000 — 2 months ago

Ive been trying to get gold crit rate for more than a week. Finally got it after batch combining a shit ton of monlings. I was stupidly salvaging common monlings I dont need for the first half week. Its very costly, but ever since they gave out 2500 keys, I can just use keys for gold every day to fund this. Maybe i got lucky, but I spent like 12M gold and got 3x cdmg, 1 crit rate, 1 skill cd, and several different element dmg and res/hp etc..., probably 10+ gold traits.

So if you need certain gold traits and have the gold to dump into this:

Batch combine them and sort by trait quality after each time. I would do this after locking all the important ones and mutating everything u have that can fill the pokedex first tho.

reddit.com
u/kakashisensei2000 — 2 months ago