Project Zomboid

Project Zomboid

Lockpicking! Just. Lockpicking. [41.56]
Tgraves710x 23 Jul, 2023 @ 8:41pm
lockpicking profession recipe error fix
the code for the burglar was giving a error not understanding the code because one part was in the incorrect area so i decided to fix it, the patch is as follows
Events.OnGameBoot.Add(initProfessions); require('NPCs/MainCreationMethods'); local BURGLAR_ID = 'burglar'; local function initProfessions() local burglar = ProfessionFactory.getProfession(BURGLAR_ID); burglar:getFreeRecipes():add("Lockpicking"); burglar:getFreeRecipes():add("Create Hairpin"); burglar:getFreeRecipes():add("Break Door Locks"); burglar:getFreeRecipes():add("Break Window Locks"); -- -- burglar:addFreeTrait("nimblefingers"); -- burglar:setDescription(burglar:getDescription() .. " <LINE> " .. getText("UI_trait_nimblefingers")); end
< >
Showing 1-1 of 1 comments
Tgraves710x 23 Jul, 2023 @ 8:43pm 
"Events.OnGameBoot.Add(initProfessions);" was at the very bottom and needed to be at the very top of the code which caused and error to occur not understanding the getfreerecipe
< >
Showing 1-1 of 1 comments
Per page: 1530 50