Thread Tools Display Modes
10-08-10, 09:20 AM   #1
jappis
A Murloc Raider
Join Date: May 2009
Posts: 5
Unhappy Addon preventing me from leaving a group.

I need an addon that prevents me leaving a party (accidentally).
I know it might sound weird but while farming heroic dungeons with my 7 alts my brains have gotten the idea "teleporting out of dungeon =!= leave party".

for example:
Just couple minutes ago I had a great party in HoR. Just before the 2nd boss tank accidentally ran out of sight and I got CC'd (i was healing) so we wiped.
When I meant to release from my corpse, I went and pressed "leave party".
(and it worked, I released from the corpse but not in the way I liked)

So what I want is either:
an addon that removed the option "leave party" when I right-click my portrait.
OR
Pressing "Leave party" pop ups a window where I need to write down a confirmation (just like when deleting epics or character) so I wont accidentally do that.

I've tried to fix my habit but I haven't been successful yet.

This happens a lot. In Raids, Dungeons, Group questing, you name it.

I will hand out imaginary cookies whoever likes to help me with this.

( Would you kindly )

Last edited by jappis : 10-08-10 at 09:21 AM. Reason: Fixed gibberish runes
  Reply With Quote
10-08-10, 10:21 AM   #2
Nobgul
A Molten Giant
 
Nobgul's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 693
Are you using the default unit frames?
__________________
[SIGPIC][/SIGPIC]
  Reply With Quote
10-08-10, 02:23 PM   #3
jappis
A Murloc Raider
Join Date: May 2009
Posts: 5
Originally Posted by nobgul View Post
Are you using the default unit frames?
Nope. Im using OUF_Lumen layout.
  Reply With Quote
10-08-10, 02:36 PM   #4
Nobgul
A Molten Giant
 
Nobgul's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 693
Ok so after looking over your post 5 times, I have come to the conclusion either your ouf layout is doing something funky or you have not explained yourself fully.

I went over the ouf_lumen layout it is calling the reg blizzard drop down menu. As far as I know there is no release option in the drop down menu, although this obviously does not fix your problem and or address your issue. So if that is the case do you get a popup when you die to release? If not it could be another addon suppressing it, and or combining it into the unit frames drop down menu.

There is a few "quick Fixes". Firstly you can comment out lines 387 to 397 in the oUF_lumen.lua file. This will effectivly break your ability to use the right click menu.

The second option is you can change a bit of the lua to "fool" your right click menu to think you are not in a party therefore removing the leave party option. It would however most likely kill the other stuff you would need if leading a raid ie: set loot threshold etc...

IMHO both of those opptions are pretty "Hackish"


I think a better solution would be to figure out what behavior your ui is showing, ie. does a release box pop up? if not then how would you release using your ui.
__________________
[SIGPIC][/SIGPIC]
  Reply With Quote
10-08-10, 03:31 PM   #5
unlimit
Lookin' Good
 
unlimit's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 484
The easiest way to figure this out is to go into your character selection screen, to the "addons" button on the bottom right hand side, and disable all addons. Then, one by one, test out an addon by enabling it, logging in, and seeing if that enabled addon is the one causing the problem. Eventually you'll find your problem.
__________________


kúdan: im playing pantheon
JRCapablanca: no youre not
** Pantheon has been Banned. **
  Reply With Quote
10-08-10, 07:42 PM   #6
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,360
Originally Posted by jappis View Post
I need an addon that prevents me leaving a party (accidentally).<snip>
I will hand out imaginary cookies whoever likes to help me with this.

( Would you kindly )
Here you can make your first addon yourself in 4 easy steps:

1. Go into World of Warcraft\Interface\AddOns\ and make a folder named:
ConfirmLeave

2. Create a text file in that folder and name it:
ConfirmLeave.toc
Open that file in a text editor (like Notepad) and copy-paste the following:
Code:
## Interface: 30300
## Title: ConfirmLeave
## Notes: Popup Confirmation dialog when you try to leave a group.

ConfirmLeave.lua
3. Create another text file in that folder and name it:
ConfirmLeave.lua
Open it in a text editor as well and copy-paste the following:
Code:
local origLeaveParty = LeaveParty
StaticPopupDialogs["LEAVE_PARTY_CONFIRM"] = {
    text = "Are you sure you want to leave your group?",
    button1 = OKAY,
    button2 = CANCEL,
    OnAccept = function(self)
        origLeaveParty();
    end,
    timeout = 0,
    exclusive = 1,
    whileDead = 1,
    hideOnEscape = 1
};
LeaveParty = function()
    StaticPopup_Show("LEAVE_PARTY_CONFIRM")
end
4. Save your files and you're good to go.

Now when you try to leave a party you'll get a confirmation dialog asking you if you're sure you want to do that.
  Reply With Quote
10-09-10, 03:06 AM   #7
jappis
A Murloc Raider
Join Date: May 2009
Posts: 5
Exclamation

Originally Posted by nobgul View Post
Ok so after looking over your post 5 times, I have come to the conclusion either your ouf layout is doing something funky or you have not explained yourself fully.
Next time I post anything anywhere, I'm going to drink couple cups of coffee and take a deep breath before posting instead of being tired and desperate.

Originally Posted by Dridzt View Post
Originally Posted by jappis
I need an addon that prevents me leaving a party (accidentally).<snip>
I will hand out imaginary cookies whoever likes to help me with this.

( Would you kindly )
Someone can read me! ;_;


Anyway, IT WORKS! (It as in The addon)

Thanks alot everyone and specially Thanks Dridzt!
And sorry for my unreadable forum post

And now for the.. Imaginary Cookies! for everyone! (Dridzt gets couple more than others)

Thanks again!

Last edited by jappis : 10-09-10 at 03:08 AM. Reason: I still cant write
  Reply With Quote
10-09-10, 05:20 AM   #8
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,360
I'll just take a regular serving thank you, trying to drop some weight
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Addon preventing me from leaving a group.


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off