Advertisement
Guest User

Untitled

a guest
May 20th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.53 KB | None | 0 0
  1. case 33050 :
  2. {
  3.  
  4. LPITEM item2;
  5.  
  6. if (!IsValidItemPosition(DestCell) || !(item2 = GetInventoryItem(wDestCell)))
  7. return false;
  8.  
  9. if (item2->IsExchanging() == true)
  10. return false;
  11.  
  12. if (item2->GetAttributeCount() > 0)
  13. {
  14. ChatPacket(CHAT_TYPE_INFO, "Aby doda?nowe bonusy musisz najpierw wyczyści?przedmiot za pomoc?Taj. Narz?zia Zmiany.");
  15. return false;
  16. }
  17.  
  18. if (item2->GetType() == ITEM_COSTUME && item2->GetSubType() == COSTUME_WEAPON)
  19. {
  20. item2->SetForceAttribute(0, 1, 5000);
  21. item2->SetForceAttribute(1, 66, 20);
  22. item2->SetForceAttribute(2, 63, 15);
  23. item->SetCount(item->GetCount() - 1);
  24. }
  25.  
  26. }
  27. break;
  28. case 33051 :
  29. {
  30.  
  31. LPITEM item2;
  32.  
  33. if (!IsValidItemPosition(DestCell) || !(item2 = GetInventoryItem(wDestCell)))
  34. return false;
  35.  
  36. if (item2->IsExchanging() == true)
  37. return false;
  38.  
  39. if (item2->GetAttributeCount() > 0)
  40. {
  41. ChatPacket(CHAT_TYPE_INFO, "Aby doda?nowe bonusy musisz najpierw wyczyści?przedmiot za pomoc?Taj. Narz?zia Zmiany.");
  42. return false;
  43. }
  44.  
  45. if (item2->GetType() == ITEM_COSTUME && item2->GetSubType() == COSTUME_WEAPON)
  46. {
  47. item2->SetForceAttribute(0, 1, 5000);
  48. item2->SetForceAttribute(1, 17, 15);
  49. item2->SetForceAttribute(2, 74, 5);
  50. item->SetCount(item->GetCount() - 1);
  51. }
  52.  
  53. }
  54. break;
  55. case 33052 :
  56. {
  57.  
  58. LPITEM item2;
  59.  
  60. if (!IsValidItemPosition(DestCell) || !(item2 = GetInventoryItem(wDestCell)))
  61. return false;
  62.  
  63. if (item2->IsExchanging() == true)
  64. return false;
  65.  
  66. if (item2->GetAttributeCount() > 0)
  67. {
  68. ChatPacket(CHAT_TYPE_INFO, "Aby doda?nowe bonusy musisz najpierw wyczyści?przedmiot za pomoc?Taj. Narz?zia Zmiany.");
  69. return false;
  70. }
  71.  
  72. if (item2->GetType() == ITEM_COSTUME && item2->GetSubType() == COSTUME_BODY)
  73. {
  74. item2->SetForceAttribute(0, 53, 300);
  75. item2->SetForceAttribute(1, 97, 5);
  76. item2->SetForceAttribute(2, 66, 15);
  77. item->SetCount(item->GetCount() - 1);
  78. }
  79.  
  80. }
  81. break;
  82. case 33053 :
  83. {
  84.  
  85. LPITEM item2;
  86.  
  87. if (!IsValidItemPosition(DestCell) || !(item2 = GetInventoryItem(wDestCell)))
  88. return false;
  89.  
  90. if (item2->IsExchanging() == true)
  91. return false;
  92.  
  93. if (item2->GetAttributeCount() > 0)
  94. {
  95. ChatPacket(CHAT_TYPE_INFO, "Aby doda?nowe bonusy musisz najpierw wyczyści?przedmiot za pomoc?Taj. Narz?zia Zmiany.");
  96. return false;
  97. }
  98.  
  99. if (item2->GetType() == ITEM_COSTUME && item2->GetSubType() == COSTUME_BODY)
  100. {
  101. item2->SetForceAttribute(0, 1, 5000);
  102. item2->SetForceAttribute(1, 17, 15);
  103. item2->SetForceAttribute(2, 92, 5);
  104. item->SetCount(item->GetCount() - 1);
  105. }
  106.  
  107. }
  108. break;
  109. case 33054 :
  110. {
  111.  
  112. LPITEM item2;
  113.  
  114. if (!IsValidItemPosition(DestCell) || !(item2 = GetInventoryItem(wDestCell)))
  115. return false;
  116.  
  117. if (item2->IsExchanging() == true)
  118. return false;
  119.  
  120. if (item2->GetAttributeCount() > 0)
  121. {
  122. ChatPacket(CHAT_TYPE_INFO, "Aby doda?nowe bonusy musisz najpierw wyczyści?przedmiot za pomoc?Taj. Narz?zia Zmiany.");
  123. return false;
  124. }
  125.  
  126. if (item2->GetType() == ITEM_COSTUME && item2->GetSubType() == COSTUME_HAIR)
  127. {
  128. item2->SetForceAttribute(0, 63, 15);
  129. item2->SetForceAttribute(1, 93, 15);
  130. item2->SetForceAttribute(2, 94, 15);
  131. item->SetCount(item->GetCount() - 1);
  132. }
  133.  
  134. }
  135. break;
  136. case 33055 :
  137. {
  138.  
  139. LPITEM item2;
  140.  
  141. if (!IsValidItemPosition(DestCell) || !(item2 = GetInventoryItem(wDestCell)))
  142. return false;
  143.  
  144. if (item2->IsExchanging() == true)
  145. return false;
  146.  
  147. if (item2->GetAttributeCount() > 0)
  148. {
  149. ChatPacket(CHAT_TYPE_INFO, "Aby doda?nowe bonusy musisz najpierw wyczyści?przedmiot za pomoc?Taj. Narz?zia Zmiany.");
  150. return false;
  151. }
  152.  
  153. if (item2->GetType() == ITEM_COSTUME && item2->GetSubType() == COSTUME_HAIR)
  154. {
  155. item2->SetForceAttribute(0, 53, 300);
  156. item2->SetForceAttribute(1, 17, 15);
  157. item2->SetForceAttribute(2, 73, 5);
  158. item->SetCount(item->GetCount() - 1);
  159. }
  160.  
  161. }
  162. break;
  163. case 33056 :
  164. {
  165.  
  166. LPITEM item2;
  167.  
  168. if (!IsValidItemPosition(DestCell) || !(item2 = GetInventoryItem(wDestCell)))
  169. return false;
  170.  
  171. if (item2->IsExchanging() == true)
  172. return false;
  173.  
  174. if (item2->GetAttributeCount() > 0)
  175. {
  176. ChatPacket(CHAT_TYPE_INFO, "Aby doda?nowe bonusy musisz najpierw wyczyści?przedmiot za pomoc?Taj. Narz?zia Zmiany.");
  177. return false;
  178. }
  179.  
  180. if (item2->GetVnum() >= 53001 && item2->GetVnum() <= 53099 )
  181. {
  182. {
  183. item2->SetForceAttribute(0, 1, 10000);
  184. item2->SetForceAttribute(1, 63, 20);
  185. item2->SetForceAttribute(2, 53, 300);
  186. item2->SetForceAttribute(3, 97, 10);
  187. item2->SetForceAttribute(4, 98, 10);
  188.  
  189. item->SetCount(item->GetCount() - 1);
  190. }
  191. }
  192.  
  193. }
  194. break;
  195. case 33057 :
  196. {
  197.  
  198. LPITEM item2;
  199.  
  200. if (!IsValidItemPosition(DestCell) || !(item2 = GetInventoryItem(wDestCell)))
  201. return false;
  202.  
  203. if (item2->IsExchanging() == true)
  204. return false;
  205.  
  206. if (item2->GetAttributeCount() > 0)
  207. {
  208. ChatPacket(CHAT_TYPE_INFO, "Aby doda?nowe bonusy musisz najpierw wyczyści?przedmiot za pomoc?Taj. Narz?zia Zmiany.");
  209. return false;
  210. }
  211.  
  212. if (item2->GetVnum() >= 53001 && item2->GetVnum() <= 53099 )
  213. {
  214. {
  215. item2->SetForceAttribute(0, 1, 15000);
  216. item2->SetForceAttribute(1, 17, 35);
  217. item2->SetForceAttribute(2, 92, 15);
  218. item2->SetForceAttribute(3, 73, 5);
  219. item2->SetForceAttribute(4, 74, 5);
  220.  
  221. item->SetCount(item->GetCount() - 1);
  222. }
  223. }
  224.  
  225. }
  226. break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement