Hey guys, I am looking to pay someone to make me a macro that whenever I do /lot buy <# of tix>, it won't allow it to go through, and thusly stops my lotto addiction. I was told this was possible, but it might not. Thanks!
It might be possible but I am not that familiar with Minecraft macro coding but I can try I have the first few line setup but I don't really know how to make it so that once it detects it in chat it would either replace the #of tix with 0 or just not execute the commands. I will paste what I have so far but its not much: $${ STRIP(&chat,%CHAT%) IFMATCHES(%&chat%,Type /lot buy [0-9]+)
If I may add something here... 1. /lot buy 0 will still purchase one ticket as /lot buy without a (valid) number will purchase one single ticket. 2. MY own code suggestion: Code: lottoban.txt $${ IFMATCHES(%CHAT%,"^/lot(to|tery)? buy") FILTER() LOG("&cYou may not buy a lotto ticket.") ENDIF }$$ Absolutely no warranty. Untested, but possibly working. Bind to onSendChatMessage (Important. NOT to onChat!) - if you have any other macros there, add $$<lottobuy.txt> as the very first macro and add the rest behind a | symbol.[/CODE]