Moderator: MacroQuest Developers
Code: Select all
#turbo 20
Sub Main
/declare Coin array
/varset Coin(1) copper
/varset Coin(2) silver
/varset Coin(3) gold
/varset Coin(4) plat
/if $invpanel==FALSE /press i
/if $target()==FALSE /target banker
/click right target
/call ChangeCoin
/cleanup
/endmacro
/return
Sub ChangeCoin
/declare a local
/for a 1 to 3
/sendkey down shift
/click left @Coin(@a)
/sendkey up shift
/delay 5
/click left @Coin($calc(@a+1))
/delay 5
/click left @Coin(@a)
/delay 5
/next a
/return
Code: Select all
|
| Bind.mac
|
| This script waits til he is around 30 percent health then starts bandaging himself.
| Once he gets to around 50 percent health he waits til he gets down to 30 percent health again. Rinse repeat.
| When you run out of bandages he ends the macro.
|
#turbo 20
| Change Gonzo to the player attacking you.
#define ATTACKER Gonzo
#Event OOBandages "You can't bandage without bandages"
Sub Main
:WaitForDamage
/delay 1s
/if n $char(hp,pct)<32 /call Bind
/doevents
/goto :WaitForDamage
/return
Sub Bind
:BindWounds
/if "$target(name,clean)"!="$char(name,clean)" /target myself
/if n $char(ability,"Bind Wound")>0 /doability "Bind Wound"
/delay 1s
/doevents
/if n $char(hp,pct)<50 /goto :BindWounds
/return
Sub Event_OOBandages
/tell ATTACKER stopit
/endmacro
/return
Code: Select all
|
| Attack.mac
|
| This script attacks the target to 30 percent health.
| Pauses until other targets health gets back up to 50 percent then
| repeats. If he gets a tell from ATTACKEE of stopit he will end the macro.
|
#turbo 20
#chat tell
| Change Bonzo to whatever the playername your victim is.
#define ATTACKEE Bonzo
Sub Main
:TargetPC
/target ATTACKEE
/delay 1s
/doevents
/if "$target(name,clean)"!="ATTACKEE" {
/echo I can't target ATTACKEE. Aborting script.
/endmacro
}
:CheckDistance
/if $target()==FALSE /goto :TargetPC
/call GetClose
/if n $target(hp,pct)>=50 /attack on
/if n $target(hp,pct)<=30 /attack off
/doevents
/goto :CheckDistance
/return
Sub GetClose
/face nolook fast
/if n $target(distance)>10 {
/press up
}
/if n $target(distance)<6 {
/press down
}
/doevents
/return
Sub Event_chat(MsgType,MsgFrom,MsgText)
/if @MsgType==tell {
/if @MsgFrom==ATTACKEE /if @MsgText=="stopit" {
/attack off
/endmacro
}
/return
