FORUM ARCHIVED

Will my mod work ?

Discussion in 'Modding' started by Cpdark, Dec 28, 2011.

  1. Cpdark

    Cpdark Member

    Hey there :) im working on a mod and i dont know if my code work.
    If someone can see if the code is okey, it will be nice

    (My ItemsDB.XML is like this)
    .......................................................................................................................................................
    <!-- Warrior shields -->
    <item name="Obsidian shield" iconFile="items/Obsidian_shield.png">
    <price amount="4500"/>
    <armour level="8" type="shield"/>
    <secondarybuff id="7" amount="10"/> <!-- block -->
    <secondarybuff id="10" amount="4"/> <!-- armour absorption -->
    <primarybuff id="2" amount="-2"/> <!-- nim -->
    <secondarybuff id="3" amount="-3"/> <!-- magic power -->
    <resistbuff piercing="5"/>
    <resistbuff conflagratory="5"/>
    <description text=""/>
    </item>

    <!-- Regular Swords -->
    <item name="Blocky Wooden Sword" iconFile="items/Wood_sword.png" level="1" type="0">
    <price amount="60"/>
    <weapon crushing="3"/>
    <description text=""/>
    </item>
    <item name="Blocky Stone Sword" iconFile="items/Stone_sword.png" level="3" type="0">
    <price amount="125"/>
    <weapon crushing="5"/>
    <description text=" "/>
    </item>
    <item name="Blocky Iron Sword" iconFile="items/cp_Iron_sword.png" level="6" type="0">
    <price amount="350"/>
    <weapon slashing="6" piercing="3"/>
    <description text=""/>
    </item>
    <item name="Diamond sword" iconFile="items/Diamond_sword.png" level="8" type="0">
    <price amount="2500"/>
    <weapon slashing="15" piercing="8"/>
    <description text=""/>
    </item>
    <item name="Blocky Gold sword" iconFile="items/Gold_sword.png" level="5" type="0">
    <price amount="1000"/>
    <weapon slashing="1" piercing="1"/>
    <description text=""/>
    </item>
    ..................................................................................................................................................................

    thank you ;)
     
  2. ChristmasAsen

    ChristmasAsen Member

    Omitting the obvious lack of the DB tag (<itemDB> & </itemDB>) everything look to be an order..
     
  3. Cpdark

    Cpdark Member

    Nice Thank you :D
     
  4. FaxCelestis

    FaxCelestis Will Mod for Digglebucks

    Actually, you'll need to put a mod/ in front of your image paths.
     
  5. Cpdark

    Cpdark Member

    like items/mod/Gold_sword.png ?
     
  6. FaxCelestis

    FaxCelestis Will Mod for Digglebucks

    Like mod/items/Gold_sword.png if you're using a custom sprite.
     
  7. Cpdark

    Cpdark Member

    I hope I come closer to make it work
    Code:
    <itemDB>
        <!-- Warrior shields -->
    <item name="Simple Obsidian shield" iconFile="mod/items/Obsidian_shield.png">
        <price amount="4500"/>
        <armour level="8" type="shield"/>
        <secondarybuff id="7" amount="10"/> <!-- block -->
        <secondarybuff id="10" amount="4"/> <!-- armour absorption -->
        <primarybuff id="2" amount="-2"/> <!-- nim -->
        <secondarybuff id="3" amount="-3"/> <!-- magic power -->
        <resistbuff piercing="5"/>
            <resistbuff conflagratory="5"/>
        <description text="Hard And Fierce Like Russian Vodka! It's Even Fire Proff!"/>
        </item> 
     
    <!-- Regular Swords -->
    <item name="Blocky Wooden Sword" iconFile="mod/items/Wood_sword.png" level="1" type="0">
        <price amount="60"/>
        <weapon crushing="3"/>
        <description text="A Very Large Wooden Pixel Sword, Can't Cut But It Will Make a Fine Blunt Weapon."/>
        </item>
     
    <item name="Blocky Stone Sword" iconFile="mod/items/Stone_sword.png" level="3" type="0">
        <price amount="125"/>
        <weapon crushing="5"/>
        <description text="Who Makes Stone Swords Anymore ?! Russians Or CaveMen? "/>
        </item>
     
    <item name="Blocky Iron Sword" iconFile="mod/items/cp_Iron_sword.png" level="6" type="0">
        <price amount="350"/>
            <weapon slashing="6" piercing="3"/>
        <description text="A Iron Sword, hmm, Abit Blocky But What The Hell, It Can Still Hurt Someone!"/>
        </item>
     
    <item name="Diamond sword" iconFile="mod/items/Diamond_sword.png" level="8" type="0">
        <price amount="2500"/>
            <weapon slashing="15" piercing="8"/>
        <description text="Someone Else's Diamond Sword! F*** It, Its Mine Now! (I Hope You Feel Bad About Yourself Now) "/>
        </item>
     
    <item name="Blocky Gold sword" iconFile="mod/items/Gold_sword.png" level="5" type="0">
        <price amount="1000"/>
            <weapon slashing="1" piercing="1"/>
        <description text="A Golden Sword, Whoop! Nice Bling Man ! What ?! So Soft That It Can't Even Cut A F****** Flower In Half !"/>
        </item>
    </itemDB>
     
  8. Cpdark

    Cpdark Member

    Nope, mod/item/Gold_sword.png Made it cash the game :eek:
     
  9. ChristmasAsen

    ChristmasAsen Member

    Do you actually have items folder for your mod?
     
  10. Cpdark

    Cpdark Member

    yep, and i don't see the items igame... Or im just bad to find them :)
     
  11. ChristmasAsen

    ChristmasAsen Member

    Make them loadouts for a skill to ensure they are working correctly
     
  12. Cpdark

    Cpdark Member

    [​IMG]
    HOLY S*** I Got one.... so it works Thank you two;)
     
    FaxCelestis and ChristmasAsen like this.