Results 1 to 9 of 9
  1. #1
    Illusion's Avatar
    Join Date
    Jan 2006
    Gender
    male
    Location
    California
    Posts
    27
    Reputation
    10
    Thanks
    2

    [FSOD] Error when using a command to spawn an item.

    When I try to use a command I installed to give myself an item I've placed in dat1.xml I get a strange "ART" error.

    This only happens with custom items.

    The item I made worked when it was in Addition.xml (Only moved it over, deleted it from addition.xml, and replaced "ext="true" with "type=0xc343")

    Code for the item and command are below

    (Note: Command doesn't belong to me, I adapted a command I found on MPGH to spawn the custom item.)

    Image of error: https://puu.sh/qeGKG/dbabc5cd05.png

    Command
    Code:
        internal class MaxPotCommand : Command
        {
            public MaxPotCommand() : base("8/8", 0)
            {
            }
            protected override bool Process(Player player, RealmTime time, string[] args)
            {
                for (int i = 0; i < player.Inventory.Length; i++)
                {
                    player.Inventory[4] = player.Manager.GameData.Items[0x3434]; //MaxPot
                    player.UpdateCount++;
                }
                player.SendInfo("Drink to Max your character 8/8");
                return true;
            }
        }
    Item:
    Code:
    <Object type="0x3434" id="8/8 Potion" >
        <Class>Equipment</Class>
        <Item/>
        <Texture>
          <File>lofiObj2</File>
          <Index>0x35</Index>
        </Texture>
        <SlotType>10</SlotType>
        <Soulbound/>
        <Description>A potion that will instantly 8/8 your character</Description>
        <Sound>use_potion</Sound>
        <Activate stat="20" amount="100">IncrementStat</Activate>
        <Activate stat="21" amount="100">IncrementStat</Activate>
        <Activate stat="22" amount="100">IncrementStat</Activate>
        <Activate stat="26" amount="100">IncrementStat</Activate>
        <Activate stat="27" amount="100">IncrementStat</Activate>
        <Activate stat="28" amount="100">IncrementStat</Activate>
        <Activate stat="0" amount="1000">IncrementStat</Activate>
        <Activate stat="3" amount="1000">IncrementStat</Activate>
        <Consumable/>
        <Potion/>
        <BagType>5</BagType>
        <feedPower>150</feedPower>
        <DisplayId>8/8 Potion</DisplayId>
      </Object>
    oOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoO oOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoO oOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoO oOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoO oOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoO oOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoO


  2. #2
    katiente's Avatar
    Join Date
    Aug 2015
    Gender
    male
    Posts
    153
    Reputation
    10
    Thanks
    8
    My Mood
    Bored
    If you just dumped straight into the dat, it's not gonna work. you need to edit the client dat 1. For tutorial on how to do it check out bear/cat he has a tutorial.

  3. The Following User Says Thank You to katiente For This Useful Post:

    Desire (07-26-2016)

  4. #3
    Spectre11's Avatar
    Join Date
    May 2016
    Gender
    male
    Posts
    40
    Reputation
    10
    Thanks
    203
    My Mood
    Blah
    Quote Originally Posted by katiente View Post
    If you just dumped straight into the dat, it's not gonna work. you need to edit the client dat 1. For tutorial on how to do it check out bear/cat he has a tutorial.
    This comment is not even closely related to his post...

  5. #4
    Orbit's Avatar
    Join Date
    Feb 2014
    Gender
    male
    Location
    In-Orbit
    Posts
    672
    Reputation
    55
    Thanks
    484
    My Mood
    Aggressive
    Quote Originally Posted by Spectre11 View Post
    This comment is not even closely related to his post...
    Yes it is? He helped him, compared to you. Go and shitpost in another section please.

    “If things go wrong, don’t go with them.”

  6. #5
    Desire's Avatar
    Join Date
    Sep 2013
    Gender
    male
    Location
    Insert Name Here
    Posts
    1,039
    Reputation
    58
    Thanks
    1,394
    My Mood
    Amused
    Quote Originally Posted by katiente View Post
    bear/cat he has a tutorial.
    Meow//10char

    - - - Updated - - -

    https://www.mpgh.net/forum/showthread.php?t=1114813
    im not really back nor will i ever get back into developing pservers
    though ill check once every month atleast


     

  7. #6
    MikeRaarupBirk's Avatar
    Join Date
    Mar 2016
    Gender
    male
    Posts
    1,583
    Reputation
    38
    Thanks
    3,775
    My Mood
    Stressed
    Quote Originally Posted by Cat View Post
    Meow//10char
    you will always be Ted..

  8. #7
    Desire's Avatar
    Join Date
    Sep 2013
    Gender
    male
    Location
    Insert Name Here
    Posts
    1,039
    Reputation
    58
    Thanks
    1,394
    My Mood
    Amused
    Quote Originally Posted by MikeRaarupBirk View Post
    you will always be Ted..
    You can call me
    im not really back nor will i ever get back into developing pservers
    though ill check once every month atleast


     

  9. #8
    Illusion's Avatar
    Join Date
    Jan 2006
    Gender
    male
    Location
    California
    Posts
    27
    Reputation
    10
    Thanks
    2
    Quote Originally Posted by katiente View Post
    If you just dumped straight into the dat, it's not gonna work. you need to edit the client dat 1. For tutorial on how to do it check out bear/cat he has a tutorial.
    Thanks it worked.
    oOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoO oOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoO oOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoO oOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoO oOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoO oOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoO


  10. #9
    Danny's Avatar
    Join Date
    Jun 2015
    Gender
    male
    Posts
    9,617
    Reputation
    2835
    Thanks
    3,002
    My Mood
    Aggressive
    /closed solved

    I am not a middleman nor do I buy/sell anything. If you are being contacted by someone off-site from MPGH then it's not me! Please report these to me via PM. Don't be stupid, think first.

Similar Threads

  1. [Solved] pls help!! i get client mfc error when using hacks on cfph!
    By luluhircerk in forum CrossFire PH Help
    Replies: 9
    Last Post: 07-04-2012, 12:34 AM
  2. How to avoid CF client error when using hack
    By Jo24mu in forum CrossFire Tutorials
    Replies: 6
    Last Post: 04-26-2012, 09:01 AM
  3. Error when using hack
    By rippantera in forum Piercing Blow Help
    Replies: 3
    Last Post: 10-13-2011, 06:35 AM
  4. Fatal Error when using VAC Chaos to Load Game
    By Dane68 in forum Call of Duty Modern Warfare 2 Help
    Replies: 6
    Last Post: 04-28-2010, 01:19 PM
  5. [HELP] Error when using injector + hack
    By jonnieboi93 in forum Combat Arms Help
    Replies: 5
    Last Post: 12-28-2009, 11:29 AM