Author Topic: Fixed DKP Loot Tables  (Read 998 times)

test

  • Newbie
  • *
  • Posts: 27
    • View Profile
Fixed DKP Loot Tables
« on: April 07, 2009, 05:05:12 pm »
Is there anyway or mod you know of that pulls in the DKP value from a table.  IE we want to assign fixed dkp on items.  Ideas?
« Last Edit: April 15, 2009, 01:43:12 am by Eris »
Logged

Eris

  • Administrator
  • Sr. Member
  • *****
  • Posts: 447
    • View Profile
    • Email
Re: Fixed DKP Loot Tables
« Reply #1 on: April 08, 2009, 10:33:25 am »
I don't know any but maybe I create one.
Logged

test

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Fixed DKP Loot Tables
« Reply #2 on: April 08, 2009, 04:49:25 pm »
WebDKP addon does this, it pulls from a table on their website.  But I presume you could just redesign the ignore function to do fixed loot :) (Possibly pull the data from a text file though or lua file?)

Item Name, Item Number, DKP Value
Logged

Eris

  • Administrator
  • Sr. Member
  • *****
  • Posts: 447
    • View Profile
    • Email
Re: Fixed DKP Loot Tables
« Reply #3 on: April 08, 2009, 06:10:26 pm »
text file is not possible but lua file should be
Logged

test

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Fixed DKP Loot Tables
« Reply #4 on: April 08, 2009, 09:48:13 pm »
Okay well this is what Im thinking.  Pretty sure this should work for lua.  (Im not a lua prog so I dont know hehe)
Code: [Select]
FIXED_DKP_TABLE = {}

FIXED_DKP_TABLE = {
{id="39702", value="75"},
{id="39718", value="125"}
};
print(FIXED_DKP_TABLE[1].id)

Modify this bit of code to add the array from the above lua file with an elseif and then populate the value/looter =)
Code: [Select]
if (CT_RaidTracker_VersionFix == 9) then
for _,idtoadd in pairs({34057,20725,30320,30317,30316,30312,30319,30318,30314,30313,30311}) do
local idfound = false;
for key, val in pairs(CT_RaidTracker_ItemOptions) do
if(val["id"] == idtoadd) then
idfound = true;
end;
end;
if (idfound == false) then
tinsert(CT_RaidTracker_ItemOptions,{
["id"] = idtoadd,
["name"] = GetItemInfo(idtoadd),
["status"] = 0,
["quality"] = 4,
});
end;
end;
Logged

Eris

  • Administrator
  • Sr. Member
  • *****
  • Posts: 447
    • View Profile
    • Email
Re: Fixed DKP Loot Tables
« Reply #5 on: April 09, 2009, 02:04:10 pm »
its a little bit more complicated but the basic is true
Logged

Eris

  • Administrator
  • Sr. Member
  • *****
  • Posts: 447
    • View Profile
    • Email
Re: Fixed DKP Loot Tables
« Reply #6 on: April 09, 2009, 10:49:53 pm »
hmm while I'm programming I found out that this feature is already included ;-)

you just need a array with the name DKPValues

I will create a sample addon for this.
Logged

test

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Fixed DKP Loot Tables
« Reply #7 on: April 10, 2009, 06:21:06 pm »
That works too.  Dunno why it isnt documented then :P Let me know where the samle is at and Ill do a run with it.
Logged

test

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Fixed DKP Loot Tables
« Reply #8 on: April 13, 2009, 05:08:47 pm »
So where is this at?  Any update?

I think I found it here:
http://www.mlmods.net/en-GB/docs/ml_raidtracker/gui-item-options
« Last Edit: April 13, 2009, 05:10:49 pm by test »
Logged

Eris

  • Administrator
  • Sr. Member
  • *****
  • Posts: 447
    • View Profile
    • Email
Re: Fixed DKP Loot Tables
« Reply #9 on: April 13, 2009, 05:42:26 pm »
there non at the moment
Logged

test

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Fixed DKP Loot Tables
« Reply #10 on: April 14, 2009, 08:26:25 pm »
Can you tell me where in the code this is?  I need this ASAP for 3.1 which is today.
Logged

Eris

  • Administrator
  • Sr. Member
  • *****
  • Posts: 447
    • View Profile
    • Email
Re: Fixed DKP Loot Tables
« Reply #11 on: April 15, 2009, 12:03:06 am »
add a file to your raidtracker directory with the name ML_RaidTracker_Custom.lua

