Welcome to the Achaea Forums! Please be sure to read the Forum Rules.

How can I set a delay with the HTML 5 client

AraeusAraeus Member Posts: 22 ✭✭ - Stalwart
I am trying to set an alias where I can def up when I enter realms and some things require mineral balance, or that I regain equlibrium. How can I set a delay to allow for this?

Best Answers

  • TrevizeTrevize Member Posts: 1,517 @ - Epic Achaean
    Accepted Answer
    I don't know about the HTML client, to be honest, but the general best way to do that is to make a trigger for the balance, and every time you recover, do the next thing on a list. Track defences/etc with variables.
    Current scripts: GoldTracker 1.2, mData 1.1
    Site: https://github.com/trevize-achaea/scripts/releases
    Thread: http://forums.achaea.com/discussion/4064/trevizes-scripts
    Latest update: 9/26/2015 better character name handling in GoldTracker, separation of script and settings, addition of gold report and gold distribute aliases.


  • YamatoYamato Member Posts: 62 ✭✭ - Stalwart
    edited January 2014
    this looks nice! I was looking for a timer that updates, and prints the time I have left every second. This is what I have got so far.  Its not updating the timer for some reason. any ideas?
    var delayedAction = setTimeout(function() {
        var timer = timer - 1000;
        print("time left is " + timer);
    }, 1000);

    as for now it only prints "time left is NaN"

    edit: nevermind I go tit.
    Post edited by Yamato on
  • AraeusAraeus Member Posts: 22 ✭✭ - Stalwart
    Thanks Everyone for the information. It was very helpful.
  • LeoendithasLeoendithas Member Posts: 9
    hey guys im really really bad at doing this kind of thing! what i want is to set an alias or trigger to harvest herbs. but i require a delay to compensate for balance recovery! aslo im that bad a writing these that i would like to ask for a blow by blow on ow to do it :(

Sign In to Comment.