Tick Triggers

General discussion about the Genesis Web Client located at https://www.genesismud.org/play/

Moderator: Eowul

Forum rules
- Use common sense and be respectful towards each other at all times, even when disagreeing.
- Do not reveal sensitive game information. Guild secrets, player seconds are examples of things not allowed.
Post Reply
User avatar
Amorana
Expert
Posts: 296
Joined: 04 Nov 2013 20:26

Tick Triggers

Post by Amorana » 09 Jan 2014 16:29

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:
Zhar wrote: "Man, this guild I'm in is so god damn powerful! Please nerf or I'll have to leave it because it's no fun any more..."

User avatar
cotillion
Site Admin
Posts: 308
Joined: 04 Mar 2010 01:14

Re: Tick Triggers

Post by cotillion » 09 Jan 2014 20:06

Easy with a javascript trigger:

Code: Select all

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

setTimeout(eatHerb, 5000);

User avatar
Amorana
Expert
Posts: 296
Joined: 04 Nov 2013 20:26

Re: Tick Triggers

Post by Amorana » 09 Jan 2014 20:46

cotillion wrote:Easy with a javascript trigger:

Code: Select all

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

setTimeout(eatHerb, 5000);
Cool! Thanks!
Zhar wrote: "Man, this guild I'm in is so god damn powerful! Please nerf or I'll have to leave it because it's no fun any more..."

Post Reply
http://tworzymyatmosfere.pl/przescieradla-jedwabne-z-gumka/