Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static Positions GetPositionFromID(UInt32 itemid)
- {
- UInt32 iType = itemid / 1000;
- if (iType == 170)
- return Positions.Head;
- if (iType == 101)
- return Positions.Armor;
- if (iType == 626)
- return Positions.Right;
- if (iType == 617)
- return Positions.Right;
- if (iType == 148)
- return Positions.Head;
- if (iType == 614)
- return Positions.Right;
- if (iType == 615 || iType == 616)
- return Positions.Right;
- if (iType == 619)
- return Positions.Left;
- if (iType == 622)
- return Positions.Right;
- if (iType >= 111 && iType <= 118 || iType == 123 || iType >= 141 && iType <= 148)
- return Positions.Head;
- else if (iType >= 120 && iType <= 121)
- return Positions.Necklace;
- else if (iType >= 130 && iType <= 139)
- return Positions.Armor;
- else if (iType >= 150 && iType <= 152)
- return Positions.Ring;
- else if (iType == 160)
- return Positions.Boots;
- else if (iType >= 181 && iType <= 194)
- return Positions.Garment;
- else if (iType == 201)
- return Positions.AttackTalisman;
- else if (iType == 202)
- return Positions.DefenceTalisman;
- else if (iType == 203)
- return Positions.SteedTalisman;
- else if (iType == 200)
- return Positions.SteedArmor;
- else if (iType == 300)
- return Positions.Steed;
- else if (iType == 2100)
- return Positions.Bottle;
- else if (iType == 1050 || iType == 900 || iType == 619)
- return Positions.Left;
- else if ((iType >= 410 && iType <= 490) || (iType >= 500 && iType <= 580) || (iType >= 601 && iType <= 614) || (iType >= 616 && iType <= 617 || (iType >= 619 && iType <= 620) || iType == 624))
- return Positions.Right;
- else if (iType >= 350 && iType <= 370)
- return Positions.RightAccessory;
- else if (iType == 380)
- return Positions.LeftAccessory;
- else if (iType >= 204 && iType <= 205)
- return Positions.Wing;
- else return (Positions)0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement