GetDKP Plus only for EQDKP Plus
created by Corgan | Developers: Charla, Sylna, Wallenium
Download KWOW Multitool to update the EQDKP Data very easy. http://ui.worldofwar.net/ui.php?id=520
SUPPORT FORUM: http://www.eqdkp-plus.com
Description:
English: The WoW Addon GetDKP represents most relevant EQdkp information graphically prepared in WoW. Thus all players with their appropriate classes and DKPs are listed. It is to be changed thus never again necessarily to a Bosskill with ALT+Tab on the Windows Desktop, in order to look after the DKPs. These can be checked comfortably in WoW. The very clearly arranged surface of the GetDKP permits the comfortable sorting of the memberlist according to names, to classes or evenly after DKPs. The Items which the members got, become likewise within the GUI as well as the DKPs paid for it represented. A module is also contained for the auction of items in the Raid and the automatic determination of the winner with consideration of the current DKP of the players.
German: Das WoW Addon GetDKP stellt die meisten relevanten EQdkp-Informationen grafisch aufbereitet in WoW dar. So werden alle Spieler mit ihren entsprechenden Klassen und DKPs aufgelistet. Es ist also nie wieder notwendig nach einem Bosskill mit ALT+Tab auf den Windows Desktop zu wechseln, um nach den DKPs zu schauen. Diese können bequem in WoW nachgesehen werden. Die sehr übersichtlich gestaltete Oberfläche des GetDKP erlaubt das bequeme Sortieren der Memberliste nach Namen, Klassen oder eben nach DKPs. Die Items welche die Mitglieder bekommen haben, werden ebenfalls innerhalb der GUI zusammen mit den dafür bezahlten DKPs dargestellt. Auch enthalten ist ein Modul zur Versteigerung von Gegenständen im Raid und der automatischen Ermittlung des Gewinners unter Berücksichtigung der aktuellen DKP der Spieler.
- 1 comment
- 1 comment
Facts
- Date created
- 05 Nov 2005
- Category
- Last update
- 21 Dec 2009
- Development stage
- Release
- Language
- deDE
- enUS
- License
- All Rights Reserved
- Curse link
- GetDKP for EQdkp-Plus
- Recent files
- R: GetDKP 4.0.12 for 3.3.0 on 21 Dec 2009
- R: GetDKP 4.0.11 for 3.3.0 on 14 Dec 2009
- R: GetDKP 4.0.10 for 3.2.0 on 08 Oct 2009
- R: GetDKP 4.0.9 for 3.1.0 on 07 May 2009
- R: GetDKP 4.0.8 for 3.1.0 on 15 Apr 2009
- #1
Celess Mon, 12 Oct 2009 10:22:41Would love the ctrt specific code changed to the following so others can hook GetDKP. Two calls for friendly external addons to feed GetDKP data. The code below is just a refactor of the existing code wiht some cleanup and isolation of the ctrt specific parts.
function GETDKP_CTRT_GetValues(f, f_note, filter)
local log = CT_RaidTracker_RaidLog
local getId = CT_RaidTracker_GetLootId
if not f or not f_note or not log or not getId then return end
local dkpstring = f_note:GetText()
local raid = f.raidid and log[f.raidid]
if not raid or not dkpstring or not f.itemitemid then return end
local _looter = "";
local _item = "";
if (not filter or f.type == filter) and f.itemplayer and f.itemtime then
local lootid = getId(f.raidid, f.itemplayer, f.itemitemid, f.itemtime)
_looter = raid.Loot[lootid]["player"] ;
_item = raid.Loot[lootid]["item"]["name"] ;
end
return f.type,_looter,_item,dkpstring
end
--hook CT Raidtracker Notes Function
function GETDKP_CTRT_SaveNoteCT()
local _type,_looter,_item,dkpstring = GETDKP_CTRT_GetValues(
CT_RaidTrackerEditNoteFrame, CT_RaidTrackerEditNoteFrameNoteEB, "itemnote")
Original_CT_RaidTracker_SaveNote();
GETDKP_ProcessSaveNote(_type,_looter,_item,dkpstring)
end
function GETDKP_ProcessSaveNote(_type,_looter,_item,dkpstring)
if not _type or not _looter or not _item or _dkpstring == "" then return end
if not IsPromoted() then
GDKP_show(TEXT_DKP_LiveError);
return;
end
if (IsRaidOfficer()) then
Chan = "RAID"
else
Chan = "lokal"
end
if GDKPvar_save.LiveDKP ~= "true" then
DEFAULT_CHAT_FRAME:AddMessage("GETDKP Live DKP is"..GDKPvar_save.LiveDKP
return
end;
if ( _type == "itemnote" ) then
local _args = GDKP_GetArgs(dkpstring, " ");
local dkpvalue = tonumber(_args[1])
if dkpvalue == nil then
return;
end;
_dkptable = "";
if (_args[2] == "DKP") then
for i=3, getn(_args),1 do
if (i == getn(_args)) then
_dkptable = _dkptable.._args[i];
else
_dkptable = _dkptable.._args[i].." ";
end;
end;
if (_dkptable == "" and table.foreach(multiTable[1], VarReturn) == "dkp") then
_dkptable = "dkp";
end;
if (gdkp_alliases ~= nil) then
for key,val in pairs(gdkp_alliases) do
for i=1,table.getn(gdkp_alliases[key]),1 do
if (gdkp_alliases[key][i] == _looter) then
_looter = key;
end;
end;
end;
end;
if _dkptable ~= nil and _dkptable ~= "" then
GDKP_Output("<LiveDKP> "..dkpvalue.." ".._dkptable.." "..TEXT_DKP_SUBDKP_Player.." ".._looter.." "..TEXT_DKP_GETS.." ".._item,Chan)
GDKP_MATH_DKP(_looter.." "..dkpvalue.." ".._dkptable,"sub","true","false",_item)
end;
end;
end;
end
--hook CT Raidtracker Costs Function
function GETDKP_CTRT_SaveCostCT(option)
local _type,_looter,_item,_dkpstring = GETDKP_CTRT_GetValues(
CT_RaidTrackerEditCostFrame, CT_RaidTrackerEditCostFrameNoteEB)
Original_CT_RaidTracker_SaveCost(option);
GETDKP_ProcessSaveNote(option,_type,_looter,_item,_dkpstring)
end
function GETDKP_ProcessSaveCost(option,_type,_looter,_item,dkpstring)
if not _type or not _looter or not _item or _dkpstring == "" then return end
if ( strlen(dkpstring) == 0 ) then
dkpstring = nil;
return;
end
if not IsPromoted() then
GDKP_show(TEXT_DKP_LiveError);
return;
end
if option == "GDKP_HOOK" then
if (IsRaidOfficer()) then
Chan = "RAID"
else
Chan = "lokal"
end
if GDKPvar_save.LiveDKP ~= "true" then
DEFAULT_CHAT_FRAME:AddMessage ("GETDKP Live DKP is"..GDKPvar_save.LiveDKP
return
end;
local _args = GDKP_GetArgs(dkpstring, " ");
local dkpvalue = tonumber(_args[1])
if dkpvalue == nil then
return;
end;
_dkptable = GDKPvar_save.konto
if (_dkptable == "" and table.foreach(multiTable[1], VarReturn) == "dkp") then
_dkptable = "dkp";
end;
if (gdkp_alliases ~= nil) then
for key,val in pairs(gdkp_alliases) do
for i=1,table.getn(gdkp_alliases[key]),1 do
if (gdkp_alliases[key][i] == _looter) then
_looter = key;
end;
end;
end;
end;
if _dkptable ~= nil and _dkptable ~= "" and _looter ~= "bank" and _looter ~= "disenchanted" then
GDKP_Output("<LiveDKP> "..dkpvalue.." ".._dkptable.." "..TEXT_DKP_SUBDKP_Player.." ".._looter.." "..TEXT_DKP_GETS.." ".._item,Chan)
GDKP_MATH_DKP(_looter.." "..dkpvalue.." ".._dkptable,"sub","true","false",_item)
end;
end;
end;
--[CTRTButtonHandle]
function GDKP_CTRTButtonHandle()
if CT_RaidTracker_Version ~= nil then
local CTRTbutton = CreateFrame("Button","GDKP_CTRTButton",CT_RaidTrackerEditCostFrame,"GameMenuButtonTemplate");
CTRTbutton:SetPoint("TOP",CT_RaidTrackerEditCostFrame,"TOP",-127,-12);
CTRTbutton:SetHeight(27);
CTRTbutton:SetWidth(125);
CTRTbutton:SetToplevel(true);
CTRTbutton:SetText(GDKP_Text_HookCTRT);
CTRTbutton:Show();
CTRTbutton:SetScript("OnClick", function() CT_RaidTracker_SaveCost("GDKP_HOOK"); CT_RaidTrackerEditCostFrame:Hide(); end );
GDKP_show("GetDKP added CT Raid Tracker Item Costs Button!");
end
end