It seems I've got a crude one working.
But its a start for my first macro and an hours worth of reading old stuff.
The /delays can probaby be tweaked, but I just sorta guessed till it worked for me.
Code: Select all
|**apply_poison.mac
version 1
Auther: inorpo@inorpo.com
---------------------------
Usage:
/macro apply_posion "Poison Name" slot_number_of_weapon
-----------------------------------
**|
#turbo
| turn turbo mode on.
#event ApplySucced "You have successfully applied the poison"
|#event ApplyFail ""
|| "Your have become better at Apply Poison"
|| "You successfully applied the poison"
Sub Main
/varset PosionName "@Param0"
/if "$char(state)"=="STAND" {
| We need to be sitting to apply posion.
/echo "Standing, We need to sit down."
/sit
}
/press CTRL
/press shift
/press alt
| We also need to make sure CTRL, alt and shift arn't pressed.
| Ok folks, here we go.
/echo "Posion Name: @PosionName"
|Start loop here!
:ApplyPosion
/finditem "@PosionName"
/if $cursor()=="NULL" {
/echo Out of @PosionName
/return
} else {
/delay 1s
/click left inv 7
/click right inv 7
/delay 15s
/click left inv 7
/delay 1s
/goto :ApplyPosion
|End loop here
}
/return