r-click menu spellup and casting system for zmud

Scripts and support for your favorite MUD client.
Jorus
Sojourner
Posts: 277
Joined: Fri Apr 27, 2001 5:01 am
Location: Vancouver, BC
Contact:

r-click menu spellup and casting system for zmud

Postby Jorus » Thu Oct 24, 2002 6:31 am

Dunno if anyone else has a use for this, but I was asked to put one together. Decided to post it here. Enjoy.

This one is put together for some shaman spells. Edit the alias "spellupadd" to use the spellup-spells you want, and add more menu's to the SpellsMenu class to have more non-spellup spells.

The way it works is.. you add someone to the spellup-spells by selecting the add to spellup option from the spellup menu. This gives that person their own entry in the spellup menu, with the selected spells "locked" to their name (you can click anywhere and still cast on a certain person, keeping you from having to freeze the screen).

This can be integrated with group-list triggers to put everyone in the group on the spellup list by calling the spellupadd alias with a name as a parameter.

The "spells" menu just uses the word you click on, for various less-commonly used spells.

If anyone has any refinements or additional ideas, let me know.

As usual, paste into a text file and import into zmud.

#CLASS {MenuHelpers}
#ALIAS spellupadd {#ADDITEM spelluplist %1;#CLASS {SpellupMenu|%1} {menu};#MENU {vit} {c 'vit' %1};#MENU {stone} {c 'stone' %1};#MENU {pfe} {c 'protection from evil' %1};#MENU {armor} {c 'armor' %1};#MENU {remove from spellup} {spellupdell %1};#CLASS 0;#MENU {%1} {} "SpellupMenu" "%1"}
#ALIAS spellupdell {#DELITEM spelluplist %1;#DELCLASS SpellupMenu|%1;#UNMENU {%1} {SpellupMenu}}
#CLASS 0

#CLASS {Menus}
#MENU {Spellup} {} "" {SpellupMenu}
#MENU {"Spells"} {} "" {SpellsMenu}
#CLASS 0

#CLASS {SpellsMenu} {menu}
#MENU {stone} {c 'stone' %selword} ""
#MENU {heal} {c 'heal' %selword} ""
#MENU {vit} {c 'vit' %selword} ""
#CLASS 0

#CLASS {SpellupMenu} {menu}
#MENU {"Add to spellup"} {spellupadd [%selword]} ""
#MENU {"remove from spellup"} {spellupdell [%selword]} ""
#MENU {"Clear list"} {#FORALL @spelluplist {spellupdell %i}} ""
#CLASS 0
Azenilsee
Sojourner
Posts: 199
Joined: Sat Nov 03, 2001 6:01 am
Location: Kuala Lumpur, Malaysia
Contact:

Postby Azenilsee » Fri Oct 25, 2002 4:40 am

Does this mean that say for a group that consists of a warrior and a cleric, I can set it up so that the warrior gets scales/blur/globe/haste and the cleric gets scales only?

Need some clarification, kinda confused.

------------------
Azenilsee - Faern Dalharil - Orbdrin D'Oloth
Jorus
Sojourner
Posts: 277
Joined: Fri Apr 27, 2001 5:01 am
Location: Vancouver, BC
Contact:

Postby Jorus » Fri Oct 25, 2002 10:04 am

It only gives the spells you tell it to, manually.

To spellup scale on someone, you'd set it up to use scale, then r-click on that person, add them to the spellup cycle, then r-click again, and select scale under their name. Tadah.

It just means no typing, which may be easier and faster for some people (carpal tunnel?).

Regards,
Jorus
Malacar
Sojourner
Posts: 1640
Joined: Fri Jan 26, 2001 6:01 am
Location: Boston, MA, USA

Postby Malacar » Fri Oct 25, 2002 11:09 am

I'll try this. Thanks Arishae.

------------------
Malacar - omg ymir!
Jorus
Sojourner
Posts: 277
Joined: Fri Apr 27, 2001 5:01 am
Location: Vancouver, BC
Contact:

Postby Jorus » Sat Oct 26, 2002 8:44 pm

NP Malacar!

Let me know if you need a hand integrating it with any other aliases or triggers.

I have also spent some time dealing with the issue of what order things show up in the menus, so if you'd like people in the spellup menu to show up ABOVE the menu-control options, I can post an update that does that.

Regards,
Jorus
Zetey
Sojourner
Posts: 40
Joined: Sun May 05, 2002 5:01 am

Postby Zetey » Fri Nov 08, 2002 12:33 am

Jorus,

I cannot for the life of me get this to adjust for my enchanter needs. Plus, the individual spells on the spells menu -- how do you get those to be cast on someone? When I right-click, there isn't a target for the spell. Confused,

Zet

------------------
Zetey *Planes Walker* The Forsaken
Jorus
Sojourner
Posts: 277
Joined: Fri Apr 27, 2001 5:01 am
Location: Vancouver, BC
Contact:

Postby Jorus » Fri Nov 08, 2002 1:12 am

Here is an enchanterish version.

I've re-arranged it all somewhat, so it should make editing a bit easier:

You may need to verify that the @selword variable is created correctly, however, as %selword seems to persist longer than it should (imo).


#CLASS {MenuHelpers}
#ALIAS spellupadd {#ADDITEM spelluplist %1;makemenu [%1]}
#ALIAS spellupdell {#DELITEM spelluplist %1;#DELCLASS SpellupMenu|[%1];#UNMENU {%1} {SpellupMenu}}
#ALIAS makemenu {#SAY adding: %1
#CLASS {SpellupMenu|%1} {menu}
#MENU {scale} {c 'dragonscale' %1}
#MENU {blur} {c 'blur' %1}
#MENU {haste} {c 'haste' %1}
#MENU {globe} {c 'globe' %1}
#MENU {remove from spellup} {spellupdell %1}
#CLASS 0
#CLASS {SpellupMenu}
#MENU {%1} {} "" "%1"
#MENU 94 {"Add to spellup"} {spellupadd @selword} {} {}
#MENU 95 {"remove from spellup"} {spellupdell @selword} {} {}
#MENU 96 {"Clear list"} {#FORALL @spelluplist {spellupdell %i}} {} {}
#CLASS 0}
#VAR selword {[%selword]}
#CLASS 0

#CLASS {Menus}
#MENU {Spellup} {} "" {SpellupMenu}
#MENU {"Spells"} {} "" {SpellsMenu}
#CLASS 0

#CLASS {SpellsMenu} {menu}
#MENU {ds %selword} {c 'dragonsc' %selword} ""
#MENU {stone %selword} {c 'stone' %selword} ""
#MENU {blur %selword} {c 'blur' %selword} ""
#MENU {di %selword} {c 'detect i' %selword} ""
#MENU {dm %selword} {c 'detect m' %selword} ""
#CLASS 0

#CLASS {SpellupMenu} {menu}
#MENU {"Add to spellup"} {spellupadd [%selword]} ""
#MENU {"remove from spellup"} {spellupdell [%selword]} ""
#MENU {"Clear list"} {#FORALL @spelluplist {spellupdell %{i}}} ""
#CLASS 0
Zetey
Sojourner
Posts: 40
Joined: Sun May 05, 2002 5:01 am

Postby Zetey » Tue Nov 12, 2002 1:52 am

Jorus,

Thanks for the help. Still having problems with this, but I've moved to a different spellup system that is a little less taxing. Gonna try to figure this out, I'll let you know when I get stumped again.

Zet

------------------
Zetey *Planes Walker* The Forsaken

Return to “MUD Client Help”

Who is online

Users browsing this forum: No registered users and 16 guests