1. Arat
  2. if (ch != m_pkPC)
  3. {
  4. while (sumiktar < suprice && ch->GetShopOwner()->IsPC() == true)
  5. {
  6. //m_pkPC->AutoGiveItem(80007,1);
  7. m_pkPC->AutoGiveItem(27991,1,0,false);
  8. sumiktar++;
  9. }
  10. }
  11. if (ch != m_pkPC)
  12. {
  13. while (barmiktar < wonprice && ch->GetShopOwner()->IsPC() == true)
  14. {
  15. //m_pkPC->AutoGiveItem(50513,1);
  16. m_pkPC->AutoGiveItem(80007,1,0,false);
  17. barmiktar++;
  18. }
  19. }
  20. if (ch != m_pkPC)
  21. {
  22. while (yesilmiktar < yesilotprices && ch->GetShopOwner()->IsPC() == true)
  23. {
  24. //m_pkPC->AutoGiveItem(50513,1);
  25. m_pkPC->AutoGiveItem(70253,1,0,false);
  26. yesilmiktar++;
  27. }
  28. }
  29. if (ch != m_pkPC)
  30. {
  31. while (kirmizimiktar < kirmiziotprices && ch->GetShopOwner()->IsPC() == true)
  32. {
  33. //m_pkPC->AutoGiveItem(50513,1);
  34. m_pkPC->AutoGiveItem(70251,1,0,false);
  35. kirmizimiktar++;
  36. }
  37. }
  38. if (ch != m_pkPC)
  39. {
  40. while (mavimiktar < maviotprices && ch->GetShopOwner()->IsPC() == true)
  41. {
  42. //m_pkPC->AutoGiveItem(50513,1);
  43. m_pkPC->AutoGiveItem(70252,1,0,false);
  44. mavimiktar++;
  45. }
  46. }
  47. if (ch != m_pkPC)
  48. {
  49. while (mormiktar < morotprices && ch->GetShopOwner()->IsPC() == true)
  50. {
  51. //m_pkPC->AutoGiveItem(50513,1);
  52. m_pkPC->AutoGiveItem(70254,1,0,false);
  53. mormiktar++;
  54. }
  55. }
  56. if (ch != m_pkPC)
  57. {
  58. while (ruhtasmiktar < ruhtasiprices && ch->GetShopOwner()->IsPC() == true)
  59. {
  60. //m_pkPC->AutoGiveItem(50513,1);
  61. m_pkPC->AutoGiveItem(50513,1,0,false);
  62. ruhtasmiktar++;
  63. }
  64. Değiştir
  65. if (ch != m_pkPC)
  66. {
  67. if (sumiktar < suprice && ch->GetShopOwner()->IsPC() == true)
  68. {
  69. m_pkPC->AutoGiveItem(27991,suprice);
  70. sumiktar++;
  71. }
  72. }
  73. if (ch != m_pkPC)
  74. {
  75. if (barmiktar < wonprice && ch->GetShopOwner()->IsPC() == true)
  76. {
  77. m_pkPC->AutoGiveItem(80007,wonprice);
  78. barmiktar++;
  79. }
  80. }
  81. if (ch != m_pkPC)
  82. {
  83. if (yesilmiktar < yesilotprices && ch->GetShopOwner()->IsPC() == true)
  84. {
  85. m_pkPC->AutoGiveItem(70253,yesilotprices);
  86. yesilmiktar++;
  87. }
  88. }
  89. if (ch != m_pkPC)
  90. {
  91. if (kirmizimiktar < kirmiziotprices && ch->GetShopOwner()->IsPC() == true)
  92. {
  93. m_pkPC->AutoGiveItem(70251,kirmiziotprices);
  94. kirmizimiktar++;
  95. }
  96. }
  97. if (ch != m_pkPC)
  98. {
  99. if (mavimiktar < maviotprices && ch->GetShopOwner()->IsPC() == true)
  100. {
  101. m_pkPC->AutoGiveItem(70252,maviotprices);
  102. mavimiktar++;
  103. }
  104. }
  105. if (ch != m_pkPC)
  106. {
  107. if (mormiktar < morotprices && ch->GetShopOwner()->IsPC() == true)
  108. {
  109. m_pkPC->AutoGiveItem(70254,morotprices);
  110. mormiktar++;
  111. }
  112. }
  113. if (ch != m_pkPC)
  114. {
  115. if (ruhtasmiktar < ruhtasiprices && ch->GetShopOwner()->IsPC() == true)
  116. {
  117. m_pkPC->AutoGiveItem(50513,ruhtasiprices);
  118. ruhtasmiktar++;
  119. }