Project Zomboid

Project Zomboid

Forzar cerraduras. Solamente. Forzar cerraduras.
Tgraves710x 23 JUL 2023 a las 20:41
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
< >
Mostrando 1-1 de 1 comentarios
Tgraves710x 23 JUL 2023 a las 20:43 
"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
< >
Mostrando 1-1 de 1 comentarios
Por página: 1530 50