Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ VBscript ➜ Achaea/Aetolia

Achaea/Aetolia

It is now over 60 days since the last post. This thread is closed.     Refresh page


Pages: 1  2 

Posted by Bobble   Canada  (76 posts)  Bio
Date Reply #15 on Tue 04 Nov 2003 09:54 PM (UTC)
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.
Top

Posted by Michael Kennedy   (11 posts)  Bio
Date Reply #16 on Tue 04 Nov 2003 10:07 PM (UTC)

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.
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.


51,415 views.

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

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.