Openkore.com

OpenKore Forums
It is currently 19 Oct 2019, 19:44

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Making use of eval() in macro
PostPosted: 21 Nov 2012, 00:21 
Offline
Developers
Developers

Joined: 06 Jul 2012, 13:44
Posts: 310
I figured it out when I saw this:

Quote:
console /Lista da Sala de Chat/


I meant which server: thor, odin, asgard


Top
 Profile  
 
 Post subject: Re: Making use of eval() in macro
PostPosted: 21 Nov 2012, 03:05 
Offline
Human
Human

Joined: 13 Nov 2012, 07:57
Posts: 34
Thor


Top
 Profile  
 
 Post subject: Re: Making use of eval() in macro
PostPosted: 23 Nov 2012, 16:18 
Offline
Human
Human

Joined: 13 Nov 2012, 07:57
Posts: 34
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:
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


Top
 Profile  
 
 Post subject: Re: Making use of eval() in macro
PostPosted: 27 Nov 2012, 20:04 
Offline
Noob
Noob

Joined: 04 Jul 2011, 02:45
Posts: 4
could someone help me for an eval() for choosing a response for "talk resp #"

example I want to choose wtf
Code:
----------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 :)


Top
 Profile  
 
 Post subject: Re: Making use of eval() in macro
PostPosted: 28 Nov 2012, 12:48 
Offline
Developers
Developers

Joined: 06 Jul 2012, 13:44
Posts: 310
you don't need an eval for that. use the 'talk' command.


Top
 Profile  
 
 Post subject: Re: Making use of eval() in macro
PostPosted: 28 Nov 2012, 19:50 
Offline
Noob
Noob

Joined: 04 Jul 2011, 02:45
Posts: 4
Code:
----------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..


Top
 Profile  
 
 Post subject: Re: Making use of eval() in macro
PostPosted: 29 Nov 2012, 05:35 
Offline
Noob
Noob

Joined: 20 Nov 2009, 06:47
Posts: 14
ronron14 wrote:
Code:
----------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/


Top
 Profile  
 
 Post subject: Re: Making use of eval() in macro
PostPosted: 29 Nov 2012, 06:30 
Offline
Developers
Developers

Joined: 05 Dec 2008, 05:42
Posts: 1811
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.


Top
 Profile  
 
 Post subject: Re: Making use of eval() in macro
PostPosted: 29 Nov 2012, 11:06 
Offline
Developers
Developers

Joined: 06 Jul 2012, 13:44
Posts: 310
ronron14 wrote:
Code:
----------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:

Quote:
automacro choseWTF {
console /^(\d) wtf/
delay 3
call {
do talk resp $.lastMatch1
}
}


Top
 Profile  
 
 Post subject: Re: Making use of eval() in macro
PostPosted: 24 Jul 2017, 23:42 
Offline
Noob
Noob

Joined: 24 Jul 2017, 22:09
Posts: 2
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group