Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.49 KB | None | 0 0
  1. public static Positions GetPositionFromID(UInt32 itemid)
  2. {
  3. UInt32 iType = itemid / 1000;
  4. if (iType == 170)
  5. return Positions.Head;
  6. if (iType == 101)
  7. return Positions.Armor;
  8. if (iType == 626)
  9. return Positions.Right;
  10. if (iType == 617)
  11. return Positions.Right;
  12. if (iType == 148)
  13. return Positions.Head;
  14. if (iType == 614)
  15. return Positions.Right;
  16. if (iType == 615 || iType == 616)
  17. return Positions.Right;
  18. if (iType == 619)
  19. return Positions.Left;
  20. if (iType == 622)
  21. return Positions.Right;
  22. if (iType >= 111 && iType <= 118 || iType == 123 || iType >= 141 && iType <= 148)
  23. return Positions.Head;
  24. else if (iType >= 120 && iType <= 121)
  25. return Positions.Necklace;
  26. else if (iType >= 130 && iType <= 139)
  27. return Positions.Armor;
  28. else if (iType >= 150 && iType <= 152)
  29. return Positions.Ring;
  30. else if (iType == 160)
  31. return Positions.Boots;
  32. else if (iType >= 181 && iType <= 194)
  33. return Positions.Garment;
  34. else if (iType == 201)
  35. return Positions.AttackTalisman;
  36. else if (iType == 202)
  37. return Positions.DefenceTalisman;
  38. else if (iType == 203)
  39. return Positions.SteedTalisman;
  40. else if (iType == 200)
  41. return Positions.SteedArmor;
  42. else if (iType == 300)
  43. return Positions.Steed;
  44. else if (iType == 2100)
  45. return Positions.Bottle;
  46. else if (iType == 1050 || iType == 900 || iType == 619)
  47. return Positions.Left;
  48. else if ((iType >= 410 && iType <= 490) || (iType >= 500 && iType <= 580) || (iType >= 601 && iType <= 614) || (iType >= 616 && iType <= 617 || (iType >= 619 && iType <= 620) || iType == 624))
  49. return Positions.Right;
  50. else if (iType >= 350 && iType <= 370)
  51. return Positions.RightAccessory;
  52. else if (iType == 380)
  53. return Positions.LeftAccessory;
  54. else if (iType >= 204 && iType <= 205)
  55. return Positions.Wing;
  56.  
  57. else return (Positions)0;
  58.  
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement