156
« on: May 02, 2016, 04:32:45 PM »
ok so this is the extra that i put in maybe someone can help me with it since i am trying to use this for shadow guard.
GBot 1 extra code
sub discord
set #menubutton n/a
set !discord ! !discord
set !Color Red
if !discord
set !Color Lime
menu delete discord
menu font BGcolor !Color
menu button discord 5 90 81 25 discord
return
and i added my button
now GBot 2
set %timer #sCnt
set !blesstime = #time
;set %discordtime #sCnt
;set %pt 8.5s ; <----- Time in seconds between discording
;set %inst QRF_NRF_MQF_PRF_LQF_OQF_RGP_KRF
set #lpc 10
===== Auto Discord =====
if #sCnt > %discordtime && !discord = #TRUE
gosub autodiscord
===== SUBS =====
sub autodiscord
event macro 3 0 ; whisper next line
msg $ ;clears hotkey so add wont mess up
gosub TM_SyncTextScan
event macro 13 15 ; discord
target
event macro 23 0
TM_FindValidText The_instrument_becomes_forever_quiet NULL
if #RESULT
{
finditem %inst C_ , %pack
if #findkind = -1
{
display ok out of instruments
return
}
set #ltargetid #findid
wait 5
event macro 22 0
wait 10
}
event macro 3 0 ; whisper next line
msg /add$
target
key esc
set %discordtime #sCnt + %pt
return
i know there are shadow guard ID's on here. i will be using for belfry and the roof but i cant get it to auto discord like i want it too