Page 1 of 1

Tick Triggers

Posted: 09 Jan 2014 16:29
by Amorana
Is it possible to write timed triggers in the client? For example, in CMud for mana herb munching I have a trigger:

Pattern: You eat a mana herb.
Execute: #ALARM +61 {eat mana herb}

Just wondering if it is possible to do the same somehow in the client? It certainly would make staying logged in at work easier for me. :twisted:

Re: Tick Triggers

Posted: 09 Jan 2014 20:06
by cotillion
Easy with a javascript trigger:

Code: Select all

function eatHerb() {
    gwc.connection.send("eat herb");
}

setTimeout(eatHerb, 5000);

Re: Tick Triggers

Posted: 09 Jan 2014 20:46
by Amorana
cotillion wrote:Easy with a javascript trigger:

Code: Select all

function eatHerb() {
    gwc.connection.send("eat herb");
}

setTimeout(eatHerb, 5000);
Cool! Thanks!