[MOD] Additional inventory items on character creation

Place for sharing your game modifications for Life is Feudal: Your Own

Catherine
 
Posts: 31
Joined: 01 Mar 2016, 10:00

Re: [MOD] Additional inventory items on character creation

Post by Catherine » 15 Sep 2016, 08:28

<?xml version="1.0" encoding="utf-8"?>
<xml>
<items>
<item id="316" amount="1" vik="no" mon="no"/>
<item id="1063" amount="1" eur="no" mon="no"/>
<item id="951" amount="1" vik="no" eur="no"/>
<item id="297" amount="1" vik="no" mon="no"/>
<item id="1137" amount="1" eur="no" mon="no"/>
<item id="1138" amount="1" vik="no" eur="no"/>
<item id="984" amount="2"/>
</items>
</xml>

How do i make this work for all characterS? cause it works only on 1

User avatar
WolfDart
Zealous Believer
 
Posts: 15
Joined: 26 Dec 2016, 01:26

Re: [MOD] Additional inventory items on character creation

Post by WolfDart » 29 Jan 2017, 23:50

Catherine wrote:<?xml version="1.0" encoding="utf-8"?>
<xml>
<items>
<item id="316" amount="1" vik="no" mon="no"/>
<item id="1063" amount="1" eur="no" mon="no"/>
<item id="951" amount="1" vik="no" eur="no"/>
<item id="297" amount="1" vik="no" mon="no"/>
<item id="1137" amount="1" eur="no" mon="no"/>
<item id="1138" amount="1" vik="no" eur="no"/>
<item id="984" amount="2"/>
</items>
</xml>

How do i make this work for all characterS? cause it works only on 1


I would also like to know how this works, There is no information online regarding this question.. I would result to scripts & i'm sure it's easy but i'm a complete noob when it comes to scripting. I can't afford to mess my server up at this point :no:


Tobias0412
 
Posts: 32
Joined: 06 Dec 2016, 21:15

Re: [MOD] Additional inventory items on character creation

Post by Tobias0412 » 31 Jan 2017, 10:18

Catherine wrote:
How do i make this work for all characterS? cause it works only on 1


What do u mean with "works for all" ? This script is running every time u create a new character on your server. Every character will get the items you defined there....

But anyway...here are some tipps:

The following code we use on our server. Every new char, gets all tools when he spawns.
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<xml>
   <items>
      <item id="297" amount="1" vik="no" mon="no"/>
      <item id="1137" amount="1" eur="no" mon="no"/>
      <item id="1138" amount="1" vik="no" eur="no"/>
      <item id="42" amount="1"/>
      <item id="33" amount="1"/>
      <item id="40" amount="1"/>
      <item id="51" amount="1"/>
      <item id="48" amount="1"/>
      <item id="290" amount="1"/>
      <item id="46" amount="1"/>
      <item id="44" amount="1"/>
      <item id="1013" amount="5"/>
   </items>
</xml>


If u want other items or more items just change, add oder delete some lines. If u want to give more then 1 from a single item, just change "amount". If the item is not stackable, just add another line with the same item id.

Without definiers all items will have Q50 and D50.

VIK, MON & EUR means Viking, Mongol and European.
So in my code this means:
Item 297 is only for European(EUR)
Item 1137 is only for Viking(VIK)
Item 1138 is only for Mongol(MON)

if u have more questions about this, just ask. :-)


Estharos
 
Posts: 11
Joined: 29 Jan 2017, 16:18

Re: [MOD] Additional inventory items on character creation

Post by Estharos » 31 Jan 2017, 19:27

Where you put that coding?

Cheers,


Tobias0412
 
Posts: 32
Joined: 06 Dec 2016, 21:15

Re: [MOD] Additional inventory items on character creation

Post by Tobias0412 » 01 Feb 2017, 00:33

Estharos wrote:Where you put that coding?

Cheers,


Look in your server folder, there is a folder named "data" and there u will find a file named "cm_createchar.xml"
Just edit the file as u like and replace with the old one.


Helena
 
Posts: 12
Joined: 23 Jan 2016, 17:46

Re: [MOD] Additional inventory items on character creation

Post by Helena » 02 Feb 2017, 10:57

What is the definer for the quality?


Bustylicious
 
Posts: 1
Joined: 12 Jul 2017, 15:33

Re: [MOD] Additional inventory items on character creation

Post by Bustylicious » 12 Jul 2017, 15:37

Is it possible to bind it on the SteamID so that players can't use it twice by creating another char?


Marcstavast
 
Posts: 10
Joined: 03 Mar 2019, 15:53

Re: [MOD] Additional inventory items on character creation

Post by Marcstavast » 15 Mar 2019, 19:30

how do you add the definer quality and durability in the script?
lets say I want a 80q mallet with a durability of 120


Polysta2r
 
Posts: 1
Joined: 26 Feb 2018, 00:11

Re: [MOD] Additional inventory items on character creation

Post by Polysta2r » 19 Mar 2019, 00:01

Hello, your mod is not working on Life is feudal 2.0, can you update it as soon as possible? if you updated it, i will donate $20 to you. thanks :D

Return to Game mods