• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver
Updated Alcohol Tolerance mac

Release Updated Alcohol Tolerance mac 1.1

No permission to download
Joined
May 21, 2014
RedCents
994¢
I got frustrated with the slot restriction for the booze, so I changed it to use /useitem. It will find the designated booze anywhere in your inventory, including inside bags. I also added closing the merchant window. It has been tested and is working.


Rich (BB code):
| alctol.mac
| Takes you to 200 Alcohol Tolerance
| Version 1.1
| Date: 11-02-2010
|
| By Bror
| Updated by Maskoi
| Removal of slot restriction for Booze and add Merchant window close by Randyleo
|
| MerchantName is the name of the merchant that sells your booze
| MaxWanted is where you want to stop: Default is 450
| Booze is the alcohol you want to buy: Default is ALE
|
| Requirements:
| Must be standing next to the merchant you buying alcohol from.

#event Explode "#*#If you consumed any more drink you would explode#*#"
#event Explode "#*#You could not possibly drink any more, you would explode#*#"
#event TooDrunk "#*#You could not possibly consume more alcohol or become more intoxicated#*#"
#event SkillUp  "#*#You have become better at Alcohol Tolerance#*#"

Sub Main
	/declare OldSkill int outer ${Me.Skill[Alcohol Tolerance]}
    /declare MaxWanted int outer
    /declare MerchantName string outer i
    /declare Booze string outer
	/declare Amount		int 	outer 
	/declare DrinkCounter int outer 
	/declare MaxTime int outer

| ***********************************************
| *   Change these settings if you want.        *
| ***********************************************

        /varset MerchantName Dray Cuves
        /varset Booze Ale
        /varset MaxWanted 450


/echo Alcohol Tolerance is at ${Me.Skill[Alcohol Tolerance]}
	:Start
		/call BuyBooze
		/call Drink
		/call MaxSkill
	/goto :Start
/return

| ***********************************************
| Buy Booze                                     *
| ***********************************************
sub BuyBooze
	/if (${FindItemCount[${Booze}]} > 0) /return
	/echo Time to buy more booze
	/target ${MerchantName}
	/face
	/delay 1s
	/click right target
	/delay 1s
	/call Buy "${Booze}" 20
	/keypress esc 
	/delay 1s	
/return

| ***********************************************
| Sub Drink                      				*
| ***********************************************
sub Drink

	/for DrinkCounter 1 to 20 
	/useitem "${Booze}"
		/delay 1s
		/doevents
	/next DrinkCounter

/return

| ***********************************************
| sUB event too much drink                      *
| ***********************************************

Sub Event_Explode
	/echo Too full, Waiting 30 seconds.
		/delay ${WaitSober}
	/varcalc DrinkCounter ${DrinkCounter}-1
/return

| ***********************************************
| SUB event too drunk                           *
| ***********************************************

Sub Event_TooDrunk
	/declare WaitSober string local ${Math.Calc[45+${Math.Rand[70]}]}s 
	/echo Too Drunk, Waiting ${WaitSober} seconds.
	/delay ${WaitSober}
	/varcalc DrinkCounter ${DrinkCounter}-1

/return

| ***********************************************
| SUB event skillup                             *
| ***********************************************

Sub Event_SkillUp
	/varcalc MaxTime ${MaxWanted}-${Me.Skill[Alcohol Tolerance]}
	/echo Alcohol Tolerance increased >> ${Me.Skill[Alcohol Tolerance]} << 
	/delay 5
/return

| ***********************************************
| SUB Max skill check                        	*
| ***********************************************

sub MaxSkill
	/if (${Me.Skill[Alcohol Tolerance]}>=${MaxWanted}) {
		/echo Alcohol Tolerance is at or greater than ${MaxWanted}. Quiting!
        /camp
        endmacro
	}
/return

| ***********************************************
| Sub Buy                            			*
| ***********************************************

Sub Buy(string ItemToBuy, int amount)
	/declare i int local
	/echo Buying ${ItemToBuy}!
	/declare QTY int local
	/declare ListItem int local
	/varset QTY ${Math.Calc[${amount}-${FindItemCount[${ItemToBuy}]}]}
	/delay 1s
	
	/if (${FindItemCount[${ItemToBuy}]}>= ${amount}) {
		/echo Done!
		/return
	}   
	/varset ListItem ${Window[MerchantWnd].Child[ItemList].List[=${ItemToBuy},2]}
	/if (!${ListItem}) {
		/echo couldn't find ${ItemToBuy}
		/return
	} else {
		/notify MerchantWnd ItemList listselect ${ListItem}
		/delay 1s       
	} 
	/echo Buying ${ItemToBuy} Till I get ${amount} 
	:Loop
	/if (${QTY}>1) {
		/if (${QTY}>19) {
			/Shiftkey /notify merchantwnd MW_buy_Button leftmouseup
			/delay 30s ${FindItemCount[${ItemToBuy}]}>=${amount}
			/echo ${FindItemCount[${ItemToBuy}]} ${ItemToBuy} in inventory
			/varset QTY ${Math.Calc[${amount}-${FindItemCount[${ItemToBuy}]}]} 
			/delay 3
			/if (${QTY}<=0) /return
			/goto :Loop
		}
		/if (${QTY}>0 && ${QTY}<20) {
		/for i 1 to ${QTY}
		/notify merchantwnd MW_buy_Button leftmouseup
		/echo Buying ${ItemToBuy} ${i} of ${QTY}
		/varcalc QTY ${amount}-${FindItemCount[${ItemToBuy}]}
		/echo ${QTY}
		/if (${QTY}<=0) /return
		/next i
		}
	}
		/if (${Merchant.Open}) {
            /notify MerchantWnd MW_Done_Button leftmouseup
            /delay 1s !${Merchant.Open}
		}	
