Page 1 of 1

Timed Trigger help

Posted: 19 Mar 2019 02:08
by Arsonist
I made a series of triggers that got me to the orc temple from the church and then back to the church when I am burdened. There was one problem: this trigger caused my browser to crash. LoL. I thought to make it timed to slow it down a little, but my cheap attempt failed here is what I have:

Code: Select all

gwc.connection.send('\s');
          setTimeout(500);
  gwc.connection.send('\e');
          setTimeout(500);
  gwc.connection.send('\e');
          setTimeout(500);
  gwc.connection.send('\s');
          setTimeout(500);
  gwc.connection.send('\sell all');
          setTimeout(500);
  gwc.connection.send('\n');
          setTimeout(500);
  gwc.connection.send('\w');
          setTimeout(500);
  gwc.connection.send('\n');
          setTimeout(500);
  gwc.connection.send('\minimize coins');
          setTimeout(500);
  gwc.connection.send('\deposit coins');
          setTimeout(500);
   
I shortened this to limit spoilers a bit.
Please help me find the missing peace and inform me what to fix.

Re: Timed Trigger help

Posted: 19 Mar 2019 11:14
by cotillion
What you want is something like this:

Code: Select all

  mud.connection.send('s')
  await wait(5.0)
  mud.connection.send('e')

Re: Timed Trigger help

Posted: 20 Mar 2019 02:20
by Arsonist
Await doesn't work, claims it is an expression

Re: Timed Trigger help

Posted: 20 Mar 2019 10:32
by cotillion
I see:

Code: Select all

/* jshint ignore:start */  
mud.connection.send('s')	
await wait(5.0)
mud.connection.send('e')

Re: Timed Trigger help

Posted: 21 Mar 2019 01:25
by Arsonist
with the space you have in there I get the same response.

Code: Select all

mud.connection.send('s');
   		await.wait(500);
mud.connection.send('e');
     	await.wait(500);
mud.connection.send('e');
        await.wait(500);
mud.connection.send('s');
      	await.wait(500);
mud.connection.send('sell all');
I can do this with no errors in the triggers setting, but when I use it, I get this.
Error in trigger TypeError: this.function is not a function