Download
(290Kb)
Download
Updated: 02-01-10 11:34 AM
Updated:02-01-10 11:34 AM
Created:01-26-10 01:10 PM
Downloads:3,420
Favorites:14
MD5:

BiteMe

Version: 1.0.0.7b
by: tehbug [More]

DISCONTINUED

release 1.0.0.7b - Fixed typo, improved code speed.

release 1.0.0.6b - Corrected error in coding, should now catch the debuffs allowing the addon to work as intended.

release: 1.0.0.5b - Fixed a stupid mistake with internal coding.

release: 1.0.0.4b - Fixed rez during fights (brez, ankh, soulstone). Corrected whispers from going to dead people. Fixed problems on the /toggle window. Improved some code, big thanks to evman182

release: 1.0.0.3r - fixed hunter bug with feign death

release: 1.0.0.2b - 25man bugs worked out

release: 1.0.0.1b - initial release
Post A Reply Comment Options
Unread 01-26-10, 03:44 PM  
dinah
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Still not raid tested but,

I got a syntax error with your files and went in to check it out.

Code:
	if claimTimer[nextClaim] ~= nil then
		if ( gclock > claimTimer[nextClaim].timestamp ) then

		end
	end
I added the two ends to format it so it could load and it appears to work but I didn't track down what this timer was going to be or if this would cripple your functionality.

Report comment to moderator  
Reply With Quote
Unread 01-26-10, 04:49 PM  
Fragment85
A Kobold Labourer
 
Fragment85's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 20
Uploads: 1
Re: Still not raid tested but,

Originally posted by dinah
I got a syntax error with your files and went in to check it out.

Code:
	if claimTimer[nextClaim] ~= nil then
		if ( gclock > claimTimer[nextClaim].timestamp ) then

		end
	end
I added the two ends to format it so it could load and it appears to work but I didn't track down what this timer was going to be or if this would cripple your functionality.

I did the Above. It loads but it didnt add any names. Refresh didnt work. Any help?
Report comment to moderator  
Reply With Quote
Unread 01-26-10, 05:06 PM  
mich125
A Fallenroot Satyr

Forum posts: 27
File comments: 9
Uploads: 0
Re: Re: Still not raid tested but,

Originally posted by Fragment85
I did the Above. It loads but it didnt add any names. Refresh didnt work. Any help?
I can't even start this addon, when i type either
/bm or /biteme or /bm toggle
it doesn't start, all i get is: Type '/help' for a listing of a few commands.
Report comment to moderator  
Reply With Quote
Unread 01-26-10, 06:58 PM  
dinah
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
The refresh function is going to create a list from your raid roster. You would need to test that functionality in a raid and I haven't had a chance to just yet.
Report comment to moderator  
Reply With Quote
Unread 01-26-10, 08:06 PM  
Fragment85
A Kobold Labourer
 
Fragment85's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 20
Uploads: 1
it is creating a list in the window, But you can only edit the first 10 slots. You can see about 22 people of the raid. but anything over 10 people you can not edit them correctly. By this I mean if you click on the 11th person it selects the 4th person. 12th person if 5th ect. its just not scrolling correctly.
Report comment to moderator  
Reply With Quote
Unread 01-26-10, 08:55 PM  
dinah
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Look for function BiteMeScrollBar_Update() in the biteme.lua file and change it to the following:

Code:
function BiteMeScrollBar_Update()
	local line, lineplusoffset;
	local x = GetNumRaidMembers();
	if x < difficulty then
		FauxScrollFrame_Update(BiteMeScrollBar,x,1,16);
	else
		x = difficulty
		FauxScrollFrame_Update(BiteMeScrollBar,difficulty,1,16);
	end
	if x == 25 then
		for line=1, 25 do
			lineplusoffset = line + FauxScrollFrame_GetOffset(BiteMeScrollBar);
			if lineplusoffset <= difficulty then
				getglobal("BiteMeEntry"..line):SetText(Members[lineplusoffset].player);
				getglobal("BiteMeEntry"..line):Show();
			else
				getglobal("BiteMeEntry"..line):Hide();
			end
		end
	elseif x > 10 and x < 25 then
		for line=1, x do
			lineplusoffset = line + FauxScrollFrame_GetOffset(BiteMeScrollBar);
			if lineplusoffset <= difficulty then
				getglobal("BiteMeEntry"..line):SetText(Members[lineplusoffset].player);
				getglobal("BiteMeEntry"..line):Show();
			else
				getglobal("BiteMeEntry"..line):Hide();
			end
		end
	elseif x == 10 then
		for line=1,10 do
			getglobal("BiteMeEntry"..line):SetText(Members[line].player);
			getglobal("BiteMeEntry"..line):Show();
		end
	else
		for line=1,x do
			getglobal("BiteMeEntry"..line):SetText(Members[line].player);
			getglobal("BiteMeEntry"..line):Show();
		end
	end
end
This should allow you to interact beyond line 10. In theory.
Report comment to moderator  
Reply With Quote
Unread 01-27-10, 10:17 AM  
tehbug
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 13
Uploads: 1
New Update

Sorry for not getting back sooner. Had class in the time I wasn't getting ready for raid and testing the addon as well as I could.

There were some changes from the verson I included and will be more to come I'm sure. Last night I did have a chance to soft-check this addon DURING raid but it was not assigning targets (I had it just sending messages to my console).

Things that need to be changed are:

