Page 2 of 2
Re: Making use of eval() in macro
Posted: 21 Nov 2012, 00:21
by ever_boy_
I figured it out when I saw this:
console /Lista da Sala de Chat/
I meant which server: thor, odin, asgard
Re: Making use of eval() in macro
Posted: 21 Nov 2012, 03:05
by TormenT
Thor
Re: Making use of eval() in macro
Posted: 23 Nov 2012, 16:18
by TormenT
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
Code: Select all
eval (($::chatRooms{$::currentChatRoom}->{title}) ne 'Chat Room Titles')
but it give me syntax error if iam out chatroom, only work if i joined in chat....
why this?
thanks
Re: Making use of eval() in macro
Posted: 27 Nov 2012, 20:04
by ronron14
could someone help me for an eval() for choosing a response for "talk resp #"
example I want to choose wtf
Code: Select all
----------Responses-----------
0 wtf
1 ftw
2 wtf
3 cancel
-------------------------------
i've tried
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
Posted: 28 Nov 2012, 12:48
by ever_boy_
you don't need an eval for that. use the 'talk' command.
Re: Making use of eval() in macro
Posted: 28 Nov 2012, 19:50
by ronron14
Code: Select all
----------Responses-----------
0 wtf
1 ftw
2 wtf
3 cancel
-------------------------------
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..
Re: Making use of eval() in macro
Posted: 29 Nov 2012, 05:35
by Cloudthers
ronron14 wrote:Code: Select all
----------Responses-----------
0 wtf
1 ftw
2 wtf
3 cancel
-------------------------------
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..
how about using "console", you can make it like this
console /^\d+ wtf/
Re: Making use of eval() in macro
Posted: 29 Nov 2012, 06:30
by EternalHarvest
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
Posted: 29 Nov 2012, 11:06
by ever_boy_
ronron14 wrote:Code: Select all
----------Responses-----------
0 wtf
1 ftw
2 wtf
3 cancel
-------------------------------
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..
Oh, now I get it. Maybe you could do this:
automacro choseWTF {
console /^(\d) wtf/
delay 3
call {
do talk resp $.lastMatch1
}
}
Re: Making use of eval() in macro
Posted: 24 Jul 2017, 23:42
by enricoluigi
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.