Purpleaki Posted July 9, 2014 Share Posted July 9, 2014 I'm looking in particular any mods that will give me god mode, I have necroforge for spawning in items but it doesn't include god mode. Zspawn doesn't work for me and neither does dida55's multihack. Or if anyone could direct me to a file in the game that I can edit to do it myself that would be awesome. Enderkill 1 Link to comment Share on other sites More sharing options...
Zombicik Posted July 18, 2014 Share Posted July 18, 2014 Yep they both used to but now they dont. Sadly this build has nothing regarding cheats... Link to comment Share on other sites More sharing options...
RobertJohnson Posted July 18, 2014 Share Posted July 18, 2014 Create a file in media/lua/client (like debug.lua, we don't care) Put this in it :ontick = function() getPlayer():getBodyDamage():RestoreToFullHealth();endEvents.OnTick.Add(ontick);That'll make you invicible (it won't work in multiplayer tho ) ToastedFishSandwich, LeoIvanov, popapo and 1 other 4 Link to comment Share on other sites More sharing options...
956Texas Posted July 19, 2014 Share Posted July 19, 2014 Create a file in media/lua/client (like debug.lua, we don't care) Put this in it :ontick = function() getPlayer():getBodyDamage():RestoreToFullHealth();endEvents.OnTick.Add(ontick);That'll make you invicible (it won't work in multiplayer tho ) do you create it with notepad or how do you do that? Link to comment Share on other sites More sharing options...
ToastedFishSandwich Posted July 19, 2014 Share Posted July 19, 2014 What's up with 'ontick = function()'? Isn't it usually 'function ontick()'? Link to comment Share on other sites More sharing options...
Purpleaki Posted July 20, 2014 Author Share Posted July 20, 2014 Create a file in media/lua/client (like debug.lua, we don't care) Put this in it :ontick = function() getPlayer():getBodyDamage():RestoreToFullHealth();endEvents.OnTick.Add(ontick);That'll make you invicible (it won't work in multiplayer tho )Thanks man. Link to comment Share on other sites More sharing options...
popapo Posted July 21, 2014 Share Posted July 21, 2014 How this On-Off in game? Please reple me Link to comment Share on other sites More sharing options...
EnigmaGrey Posted July 21, 2014 Share Posted July 21, 2014 To turn it off: delete the code and restart the game.To turn it on: add the code and restart the game. Link to comment Share on other sites More sharing options...
popapo Posted July 21, 2014 Share Posted July 21, 2014 Is there any way to press a key for On-Off ? Likey Other cheat... Link to comment Share on other sites More sharing options...
TheOfficialStinger Posted July 21, 2014 Share Posted July 21, 2014 What's up with 'ontick = function()'? Isn't it usually 'function ontick()'? I believe the difference is that you're setting the member value ontick to a function rather than making a new function called ontick. It's more like C structs that can contain an infinite number of any type <3 <3 For example:a = {}a.a = function()print("a.a was called!");endfunction a.b()print("a.b was called!");endThis creates a "class" called "a""a.a" is a function that prints "a.a was called!" to stdout."a.b" is a function that prints "a.b was called!" to stdout.The difference is, "a.a" is actually PART OF "a". It's included in the "class" itself, while "a.b" is just a function that starts with "a."Functionally, you'll almost never notice a difference, but it can cause some horrible errors later if something goes wrong. Plus it's just better code style, as well as future proof. You may ask why this applies to a script outside of a group, once again the answer is that it's better code style. If you do that with ALL functions, it's more human readable and makes it carry over smoothly into member functions. ToastedFishSandwich 1 Link to comment Share on other sites More sharing options...
oddohut Posted July 24, 2014 Share Posted July 24, 2014 I'm looking in particular any mods that will give me god mode, I have necroforge for spawning in items but it doesn't include god mode. Zspawn doesn't work for me and neither does dida55's multihack. Or if anyone could direct me to a file in the game that I can edit to do it myself that would be awesome. u say z spawn doesn't work for you? i was able to get it to work by just using some of the info from mindmodCreate a folder in your C:/user/(your usr name)/zomboid/mods/ name it zspawn in the zspawn folder make a txt file, edit it and add the fowling lines: id=ZSpawnname=ZSpawnV0.1 save as... (all files) mod.info also in the zspawn folder create another folder, name it media. in the media folder make another, name it lua. in there a folder named clientthen in the client folder create another folder named zspawn and place the mod file (ISUI), also in this zspawn folder make another txt and edit it add the fowling: -- Cleaning MOD-- created by Spyder638 -- General mod infolocal MOD_ID = "ZSpawn";local MOD_NAME = "ZSpawn";local MOD_VERSION = "0.1";local MOD_AUTHOR = "Spyder638";local MOD_DESCRIPTION = "Spawns a variety of weapons and items";local MOD_URL = "http://theindiestone.com/forums/index.php/topic/1522-zspawn-outdated/" -- Prints out the mod info on startup.local function MindModinfo()print("Mod Loaded: " .. MOD_NAME .. " by " .. MOD_AUTHOR .. " (v" .. MOD_VERSION .. ")");end -- Game eventsEvents.OnGameBoot.Add(MindModinfo); save ass... (all files) zspawn.lua Ok now you are all done mod fixed Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now