-- ToDo: -Improve speed overall: use raidnumber instead throughout instead of passing destName
-- -LOCAL-ization... ffs it looks terrible down there
-- -Work on GUI BiteMe_Buttons() for selecting then clicking blank area
-- -Handle error for when 16 people have to bite 16 people. (ie Enrage handler)
-- -Hunter feign death bug?
-- -Reserections not working
Report comment to moderator  
Reply With Quote
Unread 01-27-10, 01:30 PM  
tehbug
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 13
Uploads: 1
Status update

Fixed for 25man priority. Still some random nil error for when you first load with '/bm toggle' and also when you scroll to the last person. These are pretty low priority right now but I want to mention them.

Next (1.0.0.3b) will be fixing hunter FD and clicking in the '/bm toggle' window issue (clicking raid member and then missclicking the up or down arrows).
Last edited by tehbug : 01-27-10 at 01:31 PM.
Report comment to moderator  
Reply With Quote
Unread 01-27-10, 03:51 PM  
dr_AllCOM3
A Cyclonian
 
dr_AllCOM3's Avatar
AddOn Author - Click to view AddOns

Forum posts: 40
File comments: 275
Uploads: 11
I have just finished and tested a bite addon myself .
Report comment to moderator  
Reply With Quote
Unread 01-27-10, 05:52 PM  
tehbug
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 13
Uploads: 1
1.0.0.3b - Fixed hunter feign death bug.
Report comment to moderator  
Reply With Quote
Unread 01-27-10, 07:21 PM  
evman182
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
The addon is a good idea but there's a lot of code in there that seems...silly. no offense.

examples:
Why are you polling through 40 possible debuffs?

Why make the table numbered and then have to look people up every time? In Lua tables can be indexed by strings. Use the characters names instead. If you're looking up bob's entry you can do Members["bob"].alive, or for destName Members[destName]. Then to poll through the table you can use the for k,v in pairs method (i think)

You should be able to check if an event is SPELL_RESURRECT, rather than checking for all the rez spell names.

Use spellID instead of the names of Lanthana's spells. then you dont have to localize for those, just make sure you have the right ones.

Ignore this if you want. What I suggest would prob take a bit of reworking the addon. If you want more help, let me know.
Report comment to moderator  
Reply With Quote
Unread 01-27-10, 07:33 PM  
tehbug
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 13
Uploads: 1
Originally posted by evman182
The addon is a good idea but there's a lot of code in there that seems...silly. no offense.

examples:
Why are you polling through 40 possible debuffs?

Why make the table numbered and then have to look people up every time? In Lua tables can be indexed by strings. Use the characters names instead. If you're looking up bob's entry you can do Members["bob"].alive, or for destName Members[destName]. Then to poll through the table you can use the for k,v in pairs method (i think)

You should be able to check if an event is SPELL_RESURRECT, rather than checking for all the rez spell names.

Use spellID instead of the names of Lanthana's spells. then you dont have to localize for those, just make sure you have the right ones.

Ignore this if you want. What I suggest would prob take a bit of reworking the addon. If you want more help, let me know.

All good ideas that I was planning to get to. I had to make the code as fast as possible for raid yesterday so I couldn't be terribly clean with it. Also, first time using lua so I don't know all the ins and outs yet. So I might hit you up on the offer of help.

summary of what you posted to fix:
~1,40 debuff check - use ??? (not sure if there is a better way, maybe a better capture than looking for the debuff or a better way to catch the debuff)
~use strings for index instead of 'rn' (ie 'destName')
~use spellID instead of spellName (was actually planning too, was just short on time)
~SPELL_RESURRECT - ty, I'm checking if this works, it wasn't working last time when I tried so I had to fudge it and still didn't work. I think I got it to this time though
Last edited by tehbug : 01-27-10 at 07:50 PM.
Report comment to moderator  
Reply With Quote
Unread 01-27-10, 10:59 PM  
cherieann
A Kobold Labourer

Forum posts: 0
File comments: 11
Uploads: 0
wipe

a lil spammy if ppl die, anyway to toggle that off? (during a wipe)
Report comment to moderator  
Reply With Quote
Unread 01-27-10, 11:17 PM  
tehbug
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 13
Uploads: 1
Re: wipe

Originally posted by cherieann
a lil spammy if ppl die, anyway to toggle that off? (during a wipe)
No way to turn it off during a wipe no, you can edit out the line to send a message on a player death if you want, I'll try and add something next release.

it is under "UNIT_DIED" section.
Last edited by tehbug : 01-27-10 at 11:17 PM.
Report comment to moderator  
Reply With Quote
Unread 01-28-10, 12:23 AM  
evman182
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Re: Re: wipe

I'd replace this

Code:
if (auraType=="DEBUFF" and spellName=="Essence of the Blood Queen") then --don't use 'Vampiric Bite' due to the re-debuff after biting
	for i=1,40 do
		local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster  = UnitDebuff(destName, i);
		if (name == "Essence of the Blood Queen") then
			local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster  = UnitDebuff(destName,i);
			Bitten(expirationTime, destName, sourceName);
		end
	end
elseif (auraType=="DEBUFF" and spellName=="Frenzied Bloodthirst") then
	for i=1,40 do
		local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster  = UnitDebuff(destName, i);
		if (name == "Frenzied Bloodthirst") then
			local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster  = UnitDebuff(destName,i);
			TimeToBite(destName);
		end
	end
with this:

Code:
if (auraType == "DEBUFF") then
	if (spellId == 70867 or spellId == 71473) then -- essence of the blood queen
		local essenceName = GetSpellInfo(70867) -- get localized essence name
		local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster  = UnitDebuff(destName, essenceName)
		if name then Bitten(expirationTime, destName, sourceName) end
	elseif (spellId == 70877 or spellId == 71474) then -- bloodthirst
		TimeToBite(destName)
	end
post if you don't understand my code
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: