About Emoticon Automacro.

For everything NOT server specific support. Do NOT ask for connectivity help here!.

Moderator: Moderators

Message
Author
Donny923
Noob
Noob
Posts: 15
Joined: 13 Jul 2012, 06:26
Noob?: No

About Emoticon Automacro.

#1 Post by Donny923 »

Hello :)

I was thinking about creating an Automacro for bypassing Players to do a little emoticon.

What I have done so far looks like this:

Code: Select all

automacro weed {
hook player_exist
call weedy
run-once 1
}

macro weedy {
pause 2
do e @random ("ho","heh","hmm","no1","$","lv","lv2")
timeout 80
release weed
}
This macro triggers when a player passes by and kore has waited 2 seconds. It does a random emoticon of the list i wrote.

But now I would like that kore saves the players that already passed by and does an invidual timeout for every player to optimize that macro.

What I want to do would be something like

Player A basses by: I do an emoticon after 2 seconds to him
Player B passes by: "
Player A passes by 10 seconds later again: Doesnt do an Emoticon because the timeout isnt finished yet for Player A.
Player C passes by in same time: I do an emoticon again

First question is, would this be possible?

And I dont want someone to write the complete macro, but I didnt find any information on that part of macro coding.. If someone could tell me where to read or what to learn, i would be very thanksful :)

Thanks in advance :)

vitriol
Plain Yogurt
Plain Yogurt
Posts: 61
Joined: 19 Apr 2011, 23:26
Noob?: No

Re: About Emoticon Automacro.

#2 Post by vitriol »

You could use recursion: a condition check and 2 sec pause at the start and then a pause at the end before a recursive call

Post Reply