View unanswered posts | View active topics It is currently 17 Jun 2019 20:07

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.



Reply to topic  [ 5 posts ] 
Timed Trigger help 
Author Message
Beginner

Joined: 06 Feb 2019 18:28
Posts: 21
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:
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.

_________________
Signed
Kolvar

"Build a man a fire, he'll be warm for a day.
Set a man on fire, he'll be warm for the rest of his life." Terry Pratchett >:)


19 Mar 2019 02:08
Profile
Site Admin
User avatar

Joined: 04 Mar 2010 01:14
Posts: 305
What you want is something like this:

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


19 Mar 2019 11:14
Profile
Beginner

Joined: 06 Feb 2019 18:28
Posts: 21
Await doesn't work, claims it is an expression

_________________
Signed
Kolvar

"Build a man a fire, he'll be warm for a day.
Set a man on fire, he'll be warm for the rest of his life." Terry Pratchett >:)


20 Mar 2019 02:20
Profile
Site Admin
User avatar

Joined: 04 Mar 2010 01:14
Posts: 305
I see:

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


20 Mar 2019 10:32
Profile
Beginner

Joined: 06 Feb 2019 18:28
Posts: 21
with the space you have in there I get the same response.
Code:
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.
Quote:
Error in trigger TypeError: this.function is not a function

_________________
Signed
Kolvar

"Build a man a fire, he'll be warm for a day.
Set a man on fire, he'll be warm for the rest of his life." Terry Pratchett >:)


21 Mar 2019 01:25
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.