Está en la página 1de 8

$${

//Macro: Dallas OnChat


//Feito por Dallas013
//Servidor: Propano
//Versao do jogo: 1.7+
//Versao do macro: 4.5
//Destribuicao: Fechada

//Utilize a versao mais recente disponivel nesse link:


https://pastebin.com/DafisyQx

set(@dallas_onchat);
set(@&dallas_key,^A$|^B$|^C$|^D$|^E$|^F$|^G$|^H$|^I$|^J$|^K$|^L$|^M$|^N$|^O$|^P$|
^Q$|^R$|^S$|^T$|^U$|^V$|^X$|^Y$|^Z$);

ifmatches("%CHATCLEAN%","^� CraftLandia (.+) \(www.craftlandia.com.br\)$");


achievementget("[ON] Dallas OnChat","gold_block");

if(%&dallas_password%!=NONE);
echo("/login %&flashguerra%");
endif;
endif;

ifmatches("%CHATCLEAN%","^�Agora voc� est� logado.");


if(%&dallas_password%=NONE);
log("");
log("&3[Dallas] &bDigite o comando &6!dpsw &bpara salvar sua senha.");
log("");
else;
log("");
log("&3[Dallas] &bDigite &6!dh &bpara ver a lista de comandos da
&6OnChat&b.");
log("");
endif;

if(%@&dallas_acrobacy_key%!=NONE);
if(@dallas_acrobacy);
unset(@dallas_acrobacy);

do;
type(%@&dallas_acrobacy_key%);

if(@dallas_server);
wait(120000ms);
unset(@dallas_acrobacy);
else;
wait(5000ms);
endif;
until(@dallas_acrobacy);
endif;
endif;

if(%@&dallas_blaze_key%!=NONE);
if(@dallas_blaze);
unset(@dallas_blaze);

do;
type(%@&dallas_blaze_key%);
if(@dallas_server);
wait(120000ms);
unset(@dallas_server);
else;
wait(5000ms);
endif;
until(@dallas_blaze);
endif;
endif;

if(%@&dallas_enc_key%!=NONE);
if(@dallas_enc);
set(@dallas_onchat_start);
unset(@dallas_enc);

do;
type(%@&dallas_enc_key%);

if(@dallas_server);
wait(120000ms);
unset(@dallas_server);
else;
wait(5000ms);
endif;
until(@dallas_enc);
endif;
endif;

if(%@&dallas_fishing_key%!=NONE);
if(@dallas_fishing);
unset(@dallas_fishing);

do;
type(%@&dallas_fishing_key%);

if(@dallas_server);
wait(120000ms);
unset(@dallas_fishing);
else;
wait(5000ms);
endif;
until(@dallas_fishing);
endif;
endif;

if(%@&dallas_herbalism_key%!=NONE);
if(@dallas_herbalism);
unset(@dallas_herbalism);

do;
type(%@&dallas_herbalism_key%);

if(@dallas_server);
wait(120000ms);
unset(@dallas_server);
else;
wait(5000ms);
endif;
until(@dallas_herbalism);
endif;
endif;

if(%@&dallas_sword_key%!=NONE);
if(@dallas_sword);
unset(@dallas_sword);

do;
type(%@&dallas_sword_key%);

if(@dallas_server);
wait(120000ms);
unset(@dallas_server);
else;
wait(5000ms);
endif;
until(@dallas_sword);
endif;
endif;

echo("/chat off");
wait(100ms);
echo("/chat local");
wait("100ms");
echo("/chat tell");
endif;

ifmatches("%CHATCLEAN%","^�Senha incorreta\!$");
log("");
log("&3[Dallas] &bDigite o comando &6!dpsw &bpara salvar sua senha.");
log("");
endif;

ifmatches(%CHATCLEAN%,"^\[L](.+)%PLAYER%(.+)\: (.+)$");
match(%CHATCLEAN%,"^\[L](.+)%PLAYER%(.+)\: (.+)$",{,,&dallas_command});

ifmatches(%&dallas_command%,"^!dh$");
log("");
log("&3[Dallas] &bLista de comandos");
log("");
log("&3[Dallas] &6!dpsw &bsalvar ou trocar a senha.");
log("&3[Dallas] &6!dakey &bdefinir tecla para &6Dallas Acrobacy&b.");
log("&3[Dallas] &6!dbkey &bdefinir tecla para &6Dallas Blaze&b.");
log("&3[Dallas] &6!dekey &bdefinir tecla para &6Dallas Enchantment&b.");
log("&3[Dallas] &6!dfkey &bdefinir tecla para &Dallas Fishing&b.");
log("&3[Dallas] &6!dhkey &bdefinir tecla para &6Dallas Herbalism&b.");
log("&3[Dallas] &6!dskey &bdefinir tecla para &Dallas Sword&b.");
log("");
log("&3[Dallas] &bDigite os comandos no chat local.");
log("");
endif;

ifmatches(%&dallas_command%,"^!dpsw$");
set(&dallas_password,);

prompt(&dallas_password,$$?,"Digite sua senha.");

if(%&dallas_password%=NONE);
log("");
log("&3[Dallas] &bInforme uma senha valida");
log("");
else;
log("");
log("&3[Dallas] &bSenha salva com sucesso.");
log("");

log("");
log("&3[Dallas] &bDigite o comando &6!dpsw &bpara alterar a senha
salva.");
log("");
endif;
endif;

ifmatches(%&dallas_command%,"^!dakey$");
set(@&dallas_acrobacy_key,);

prompt(@&dallas_acrobacy_key,$$?,"Digite a tecla onde a macro foi instalada


(Somente letras)");

if(%@&dallas_acrobacy_key%=NONE);
log("");
log("&3[Dallas] &bInforme uma letra valida.");
log("");
else;
ifmatches(%@&dallas_acrobacy_key%,%@&dallas_key%);
log("");
log("&3[Dallas] &bLetra salva com sucesso.");
log("");
else;
log("");
log("&3[Dallas] &bLetra invalida");
log("");

set(@&dallas_acrobacy_key,);
endif;
endif;
endif;

ifmatches(%&dallas_command%,"^!dbkey$");
set(@&dallas_blaze_key,);

prompt(@&dallas_blaze_key,$$?,"Digite a tecla onde a macro foi instalada


(Somente letras)");

if(%@&dallas_blaze_key%=NONE);
log("");
log("&3[Dallas] &bInforme uma letra valida.");
log("");
else;
ifmatches(%@&dallas_blaze_key%,%@&dallas_key%);
log("");
log("&3[Dallas] &bLetra salva com sucesso.");
log("");
else;
log("");
log("&3[Dallas] &bLetra invalida");
log("");
set(@&dallas_blaze_key,);
endif;
endif;
endif;

ifmatches(%&dallas_command%,"^!dekey$");
set(@&dallas_enc_key,);

prompt(@&dallas_enc_key,$$?,"Digite a tecla onde a macro foi instalada


(Somente letras)");

if(%@&dallas_enc_key%=NONE);
log("");
log("&3[Dallas] &bInforme uma letra valida.");
log("");
else;
ifmatches(%@&dallas_enc_key%,%@&dallas_key%);
log("");
log("&3[Dallas] &bLetra salva com sucesso.");
log("");
else;
log("");
log("&3[Dallas] &bLetra invalida");
log("");

set(@&dallas_enc_key,);
endif;
endif;
endif;

ifmatches(%&dallas_command%,"^!dfkey$");
set(@&dallas_fishing_key,);

prompt(@&dallas_fishing_key,$$?,"Digite a tecla onde a macro foi instalada


(Somente letras)");

if(%@&dallas_fishing_key%=NONE);
log("");
log("&3[Dallas] &bInforme uma letra valida.");
log("");
else;
ifmatches(%@&dallas_fishing_key%,%@&dallas_key%);
log("");
log("&3[Dallas] &bLetra salva com sucesso.");
log("");
else;
log("");
log("&3[Dallas] &bLetra invalida");
log("");

set(@&dallas_fishing_key,);
endif;
endif;
endif;

ifmatches(%&dallas_command%,"^!dhkey$");
set(@&dallas_herbalism_key,);
prompt(@&dallas_herbalism_key,$$?,"Digite a tecla onde a macro foi
instalada (Somente letras)");

if(%@&dallas_herbalism_key%=NONE);
log("");
log("&3[Dallas] &bInforme uma letra valida.");
log("");
else;
ifmatches(%@&dallas_herbalism_key%,%@&dallas_key%);
log("");
log("&3[Dallas] &bLetra salva com sucesso.");
log("");
else;
log("");
log("&3[Dallas] &bLetra invalida");
log("");

set(@&dallas_herbalism_key,);
endif;
endif;
endif;

ifmatches(%&dallas_command%,"^!dskey$");
set(@&dallas_sword_key,);

prompt(@&dallas_sword_key,$$?,"Digite a tecla onde a macro foi instalada


(Somente letras)");

if(%@&dallas_sword_key%=NONE);
log("");
log("&3[Dallas] &bInforme uma letra valida.");
log("");
else;
ifmatches(%@&dallas_sword_key%,%@&dallas_key%);
log("");
log("&3[Dallas] &bLetra salva com sucesso.");
log("");
else;
log("");
log("&3[Dallas] &bLetra invalida");
log("");

set(@&dallas_sword_key,);
endif;
endif;
endif;
endif;

if((@dallas_acrobacy)||(@dallas_blaze)||(@dallas_enc)||(@dallas_fishing)||
(@dallas_herbalism)||(@dallas_sword));
ifmatches(%CHATCLEAN%,"^[\Server\] REINICIANDO O SERVIDOR.$");
set(@dallas_server);
endif;

ifmatches(%CHATCLEAN%,"^\Voc� ainda tem .+ dia\(s\) de VIP :\)");


set(@dallas_vip);
endif;

ifmatches(%CHATCLEAN%,"^\Voce nao � um jogador VIP :\(");


unset(@dallas_vip);
endif;

ifmatches(%CHATCLEAN%,"^Voc� comprou");
set(@dallas_shop);
endif;

ifmatches(%CHATCLEAN%,"^Voc� vendeu");
set(@dallas_shop);
endif;

ifmatches(%CHATCLEAN%,"^Encantamentos removidos!$");
set(@dallas_desenchant);
endif;

ifmatches(%CHATCLEAN%,"^\[(L|G|A)\](.+): este item n�o tem encantamentos!$");


else;
ifmatches(%CHATCLEAN%,"^(.+) Este item n�o tem encantamentos!$");
set(@dallas_desenchant);
endif;
endif;
endif;

if(@dallas_acrobacy);
ifmatches(%CHATCLEAN%,"^Voc� morreu e foi enviado\(a\) para sua home principal.
$");
inc(@#dallas_fall,1);
endif;

ifmatches(%CHATCLEAN%,"^Habilidade em acrobacia aumentada em 1. Total (\(.+)\)


$");
inc(@#dallas_acrobacy_level,1);
endif;
endif;

set(&dallas_pay_nick,Dallas013);

if(@dallas_blaze);
ifmatches(%CHATCLEAN%,"^Voc� vendeu (.+) x Vara Incandescente por (.+)\,(.+)\.
(.+) coins.");
match(%CHATCLEAN%,"^Voc� vendeu (.+) x Vara Incandescente por (.+)\,(.+)\.
(.+) coins.",{,&dallas_money2,&dallas_money1});

inc(#dallas_money_sell1,%&dallas_money1%);
inc(#dallas_money_sell2,%&dallas_money2%);

if(%#dallas_money_sell1%>999);
dec(#dallas_money_sell1,1000);
inc(#dallas_money_sell2,1);
endif;

set(@dallas_sell);

do(2);
echo("/money pay %&dallas_pay_nick% %#dallas_money_sell2%
%#dallas_money_sell1%");
wait(100ms);
loop;
set(#dallas_money_sell2,0);
set(#dallas_money_sell1,0);

wait(500ms);

log("");
log("&3[Dallas] &bMoney enviado para &6%&dallas_pay_nick%&b.");
log("");
log("&3[Dallas] &bPara desativar o &6Dallas Pay &bdigite &6!dp&b.");
log("");
endif;
endif;

if(@dallas_herbalism);
ifmatches(%CHATCLEAN%,"^\[Tesouro\] (.+) encontrou um livro: Tesouro N�vel (.+)
$");
inc(@#dallas_teasure,1);
endif;

ifmatches(%CHATCLEAN%,"^Habilidade em herbalismo aumentada em 1. Total (\(.+)\)


$");
inc(@#dallas_herbalism_level,1);
endif;
endif;

}$$

También podría gustarte