0% found this document useful (0 votes)
102 views1 page

Main Lua

This script for Wildcraft: Animal Sim modifies the game to grant players 9999999 experience levels and purple elixir when killing a rabbit. It continuously searches and edits memory addresses for experience and elixir values while running. A button is provided to stop the script at any time.

Uploaded by

rafa1v4uwu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
102 views1 page

Main Lua

This script for Wildcraft: Animal Sim modifies the game to grant players 9999999 experience levels and purple elixir when killing a rabbit. It continuously searches and edits memory addresses for experience and elixir values while running. A button is provided to stop the script at any time.

Uploaded by

rafa1v4uwu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

-- Script for Wildcraft: Animal Sim (Modified)

-- Grants 9999999 experience levels and purple elixir when killing a rabbit in the
forest

local isRunning = true

-- Function to stop the script


function stopScript()
isRunning = false
gg.toast("Script stopped. Happy hunting!")
end

-- Main function
function main()
while isRunning do
-- Find memory addresses for experience and elixir
-- Use Game Guardian's fuzzy search function to locate these addresses.

-- Modify the values


gg.searchNumber("current_experience_value", gg.TYPE_DWORD)
gg.getResults(1)
gg.editAll(9999999, gg.TYPE_DWORD)

gg.searchNumber("current_elixir_value", gg.TYPE_DWORD)
gg.getResults(1)
gg.editAll(9999999, gg.TYPE_DWORD)

-- Wait for some time before reapplying the changes


gg.sleep(1000) -- You can adjust the time according to your preference
end
end

-- Add a button on the screen to stop the script


gg.alert("Press OK to stop the script", "Stop", stopScript)

-- Run the main function


main()

You might also like