Advertisement
Guest User

Untitled

a guest
Feb 24th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. [ENABLE]
  2. alloc(newmem,2048)
  3. label(returnhere)
  4. label(originalcode)
  5. label(ItemSummonRaid)
  6. label(leadercheck)
  7. label(checkcountry)
  8. label(failed)
  9. label(exit)
  10.  
  11. newmem:
  12. call ps_game.exe+4ECF0
  13. //esi=target player,edi=source player
  14. //check map
  15. originalcode:
  16. pushad
  17. movzx eax,word ptr [esi+0x160]
  18. movzx ebx,word ptr [edi+0x160]
  19. cmp eax,(int)45
  20. je checkcountry
  21. cmp ebx,(int)45
  22. je checkcountry
  23.  
  24. jmp ItemSummonRaid
  25.  
  26. //checkcountry and check if same map
  27. checkcountry:
  28. cmp eax,ebx //if they are in the same map which we speicifys
  29. je ItemSummonRaid
  30.  
  31. movzx eax,byte ptr [esi+0x12d]
  32. movzx ebx,byte ptr [edi+0x12d]
  33. cmp eax,ebx
  34. jne failed
  35.  
  36. leadercheck:
  37. push eax //party table
  38. push ecx //leader id
  39. mov eax,[edi+17f4]
  40. mov ecx,[eax+0c] //leader id
  41. imul ecx,ecx,8
  42. add ecx,18
  43. mov ecx,[eax+ecx] //leader address
  44. cmp edi,ecx //compare address check is leader
  45. pop ecx
  46. pop eax
  47. je 0049e4ea //if yes
  48. jmp exit
  49.  
  50. ItemSummonRaid:
  51.  
  52. mov eax,dword ptr ds:[edi+0x58FC]
  53. mov ecx,dword ptr ds:[edi+0x5900]
  54. lea eax,dword ptr ds:[eax+eax*2] // eax=bag,ecx=slot
  55. lea edx,dword ptr ds:[ecx+eax*8]
  56. imul edx,edx,4
  57. mov eax,dword ptr ds:[edi+edx+0x1C0]
  58. mov eax,dword ptr ds:[eax+30]
  59. cmp [eax],(int)100045 //orginal item id
  60. popad
  61. jne leadercheck //success addr
  62.  
  63. /*
  64. mov eax,dword ptr ds:[eax+0x30]
  65. cmp byte ptr ds:[eax+0x46],0x1F
  66. */
  67.  
  68.  
  69.  
  70. exit:
  71. jmp returnhere
  72.  
  73. failed:
  74. popad
  75. jmp 0049E517
  76.  
  77.  
  78.  
  79. "ps_game.exe"+9E4E1:
  80.  
  81. jmp newmem
  82.  
  83. returnhere:
  84.  
  85. [DISABLE]
  86.  
  87. //code from here till the end of the code will be used to disable the cheat
  88.  
  89. dealloc(newmem)
  90.  
  91. "ps_game.exe"+9E4E1:
  92.  
  93. call ps_game.exe+4ECF0
  94.  
  95. //Alt: db E8 0A 08 FB FF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement