I meant which server: thor, odin, asgardconsole /Lista da Sala de Chat/
Making use of eval() in macro
Moderator: Moderators
Re: Making use of eval() in macro
I figured it out when I saw this:
Re: Making use of eval() in macro
i solved with help of ever_boy, i use while ($.map != xxx) do chat join $i for enter in chat room, now i want how stop while when enter in chat room, i tested with
but it give me syntax error if iam out chatroom, only work if i joined in chat....
why this?
thanks
Code: Select all
eval (($::chatRooms{$::currentChatRoom}->{title}) ne 'Chat Room Titles')
why this?
thanks
Re: Making use of eval() in macro
could someone help me for an eval() for choosing a response for "talk resp #"
example I want to choose wtf
i've tried
console /0 wtf/, console /(\d+) wtf/
actually none of the console condition isn't working.. help me please
example I want to choose wtf
Code: Select all
----------Responses-----------
0 wtf
1 ftw
2 wtf
3 cancel
-------------------------------
console /0 wtf/, console /(\d+) wtf/
actually none of the console condition isn't working.. help me please
Re: Making use of eval() in macro
you don't need an eval for that. use the 'talk' command.
Re: Making use of eval() in macro
Code: Select all
----------Responses-----------
0 wtf
1 ftw
2 wtf
3 cancel
-------------------------------
-
- Noob
- Posts: 14
- Joined: 20 Nov 2009, 06:47
- Noob?: No
Re: Making use of eval() in macro
how about using "console", you can make it like thisronron14 wrote:there's no argument that I should use the talk command, the thing is I want to know how to trigger the kore to do a talk response whenever it sees "0 wtf" because I'll be dealing with changing talk response numbers so the talknpc fixed sequence won't do the job I wanted to do..Code: Select all
----------Responses----------- 0 wtf 1 ftw 2 wtf 3 cancel -------------------------------
console /^\d+ wtf/
-
- Developers
- Posts: 1798
- Joined: 05 Dec 2008, 05:42
- Noob?: Yes
Re: Making use of eval() in macro
Can't be done securely with current macro plugin so there would be no example, but works for me with "\s". The better approach would be to improve talk commands to accept response text as an alternative to response number.
Re: Making use of eval() in macro
Oh, now I get it. Maybe you could do this:ronron14 wrote:there's no argument that I should use the talk command, the thing is I want to know how to trigger the kore to do a talk response whenever it sees "0 wtf" because I'll be dealing with changing talk response numbers so the talknpc fixed sequence won't do the job I wanted to do..Code: Select all
----------Responses----------- 0 wtf 1 ftw 2 wtf 3 cancel -------------------------------
automacro choseWTF {
console /^(\d) wtf/
delay 3
call {
do talk resp $.lastMatch1
}
}
-
- Noob
- Posts: 2
- Joined: 24 Jul 2017, 22:09
- Noob?: No
Re: Making use of eval() in macro
How can i get a list of monsters on the screen and their position?
I need to check the position of them all to use skill on the max number of monsters possible.
I need to check the position of them all to use skill on the max number of monsters possible.