ALL COMMANDS ARE GIVEN VIA /TELL(unless you change it)
UNIBOT WAS DESGINED FOR TELLS
verion 1.0 abilites
example-/tell <name of toon running unibot> sit
this will cause unitbot to sit
this is very customizeable macro just follow the examples that I have given you with sit and gate.
WARNING WARNING WARNING WARNING WARNING WARNING
USE THE GATE COMMAND AT YOUR OWN RISK
I HAVE HEARD OF NASTY BUGS WHEN YOU ZONE WITH AN ACTIVE MACRO
WARNING WARNING WARNING WARNING WANRING WARNING
ONTO THE CODE
Code: Select all
|** Filename: UNIBOT.mac v1.0[11-15-2002 23:35HRS EST]
Author: Gonezo
Acknowledgements[not in any order]:m0nk, Plazmaic, Rizwank, Ooak, Fippy, Wes
State: v1.0
WHAT: This is the begining of my Universal Robot macro. I hope I finish it one day /sigh =0/
USEAGE: /macro UNIBOT.mac "master name"
**|
|**Definitions**|
#include spellcast.mac
#include spellbook.mac
#define master v99
#chat tell
Sub Main
/mqlog ======UniBot Activated======
/varset master "$p0"
|**opening commands**|
/press CTRL
/press shift
/press alt
|**Verifies to the user that they are MASTER**|
/tell $v99 You are THE Master bro!!!
|**Bot Sits and getpetid**|
/sit
/goto :getpetid
|**This goes to the Events and starts to do them**|
:Loop
/if n "$spawn($id($v99),hp,pct)"<="30" {
/target $v99
/call HEALNOW
} else
/if "$v98"=="0"
/if "$V98"=="FALSE" /goto :skippetheal
/if n "$spawn($v98,hp,pct)"<="30" {
/target "$spawn($v98)"
/call HEALNOW
} else
:skippetheal
/doevents
/goto :Loop
/return
|**~~~~~~~USE AT YOUR OWN RISK~~~~~~~~
Sub GATENOW
/if n $char(gem,"Gate")<1 /call MemorizeSpell gate 1
/call cast "gate"
/endmacro
/return~~~~~~~~USE AT YOUR OWN RISK~~~~~**|
Sub HEALNOW
/if n $char(gem,"Superior Healing")<1 /call MemorizeSpell "superior healing" 1
/call cast "superior healing"
/return
|~~~~~~~~~~~~~~~~~|
| COMMANDS |
|~~~~~~~~~~~~~~~~~|
Sub Event_Chat
/if "$p1"=="$MASTER" { |Checks to see if from master then do other /if's which
|hold the bot's commands
/if "$p2"=="sit" /sit |commands bot to sit
/if "$p2"=="getpetid" { |Commands the servant to target the master in order to obtain the master's petid
:getpetid
/target $v99
/varset v98 "$target(pet)"
/goto :loop
} else
|**~~~~~~USE AT YOUR OWN RISK~~~~~~~/if "$p2"=="gate" /call GATENOW |commands bot to gate ~~~USE AT YOUR OWN RISK~~~**|
/return
} else
/return
feel free to make additions I will be working on stuff so if you want an updated copy just come to the chat room and I will DCC it to you
Thanks all and happy macroing
-Gonezo


