The problem I'm having is that it doesn't recognize anything I put into the private chat channel so none of the commands are processed. I can't even get it to fire the event_chat sub. What am I missing?
Code: Select all
#turbo
#define INIFile "c:\macroquest\release\macros\buffs.ini"
|#define MyPrivChannel "mypriv"
#chat chat
Sub Main
/zapvars
/declare Bufflist array2
/declare Buffcount global
/declare Chatchannel global
/declare Gsymbol global
/declare Gbot9 global
/declare Gfos global
/declare Gsta global
/declare Gsot global
/declare Gsop global
/declare Greplen global
/declare Gsv global
/declare Gsd global
/declare Gdmf global
/declare Gvoq global
/declare Gvq global
/declare Ggod global
/declare Gbss global
/declare Gtot global
/declare Gpos global
/declare Ssymbol global
/declare Spot9 global
/declare Sfos global
/declare Sfa global
/declare Ssov global
/declare Sdmf global
/declare Sfon global
/declare Scotr global
/declare Srods global
/declare Scoh global
/declare Sdoh global
/declare Sbor global
/declare Crnr global
/declare Ernr global
/varset Bufflist(1,0) Gsymbol
/varset Bufflist(1,1) Gbot9
/varset Bufflist(1,2) Gfos
/varset Bufflist(1,3) Gsta
/varset Bufflist(1,4) Gsot
/varset Bufflist(1,5) Gsop
/varset Bufflist(1,6) Greplen
/varset Bufflist(1,7) Gsv
/varset Bufflist(1,8) Gsd
/varset Bufflist(1,9) Gdmf
/varset Bufflist(1,10) Gvoq
/varset Bufflist(1,11) Gvq
/varset Bufflist(1,12) Ggod
/varset Bufflist(1,13) Gbss
/varset Bufflist(1,14) Gtot
/varset Bufflist(1,15) Gpos
/varset Bufflist(1,16) Ssymbol
/varset Bufflist(1,17) Spot9
/varset Bufflist(1,18) Sfos
/varset Bufflist(1,19) Sfa
/varset Bufflist(1,20) Ssov
/varset Bufflist(1,21) Sdmf
/varset Bufflist(1,22) Sfon
/varset Bufflist(1,23) Scotr
/varset Bufflist(1,24) Srods
/varset Bufflist(1,25) Scoh
/varset Bufflist(1,26) Sdoh
/varset Bufflist(1,27) Sbor
/varset Bufflist(1,28) Crnr
/varset Bufflist(1,29) Ernr
/varset Buffcount 29
/call Loadbufflist
| /call Announcebuffs
| /call Writebufflist
:Mainloop
/doevents
/goto :Mainloop
/return
Sub Loadbufflist
/declare counter local
/for counter 0 to @Buffcount
/varset "@Bufflist(1,@counter)" "$ini("INIFile","Buffs","@Bufflist(1,@counter)")"
/next counter
/return
Sub Announcebuffs
/chat #buffchannel ===== GROUP / MGB =====
/chat #buffchannel Symbol -> @Gsymbol == Bot9 -> @Gbot9
/chat #buffchannel FoS -> @Gfos == STA -> @Gsta
/chat #buffchannel SoT -> @Gsot == Sop -> @Gsop
/chat #buffchannel Replen -> @Greplen == DMF -> @Gdmf
/chat #buffchannel SV -> @Gsv == SD -> @Gsd
/chat #buffchannel VoQ -> @Gvoq == VQ -> @Gvq
/chat #buffchannel BSS -> @Gbss == GoD -> @Ggod
/chat #buffchannel ToT -> @Gtot == PoS -> @Gpos
/chat #buffchannel ===== SINGLE =====
/chat #buffchannel Symbol -> @Ssymbol == Pot9 -> @Spot9
/chat #buffchannel Fos -> @Sfos == FA -> @Sfa
/chat #buffchannel SoV -> @Ssov == DMF -> @Sdmf
/chat #buffchannel FoN -> @Sfon == CotR -> @Scotr
/chat #buffchannel Rods -> @Srods == CoH -> @Scoh
/chat #buffchannel BoR -> @Sbor == DoH -> @Sdoh
/chat #buffchannel R&R Cleric -> @Crnr
/chat #buffchannel R&R Enchanter -> @Ernr
/chat #buffchannel
/return
Sub Writebufflist
/declare counter local
/for counter 0 to @Buffcount
/ini "INIFile" "Buffs" "@Bufflist(1,@counter)" @@Bufflist(1,@counter)
/next counter
/return
Sub Event_Chat
/echo Made it to Event Chat
/echo Parameters are: @Param0 @Param1 @Param2
| /if @Param0!=="mypriv" /return
| /if "$arg(1,"@Param2")"=="spam" {
| /call Announcebuffs
| /return
| }
| /if $arg(1,"@Param2")="write" {
| /call Writebufflist
| /return
| }
| /varset $arg(1,"@Param2") $arg(2,"@Param2")
/return
Code: Select all
[Buffs]
Gsymbol=Player1
Gbot9=Player2
Gfos=Player3
Gsta=Player4
Gsot=Player5
Gsop=Player6
Greplen=Player7
Gsv=Player8
Gsd=Player9
Gdmf=Player10
Gvoq=Player11
Gvq=Player12
Ggod=Player13
Gbss=Player14
Gtot=Player15
Gpos=Player16
Ssymbol=Player17
Spot9=Player18
Sfos=Player19
Sfa=Player20
Ssov=Player21
Sdmf=Player22
Sfon=Player23
Scotr=Player24
Srods=Player25
Scoh=Player26
Sdoh=Player27
Sbor=Player28
Crnr=Player29
Ernr=Player30


