[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  VBscript
. . -> [Subject]  Achaea/Aetolia

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Achaea/Aetolia

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Pages: 1  2 

Posted by Bobble   Canada  (76 posts)  [Biography] bio
Date Reply #15 on Tue 04 Nov 2003 09:54 PM (UTC)  quote  ]
Message
Hi Michael,

Something I can't figure out is why you're looping this. It's entirely possible that I'm missing something here, but isn't the subroutine as it stands right now a neverending loop unless you have food (which I'm assuming is the variable for the affliction anorexia)or have eaten an herb recently?

For instance, lets assume two things, herbtimer is "off" and food is "off"

The sub is going to set the dimension affliction_stupidity to "off" then it will set the mushclient variable "Affliction_Stupidity" to "on".

Then it's going to get the variable contents for herbtimer (off) and food (also off).

The first IF statement is going to be false because herbtimer is off, so it won't exit the sub. The OR statement will be true, because food is off. So it will now send "outb goldenseal" and "eat goldenseal" to Aetolia and set the dimension "Affliction_Stupidity" to "on" Of course, this will make the LOOP statement true, making us go through the whole process again. Of course neither herbtimer or food has changed its state, so the exact same thing will happen again and again and again.

Isn't this just going to spam "outb goldenseal" and "eat goldenseal" until MUSHclient's spam filter cuts it off?

I guess I just don't understand two things and was hoping you might explain them so I can get a better idea of what you're trying to do here.

1. Why did you use a LOOP?
2. What's the purpose of the dimension "Affliction_Stupidiy"?

I think I have an idea of what you're trying to do here, but I'd like to hear it in your words so I don't get it wrong.

I hope to hear from you soon.

Open the watch.
[Go to top] top

Posted by Michael Kennedy   (11 posts)  [Biography] bio
Date Reply #16 on Tue 04 Nov 2003 10:07 PM (UTC)  quote  ]

Amended on Tue 04 Nov 2003 10:08 PM (UTC) by Michael Kennedy

Message
Ok well the loop is so that if it don't cure it it will run back over it again till it does because how stupidity doesn't cure some times with a single throw of the command. Its not an endless loop either at the moment but its not working like I would like it too. I want it too turn it on if i have it check to see if i have either of those two problems if i do stop cure them then come back to it. If i don't i want it to run the cure and keep looping till it sees that it has been cured. If you got aim/msn/yahoo email it to me would save alot of time and space on these boards to speak over that lol. Oh, and i was just always told that its good habbit to dim all your variables in anything you write like that.
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


7,712 views.

This is page 2, subject is 2 pages long:  [Previous page]  1  2 

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]