daily pastebin goal
4%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private uint GetItemScore(MyWoW.Helpers.ClientDB.DBCacheItem.ItemInfo ItemInfo)
  2.         {
  3.  
  4.             UInt32 Result = 0;
  5.             UInt32 CurrentScoreToEarn = 100;
  6.  
  7.             foreach (String StatType in Forms.AllForms.Settings.AutoEquip_StatsPriority.Lines)
  8.             {
  9.  
  10.                 UInt32 StatValue = 0;
  11.  
  12.                 if (StatType == "Stamina")
  13.                     StatValue = ItemInfo.Stamina;
  14.                 else if (StatType == "Intellect")
  15.                     StatValue = ItemInfo.Intellect;
  16.                 else if (StatType == "Agility")
  17.                     StatValue = ItemInfo.Agility;
  18.                 else if (StatType == "Spirit")
  19.                     StatValue = ItemInfo.Spirit;
  20.                 else if (StatType == "Strength")
  21.                     StatValue = ItemInfo.Strength;
  22.  
  23.                 Result += CurrentScoreToEarn * StatValue;
  24.  
  25.                 CurrentScoreToEarn -= 10;
  26.  
  27.             }
  28.  
  29.             return Result;
  30.  
  31.         }
RAW Paste Data
Top