Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


assembler script

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Starter_But
Advanced Cheater
Reputation: 0

Joined: 26 Oct 2021
Posts: 53

PostPosted: Wed Jul 05, 2023 9:43 am    Post subject: assembler script Reply with quote

Hello everyone again, I have come again with my problems, hoping to understand the solution.
I have a script written in assembler, when it is activated, three subfunctions pop up, the problem is that they are activated all at once when Damage is enabled (this is shown in the picture), and I cannot separate them (I do not know how to do this),I tried to remove unnecessary bytes,remove everythingwhich is unrelated to meleeDamage (I only need it to be enabled), but nothing comes out

here is the code itself that I tried to change
Code:

define(address, Test.Player::ResetEffects+18B)
define(bytes, D9 E8 D9 9E 64 04 00 00 D9 E8 D9 9E 6C 04 00 00 D9 E8 D9 9E 70 04 00 00 D9 E8 D9 9E 68 04 00 00 D9 E8 D9 9E 84 04 00 00)

[ENABLE]

assert(address, bytes)

alloc(newmem, 1)

label(code)
label(return)
label(meleeDamage)
label(rangedDamage)
label(rangedMultDamage)
label(magicDamage)
label(minionDamage)

registersymbol(meleeDamage)

newmem:
code:
  fld dword ptr [meleeDamage]
  fstp dword ptr [esi+464]
  fld dword ptr [rangedDamage]
  fstp dword ptr [esi+46C]
  fld dword ptr [rangedMultDamage]
  fstp dword ptr [esi+470]
  fld dword ptr [magicDamage]
  fstp dword ptr [esi+468]
  fld dword ptr [minionDamage]
  fstp dword ptr [esi+484]
  jmp return

  meleeDamage:
    dd (float)100
  rangedDamage:
    dd (float)100
  rangedMultDamage:
    dd (float)100
  magicDamage:
    dd (float)100
  minionDamage:
    dd (float)100

address:
  jmp long newmem
  nop 23
return:

[DISABLE]

address:
  db bytes
  //fld1
  //fstp dword ptr [esi+460]
  //fld1
  //fstp dword ptr [esi+468]
  //fld1
  //fstp dword ptr [esi+46C]
  //fld1
  //fstp dword ptr [esi+464]
  //fld1
  //fstp dword ptr [esi+480]

unregistersymbol(*)
dealloc(*)



Безымянный.png
 Description:
 Filesize:  5.62 KB
 Viewed:  1352 Time(s)

Безымянный.png


Back to top
View user's profile Send private message
Starter_But
Advanced Cheater
Reputation: 0

Joined: 26 Oct 2021
Posts: 53

PostPosted: Thu Jul 06, 2023 6:18 am    Post subject: Reply with quote

I have already solved my problem
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites