PM macro config please help

Philippines

Moderators: waferbaron, Moderators

Forum rules
This server is currently not maintained and tables folder (including connection info) is outdated. Read the wiki for instructions on how to update those information. Please contribute your updated info. Contact Cozzie to join the team as a regular server supporter.
sa2mi20
Noob
Noob
Posts: 5
Joined: 24 Aug 2012, 09:59
Noob?: No

PM macro config please help

#1 Post by sa2mi20 »

i want to know how to config my macro..

example i pm my bot..
"relog 5000"

how to do this?
kamirie
Plain Yogurt
Plain Yogurt
Posts: 96
Joined: 22 Jul 2009, 23:19
Noob?: Yes

Re: PM macro config please help

#2 Post by kamirie »

sa2mi20 wrote:i want to know how to config my macro..

example i pm my bot..
"relog 5000"

how to do this?
put this on your macros.txt

Code: Select all

automacro relog {
 pm "relog"
 timeout 0
 call rel
 priority 1
}
macro rel {
    do relog 5000
    stop
}
When you pm your relog , it will relog for 5000 seconds as indicated in

Code: Select all

do relog 5000
i'm not good at configuring macro's so the macro may lack something , but i tried it and works.
Afazter
Noob
Noob
Posts: 5
Joined: 15 May 2012, 02:51
Noob?: Yes

Re: PM macro config please help

#3 Post by Afazter »

sa2mi20 wrote:i want to know how to config my macro..

example i pm my bot..
"relog 5000"

how to do this?
it can use triggers console , isn't it?

Code: Select all

automacro do_from_whisp {
console /\(From: (.*)\) : do_(.*)/
call {
do $.lastMatch2
}
}

for using , whisp your bot "do_relog 5000"

mooleh659
Noob
Noob
Posts: 18
Joined: 02 May 2012, 02:51
Noob?: No

Re: PM macro config please help

#4 Post by mooleh659 »

There's already a built-in chat command for the relog function (and it's more secure), you don't need to use the macro plugin.

You just need to authorize the commanding player by typing "auth playerName 1" (1 is important) at the console or pm'ing the adminPassword to your bot. Set secureAdminPassword to 0 and set your own adminPassword since Kore puts a random adminPassword everytime it starts.

This way Kore only responds to authorized players, not from everyone as given from the example above.