my nickname has a ' so the macro doesn't recognize my character as an existing one what can i do to fix this?
sorry for my bad english
Thanks
[Macro Plugin]Nickname with variable
Moderators: Moderators, Documentation Writers
-
- Moderators
- Posts: 1197
- Joined: 16 Dec 2011, 02:53
- Noob?: No
- Location: Brazil
Re: [help]Nickname with variable
How the kore recognizes your name ?
Can you give a example ?
How is the macro ?
In this example :
Bruno Mars
He doesn't send the PM,because the name contain a 'space'.
To solve this problem,add this name in quote...Note :
Can you give a example ?
How is the macro ?
In this example :
In this example,if the nickname of character is almost equal to this name :automacro xD {
console /\(From: (.*)\) : Come'on, take your money/i
call {
$player = $.lastMatch1
do pm $player Okay,I'm going.
}
}
Bruno Mars
He doesn't send the PM,because the name contain a 'space'.
To solve this problem,add this name in quote...Note :
I do not understand your doubt,why don't have much details.automacro xD {
console /\(From: (.*)\) : Come'on, take your money/i
call {
$player = $.lastMatch1
do pm "$player" Okay,I'm going.
}
}
Learn rules
-
- Noob
- Posts: 8
- Joined: 14 Feb 2012, 07:10
- Noob?: Yes
Re: [help]Nickname with variable
hello sir,
my macro can PM players but it can't pm those name that has backslash " \ "... I just cant find the way how... thanks..
my macro can PM players but it can't pm those name that has backslash " \ "... I just cant find the way how... thanks..
-
- Moderators
- Posts: 1197
- Joined: 16 Dec 2011, 02:53
- Noob?: No
- Location: Brazil
Re: [help]Nickname with variable
If the name, as example, is : \Batman/willsnake wrote:hello sir,
my macro can PM players but it can't pm those name that has backslash " \ "... I just cant find the way how... thanks..
Use this :
console /The player \\Batman\/ is very bad/i
If i use /, i'm finishing my phrase as regular expression.
See :
console //;
Now see:
console /The player \\Batman\/ is very bad/i
I have used \ to retire the powers of /.
Understand me ? rs !
Learn rules