高级玩家

- 贡献度
- 0
- 金元
- 2601
- 积分
- 260
- 精华
- 0
- 注册时间
- 2012-1-2
|
【NewID = "Items.MoneyShardLegendary"; CS = Game.GetScriptableSystemsContainer():Get('CraftingSystem'); CB = CS:GetPlayerCraftBook(); if TweakDB:GetRecord(NewID) then recName = Game.GetLocalizedTextByKey(TDB.GetLocKey(NewID..".displayName")); if TDB.GetItemRecipeRecord(NewID) then print(" \n\tAttempt to add a recipe : "..recName.." \n\tYou need to set an ITEM ID, not a RECIPE ID.\n ") else if CB:KnowsRecipe(NewID) then print(' \n\t Recipe already present, no need to add : "'..NewID..'" - '..recName..' \n ') else CB:AddRecipe(NewID) print(' \n\t Recipe ADDED : "'..NewID..'" - '..recName..' \n ') end end else print(' \n\t "'..NewID..'" -> NOT VALID, you need a valid ID. \n ') end】
|
|