/return
 
I've noticed something very strange - the mac purchases 20 of the booze, drinks down to 10 after a few waiting periods of intoxication, and then sort of stops. I pick up the remaining 10 from slot 8 of my main inventory, and they disappear entirely. They aren't deleted (in the recover tab) but just glitched and gone. This has happened several times tonight while testing. The macro essentially gives up doing anything but it believes there's 10 booze left, but the game thinks there are 0 (even though only 10 were consumed).
 
Exact the same, like BlankStare, happens to me.
He drinks, until there are 10 alcohol left in my inventory. The he stops and do nothing anymore.
If i left click the remaining 10 from Slot 8, they are on my cursor. If i try to put them back, they just vanish, and the macro continues to buy a new stack.
 
I noted this "Bug" as well, its in EQ, not MQ2. And it seems (tried with summoned food and drinks) to only be with Alcohol. and what its doing is its consuming half a stack (if stack was 10, consume to 5, stack of 2 consume to 1). and when you "pick up" the rest of the stack..poof they are gone.. Happened without MQ running....maybe that's part of the issues with the servers coming down.....
 
There is a bug writeup on the DBG side regarding alcohol being consumed at double rate, but the client will not reflect it until you pick a stack up. Hence, this macro will not function unless you click only 1 at a time, meaning it would have to be modified to pick 1 from a stack, move it elsewhere (slot 8?) and right-click. This only happens with alcohol.

I tried changing the macro to only purchase 1 alcohol at a time to avoid this flaw, but my programming skills failed. ;)

- - - Updated - - -

I modified the macro and posted it here:
http://www.redguides.com/community/showthread.php/34605-Modified-Alctol-for-EQ-bug
 
Ran this mac very recently to get my alcohol tolerance up on some newbies. I kept running into an issue where the toon would get too far from the merchant to buy more booze. How I fixed that was by adding a /stick command (could have used /moveto if MQ2Nav was loaded.... I didn't think of that until right now) into the Buy Booze routine.

Rich (BB code):
| ***********************************************
| Buy Booze                                     *
| ***********************************************
sub BuyBooze
    /if (${FindItemCount[${Booze}]} > 0) /return
    /echo Time to buy more booze
    /target ${MerchantName}
    /stick 8
    /face
    /delay 1s
    /click right target
    /delay 1s
    /call Buy "${Booze}" 20
    /keypress esc 
    /delay 1s    
/return

Once I added the portion in bold/italics the macro continued skilling up alcohol tolerance like a champ. The other issue I ran into was an error in the final routine once you've reached your desired max skill. The macro wouldn't camp out because it kept interrupting itself. Instead of /camp and then issuing a /end command, I think I would just replace /camp with /quit and call it good.

Hope this helps someone else out. Cheers.
 
What about if you don't want to use a vendor to buy alcohol. I have like 3000 casts of Minotaur Hero's brew I would rather use. When I tried this mac it just told me "out of booze" and ended the mac.
 
I tried using /mac alctol today. Updated the tolerance level to 565. Other than that I didnt change anything.
This only works for my Chanter but does Not work for any of my other alts, including my bard who has the song in 1st gem. I don't know why it works for the one but none of the others?
*Edit* After scrolling through 6 toons files and finding nothing wrong, it appears to have been an inventory issue (I moved everything out of my 1st 2 bags on all toons and it started to work) or not already having the alcohol in my bags (they only walked up to the merchant and bought once). Then I tried again and it didn't work until I bought the drinks before starting the /mac. I just filled my bags up with several thousand bottles on each toon and ran them to the corner of no where and it is working great. Albeit very slow! No way ANYONE could max out a melee class from 0 to 565 in 30 minutes to a couple hours. This takes several - several hours!! Even have beer goggles on my Tank and its going no faster than any others. Just pre buy whatever alcohol you want in very large quantities, change the name of alcohol on macro and go sit wherever you want. I sat by merchant in what I thought was far enough out and had a few people passing through trying to do the same or buying tradeskill supplies.. Now they are somewhere no one can read 5 toons sotting around glug glug glug on non stop spam. RoS made this necessary again. Skyfire mobs suck without it! Thanks you for macro. The gazillion Clicks ot would take to manually do this...hell no!
 
Last edited:
Release Updated Alcohol Tolerance mac

Users who are viewing this thread

Back
Top
Cart