|
albo Apprentice
Joined: 27 Mar 2008 Posts: 106
|
Posted: Sat May 02, 2009 1:22 am
#if {@gold=50000 or more} {do some stuff for me} {if not do nothing} |
How would I get that to work?
#exec %concat ("%eval(@gold)" "#if {@gold=50000 or more, not sure how to make it recognize that it is more than 50000} {go to the bank and deposit the cash} {do nothing}")??
i already record how much gold I am making and just want to check the gold variable once in a while to see if it is 50,000 or more. If it is I just need to execute some commands to get me to the bank and deposit it, otherwise it needs to do nothing.
Any help would be appreciated. |
|
|
|
wrym Magician
Joined: 06 Jul 2007 Posts: 349 Location: The big palace, My own lil world
|
Posted: Sat May 02, 2009 1:58 am |
basically what you have there
#if (@gold >= 50000) {do this}
Could put that in a trigger when you get gold, or an alarm to evaluate that statement every couple minutes |
|
_________________ "To the engineer, all matter in the universe can be placed into one of two categories: (1) things that need to be fixed, and (2) things that will need to be fixed after you've had a few minutes to play with them" - Scott Adams, The Dilbert Principle |
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Sat May 02, 2009 2:02 am |
#IF (@gold = 50000) {do this} {do that}
You just have the wrong kinda brackets on the #IF conditionals. You need parens, not curlies. |
|
_________________ CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
|
albo Apprentice
Joined: 27 Mar 2008 Posts: 106
|
Posted: Sat May 02, 2009 2:18 am |
funny, I was just reading up on CMUD forums and was admiring the signatures of you two. I have seriously considered switching over to CMUD but am afraid because, I wrote a very massive bot for doing a very tedious monotous thing on my favorite mud, and would hate to lose all that work. Although, as you just determined by my first post, it is quite simple because I'm not the greatest.
Thanks though, my first thought was to do just what you two said, I just did not think it would be so simple. |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sat May 02, 2009 2:23 am |
It has a 30 day free trial and you can get a refund within 30 days of your purchase if you don't want to keep it. There'll probably be a new public version out in the coming weeks though, so you might want to wait.
|
|
|
|
albo Apprentice
Joined: 27 Mar 2008 Posts: 106
|
Posted: Sat May 02, 2009 2:30 am |
i don't know, with the guy behind the name zugg working so damn hard on it i'm sure the paid for version is very worth it. I read some great things about CMUD. the free version that you say might come out would most likely be a dumbed down version. I wish i could get half-price for purchasing zmud already or something(reason #2 why I havn't switched already, I already paid for zmud not even a year ago)
|
|
|
|
wrym Magician
Joined: 06 Jul 2007 Posts: 349 Location: The big palace, My own lil world
|
Posted: Sat May 02, 2009 3:13 am |
At one point there was an upgrade/zmud discount option, but that ran out a ways back I believe.
Yeah Zugg does put an awful lot of work into cmud, imho one of the better software packages out there. 3 10$ movie tickes == 6 ish hours of entertainment, cmud == 2+ years of entertainment.
Cmud does automatically upgrade your zmud scripts, and has the compatibility wizard to check them. I would recommend downloading the 2.37 public version and trying it. If you use the mapper a lot, the 3.xx beta might be worth looking into, much better mapping system, plus all kinds of additional goodies and bug fixes. |
|
_________________ "To the engineer, all matter in the universe can be placed into one of two categories: (1) things that need to be fixed, and (2) things that will need to be fixed after you've had a few minutes to play with them" - Scott Adams, The Dilbert Principle |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sat May 02, 2009 12:36 pm |
A public version is the opposite of a beta version. Generally after new features come out there'll be a few beta versions to get rid of as many bugs as possible. So what I mean when I say a new public version is coming out is that there'll be a new feature set available in a less-buggy version soon, and you might want to wait until that's available.
Also, there're very few things you can't do in the trial that you can in the full version. Thinking about it, the only thing I can come up with is the package library, which you can't download from if you're using a trial version. Everything else works just the same as after you pay for it.
You would've been eligible, a year ago, to receive CMUD free with your zMUD purchase. I don't know what the policy is on allowing offers like that from such a long time ago, but it might be wise to email support and ask.
Finally, saying that CMUD will "automatically upgrade your zMUD scripts" is very ambiguous. CMUD will not make any changes to your code, even if it won't work properly any more. It'll load your existing triggers, aliases and whatnot into CMUD's new database format, and the compatability report will attempt to point out scripts that might not work, but false positives and negatives are both possible. |
|
|
|
albo Apprentice
Joined: 27 Mar 2008 Posts: 106
|
Posted: Sun May 03, 2009 6:01 pm |
I'll see what's up, thanks folk!
|
|
|
|
xiangwei Beginner
Joined: 17 Apr 2004 Posts: 18
|
Posted: Mon May 11, 2009 10:10 am |
#if (@gold<=50000) {do this} {do that}
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Mon May 11, 2009 12:59 pm |
That's actually less than or equal to, the OP wanted greater than or equal to.
|
|
|
|
|
|