Advertisement
Guest User

Untitled

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