Other plugins for extending OpenKore's functionality. This forum is only for posting new plugins and commenting on existing plugins. For support, use the Support forum.
package answerFakeName;
use strict;
use Plugins;
use Globals qw($accountID);
use Log qw(message);
Plugins::register('answerFakeName', 'Answers Anti-bot with defined name.', \&onUnload);
my $hooks = Plugins::addHooks(
['packet/npc_talk_text', \&typeText, undef],
['packet/actor_info', \&checkName, undef],
);
sub onUnload {
Plugins::delHooks($hooks);
}
my $name;
sub checkName {
my ($self, $args) = @_;
if ($args->{ID} eq $accountID) {
$name = $args->{name};
message "Fake name found: $name\n";
}
}
sub typeText {
if ($name) {
Commands::run("talk text $name");
undef $name;
}
}
1;
package answerFakeName;
use strict;
use Plugins;
use Globals qw($accountID);
use Log qw(message);
Plugins::register('answerFakeName', 'Answers Anti-bot with defined name.', \&onUnload);
my $hooks = Plugins::addHooks(
['packet/npc_talk_text', \&typeText, undef],
['packet/actor_info', \&checkName, undef],
);
sub onUnload {
Plugins::delHooks($hooks);
}
my $name;
sub checkName {
my ($self, $args) = @_;
if ($args->{ID} eq $accountID) {
$name = $args->{name};
message "Fake name found: $name\n";
}
}
sub typeText {
if ($name) {
Commands::run("talk text $name");
undef $name;
}
}
1;
thanks a lot for helping mushroon now yes you showed to be worthy of my confidence and an excellent moderator. e to that not yet they know as to make antibot to function is easy to some topics and manuals in the forum do not go here to be difficult to understand.
It's been a years since i post here and create a macro in DarkRO! And now my attention catch with another private server! OldschoolRO! Thanks for this plugin! I hope i can still create a macro for OldschoolRO! Token bot, YGG bot, etc...
how too put some timer at this plugin..??
becouse it goes so fast to type answer fake name..
can u help me mushroom??
i try put pause, but did`t work..
how about replying fakename that is written in numbers not words, im trying to figure this out last 3 days but still cant figure it out, maybe i need some help or a clue.