Jump to content
We are investigating issues where accounts became locked on login attempt #1. Lock feature disabled for now. ×

need help writing a complex function


 Share

Recommended Posts

So. I want to make a seekbar with 100 fragments. Now I'll tell you in more detail, so I need to add damage to the game, that is, for example, when shooting in the leg, the enemy takes 15 damage, I need to add the same value from the seekbar that the user has chosen to this value of 15. It sounds not difficult, but the problem is that this damage value does not work on any double word, but works in hexadecimal, it turns out that the script needs to translate the value of the favored person into hexadecimal and add it to the damage value. Another very important detail, the script works on the load list, that is, it is necessary to make sure that after the seekbar a load list is automatically created to increase the damage. The function, even in my understanding, is very complex, so I'm now turning to really smart scripters. This can be said to be a challenge for you)

Link to comment
Share on other sites

4 hours ago, zolotov123344 said:

So. I want to make a seekbar with 100 fragments. Now I'll tell you in more detail, so I need to add damage to the game, that is, for example, when shooting in the leg, the enemy takes 15 damage, I need to add the same value from the seekbar that the user has chosen to this value of 15. It sounds not difficult, but the problem is that this damage value does not work on any double word, but works in hexadecimal, it turns out that the script needs to translate the value of the favored person into hexadecimal and add it to the damage value. Another very important detail, the script works on the load list, that is, it is necessary to make sure that after the seekbar a load list is automatically created to increase the damage. The function, even in my understanding, is very complex, so I'm now turning to really smart scripters. This can be said to be a challenge for you)

Then what do ask?

Link to comment
Share on other sites

1 hour ago, zolotov123344 said:

ARM HEX

Try use index:

local damage = {15, 16, 17, 18}--table index, you can change what you want

local inDamage = gg.prompt({"Select damage:[0;4]"}, nil, {"number"})

if inDamage then

inDamage = damage[inDamage[1]]

--make your script

end

Edited by HEROGAMEOfficial
Link to comment
Share on other sites

1 hour ago, HEROGAMEOfficial said:

Try use index:

local damage = {15, 16, 17, 18}--table index, you can change what you want

local inDamage = gg.prompt({"Select damage:[0;4]"}, nil, {"number"})

if inDamage then

inDamage = damage[inDamage[1]]

--make your script

end

it doesn't suit me

Link to comment
Share on other sites

6 hours ago, HEROGAMEOfficial said:

ok you Just need convert to hex.

print (string.format("%X", 123456))

Arm hex dont work like that

ARM HEX is ARM OPCODE translated to hex notation

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Similar Content

    • By 101mod
      🙏Follow ME for Free hack Update 24/24 And Free🙏
      👉Link download ESP : Download Hack Free
      👉Telegram Channel: https://t.me/buigamod
      👉Antiban : https://buiga1220.com/download/pmt-hostfile-app-2-9-apk
      🙏I share free hacks, please help me visit website 
       
       
    • By 101mod
      View File MOD PUBG 1.6 WHITE BODY
       🙏Follow ME for Free hack Update 24/24 And Free🙏
      👉Link download ESP : Download Hack Free
      👉Telegram Channel: https://t.me/buigamod
      👉Antiban : https://buiga1220.com/download/pmt-hostfile-app-2-9-apk
      🙏I share free hacks, please help me visit website 
       
       
      Submitter 101mod Submitted 11/25/2020 Category PUBG  
    • By MarioRossi93i
      View File Real Racing 3 (9.8.2) Race Mode
      REAL RACING 3 RACE MODE
       
      Current version: 9.7.1.3.6
      RR3 working version: 9.7.1
       
      Description:
      With this script you can enable/disable following hacks:
      - Autodrive Mode
      - Freeze Mode
      - Ghost Mode
      - KickAss Mode (not helpful if you active ghost mode too)
      - Set formula-e battery to 100%
       
      Works with standard and rolling start
      FULLY COMPATIBLE WITH BOTH 32 AND 64 BIT DEVICES
       
      Instructions:
      Run this script after signal light has turned green.
       
      If script doesn t work use S version
       
      Video:
       
       
       
      Submitter MarioRossi93i Submitted 05/13/2020 Category LUA scripts  
    • By MarioRossi93i
      REAL RACING 3 RACE MODE
       
      Current version: 9.8.2.3.7
      RR3 working version: 9.8.2
       
      Description:
      With this script you can enable/disable following hacks:
      - Autodrive Mode
      - Freeze Mode
      - Ghost Mode
      - KickAss Mode (not helpful if you active ghost mode too)
      - Set formula-e battery to 100%
       
      Works with standard and rolling start
      FULLY COMPATIBLE WITH BOTH 32 AND 64 BIT DEVICES
       
      Instructions:
      Run this script after signal light has turned green.
       
      Video:
       
       
       
    • By Jrwi
      I make this video for the reason that sometimes, there are some games that I use frequently but it is a bit boring having to change the values every time I use it.
       
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.