Skip to content

Instantly share code, notes, and snippets.

@ECC314
Last active November 8, 2017 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ECC314/ea0e7e20021d5128dd1df7cc99830425 to your computer and use it in GitHub Desktop.
Save ECC314/ea0e7e20021d5128dd1df7cc99830425 to your computer and use it in GitHub Desktop.
OnJoinGame:
$$<trade.txt>|$${ECHO(/lot);EXEC(lottotimer.txt,timer);EXEC(lottoloop.txt,lottoloop)}$$
OnItemDurabilityChange:
$${IF(DURABILITY < 40);ECHO("/fix all");ENDIF}$$
OnPlayerJoined:
$${LOG("&f[&4&lUser-&c&lJoin&f]&f&l &6%JOINEDPLAYER% &ahas &djoined &b&lECC.")}$$
OnSendChatMessage:
$$<eekmacros_help.txt>|$$<eekmacros_me.txt>|$$<trade.txt>
OnChat:
$$<sgm.txt>|$$<lotto.txt>
OnHealthChange:
$$<eekmacros_panic.txt>
$$<eekmacros_me.txt>:
$${
IFMATCHES(%CHAT%, "^/me$")
LOG("&e--- &c&leekelmo's macros &e---")
LOG("&e&lLet's see...")
ECHO("/bal")
ECHO("/seen %PLAYER%")
LOG("&eCO-ORDS - XYZ &b%XPOS%/%YPOS%/%ZPOS%")
FILTER
ENDIF
}$$
$$<eekmacros_help.txt>
$${
IFMATCHES(%CHAT%, "^/help eekmacros? 1")
LOG("&e--- &c&leekelmo's macros &e---")
LOG("&eType '&b/help <macroname>&e' &e for information on each macro.")
LOG("&eType '&b/help eekmacros 2&e' to go to the next page.")
LOG("&e&l'Me' Macro")
LOG("&e&l'Hunger Reminder' Macro")
LOG("&e&l'Panic Spawn' Macro")
LOG("&e&l'Zoom' Macro")
LOG("&e&l'AFK' Macro")
FILTER
ENDIF
IFMATCHES(%CHAT%, "^/help eekmacros? 2")
LOG("&e--- &c&leekelmo's macros &e---")
LOG("&eType '&b/help <macroname>&e' for information on each macro.")
LOG("&e&l'Trade Sign Maker' Macro")
FILTER
ENDIF
IFMATCHES(%CHAT%, "^/help voteblocker")
LOG("Blocks vote reminders, type /votereminder to toggle.")
FILTER
ENDIF
IFMATCHES(%CHAT%, "^/help me")
LOG("&e--- &c&leekelmo's macros &e---")
LOG("&eThe 'Me' macro is a macro that tells you basic&e information &eabout your character.")
LOG("&eIt adds the command '/me'.")
FILTER
ENDIF
IFMATCHES(%CHAT%, "^/help hungerreminder")
LOG("&e--- &c&leekelmo's macros &e---")
LOG("&eThis macro will send you a message when your hunger is low &eenough.")
FILTER
ENDIF
IFMATCHES(%CHAT%, "^/help panicspawn")
LOG("&e--- &c&leekelmo's macros &e---")
LOG("&eThis macro will send you to spawn when your health is low.")
FILTER
ENDIF
IFMATCHES(%CHAT%, "^/help zoom")
LOG("&e--- &c&leekelmo's macros &e---")
LOG("&ePress the key that you bound the macro to and you will zoom&e in&e. Release it &eto reset &eyour FOV.")
FILTER
ENDIF
IFMATCHES(%CHAT%, "^/help afk")
LOG("&e--- &c&leekelmo's macros &e---")
LOG("&eType /afk and you will vanish and be put into /afk. Type it &eagain &eto &ereverse &ethis.")
FILTER
ENDIF
IFMATCHES(%CHAT%, "^/help tradesignmaker")
LOG("Press the button you bound it to and it'll make a trade sign.")
FILTER
ENDIF
}$$
$$<sgm.txt>
$${
IFMATCHES(%CHATCLEAN%,"$[ECC-SG] Joining Arena")
ECHO("/sg vote")
WAIT(1000ms)
ECHO("/kit Ccpp,Bfrpp,Spypp,Hntpp")
ENDIF
}$$
$$<lotto.txt>
$${
IFMATCHES(%CHATCLEAN%,"^\[LOTTERY\] Congratulations go to (.*) for winning \$([0-9]+) with ([0-9]+) tickets\.");
MATCH(%CHATCLEAN%,"^\[LOTTERY\] Congratulations go to (.*) for winning \$([0-9]+) with ([0-9]+) tickets\.",{@&winner,@#lotwin,#wintix});
@#pot=0;
STOP(timer);
@#seccount=0;
@#mincount=15;
EXEC(lottotimer.txt,timer);
SETLABEL(lot,"Last Winner: &5%@&winner%\n&fLast Pot: &2$%@#lotwin%\n&fPot: &a$%@#pot%\n&fDraw in: &b%@#mincount%min &b%@#seccount%sec",lot);
ENDIF;
IFMATCHES(%CHATCLEAN%,"^\[LOTTERY\] Draw in: ([0-9]+) seconds?");
MATCH(%CHATCLEAN%,"^\[LOTTERY\] Draw in: ([0-9]+) seconds?",{#countsec});
@#mincount=0;
@#seccount=#countsec;
ENDIF;
IFMATCHES(%CHATCLEAN%,"^\[LOTTERY\] Draw in: ([0-9]+) minutes?\, and ([0-9]+) seconds?");
MATCH(%CHATCLEAN%,"^\[LOTTERY\] Draw in: ([0-9]+) minutes?\, and ([0-9]+) seconds?",{#countmin,#countsec});
@#mincount=#countmin;
@#seccount=#countsec;
ENDIF;
IFMATCHES(%CHATCLEAN%,"^\[LOTTERY\] (.*) just bought ([0-9]+) tickets?");
MATCH(%CHATCLEAN%,"^\[LOTTERY\] (.*) just bought ([0-9]+) tickets?",{&username,#tickets});
#amount=#tickets*850;
@#pot=@#pot+#amount;
SETLABEL(lot,"Last Winner: &5%@&winner%\n&fLast Pot: &2$%@#lotwin%\n&fPot: &a$%@#pot%\n&fDraw in: &b%@#mincount%min &b%@#seccount%sec",lot);
ENDIF;
IFMATCHES(%CHATCLEAN%,"^\[LOTTERY\] (.*) just bought [0-9]+ tickets?! Draw in ([0-9]+)m ([0-9]+)s");
MATCH(%CHATCLEAN%,"^\[LOTTERY\] (.*) just bought [0-9]+ tickets?! Draw in ([0-9]+)m ([0-9]+)s",{&username,#countmin,#countsec});
@#mincount=#countmin;
@#seccount=#countsec;
SETLABEL(lot,"Last Winner: &5%@&winner%\n&fLast Pot: &2$%@#lotwin%\n&fPot: &a$%@#pot%\n&fDraw in: &b%@#mincount%min &b%@#seccount%sec",lot);
ENDIF;
IFMATCHES(%CHATCLEAN%,"^\[LOTTERY\] (.*) just bought ([0-9]+) tickets?! Draw in ([0-9]+)s");
MATCH(%CHATCLEAN%,"^\[LOTTERY\] (.*) just bought ([0-9]+) tickets?! Draw in ([0-9]+)s",{&username,#tickets,#countsec});
@#mincount=0;
@#seccount=#countsec;
SETLABEL(lot,"Last Winner: &5%@&winner%\n&fLast Pot: &2$%@#lotwin%\n&fPot: &a$%@#pot%\n&fDraw in: &b%@#mincount%min &b%@#seccount%sec",lot);
ENDIF;
IFMATCHES(%CHATCLEAN%,"^\[LOTTERY\] Last winner: (.*) \$([0-9]+)");
MATCH(%CHATCLEAN%,"^\[LOTTERY\] Last winner: (.*) \$([0-9]+)",{@&winner,@#lotwin});
SETLABEL(lotpot,"Last Winner: &5%@&winner%\n&fLast Pot: &2$%@#lotwin%\n&fPot: &a$%@#pot%\n&fTime: %@#minutes%m %@#seconds%s",lotpot);
ENDIF;
IFMATCHES(%CHATCLEAN%,"^\[LOTTERY\] There is currently \$([0-9]+) in the pot\.");
MATCH(%CHATCLEAN%,"^\[LOTTERY\] There is currently \$([0-9]+) in the pot\.",{@#pot});
SETLABEL(lot,"Last Winner: &5%@&winner%\n&fLast Pot: &2$%@#lotwin%\n&fPot: &a$%@#pot%\n&fDraw in: &b%@#mincount%min &b%@#seccount%sec",lot);
ENDIF;
}$$
$${
DO;
SETLABEL(lot,Last Winner: &5%@&winner%\n&fLast Pot: &2$%@#lotwin%\n&fPot: &a$%@#pot%\n&fDraw in: &b%@#mincount%min &b%@#seccount%sec,lot);
WAIT(10t)
LOOP;
}$$
$${
DO;
WAIT(19t);
IF(%@#seccount%=0);
INC(@#seccount,60);
DEC(@#mincount);
ENDIF;
DEC(@#seccount);
IF(%@#mincount%=0);
IF(%@#seccount%=0);
STOP(timer);
ENDIF;
ENDIF;
SETLABEL(lot,Last Winner: &5%@&winner%\n&fLast Pot: &2$%@#lotwin%\n&fPot: &a$%@#pot%\n&fDraw in: &b%@#mincount%min &b%@#seccount%sec,lot);
LOOP;
}$$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment