bug bug about bot cant detect special character when talking

Forum closed. All further discussion to be discussed at https://github.com/OpenKore/

Moderators: Moderators, Developers

Message
Author
toro88
Noob
Noob
Posts: 15
Joined: 12 Jul 2008, 05:19
Noob?: No

bug bug about bot cant detect special character when talking

#1 Post by toro88 »

i'm playing mro , using bot version 2.0.7, syn version

when a character name called *:+:Morocc:+:* talked a "a" word

[dist=2] * (2): +:Morocc:+:* : a << then it will display like this


my receive.pm


if ($message =~ /:/) {
($chatMsgUser, $chatMsg) = split /:/, $message, 2;
$chatMsgUser =~ s/ $//;
$chatMsg =~ s/^ //;
stripLanguageCode(\$chatMsg);

$actor = Actor::get($args->{ID});
$dist = "unknown";
if (!$actor->isa('Actor::Unknown')) {
$dist = distance($char->{pos_to}, $actor->{pos_to});
$dist = sprintf("%.1f", $dist) if ($dist =~ /\./);
}
$message = "$chatMsgUser ($actor->{binID}): $chatMsg";
Last edited by toro88 on 20 Mar 2009, 13:45, edited 2 times in total.

Technology
Super Moderators
Super Moderators
Posts: 801
Joined: 06 May 2008, 12:47
Noob?: No

Re: bug bug

#2 Post by Technology »

Yes, its a bug.
But afaik decent servers don't allow such naming.

btw, change your topic title.
One ST0 to rule them all? One PE viewer to find them!
One ST_kRO to bring them all and in the darkness bind them...

Mount Doom awaits us, fellowship of OpenKore!

Locked