Advertisement
igromanru

Teleport Specific Mobs

May 8th, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. [ENABLE]
  2.  
  3. aobscanmodule(InjectNPCCoords,DarkSoulsIII.exe,66 0F 7F B3 ? ? ? ? 0F 57 C0 C6 83) // should be unique
  4. alloc(newmem,$1000,InjectNPCCoords)
  5.  
  6. label(InjectedCode)
  7. label(OriginalCode)
  8. label(return)
  9.  
  10. newmem:
  11.  
  12. //rbx is the base of the NPC's coordinate structure
  13. //rbx+80 takes us to the npc's movement coordinates
  14. //rbx+d0 takes us to the npc's home coordinates
  15.  
  16. TeleportToAnorLondoGarden:
  17. mov dword ptr[rbx+80],2409FD43 //43FD0924
  18. mov dword ptr[rbx+150],2409FD43
  19.  
  20. mov dword ptr[rbx+84],96595DC3 //C35D5996
  21. mov dword ptr[rbx+154],96595DC3
  22.  
  23. mov dword ptr[rbx+88],539C94C4 //C4949C53
  24. mov dword ptr[rbx+158],539C94C4
  25. jmp return
  26.  
  27. InjectedCode:
  28.  
  29. //Hex in comments is Little Endian, as from mem view
  30. //Got to swap the bytes around to get Big Endian for DS3
  31.  
  32. //Compare the spawn coordinates
  33.  
  34. cmp dword ptr[rbx+150],084C0D44 //440D4C08
  35. jne EndOfSulyvahnsBeastAnorLondo01Check
  36.  
  37. cmp dword ptr[rbx+154],00C077C3 //C377C000
  38. jne EndOfSulyvahnsBeastAnorLondo01Check
  39.  
  40. cmp dword ptr[rbx+158],730893C4 //C4930873
  41. jne EndOfSulyvahnsBeastAnorLondo01Check
  42. jmp TeleportToAnorLondoGarden
  43.  
  44. EndOfSulyvahnsBeastAnorLondo01Check:
  45.  
  46. OriginalCode:
  47. movdqa [rbx+00000080],xmm6
  48. jmp return
  49.  
  50.  
  51.  
  52.  
  53. InjectNPCCoords:
  54. jmp InjectedCode
  55. nop
  56. nop
  57. nop
  58. return:
  59. registersymbol(InjectNPCCoords)
  60.  
  61. [DISABLE]
  62.  
  63. InjectNPCCoords:
  64. db 66 0F 7F B3 80 00 00 00
  65.  
  66. unregistersymbol(InjectNPCCoords)
  67. dealloc(newmem)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement