Skip to content

Instantly share code, notes, and snippets.

@brecert
Created April 10, 2018 19:18
Show Gist options
  • Save brecert/bae398711624d648327ced5cfc412a87 to your computer and use it in GitHub Desktop.
Save brecert/bae398711624d648327ced5cfc412a87 to your computer and use it in GitHub Desktop.
$${
STRIP(&schat,%CHAT%)
//----------------------------------//
//ifmatches(%&schat%,"brebot : tpaccept");
// exec(chat.txt,chat,echo(/tpaccept));
// echo(/r Accepted)
//endif;
//----------------------------------//
//ifmatches(%&schat%,"brebot : home");
// exec(chat.txt,chat,echo(/home));
// echo(/r Teleported to Home)
//endif;
//----------------------------------//
//ifmatches(%&schat%,"brebot : recall");
// exec(Recall_Bot.txt,Recall_Bot);
// echo(/r Teleported to Recall)
//endif;
//----------------------------------//
ifmatches(%&schat%,"brebot : respawn");
respawn();
echo("Respawned! TY!");
endif;
//----------------------------------//
// ifmatches(%&schat%,".!(placeholder)\s+(bre)");
// ECHO("Um... Ok...");
//endif;
//----------------------------------//
ifmatches(%&schat%,"!TIME");
ECHO("The server time is currently" %DAYTIME%.);
endif;
//----------------------------------//
// ifmatches(%&schat%,".!(fly|flight|globalflight)\s+(bre)");
// SLOT(9)
// wait(2ms)
// ECHO("/v flight");
// SLOT(%@#oldslot%)
// ELSEIF;
// IFMATCHES(%&schat%,"\S?.?this spell will be available again in\s{1,}\d{1,}");
// MATCH(%&schat%,"\d{1,}",&cooldown,1);
// ECHO(I can not use the Flight Spell for another %&cooldown% minutes.);
// endif;
//endif;
//----------------------------------//
// ifmatches(%&schat%,".!mana");
// SLOT(9)
// wait(2ms)
// ECHO("/c levelup");
// SLOT(%@#oldslot%)
// ELSEIF;
// IFMATCHES(%&schat%,"\S?You do not have enough mana, you need\s{1,}\d{1,}",&manachat);
// MATCH(%&manachat%,"\d{1,}",&manachatfix,1);
// ECHO(I need %&manachatfix% more mana to level up!);
// endif;
//endif;
//----------------------------------//
ifmatches(%&schat%,"!chat");
ifmatches(%&schat%,"secret");
match(%&schat%,"!chat ([\w\W]{1,})",&mat,1);
ECHO(%&mat%);
endif;
endif;
//----------------------------------//
}$$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment