• IS THIS SITE UGLY? Click "RG3" at the very bottom-left of this page to change it. To dismiss this notice, click the X --->

macro for kaladim harvest

nadia69

New member
Joined
Sep 20, 2005
Likes
0
RedCents
#1
someone have a macro that work for harvest mushroom for kaladim recipe pls ? now they have egale shroom quantities and all macro i have tested on mq2 site dotn pick up
grtats ty by advance )
 

nadia69

New member
Joined
Sep 20, 2005
Likes
0
RedCents
#3
gank not working i not see it in our compile (
 
Joined
Dec 23, 2006
Likes
8
RedCents
10¢
#4
there arn't any plugins in the redguides compile that use warp or fake packets atm.
 

nadia69

New member
Joined
Sep 20, 2005
Likes
0
RedCents
#5
yes i know but i know there are some macro on mq2 board but all outdated one in vip work but very badly ) like you go quick more quick manualy ) if someone can upgrade one from depot ) that can be cool )
 

eqmule

MQ2 Lead Dev
Moderator
Joined
Feb 1, 2013
Likes
211
RedCents
17,497¢
#6
Necro thread warning...

I didn't want to start my own since search works just fine, and in case someone else comes here in the future looking for a shrooms macro here it is:
this version is 100% legit, no active hacks and crap, this is flawless, and will work on all mq2 versions released on 2016 Mar 16 or later.

Rich (BB code):
| --------------------------------------------------------------------------
| autoShroom.mac
| Harvests the kaladim fungi
| Start in the mushroom field in Kaladim
| Original macro was by psychotik
| Updates by BrainDeath, Exmarine
| Version 2.0 by EqMule 2016
| --------------------------------------------------------------------------

#turbo 120
#chat tell 
#event Full "#*#There was no place to put that#*#"

Sub Main
	/echo Welcome to autoShroom 2.0
	/declare DummyMsg string outer
	/declare ShroomCount int local

	/varset DummyMsg BRB
	/cleanup
	/if (${GroundItemCount[mush]}<18) {
		/call WaitForShrooms
	}
:HarvestLoop
	/if (${Me.Running}) {
		/echo Im running, need to walk here, setting walk mode
		/keypress run_walk
		/delay 2s ${Me.Running}==FALSE
	}
	/if (${Me.AFK}) {
		/echo Im afk, turning it off
		/afk off
		/delay 2s ${Me.AFK}==FALSE
	}
	/if (${Me.Sitting}) {
		/echo Im sitting, Standing up!
		/sit off
		/delay 2s ${Me.Sitting}==FALSE
	}

	/call CheckForPCs

	/for ShroomCount 1 to 9
		/call GetShroom "*Blue"
		/call GetShroom "*Red"
		/call CheckForPCs
	/next ShroomCount

	/call WaitForShrooms
	/goto :HarvestLoop
/return

Sub WaitForShrooms
	/declare ShroomTimer timer local 1m
	/declare timercount int local 1
	/echo Next Harvest as soon as we have 18 mushrooms ready for harvest...
	/if (!${Me.Sitting}) {
		/echo Im standing, will sit down
		/sit on
		/delay 2s ${Me.Sitting}==TRUE
	}
	/if (!${Me.Running}) {
		/keypress run_walk
		/delay 2s ${Me.Running}==TRUE
	} 
	/if (!${Me.AFK}) {
		/afk ${DummyMsg}
		/delay 2s ${Me.AFK}==TRUE
	}
:sowewait
	/if (${GroundItemCount[mush]}<18) {
		/if (${ShroomTimer}==0) {
			/echo we waited ${timercount}m so far
			/varcalc timercount ${timercount}+1
			/varset ShroomTimer 1m
		}
		/delay 6s
		/goto :sowewait
	}
	/echo there are ${GroundItemCount[mush]} Mushrooms ready to be harvested!
	/echo Preparing to Harvest them, Let's GO! (mario style)
	/doevents 
/return

Sub GetShroom(string shroom)
	/echo Trying to target a ${shroom}
	/squelch /itemtarget ${shroom}
	/delay 2s ${Bool[${Ground.ID}]}==TRUE
	/if (${Bool[${Ground.ID}]} == TRUE) {
		/echo found a ${Ground.DisplayName}
		/if (${Ground.Distance3D} < 150) {
			/echo Its within 150 yards, im moving over to it.
			/call MoveToTarget
			/call GetIt
			/doevents
		}
	}
/return
Sub MoveToTarget 
:KeepMoving 
	/face loc ${Ground.Y}, ${Ground.X}
	/delay 1 
	/keypress forward hold 
	/if (${Ground.Distance3D}>15) {
		/goto :KeepMoving
	}
	:StopMoving
	/keypress forward
	/echo We have arrived at the ${Ground.DisplayName} (${Ground.Distance3D})
/return

Sub DummyMode
	/declare DummyTimer timer local 10s
	/beep 
	/echo Entering Dummy Mode...
	/if (!${Me.AFK}) {
		/afk ${DummyMsg}
		/delay 2s ${Me.AFK}==TRUE
	}
	/if (!${Me.Sitting}) {
		/sit on
		/delay 2s ${Me.Sitting}==TRUE
	}
:waitabit 
	/if (${DummyTimer}>0) {
		/if (${Spawn[gm].ID} || (${SpawnCount[pc radius 150 loc -140 640]}>1)) {
			varset DummyTimer 10s
			/goto :waitabit
		}
		/delay 1s
		/goto :waitabit
	}
	/if (${Me.AFK}) {
		/afk off
		/delay 2s ${Me.AFK}==FALSE
	}
	/if (${Me.Sitting}) {
		/sit off
		/delay 2s ${Me.Sitting}==FALSE
	}
/return 

Sub CheckForPCs 
	/echo checking for PCs
	/if (${Spawn[gm].ID}) {
		/echo GM in Zone!
		/call DummyMode
	}
	/if (${SpawnCount[pc radius 150 loc -140 640]}>1) {
		/echo PC nearby!
		/call DummyMode
	}
/return

Sub GetIt
	/echo picking up a ${Ground.DisplayName}
	/click left item
	/delay 5s (${Cursor.ID})
	/delay ${Math.Rand[10]}
	/autoinv
	/delay 5s (!${Cursor.ID})
	/delay ${Math.Rand[10]}
	/doevents
/return

Sub Event_Chat
	/if (!${Me.AFK}) {
		/reply AFK Message: ${DummyMsg}
		/afk ${DummyMsg}
	}
	/echo Received a Tell...Ending. Camping soon
	/beep
	/timed 1000 /camp
	/endmacro
/return

Sub Event_Full
	/echo "Your inventory is full...Ending."
	/camp
	/endmacro
/return
 
Joined
Dec 31, 2005
Likes
3
RedCents
318¢
#7
This looks a lot like the one I have from old but with tweaks I think. hehe.. Thanks Mule!
 
Joined
Apr 9, 2016
Likes
4
RedCents
114¢
#8
This does not work with kiss11. I use a lefthanded trackball and tried both /click left and /click right. I don't think it targets the shrooms.

Thanks.
 
Top