Code: Select all
useColors 1
Moderator: Moderators
It did not workhelp_us wrote:on reactOnNPC blockCode: Select all
useColors 1
Code: Select all
How do you wish be helped if you're always inactive and you don't help anyone to help you.
Code: Select all
automacro answerNPC {
console /(\d+) (\^[0-9a-z]{6})enter(\^[0-9a-z]{6})enter(\^[0-9a-z]{6})enter(\^[0-9a-z]{6})enter(\^[0-9a-z]{5})/i
eval ($::Macro::Data::varStack{".lastMatch2"} =~ /\^435536/ || $::Macro::Data::varStack{".lastMatch3"} =~ /\^435536/ || $::Macro::Data::varStack{".lastMatch4"} =~ /\^435536/ || $::Macro::Data::varStack{".lastMatch5"} =~ /\^435536/ || $::Macro::Data::varStack{".lastMatch6"} =~ /\^435536/)
exclusive 1
call {
do talk num $.lastMatch1
}
}
Code: Select all
$talk{msg} =~ s/\^[a-fA-F0-9]{6}//g;
And comment it, so it will be like this
#$talk{msg} =~ s/\^[a-fA-F0-9]{6}//g;
Or you can make it check config, like this
$talk{msg} =~ s/\^[a-fA-F0-9]{6}//g if ($config{removeNpcColor});
Then in config.txt put removeNpcColor 1
automacro answerNPC {
console /(\d+) (\^[0-9a-z]{6})enter(\^[0-9a-z]{6})enter(\^[0-9a-z]{6})enter(\^[0-9a-z]{6})enter(\^[0-9a-z]{5})/i
eval ($::Macro::Data::varStack{".lastMatch2"} =~ /\^435536/ || $::Macro::Data::varStack{".lastMatch3"} =~ /\^435536/ || $::Macro::Data::varStack{".lastMatch4"} =~ /\^435536/ || $::Macro::Data::varStack{".lastMatch5"} =~ /\^435536/ || $::Macro::Data::varStack{".lastMatch6"} =~ /\^435536/)
exclusive 1
call {
do talk num $.lastMatch1
}
}
Code: Select all
Loading tables\recvpackets.txt...
Loading tables\cities.txt...
Loading tables\commanddescriptions.txt...
Loading tables\directions.txt...
Loading tables\elements.txt...
Loading tables\emotions.txt...
Loading tables\equiptypes.txt...
Loading tables\haircolors.txt...
Loading tables\headgears.txt...
Loading tables\items.txt...
Loading tables\itemsdescriptions.txt...
Loading tables\itemslots.txt...
Loading tables\itemslotcounttable.txt...
Loading tables\itemtypes.txt...
Loading tables\maps.txt...
Loading tables\monsters.txt...
Loading tables\npcs.txt...
Loading tables\packetdescriptions.txt...
Loading tables\portals.txt...
Loading tables\portalsLOS.txt...
Loading tables\servers.txt...
Loading tables\sex.txt...
Loading tables\skills.txt...
Loading tables\spells.txt...
Loading tables\skillsdescriptions.txt...
Loading tables\skillssp.txt...
Loading tables\skillssp.txt...
Loading tables\skillsstatus.txt...
Loading tables\skillsailments.txt...
Loading tables\skillsstate.txt...
Loading tables\skillslooks.txt...
Loading tables\skillsarea.txt...
Loading tables\skillsencore.txt...
D:\RO\XiLeRo2.0.5\control\macros.txt: ignoring 'eval
($::Macro::Data::varStack{".lastMatch2"} =~ /\^435536/ ||
$::Macro::Data::varStack{".lastMatch3"} =~ /\^435536/ ||
$::Macro::Data::varStack{".lastMatch4"} =~ /\^435536/ ||
$::Macro::Data::varStack{".lastMatch5"} =~ /\^435536/ ||
$::Macro::Data::varStack{".lastMatch6"} =~ /\^435536/)' (munch, munch, unknown
automacro keyword)
[macro] hooking to packet_privMsg
[macro] hooking to AI_pre
[macro] hooking to log