Project Zomboid

Project Zomboid

Låsdirking! Kun. Låsdirking.
Tgraves710x 23. juli 2023 kl. 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
< >
Viser 11 av 1 kommentarer
Tgraves710x 23. juli 2023 kl. 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
< >
Viser 11 av 1 kommentarer
Per side: 1530 50