![]() |
Click to Cast V1.0
Hello fellow developers!
I have created a new addon that I call Click to Cast. It was inspired by CColdiron's Coldy's Priest Groupwindow w/Effect Buttons. I have uploaded a patch to his window that enables Click to Cast. I also have my player window with this enabled. http://www.eq2interface.com/download...fo.php?id=4169 The mod will take the characters SubClass and Level, compare it to a list, and cast a spell when you click. Currently Click to Cast is set up for 4 types of spells. Cures for Noxious, Arcane, Elemental and Trauma. It can easily be adapted for any other type of spell (pet heals come to mind). To add this code to your mod, you just have to include the base file, and activate the spell page that you want to cast. I'll run through the chain of events real quick so you have an idea of what is going on. So to mod a group window, add the base file to your mod. Code:
<include>MaddBomber_UseAbility_Group.xml</include>So you need to activate the page for the type of spell you want to cast. I use a button with a Code:
OnPress="UseAbility.Elemental.Activated=true"Done! thats it. Now my code will take over for a brief second. First the page you activated (Elemental) will set the class and level in a data object based off /GameData.Self.SubClass and Level. It will then Reference that XML file, lets say your a Warden level 7. It goes to the Warden page, goes to the Elemental section (because that is the page that was activated), goes to the level 7 section, and executes that code. So, that code should say something like, Code:
useability Cure ElementalCode:
<Data Name="Noxious"Since each class has its own file, it is easy to change and swap. Some quick notes, you can't include the same physical page twice. So like right now i'm uploading my player window with click to cast. I can't include "newfile" in both the group window and the player window. So I add an end to it. Code:
MaddBomber_UseAbility_Group.xmlNow your good to go. Any questions, comments, suggestions let me know! My hopes are that Click to Cast's base files (the class files) are easily patched to different mods so that they can be shared between all click to cast enabled windows. Also, it is not limited to spells. The program will just run whatever is in those " ", so you could have the guardian Noxious one say, Heal me I'm sick! into group chat. |
Hi there! This is a nice ui and a great patch! At least as long as they don't pull another "change all the spells!" revamp on us. ;) Was just curious about one thing, though.
michsageman242 also made a patch for this which adds a 5th button under the character name. Probably not vital to have - you've already made the 4 buttons completely customizeable for more than just the cures - but I do like the 5th button option. Been trying to fit it into the current ui settings, but no luck so far. Here's what I've done to try and fit this in: in the eq2ui_mainhud_groupmembers.xml file, I added the following under each group member: <Page Location="33,1" Name="Spell" OnHoverIn="Opacity=1.000" ScrollExtent="66,14" Size="66,14"> <Button BackgroundOpacity="0.000" LocalTooltip="Cast Spell" Name="Spell" OnPress="parent.parent.parent.parent.UseAbility.Spell.Activated=true" PackLocation="left,top" PackLocationProp="0000/0001,0000/0001" ScrollExtent="14,14" Size="14,14"></Button> </Page> In the MaddBomber_UseAbility_Group.xml I added: <Page Name="Spell" OnActivate="parent.Data.Class=(parent.SubClass.text) parent.Data.Level=(parent.level.text) parent.Use.activated=false onDeactivate=('parent.use.OnEffectFinished=parent.Class.')'##&apo s;(parent.data.class)'##'('.')'##'(Name)'##&a pos;('.')'##'(parent.data.level) parent.Use.activated=true activated=false"/> And in the Dirge.xml (my main is a Dirge, so I was testing on her) I added: <Data Name="Spell" 1="useability Hyran's Angry Sonata" 2="useability Hyran's Angry Sonata" ... 69="number.id" 70="number.id" /> (spell name was filled in up to my character's current level, 36). The button tooltip displays on mouseover, but the spell won't trigger. I put Fueled by Hate under the Noxious lvls 1-36 and that works fine. Any thoughts? Or should I just be happy with my 4 customizeables? Thanks! :) |
| All times are GMT -5. The time now is 10:53 AM. |
vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI