Moderator: MacroQuest Developers
Code: Select all
#turbo 40
#chat say
| ###########
Sub Main
| ###########
| ###########
:Main_Loop
| ###########
|- Good Luck!
/delay 1s
/doevents
/goto :Main_Loop
/return
| ###########
Sub Event_Chat(string ChatType,string ChatText)
| ###########
/if (!${Select[${ChatType},SAY]} && !${Select[${ChatText}]}) || ${Select[${ChatText},I,NULL]}) /return
/if (${ChatType.Equal[SAY]}) {
/echo ${ChatText}
/return
}
Code: Select all
/if (${ChatType.Equal[SAY]}) {
/echo ${Math.Calc[${ChatText}]}
/return
}
Code: Select all
/echo ${Math.Calc[${ChatText.Arg[1,=]}]}Code: Select all
#turbo 40
#chat say
|############
| Main
|############
Sub Main
:loop
/doevents chat
/goto :loop
/return
|############
| Chat
|############
Sub Event_Chat(string ChatType,string Sender,string ChatText)
/if (${ChatText.Find[you]}) {
/echo Spam
} else {
/echo ${Math.Calc[${ChatText.Left[-2]}]}
}
/return

