04 March 2007

Money splitter for groups

Hey I know most people already have this trigger since it is in the zmudd help file but for those who don't here you go. Also for those who don't know how this needs to be done I'll explain it. First you need to create a new class. Name it autosplit. Now that you have your new class single click on the folder. You should see 2 tabs in the folder. One will be named properties and the other will be named class script. Click on class script. Now past the following in there.

#CLASS {autosplit}
#TRIGGER {You get (%d) coins} {split %1}
#CLASS 0

Ok now we want to create a button for this. 1st create a new button. 1st lets make this a toggle button. Select kind and select toggle. Next we are going to enter the caption. Use something like this ($$-No Split). If you click on the small color squar at the end of the line you can set you text and back ground color. I tend to put my back ground to black, my button off text to red, and my button on text to green. Now that we got the caption entered we want to fill in the value. We are going to us the #T+ and #T- functions. Basicly what these functions do is turn on and turn off. We are going to be turning on and off the class autosplit when we use the button. Now I like to use emotes so that if I'm in a group then everyone will see I just turned something on. Here is what my value area looks like. (note you can change the text after emote to your liking buy make sure you don't mess with the #T+ or #T-)

emote is sharing the spoils of war!
#t+ autosplit

Now that that is done lets change button states from button up to button down. Basicly we just entered the off comand and now we are going to work on the on command. We don't have to set the kind on this side because we have already set it. 1st lets enter the caption. I use $$-Split in green letters with black background. Next lets enter the value. Change you emote if desired but this is what I use.

emote is hording the loot!
#t- autosplit

Just for your future referance. You may have noticed that we put the turning on commands on the off button and the turning off commands on the on button. The reason you do this is because when you click the button it executes the command. You click on $$-No Split and it sends the commands {emote is sharing the spoils of war!;#t+ autosplit} and your button changes to the down display. Well I hope this helps some of you who are not so familure with buttons. Well Good hunting.

No comments: