PDA

View Full Version : Changing multiplier for certain slot/set item.



rhayn
11-20-2005, 05:59 AM
Currently, were running nurfed price-addon with a multiplier of 1.89, now however, I would like to have a different multiplier for wands alone. Ive also thought about rings/jewelry in general, but the idea right now is wands.
Is there generally a way of making this happen with the code?

I tried adding this, but as you migth guess, id didnt work that well:

if (NDKP.weapontype == "Wand") then
NDKP.DKP = NDKP.DKP * 10;
local text = "DKP Value: "..format("%.3f", NDKP.DKP);
frame:AddLine("\n"..text, 1.0, 1.0, 0.0);
frame:Show();
end

Now, that didnt work that well, but maybe you can guess what im trying todo here ;-)

Can anyone hint me a bit more of how to actually achieve this, if its possible?

Tivoli
11-21-2005, 11:13 AM
add this to line 444


if (DKPValues.weapon == "Wand") then
DKP = DKP * x;
end

a67rhf7823jn8747==