View Full Version : How to remove pet.
ernienow
06-13-2006, 06:04 PM
I would like to remove the pet frame from my party frames, but I don't know what to edit out. Can ne1 help me?
Incanus
06-13-2006, 07:11 PM
in your layout.lua remove lines 774 - 781, and load the game.
when you load the game you will get errors, i forget which ones but you then need to remove the lines of code that the errors happen on, in a few cases it's not just one line that needs removed but a whole block of code.
evilgod
06-14-2006, 05:52 AM
or you can just move the pet frames offscreen setting the anchor to 1500,1500 or something like that :)
ernienow
06-15-2006, 08:33 AM
How do I find lines in notepad? COunting those is gonna suck...
kinkyafro
06-15-2006, 09:19 AM
or you can just move the pet frames offscreen setting the anchor to 1500,1500 or something like that :)
http://notepad-plus.sourceforge.net/uk/site.htm
evilgod
06-15-2006, 06:27 PM
i think you quoted the wrong guy :D
kinkyafro
06-16-2006, 01:48 AM
i think you quoted the wrong guy :D
You know what.. I think I did! :D
Boradun
06-29-2006, 08:19 PM
can anyone post the full code that needs to be removed?
and the codes that need to be edited so they do not bugg out?
Removing the party pet block is a BAD idea. Not only are you going to get an error upon forming a party, but you'll periodically get errors while in a party.
Open up your Lib.lua file in /Nurfed_UnitFrames/ and comment or delete the code inside the function: Nurfed_UnitFrames:UpdatePet().
Or if you want a cleaner fix to that, you could just remove:
self:UpdatePet();
if (this.unit == "pet") then
self:UpdateHappiness();
end
... inside the function: Nurfed_UnitFrames:UpdateUnit() and then remove the following code altogether:
function Nurfed_UnitFrames:UpdatePet()
local id, found = gsub(this.unit, "party([1-4])", "%1");
if (found == 1) then
local button = getglobal("Nurfed_partypet"..id);
if (UnitExists("partypet"..id)) then
button:Show();
else
button:Hide();
end
end
end
Sorry I can't give exact line-numbers and junk. I have the code all modified so numbering is probably all different :x
Powered by vBulletin® Version 4.1.9 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.