Jump to content
Crystal_Mods100x

Gathering player information + script error

Recommended Posts

Hi everyone came here to ask 2 questions.

so i was starting to crack a game called loki craft: Grass block with a pink background

but the thing is - i do not know what to crack. 

everything is like hidden  the only thing i can do is search health

will one value (health) find other values like reach, player walk speed, damage, water boolean and more?

ik how to crack tool durability and also edit Xa ranges for possible wall phase = "Hide gg level 2 and 3 lets u edit that range"

 

my other questions is that,  i was making a pixel force script and got the offset = 4 which again. always in hex = 0x4 i got the number from searching health > goto the health address and +1 above is the value for extra hearts which im editing to 30 but i got a script error here you go like the increase hearts value is right above

Script: 

--main script
--Script tip: you can tell the hearts value without searching up!
--Script tip: the player has 5 hearts which equals to: 10.0
--Game: Pixel Force
function heal()
 gg.setRanges(gg.REGION_JAVA_HEAP)
  gg.alert('You must be at full health')  --what?? why would i be at full health when i need to heal? XDDD pls ignore this line of trash code
  gg.searchNumber("10.0", gg.TYPE_FLOAT)
  gg.alert('Hurt yourself -1 (pistol guy)')
  gg.sleep(10000)
  gg.refineNumber("9.0", gg.TYPE_FLOAT)
  gg.getResults(1)
  gg.editAll("10.0", gg.TYPE_FLOAT) 
  gg.toast('Script: Player Healed!') --i will recode all of this into an input
end
function inc()
gg.setVisible(false)
  gg.setRanges(gg.REGION_JAVA_HEAP)
  gg.alert('You must have full health')
  gg.searchNumber("10.0", gg.TYPE_FLOAT)
  gg.alert('Hurt yourself once (pistol enemy)')
  gg.refineNumber("9.0", gg.TYPE_FLOAT)
  z = gg.getResults(1)
  local x = {}
  x[1] = {}
  x[1].address = z[1].address + 0x4
  x.flags = gg.TYPE_FLOAT
  x[1].value = 30
  gg.setVisible(true)
  gg.toast('Player hearts increased!')
end
menu = gg.choice({'Heal','Increase Hearts','Exit',nil,"main menu")
  if menu==1 then
    heal()
    end
  if menu==2 then
   inc()
  end
  if menu==nil then end
  
  --i do not know whats going on the player has 5 hearts when starting game which equals to = 10.0 and when u get hit its 9.0 and so on

my error i got was:

Script error:

x[1].address = z[1].address + 0x4

attempt to index ? (a nil value) with key address (field 1)

i do not know what did i do wrong here. can someone help? 😃

 

Share this post


Link to post
Share on other sites

  x[1].address = z[1].address - 0x4
  x[1].flags = gg.TYPE_FLOAT

if anything sit above/before from the base address(your z[1].address) you must write = address - 0x4 

if below/after = address + 0x4

as left to 0 is negative(-) and right to 0 is positive(+).

-2, -1, 0, 1, 2

Edited by MonkeySAN

Share this post


Link to post
Share on other sites
2 hours ago, MonkeySAN said:

  x[1].address = z[1].address - 0x4
  x[1].flags = gg.TYPE_FLOAT

if anything sit above/before from the base address(your z[1].address) you must write = address - 0x4 

if below/after = address + 0x4

as left to 0 is negative(-) and right to 0 is positive(+).

-2, -1, 0, 1, 2

wow! thanks! so payback 2's values for weapons were below so that deserves a +

 

and pixel forces values were above so that gets a negitive 

Hmmm. that reminds me of me using the offset caculator and wondering why  minus numbers go up

and positive numbers go down

Thanks for that =))

Share this post


Link to post
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

  • Similar Content

    • By AKidWithMidgetFriend
      Does anyone know how to fix minecraft's load time in parallel space? It gets stuck in the loading screen before the main menu and never loads despite looking like it is. I own the app from the playstore and if I remove license verification with LP it loads parallel space but gives me a license error. Please help me if you know I'd love to use gg scripts with MC 
    • By ClumhaxGT
      Okay so
      I want someone to explain to me how to make a script that doesnt close and repop ups when i click the gameguardian icon
      Please i've been struggling to do this
    • By Jumoobs
      View File Minecraft Script
      Item Hack for Minecraft PE
      Submitter Jumoobs Submitted 05/27/2020 Category LUA scripts  
    • By Jumoobs
      Item Hack for Minecraft PE
    • By MORTY_TOP
      View File Minecraft PE Script
      Simple code for Minecraft PE with Double Jump (Fly Hack) and OpenSource Code
      Activate/Deactivate functions in Game only (Work on Servers and Simple Gameplay)
      Submitter MORTY_TOP Submitted 12/19/2019 Category LUA scripts  
×
×
  • Create New...