View Single Post
  #10  
Unread 04-21-2008, 01:47 PM
Taemek Taemek is offline
A Young Mystail Rat
Interface Author - Click to view interfaces
 
Join Date: Sep 2007
Server: Antonia Bayle
Posts: 7
Default

Quote:
Originally Posted by gm9 View Post
Because your code actually does change the target, and then changes it back. Doing what I suggested and using /useabilityonplayer instead does not change the target, so it is more efficient. And besides you asked how to code for useabilityonplayer in the OP.

If you want to go the /target_previous route however let me suggest you add this code to the buttons:
OnHoverIn="target_allow_pet_member_toggle 0" OnHoverOut="target_allow_pet_member_toggle 1"
This is what I had developed for ProfitUI 3.x before /useabilityonplayer was introduced. Without this code you may end up curing pets if you have classes with pets in your group, which was a problem for click to cure buttons at the time (good ol' times ). So this code is pretty much required, but you can see that it costs even more efficiency, so I do recommend you use the useabilityonplayer route if you can.

EDIT to add: If you play with people with non-ASCII characters in their names you are forced to take the /useability /target_previous route btw because the EQ2 scripting language does not handle non-ASCII characters.

EDIT2: I see you already released it anyway. Coercers have manaflow too btw.

It's ok, I released it with the /useabilityonplayer route anyway cause I just didnt feel right about doing it the other way. . I will how ever be using that code you showed me in reguards to toggling out pets, thats going to come in handy, thank you for that, appreciate it.

OMG, what the hell was I thinking, people still play Coercers? Only messin, I will get right on that.

I have no idea where I am going to put these buttons in for the default raid UI, I think I might have to get imaginative with it a little while staying with in the default theme.....
Reply With Quote