Ok, this is my first try at macroing, so be patient. This macro will take you from any value to 200 alcohol tolerance.
It is set to be run in Abysmal Sea with Dray Cuves.
The macro will buy a set of 20 ales and drink. When you become too intoxicated it will delay until you can drink more.
Again, this is my first macro, any feedback is more than welcome.
It is set to be run in Abysmal Sea with Dray Cuves.
The macro will buy a set of 20 ales and drink. When you become too intoxicated it will delay until you can drink more.
Again, this is my first macro, any feedback is more than welcome.
Rich (BB code):
| alctol.mac
| Takes you to 200 Alcohol Tolerance
| Version 1.0
| Date: 01-03-2006
|
| By Bror
| Based on ArmySoldier's TS macs
|
| MerchantName is the name of the merchant that sells your booze
| MaxWanted is where you want to stop: Default is 200
| Booze is the alcohol you want to buy: Default is ALE
|
| Requirement:
| Slot 8 in your inventory must be empty
| In its current state, this must be run behind Dray Cuves in Abysmal Sea to work.
#event Explode "#*#If you consumed any more drink you would explode#*#"
#event ExplodeB "#*#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#*#"
#include common/sell.inc
#include common/buy.inc
#include common/packs.inc
Sub Main
/declare OldSkill int outer
/declare MaxWanted int outer
/declare MerchantName string outer
/declare Booze string outer
/declare i int outer
/varset OldSkill ${Me.Skill[Alcohol Tolerance]}
/varset i 1
| ***********************************************
| * Change these settings if you want. *
| ***********************************************
/varset MerchantName "Dray Cuves"
/varset Booze "Ale"
/varset MaxWanted 200
| ***********************************************
| ***********************************************
:Start
/echo Alcohol Tolerance is at ${Me.Skill[Alcohol Tolerance]}
/if (${Me.Skill[Alcohol Tolerance]}>=${MaxWanted}) {
/echo Alcohol Tolerance is at or greater than ${MaxWanted}. Quiting!
/camp
/endmacro
}
| ***********************************************
| Buy Booze *
| ***********************************************
/target ${MerchantName}
/face
/delay 1s
/click right target
/delay 1s
/call Buy ${Booze} 20
/keypress esc
/delay 1s
/for i 1 to 20
/itemnotify pack8 rightmouseup
/delay 1s
/doevents
/next i
/goto :Start
/return
| ***********************************************
| sUB event too much drink *
| ***********************************************
Sub Event_Explode
/echo Too full, Pausing 30 seconds.
/delay 30s
/varcalc i ${i}-1
/return
| ***********************************************
| SUB event too much drink 2 *
| ***********************************************
Sub Event_ExplodeB
/echo Too full, Pausing 30 seconds.
/delay 30s
/varcalc i ${i}-1
/return
| ***********************************************
| SUB event too drunk *
| ***********************************************
Sub Event_TooDrunk
/echo Too Drunk, Pausing 1 minute.
/delay 1m
/varcalc i ${i}-1
/return
| ***********************************************
| SUB event skillup *
| ***********************************************
Sub Event_SkillUp
/echo Alcohol Tolerance increased - ${Me.Skill[Alcohol Tolerance]}
/delay 5
/return
Last edited:


