What is wrong with these lines...

Scripts and support for your favorite MUD client.
Ubek
Sojourner
Posts: 126
Joined: Sat May 12, 2001 5:01 am
Location: Overland Park, KS
Contact:

What is wrong with these lines...

Postby Ubek » Mon Aug 14, 2006 3:18 pm

Gah Gah Gah

Yea, I've been scripting for all of 2 hours max. I've read a bunch of tutorials and have a general idea of what needs to get done(PS I hate ZMud's scripting concepts, ideas and syntax but that's a whole nother article).

Code: Select all

#if ((@CurrentPet > 0) AND (@CurrentPet <= %numitems(Pets))) {#ad CurrentPet 1} {@CurrentPet = "1"}
order @Pets.@CurrentPet cast "haste' @GlobeTargets.%1


Yes yes, I started with much easier stuff, but that was the first 5 mins, now on to the beefy stuff.

Anyways alittle background. Since I'm super retarded slow now(its been 5 years), I'm finding it hard to keep up/manage my pets in zone situations. So, I'm developing a set of wonderful scripts to help me mage these suckers. The idea is to have a pool of targets(same pool for globes and hastes) and a pool of pets(all casters). I issue a pool based command like ZH 2. In my status bar I have my pool of targets displayed and numbered. With a command like ZH 2, it takes the second person on my list and casts haste on them. I might have this problem solved in the next few hours, but if anyone knows what my error is on that second line, please let me know.
Last edited by Ubek on Mon Aug 14, 2006 3:27 pm, edited 1 time in total.
Race: Drow
Class: Necromancer
"Work Hard, Millions on Welfare Depend on YOU!"
Ubek
Sojourner
Posts: 126
Joined: Sat May 12, 2001 5:01 am
Location: Overland Park, KS
Contact:

Postby Ubek » Mon Aug 14, 2006 3:20 pm

this is the output I get from ZMud when I run

ZH 1 with 2 people on target list and 2 wraiths on pet list
.....

order 1.wraith|2.wraith.1 cast "haste' @GlobeTargets.1
Race: Drow

Class: Necromancer

"Work Hard, Millions on Welfare Depend on YOU!"
Ubek
Sojourner
Posts: 126
Joined: Sat May 12, 2001 5:01 am
Location: Overland Park, KS
Contact:

Postby Ubek » Mon Aug 14, 2006 3:24 pm

ok..seconds later, partial problem solution...well some what..

Code: Select all

order @{Pets.@CurrentPet} cast "haste' @GlobeTargets.%1


now gives..

order 2.wraith cast "haste' @{GlobeTargets.1}


Damn, I had that stupid GlobeTargets evaluating properly last night.
Race: Drow

Class: Necromancer

"Work Hard, Millions on Welfare Depend on YOU!"
Ubek
Sojourner
Posts: 126
Joined: Sat May 12, 2001 5:01 am
Location: Overland Park, KS
Contact:

Postby Ubek » Mon Aug 14, 2006 3:58 pm

Problem solved.. the culprit was a double quote in place of a single quote.
Race: Drow

Class: Necromancer

"Work Hard, Millions on Welfare Depend on YOU!"

Return to “MUD Client Help”

Who is online

Users browsing this forum: No registered users and 6 guests