EZ Server

General Category => Quest and Guides => Topic started by: s0rcier on November 09, 2018, 09:42:55 am



Title: T3-T4 AirClicker macro
Post by: s0rcier on November 09, 2018, 09:42:55 am
Simple macro that must be run on an alt on airplane that will click tokens for ya... till it ran out :)
Similar to my t1 emissary macro :)

airclicker.mac

Code:
Sub Main
    /declare AirTokens[15] string local
    /varset AirTokens[1]  "The Lightbringer"
    /varset AirTokens[2]  "Prince of Darkness"
    /varset AirTokens[3]  "The Tranquil"
    /varset AirTokens[4]  "The Faceless"
    /varset AirTokens[5]  "Oceanlord"
    /varset AirTokens[6]  "Split Paw"
    /varset AirTokens[7]  "H-One"
    /varset AirTokens[8]  "Rainkeeper"
    /varset AirTokens[9]  "Prime Healer"
    /varset AirTokens[10] "Plaguebringer"
    /varset AirTokens[11] "Prince of Hate"
    /varset AirTokens[12] "Burning Prince"
    /varset AirTokens[13] "Mother of All"
    /varset AirTokens[14] "The Warlord"

/declare t int local 0
/declare i int local
/declare f int local
/declare c int local

:count
    /if (${Zone.ShortName.NotEqual[airplane]}) {
   /echo You are not in AirPlane... Get There and Rerun!
   /endm
}

/varcalc t 0
/varcalc f 0
/for i 1 to 14 do
   /varcalc c ${FindItemCount[${AirTokens[${i}]}]}
/if (${c} >0) {
      /varcalc t ${t} + ${c}
/if (!${f}) /varset f ${i}
}
/next i

/echo AirClicker.mac -> Found ${t} Tokens
/if (!${t}) {
   /echo AirClicker.mac -> You dont have any left... grab more!!!
   /endm
}

:again
/delay 1
/doevents
        /if (${Cursor.ID}) /autoinv
/if (${SpawnCount[npc loc -530 -210 radius 100]}>1) /goto :again
/if (!${Cast.Ready[]}) /goto :again
        /delay 5
        /rs Clicking ${AirTokens[${f}]} ${t} Tokens Left.
        /nomodkey /itemnotify ${FindItem[${AirTokens[${f}]}].InvSlot} rightmouseup"
/goto :count

/return

enjoy! and hope you kill & loot fast enough!!!!
did about 420 tokens in 1h :)

Hardtime!


Title: Re: T3-T4 AirClicker macro
Post by: Dimur on November 09, 2018, 10:41:44 pm
Nice.


Title: Re: T3-T4 AirClicker macro
Post by: Nota on November 10, 2018, 09:11:48 pm
Awesome, thanks a lot.

On a related note, has anyone gotten the token combine macro to work in RoF2? I can't seem to get it to function right. It just keeps picking up one token and then auto-inventorying it back into the stack. I'm using the version that Natedog posted on the second page of this thread:

http://ezserver.online/forums/index.php?topic=5167.15


Title: Re: T3-T4 AirClicker macro
Post by: s0rcier on November 10, 2018, 11:41:00 pm
I think u need to have your bag 8 empty... last one bottom right... to run that combine macro...

and i think it needs to be a magic box also...

but thats been a while


Title: Re: T3-T4 AirClicker macro
Post by: Nota on November 11, 2018, 09:58:22 pm
Thanks. I had a Magic Box in the eighth slot but was still having the issue. I eventually got it working by replacing my Magic Boxes in bag slots 1 through 7 with backpacks and leaving a Magic Box in slot 8. Huge time saver and thanks to Natedog wherever he's at these days.


Title: Re: T3-T4 AirClicker macro
Post by: Natedog on November 12, 2018, 02:31:02 am
I'm around just silent :)


Title: Re: T3-T4 AirClicker macro
Post by: GebbonEQ on December 03, 2018, 06:25:17 pm
This works great but I've come across a little issue with the turn ins.

It seems that after a few spawns it will try to turn in the next token too fast and ends up getting destroyed, even when the bosses die within 1-2 seconds - is there any way to prevent this?


Title: Re: T3-T4 AirClicker macro
Post by: Dimur on December 03, 2018, 06:52:27 pm
It looks like it's hardcoded to just click every half second, you could increase the /delay 5 to something longer or you could add a conditional that checks to see if a boss mob is already up before actually clicking.

To clarify, nest the actual click part of the code in an if statement.

/if (!{Spawn[npc 80].ID}) /nomodkey /itemnotify ${FindItem[${AirTokens[${f}]}].InvSlot} rightmouseup

This says if there is not a spawn that is level 80 and an npc, then click...if there is a boss up it will just ignore the click


Title: Re: T3-T4 AirClicker macro
Post by: Pubis on June 23, 2022, 08:39:21 am
I tried adding this If statement swapping the line: /nomodkey /itemnotify ${FindItem[${AirTokens[${f}]}].InvSlot} rightmouseup"

With: /if (!{Spawn[npc 80].ID}) /nomodkey /itemnotify ${FindItem[${AirTokens[${f}]}].InvSlot} rightmouseup

But it bitches at me with: Failed to parse if condition '(!{Spawn[npc 80].ID})', non-numeric encountered

Some logical to int problem? I'm guessing it's spitting out true/false and wants 1/0 or something?


Title: Re: T3-T4 AirClicker macro
Post by: Dimur on June 23, 2022, 02:04:10 pm
No, just my lazy typing...forgot the dollar sign

(!${Spawn[npc 80].ID})


Title: Re: T3-T4 AirClicker macro
Post by: Pubis on June 23, 2022, 04:43:14 pm
Thanks! Sorry I forgot to update this. We found that one, it was still being kind of weird so I removed the " from around the token list at the top. Now it works more or less (I seem to have to run it twice). The other thing I noticed is that the script currently has a line that says "/if (${SpawnCount[npc loc -530 -210 radius 1]}>1) /goto :again" which actually stops it from double summoning but also forces you to kill all the adds first before it fires again. So I just set the > number to 10000 to get rid of it. Probably the best idea is to just replace that if with the level based check instead.