Welcome, Guest. Please login or register.
Did you miss your activation email?
November 25, 2024, 07:28:05 am *

Login with username, password and session length
Pages: [1]
Print
Author Topic: T3-T4 AirClicker macro  (Read 13346 times)
s0rcier
Newbie
*
Posts: 38


View Profile
« 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 Smiley
Similar to my t1 emissary macro Smiley

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 Smiley

Hardtime!
« Last Edit: November 13, 2018, 03:21:09 pm by s0rcier » Logged
Dimur
Hero Member
Hero Member
*****
Posts: 699


View Profile
« Reply #1 on: November 09, 2018, 10:41:44 pm »

Nice.
Logged
Nota
Newbie
*
Posts: 8


View Profile
« Reply #2 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
Logged
s0rcier
Newbie
*
Posts: 38


View Profile
« Reply #3 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
Logged
Nota
Newbie
*
Posts: 8


View Profile
« Reply #4 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.
Logged
Natedog
Master
******
Posts: 830


View Profile
« Reply #5 on: November 12, 2018, 02:31:02 am »

I'm around just silent Smiley
Logged

GebbonEQ
Newbie
*
Posts: 37


View Profile
« Reply #6 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?
Logged
Dimur
Hero Member
Hero Member
*****
Posts: 699


View Profile
« Reply #7 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
Logged
Pubis
Full Member
***
Posts: 123


View Profile
« Reply #8 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?
Logged
Dimur
Hero Member
Hero Member
*****
Posts: 699


View Profile
« Reply #9 on: June 23, 2022, 02:04:10 pm »

No, just my lazy typing...forgot the dollar sign

(!${Spawn[npc 80].ID})
Logged
Pubis
Full Member
***
Posts: 123


View Profile
« Reply #10 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.
Logged
Pages: [1]
Print
Jump to:  

Recent

Stats

Members
  • Total Members: 6156
  • Latest: Rin1
Stats
  • Total Posts: 65127
  • Total Topics: 5066
  • Online Today: 331
  • Online Ever: 8678
  • (December 19, 2022, 02:32:09 pm)
Users Online
Users: 1
Guests: 327
Total: 328
TinyPortal v1.0 beta 4 © Bloc