Genesis Forums
https://www.genesismud.org/forums/

Tick Triggers
https://www.genesismud.org/forums/viewtopic.php?f=37&t=2587
Page 1 of 1

Author:  Amorana [ 09 Jan 2014 16:29 ]
Post subject:  Tick Triggers

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:

Author:  cotillion [ 09 Jan 2014 20:06 ]
Post subject:  Re: Tick Triggers

Easy with a javascript trigger:

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

setTimeout(eatHerb, 5000);

Author:  Amorana [ 09 Jan 2014 20:46 ]
Post subject:  Re: Tick Triggers

cotillion wrote:
Easy with a javascript trigger:

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

setTimeout(eatHerb, 5000);


Cool! Thanks!

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/