Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #region Level
- if (!Network.PacketHandler.IsTwoHand(item.ID))
- {
- if (item.ID != 0)
- {
- if ((uint)Database.ConquerItemInformation.BaseInformations[item.ID].Level != 0)
- {
- var lvl = (uint)Database.ConquerItemInformation.BaseInformations[item.ID].Level;
- if (lvl <= 120)
- Points += lvl * 3;
- else if (lvl <= 130)
- Points += lvl * 5;
- else if (lvl <= 140)
- Points += lvl * 6;
- }
- }
- }
- else if (item != null && Database.ConquerItemInformation.BaseInformations != null)
- {
- if (Database.ConquerItemInformation.BaseInformations.ContainsKey(item.ID))
- {
- var lvl = (uint)Database.ConquerItemInformation.BaseInformations[item.ID].Level;
- if (lvl <= 120)
- Points += (uint)lvl * 6;
- else if (lvl <= 130)
- Points += (uint)lvl * 10;
- else if (lvl <= 140)
- Points += (uint)lvl * 12;
- }
- }
- #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement