-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenbot.mac
More file actions
59 lines (46 loc) · 1.87 KB
/
genbot.mac
File metadata and controls
59 lines (46 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|: ------------------------ :|
|: -- genbot.mac -- :|
|: --Bot command module. -- :|
|: ------------------------ :|
|: New Defines
#define ${INI_LOCATION_PREFIX} Genbot_BOT_INIS
#define ${MACRO_INI_LOCATION_PREFIX} Genbot_INIS
#define ${MACRO_INC_LOCATION_PREFIX} Genbot_Includes
#define ${ERRORLOG_LOCATION_PREFIX} Genbot_Logs
#define ${INI_FILE_PREFIX} bot
#define ${BOT_FILE_PREFIX} ${Me.CleanName}
#define ${NINJALOOT_FILE_PREFIX} NinjaLoot
#define ${FORAGE_FILE_PREFIX} Forage
#define ${PICKPOCKET_FILE_PREFIX} PickPocket
#define ${SMOOTHMOVES_FILE_PREFIX} SmoothMoves
#define ${SPAWNTRACKER_FILE_PREFIX} SpawnTracker
#define ${BUYSELL_FILE_PREFIX} BuySell
#define ${SPELL_ALIASES_FILE_PREFIX} Spell_Aliases
#define ${DOORS_FILE_PREFIX} Doors
#define ${LOOTS_FILE_PREFIX} Loots
#define ${MACRO_FILE_PREFIX} robot
#define ${GlobalSettings_FILE_PREFIX} GlobalSettings
#define ${MACRO_NAME_PREFIX} Genbot
#define ${FILENAME_PREFIX} .ini
#define ${DebugError} (@{Subrountine.Arg[1,(]}):(@{SubCurrentLine})
#define ${DebugErrorFull} Macro[@{MacroName}]:Memory[@{MemoryUsage}mb]:RunTime[@{RunTime}]:(@{Subrountine.Arg[1,(]}):(@{SubCurrentLine})
|:#warning
#turbo 100
#include Genbot_Includes/robot_main.inc
Sub JoinEQBC
/if (!${Plugin[MQ2EQBC].Name.Length}) /echo Loading MQ2EQBC Plugin...
/if (!${Plugin[MQ2EQBC].Name.Length}) /plugin MQ2EQBC load
/if (${Plugin[MQ2IRC].Name.Length}) /echo UnLoading MQ2IRC Plugin...
/if (${Plugin[MQ2IRC].Name.Length}) /plugin MQ2IRC unload
/if (!${Plugin[MQ2NetBots].Name.Length}) /echo Loading MQ2NetBots Plugin...
/if (!${Plugin[MQ2NetBots].Name.Length}) /plugin MQ2NetBots load
/delay 5 ${NetBots}
/if (${Plugin[MQ2NetBots].Name.Length}) /netbots on grab=on send=on ext=on
/echo The EQBC Status is turned on.
/if (!${EQBC.Connected}) {
/bccmd quit
/delay 5
/bccmd connect ${EQBCServer} ${EQBCPort}
/delay 15 ${EQBC.Connected}
}
/return