Jump to content
  • 0

Gathering player information + script error


Crystal_Mods100x

Question

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? 😃

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  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

Link to comment
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 =))

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.