the following code you should insert:
Code: [Select]
DKPValues = {
  ["12546"] = 10,
  ["34655"] = 11,
  ["52345"] = 10,
  ["67456"] = 40,
  ["42344"] = 10,
  ["11223"] = 20,
  ["33221"] = 10,
  ["55432"] = 10,
}
Logged

test

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Fixed DKP Loot Tables
« Reply #12 on: April 15, 2009, 02:42:48 am »
Since its down tonight I made the default vaules for Nax, OS, EE (All 25man only)

DKPValues = {
["40332"] = 125,
["39759"] = 125,
["40192"] = 100,
["40250"] = 125,
["40189"] = 225,
["39702"] = 75,
["40558"] = 0,
["40343"] = 225,
["40265"] = 225,
["39734"] = 125,
["40371"] = 150,
["40198"] = 125,
["40324"] = 125,
["39735"] = 125,
["40200"] = 125,
["40260"] = 125,
["40302"] = 125,
["40384"] = 250,
["40209"] = 125,
["40325"] = 125,
["39764"] = 125,
["40338"] = 125,
["40194"] = 150,
["40543"] = 150,
["40363"] = 125,
["40326"] = 125,
["40592"] = 150,
["40246"] = 125,
["40269"] = 125,
["40270"] = 125,
["40409"] = 0,
["40367"] = 125,
["40549"] = 150,
["40387"] = 125,
["44004"] = 0,
["40274"] = 125,
["39729"] = 125,
["40306"] = 125,
["40330"] = 125,
["40365"] = 125,
["40625"] = 150,
["40626"] = 150,
["40627"] = 150,
["40203"] = 125,
["40345"] = 225,
["40334"] = 125,
["40383"] = 250,
["39726"] = 125,
["40405"] = 150,
["40378"] = 75,
["40071"] = 75,
["40210"] = 125,
["40279"] = 125,
["40539"] = 150,
["40319"] = 125,
["40453"] = 125,
["40301"] = 125,
["40254"] = 125,
["40252"] = 125,
["40437"] = 125,
["39718"] = 125,
["40374"] = 75,
["40438"] = 125,
["40296"] = 125,
["40247"] = 125,
["39768"] = 125,
["40287"] = 125,
["40184"] = 125,
["40631"] = 175,
["40632"] = 175,
["40633"] = 175,
["40261"] = 125,
["40208"] = 225,
["39724"] = 0,
["40348"] = 225,
["39701"] = 125,
["40257"] = 150,
["40275"] = 125,
["40285"] = 125,
["40062"] = 125,
["39727"] = 125,
["40060"] = 225,
["40446"] = 125,
["43345"] = 0,
["44000"] = 125,
["40403"] = 150,
["40255"] = 150,
["40590"] = 150,
["40385"] = 250,
["39725"] = 125,
["40237"] = 125,
["40323"] = 125,
["40373"] = 150,
["40298"] = 125,
["40245"] = 100,
["39732"] = 125,
["40320"] = 125,
["40283"] = 125,
["44664"] = 0,
["40346"] = 225,
["39723"] = 125,
["40263"] = 125,
["40065"] = 75,
["40243"] = 125,
["40258"] = 150,
["40541"] = 150,
["40431"] = 150,
["40370"] = 75,
["40316"] = 125,
["40188"] = 0,
["40628"] = 150,
["40629"] = 150,
["40630"] = 150,
["39712"] = 100,
["40278"] = 125,
["40317"] = 125,
["40327"] = 125,
["40272"] = 125,
["40241"] = 125,
["40262"] = 125,
["40362"] = 125,
["40380"] = 125,
["40349"] = 125,
["40238"] = 125,
["40197"] = 125,
["39733"] = 125,
["40339"] = 125,
["40240"] = 125,
["40256"] = 150,
["40242"] = 125,
["40408"] = 0,
["40304"] = 125,
["44007"] = 0,
["40234"] = 125,
["39760"] = 125,
["40235"] = 125,
["40344"] = 125,
["40340"] = 125,
["40328"] = 125,
["40069"] = 75,
["44577"] = 0,
["44581"] = 0,
["40266"] = 225,
["40562"] = 150,
["40329"] = 125,
["40451"] = 125,
["40369"] = 75,
["40342"] = 100,
["40321"] = 100,
["39757"] = 100,
["40432"] = 150,
["40406"] = 225,
["39717"] = 125,
["39761"] = 125,
["40206"] = 125,
["40388"] = 250,
["43346"] = 0,
["40402"] = 250,
["40561"] = 150,
["39720"] = 125,
["40201"] = 125,
["40331"] = 125,
["40333"] = 125,
["40398"] = 150,
["44011"] = 0,
["40560"] = 150,
["40352"] = 125,
["40204"] = 125,
["40379"] = 125,
["40196"] = 125,
["40318"] = 125,
["40589"] = 150,
["40634"] = 150,
["40635"] = 150,
["40636"] = 150,
["40376"] = 125,
["40191"] = 100,
["40337"] = 100,
["40268"] = 100,
["40336"] = 225,
["44662"] = 0,
["40532"] = 175,
["40080"] = 75,
["40555"] = 150,
["40063"] = 125,
["40286"] = 125,
["40439"] = 125,
["40351"] = 125,
["39719"] = 125,
["40637"] = 150,
["40638"] = 150,
["40639"] = 150,
["40531"] = 175,
["39766"] = 100,
["40591"] = 150,
["40368"] = 225,
["44665"] = 0,
["40377"] = 125,
["44006"] = 0,
["40280"] = 225,
["40412"] = 0,
["40299"] = 125,
["39704"] = 125,
["44005"] = 0,
["40284"] = 100,
["40366"] = 125,
["40187"] = 125,
["39731"] = 125,
["40061"] = 125,
["43952"] = 0,
["43954"] = 0,
["39703"] = 125,
["40375"] = 75,
["40294"] = 125,
["40602"] = 125,
["40372"] = 150,
["40075"] = 75,
["40297"] = 125,
["39706"] = 125,
["40107"] = 75,
["40271"] = 125,
["39721"] = 125,
["40108"] = 75,
["40236"] = 125,
["40341"] = 125,
["40410"] = 0,
["40253"] = 125,
["39716"] = 100,
["40185"] = 125,
["40414"] = 0,
["40315"] = 125,
["40251"] = 125,
["40207"] = 100,
["40399"] = 100,
["40407"] = 0,
["40386"] = 250,
["39765"] = 125,
["40282"] = 125,
["40382"] = 150,
["40594"] = 150,
["40305"] = 125,
["40288"] = 125,
["40190"] = 100,
["40300"] = 225,
["40264"] = 125,
["40455"] = 225,
["40205"] = 125,
["40074"] = 75,
["40273"] = 225,
["39722"] = 125,
["40289"] = 125,
["40381"] = 125,
["40239"] = 225,
["40244"] = 225,
["39758"] = 225,
["44002"] = 0,
["40396"] = 250,
["40233"] = 225,
["40186"] = 125,
["40064"] = 75,
["40395"] = 125,
["39762"] = 125,
["40322"] = 100,
["40267"] = 100,
["39728"] = 100,
["40335"] = 100,
["40277"] = 125,
["40193"] = 125,
["39756"] = 125,
["40588"] = 150,
["40281"] = 225,
["39767"] = 125,
["40566"] = 150,
["44008"] = 0,
["44003"] = 125,
["40350"] = 100,
["40249"] = 125,
["40401"] = 125,
["40259"] = 125,
["40400"] = 125,
["39714"] = 225,
["39730"] = 225,
["40564"] = 150,
["39763"] = 225,
["40303"] = 125,
["40433"] = 75,
["44661"] = 0,
["40347"] = 125,

}
Logged

Eris

  • Administrator
  • Sr. Member
  • *****
  • Posts: 447
    • View Profile
    • Email
Re: Fixed DKP Loot Tables
« Reply #13 on: April 15, 2009, 11:27:43 am »
this is for your guild?
have you a calculation formel?
Logged

test

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Fixed DKP Loot Tables
« Reply #14 on: April 15, 2009, 05:00:58 pm »
Well the values are for our guild, but the items anyone could use. Mainly why I posted so people wouldnt need to do it themselves.  (Its every 25man drop from naxx/os/ee, or close to it)

Tha values (Some are 0 because I didnt have anything for those in our old system).  But I think its like 150dkp for 7.5 items, 75 for rings, 225 for the rare weapons etc, 125 is the std for most items IIRC, I just took what the they decided for webdkp and make it work for eqdkp =)
Logged