Advertisement
Guest User

Untitled

a guest
Feb 28th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. if (SearchItem(0,38) == -1)
  2. {
  3.  
  4.  
  5. ZeroMemory(buf,0x18);
  6. SetByte(0x18,0);
  7. SetShort(IdArea(0),4);
  8. SetShort(0x300F,6);
  9. SetShort(0x965,12);
  10. SetShort(0x1F,16);
  11. SendPacket(buf,0x18);
  12.  
  13.  
  14. ZeroMemory(buf,0x24);
  15.  
  16. SetByte(0x24,0);
  17. SetShort(0x3040,6);
  18. SetShort(0,12);
  19.  
  20. SetByte(0xFF,26);
  21. SetByte(0xFF,27);
  22. SetByte(0xFF,28);
  23. SetByte(0xFF,29);
  24. SetByte(0xFF,30);
  25. SetByte(0xFF,31);
  26. SetByte(0xFF,32);
  27. SetByte(0xFF,33);
  28. SetByte(0xFF,34);
  29. SetByte(0xFF,35);
  30.  
  31. for (int i = 0;i<=39;i++)
  32. {
  33.  
  34. if (DurInv(i) > 0)
  35. {
  36. if (coutd > 10);
  37. {
  38. coutd = 0;
  39. SendPacket(buf,0x24);
  40.  
  41. ZeroMemory(buf,0x10);
  42. SetByte(0x10,0);
  43. SetShort(0x3048,6);
  44. SetShort(0xF,12);
  45. SendPacket(buf,0x10);
  46.  
  47. ZeroMemory(buf,0x24);
  48.  
  49. SetByte(0x24,0);
  50. SetShort(0x3040,6);
  51. SetShort(0,12);
  52.  
  53. SetByte(0xFF,26);
  54. SetByte(0xFF,27);
  55. SetByte(0xFF,28);
  56. SetByte(0xFF,29);
  57. SetByte(0xFF,30);
  58. SetByte(0xFF,31);
  59. SetByte(0xFF,32);
  60. SetByte(0xFF,33);
  61. SetByte(0xFF,34);
  62. SetByte(0xFF,35);
  63. }
  64.  
  65. if (coutd < 10)
  66. {
  67. SetByte(i,16+coutd);
  68. SetByte(1,26+coutd);
  69. coutd++;
  70. }
  71. }
  72.  
  73. SendPacket(buf,0x24);
  74.  
  75. ZeroMemory(buf,0x24);
  76.  
  77. SetByte(0x10,0);
  78. //SetShort(0x340,6);
  79. SetShort(0x3048,6);
  80. SetShort(0xF,12);
  81. SendPacket(buf,0x24);
  82. }
  83.  
  84. VenderAll();
  85. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement