Jump to content

Zmud coding help


Reccum

Recommended Posts

So I am trying to make an affects list within the client so I don't have to type affects to see what buffs I have up. So far it is easy enough if the spell in question has a unique message when cast or when it drops. I am trying to figure out how to do one for Detect Invisible. Can I add an #if statement to an alias?

Since detect invis and detect magic have the same message when cast it will confuse my variables. I want to do something like this:

Alias

name:di

value: cast 'detect invis';#if (Your eyes tingle.) {#var di=1} {#var di=0}

This is not working at all. HELP!

Link to comment
Share on other sites

I've seen this before. A status window up with all your affects showed in it and the time before they fall. Such type of coding is too complexed for me though :P

My suggestion is you time your detect invis and detect magic so they are on the same tick, no need to distinguish one from the other.

Link to comment
Share on other sites

I've seen this before. A status window up with all your affects showed in it and the time before they fall. Such type of coding is too complexed for me though :P

My suggestion is you time your detect invis and detect magic so they are on the same tick, no need to distinguish one from the other.

I don't have any idea how to show how much time is left on the spell, my buttons just show up they are up (green) or down (red).

Your solution might work, but if they get out of sync it will be all messed up. Thanks though, but I am hoping someone can actually tell me how to use the if in tandem with the alias...

Link to comment
Share on other sites

I believe you first have to imput the time of each spell and then it removes 1 every time the mud ticks.

Zrothum sent me a zmud client once that had this for a BMG, I tried to look at the actual script but it was hard as hell so I gave up :P

Link to comment
Share on other sites

Ok, I figured it out. Woohoo!

Changed the alias so that when I cast detect invis another variable called detects turns to 0, if I cast detect magic, that same variable turns to 1. Then when the message "Your eyes tingle." is displayed, it checks the detects variable to see which affect to toggle.

Go me!

Link to comment
Share on other sites

hah, how bout doing both?

Anyway this is my first ever attempt at ANY zmud coding beyond aliases. I was reading old threads about the custom affects bar and saw toten and celerity posting about buttons. Now who in their right mind would NOT want to have a permanent affects bar right by the command prompt? :eek:

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...