At the top change name1, name2, and name3 to the names of people you dont wont to log tells from.. like your genbots.
Code: Select all
#event someonetold "#1# tells you, '#2#'"
#event echotells "[MQ2] tells"
Sub Event_someonetold(someonetold,whosaid,whattheysaid)
||||||||||||||||||||||||||||||||||||||||||||||||||||||
||||||||||||||THIS WILL KEEP TRACK OF THE TELLS|||||||
||||||||||||||PEOPLE SEND YOU, AND STORE THEM TO |||||
||||||||||||||VARIABLES. ADD A /doevents someonetold||
||||||||||||||AND A /doevents echotells TO YOUR|||||||
||||||||||||||MACRO, AND /echo tells TO SEE WHO SENT||
||||||||||||||YOU TELLS.||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||||||||||||||||||
|Defines
/if (!${Defined[arrayvar]}) /declare arrayvar int outer 1
|If tells came from my bots, return.
/if (${String[${whosaid}].Equal[name1]} || ${String[${whosaid}].Equal[name2]} || ${String[${whosaid}].Equal[name3]}) /return
|Otherwise set the tell to a variable, along with the time the tell was sent
/declare tell${arrayvar} string global At ${Time} ${whosaid} told you, '${whattheysaid}'
/varcalc arrayvar ${arrayvar}+1
/return
Sub Event_echotells
/if (${arrayvar}==1) {
/echo You received no tells, looser!
/return
}
|Defines
/if (!${Defined[totaltells]}) /declare totaltells int outer ${arrayvar}
/varcalc totaltells ${arrayvar}-1
/if (!${Defined[currenttell]}) /declare currenttell int outer 0
|echo each tell sent along with the time
/for currenttell 1 to ${totaltells}
/echo ${tell${currenttell}}
/delay 1s
/next currenttell
/delay 1s
|Delete variables so as not to repeat tells
/varset currenttell 1
/for currenttell 1 to ${totaltells}
/deletevar tell${currenttell}
/next currenttell
|Reset arrayvar
/varset arrayvar 1
/return
