Jump to content

Open Community  ·  99 members

7 Days To Die

How to add a new item to the loot list?


whitemage4ever

Recommended Posts

Solved the issue! good to go now.

 

So i'm trying to add a quest book to the loot table that gives skill points, but I have no idea how to do so. This is what i got so far and it still doesn't appear in loot. The item is in the creative menu and it does indeed work as intended, just cant find it in normal play. I would like to find it rarely in bookshelfs and other book sources.

 

Here is the loot.xml

 

<configs>
<!-- add Book O' knowledge to loot -->
<append xpath="lootcontainers/lootgroup[@name=groupQuestChallenge]">
<item name="Book Of Knowledge"/>
</append>
</configs>
Here is the item.xml if you need it to help with the loot issue
<configs>
<append xpath="/items">
<item name="Book Of Knowledge">
<property name="Extends" value="challengeQuestMaster"/>
<property name="CreativeMode" value="Player"/>
<property name="CustomIcon" value="questMaster"/>
<property name="HoldType" value="21"/>
<property name="Meshfile" value="Items/Misc/bookPrefab"/>
<property name="DropMeshfile" value="Items/Misc/sack_droppedPrefab"/>
<property name="Material" value="Mpaper"/>
<property name="Weight" value="5"/>
<property name="FuelValue" value="5"/>
<property name="Stacknumber" value="10"/>
<property name="DescriptionKey" value="qc_BookOfKnowledge"/>
<property name="SellableToTrader" value="true"/>
<property name="EconomicValue" value="1000"/>
<property name="Group" value="Books"/>
<property class="Action0">
<property name="QuestGiven" value="Read a book you filthy animal!"/>
</property>
</item>
</append>
</configs>
Don't mind the formatting, it is correct in the xml files but copy/pasta can screw with it abit. Any help is greatly appreciated!
Edit; Update one. It seems the localization file is broke now? I did have it working at one points. haha here is the xml text
Key,File,Type,UsedInMainMenu,NoTranslate,english,Context / Alternate Text,german,latam,french,italian,japanese,koreana,polish,brazilian,russian,turkish,schinese,tchinese,spanish
qc_BookOfKnowledge,items,Quest - Challenge,,,This old Book is full of smarts. Hopefully you know how to read.,,,,,
Edit;; Update two. It seems this item does indeed spawn in game but only in supply drops? my friend got one. Still dont know how to add to normal bookshelves as a rare drop.
Link to comment
Share on other sites

  • 4 weeks later...

To get it to show up in bookcases and other places you find books, try adding this to your loot.xml:

<append xpath="/lootcontainers/lootgroup[@name='rareBooks']">
    <item name="Book Of Knowledge" prob=".1"/>
</append>

With the prob=".1" being whatever you want the probability to be (.1 being 10%)

 

EDIT: That'll teach me to pay attention - just noticed the "solved" bit at the top of the post and the post date. Oh well, it's here for anyone else!

Edited by FreakUK
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...