Advertisement
Guest User

Elbooshy

a guest
May 25th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.42 KB | None | 0 0
  1. #region Level
  2.             if (!Network.PacketHandler.IsTwoHand(item.ID))
  3.             {
  4.                 if (item.ID != 0)
  5.                 {
  6.                    
  7.                         if ((uint)Database.ConquerItemInformation.BaseInformations[item.ID].Level != 0)
  8.                         {
  9.                             var lvl = (uint)Database.ConquerItemInformation.BaseInformations[item.ID].Level;
  10.                             if (lvl <= 120)
  11.                                 Points += lvl * 3;
  12.                             else if (lvl <= 130)
  13.                                 Points += lvl * 5;
  14.                             else if (lvl <= 140)
  15.                                 Points += lvl * 6;
  16.                         }
  17.                    
  18.                 }
  19.             }
  20.             else if (item != null && Database.ConquerItemInformation.BaseInformations != null)
  21.            {
  22.                 if (Database.ConquerItemInformation.BaseInformations.ContainsKey(item.ID))
  23.                 {
  24.                     var lvl = (uint)Database.ConquerItemInformation.BaseInformations[item.ID].Level;
  25.                     if (lvl <= 120)
  26.                         Points += (uint)lvl * 6;
  27.                     else if (lvl <= 130)
  28.                         Points += (uint)lvl * 10;
  29.                     else if (lvl <= 140)
  30.                         Points += (uint)lvl * 12;
  31.                 }
  32.            
  33.             }
  34.             #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement