Page 1 of 3 123 LastLast
Results 1 to 15 of 31
  1. #1
    MikeRaarupBirk's Avatar
    Join Date
    Mar 2016
    Gender
    male
    Posts
    1,583
    Reputation
    38
    Thanks
    3,775
    My Mood
    Stressed

    [FSOD] How to add a new class.

    shit tutorial who cares.



    Goto dat1.xml find the "ninja" xml.
    Copy + paste it, change the type=id to something unique, and all the slottypes n shit.
    Code:
       <Object type="0x0326" id="Ninja">
          <Class>Player</Class>
          <Description>{players.The_ninja_relies_on_speed_and_skill,_using_katanas_and_ni}</Description>
          <AnimatedTexture>
             <File>players</File>
             <Index>13</Index>
          </AnimatedTexture>
          <HitSound>player/rogue_hit</HitSound>
          <DeathSound>player/rogue_death</DeathSound>
          <Player/>
          <BloodProb>1.0</BloodProb>
          <SlotTypes>24, 25, 6, 9, 0, 0, 0, 0, 0, 0, 0, 0</SlotTypes>
          <Equipment>0xc44, 0xc53, -1, -1, 0xa22, -1, -1, -1, -1, -1, -1, -1</Equipment>
          <MaxHitPoints max="720">150</MaxHitPoints>
          <MaxMagicPoints max="252">100</MaxMagicPoints>
          <Attack max="70">15</Attack>
          <Defense max="25">0</Defense>
          <Speed max="60">10</Speed>
          <Dexterity max="70">12</Dexterity>
          <HpRegen max="40">10</HpRegen>
          <MpRegen max="70">12</MpRegen>
          <LevelIncrease min="20" max="30">MaxHitPoints</LevelIncrease>
          <LevelIncrease min="2" max="8">MaxMagicPoints</LevelIncrease>
          <LevelIncrease min="1" max="2">Attack</LevelIncrease>
          <LevelIncrease min="0" max="0">Defense</LevelIncrease>
          <LevelIncrease min="0" max="2">Speed</LevelIncrease>
          <LevelIncrease min="1" max="2">Dexterity</LevelIncrease>
          <LevelIncrease min="0" max="1">HpRegen</LevelIncrease>
          <LevelIncrease min="1" max="2">MpRegen</LevelIncrease>
          <UnlockLevel level="20" type="0x0300">Rogue</UnlockLevel>
          <UnlockLevel level="20" type="0x031d">Warrior</UnlockLevel>
          <UnlockCost>999</UnlockCost>
          <DisplayId>{players.Ninja}</DisplayId>
       </Object>
    REMEMBER TO GO TO YOUR PLAYER SPRITE SHEET, AND ADD THE 14TH CLASS SPRITE!
    change the xml as you would like, like i did with jack.

    change that shit to
    Code:
       <Object type="0x0327" id="Jack">
          <Class>Player</Class>
          <Description>Jack</Description>
          <AnimatedTexture>
             <File>players</File>
             <Index>14</Index>
          </AnimatedTexture>
          <HitSound>player/rogue_hit</HitSound>
          <DeathSound>player/rogue_death</DeathSound>
          <Player/>
          <BloodProb>1.0</BloodProb>
          <SlotTypes>24, 25, 6, 9, 0, 0, 0, 0, 0, 0, 0, 0</SlotTypes>
          <Equipment>0xc44, 0xc53, -1, -1, 0xa22, -1, -1, -1, -1, -1, -1, -1</Equipment>
          <MaxHitPoints max="999">150</MaxHitPoints>
          <MaxMagicPoints max="999">100</MaxMagicPoints>
          <Attack max="999">15</Attack>
          <Defense max="999">0</Defense>
          <Speed max="999">10</Speed>
          <Dexterity max="999">12</Dexterity>
          <HpRegen max="999">10</HpRegen>
          <MpRegen max="999">12</MpRegen>
          <LevelIncrease min="20" max="30">MaxHitPoints</LevelIncrease>
          <LevelIncrease min="2" max="8">MaxMagicPoints</LevelIncrease>
          <LevelIncrease min="1" max="2">Attack</LevelIncrease>
          <LevelIncrease min="0" max="0">Defense</LevelIncrease>
          <LevelIncrease min="0" max="2">Speed</LevelIncrease>
          <LevelIncrease min="1" max="2">Dexterity</LevelIncrease>
          <LevelIncrease min="0" max="1">HpRegen</LevelIncrease>
          <LevelIncrease min="1" max="2">MpRegen</LevelIncrease>
          <UnlockLevel level="20" type="0x0300">Rogue</UnlockLevel>
          <UnlockLevel level="20" type="0x031d">Warrior</UnlockLevel>
          <UnlockCost>999</UnlockCost>
          <DisplayId>Jack</DisplayId>
       </Object>
    So you know have those sick sprites, xmls n such. good.

    you probably already have it in dat1.xml, so you just need it in the client.

    open up JPEXS and find the "EmbeddedData_PlayersCXML.dat copy+paste your "jack" inside.

    When thats done you should have 2 xmls, one i the client, and one in the dat1.xml.
    Rebuild server, and rebuild client and it should work.

    I have only tried to add 1 class, i am not sure if it works with more than 1. You can try.

    For the slottype, you can use <slottype>29</slottype> on your custom item and your custom class. Not sure how to get the shadow displaying tho.
    Last edited by MikeRaarupBirk; 09-30-2016 at 05:45 PM.

  2. The Following 4 Users Say Thank You to MikeRaarupBirk For This Useful Post:

    DavisXola (08-28-2018),NyanCatOK (05-13-2019),Orbit (10-05-2016),Zxoro (10-09-2016)

  3. #2
    Orbit's Avatar
    Join Date
    Feb 2014
    Gender
    male
    Location
    In-Orbit
    Posts
    672
    Reputation
    55
    Thanks
    484
    My Mood
    Aggressive
    Good tut but can someone make a tutorial on how to add more sprite sheets? Mine is full already.

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

  4. #3
    MikeRaarupBirk's Avatar
    Join Date
    Mar 2016
    Gender
    male
    Posts
    1,583
    Reputation
    38
    Thanks
    3,775
    My Mood
    Stressed
    Quote Originally Posted by Orbit View Post
    Good tut but can someone make a tutorial on how to add more sprite sheets? Mine is full already.
    If you use as3, you just expand it. ;3

  5. #4
    OmegaBM's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    102
    Reputation
    33
    Thanks
    84
    My Mood
    Cold
    Quote Originally Posted by Orbit View Post
    Good tut but can someone make a tutorial on how to add more sprite sheets? Mine is full already.
    @thenired made one.
    https://www.mpgh.net/forum/showthread.php?t=1130232

  6. The Following 2 Users Say Thank You to OmegaBM For This Useful Post:

    lkdjnfoskjednfblksjdfn (10-04-2016),Orbit (10-05-2016)

  7. #5
    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 OmegaBM View Post
    Thanks! //10char

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

  8. #6
    Demon's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Location
    Lost
    Posts
    1,095
    Reputation
    86
    Thanks
    316
    My Mood
    Angelic
    For Some Reason The Character Doesn't Work When I Load In Just Black Screen And When I Relog Shit Happens

    :P:P:P:P

  9. #7
    MikeRaarupBirk's Avatar
    Join Date
    Mar 2016
    Gender
    male
    Posts
    1,583
    Reputation
    38
    Thanks
    3,775
    My Mood
    Stressed
    Quote Originally Posted by DemonLives View Post
    For Some Reason The Character Doesn't Work When I Load In Just Black Screen And When I Relog Shit Happens

    :P:P:P:P
    is your char located in dat1.xml?
    Check wserver.exe and server.exe for errors, and send them in.

  10. #8
    Demon's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Location
    Lost
    Posts
    1,095
    Reputation
    86
    Thanks
    316
    My Mood
    Angelic
    Quote Originally Posted by MikeRaarupBirk View Post
    is your char located in dat1.xml?
    Check wserver.exe and server.exe for errors, and send them in.


    Wops NVM I FIXED IT---edited
    Last edited by Demon; 10-06-2016 at 01:33 PM.

  11. #9
    lkdjnfoskjednfblksjdfn's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Location
    127.0.0.1
    Posts
    1,340
    Reputation
    198
    Thanks
    841
    My Mood
    Inspired
    Quote Originally Posted by Orbit View Post
    Good tut but can someone make a tutorial on how to add more sprite sheets? Mine is full already.
    There are like 3 of them. Check my posted threads. Its AS3 tho. However only differences is the obfuscated names of the different classes and scripts.

    -----EDIT----
    Woops, forgot omega provided you with one. Srry :P

  12. #10
    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 thenired View Post
    There are like 3 of them. Check my posted threads. Its AS3 tho. However only differences is the obfuscated names of the different classes and scripts.

    -----EDIT----
    Woops, forgot omega provided you with one. Srry :P
    Thanks anyways
    Followed your tutorial and just changed the obfuscated names and it worked

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

  13. #11
    Demon's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Location
    Lost
    Posts
    1,095
    Reputation
    86
    Thanks
    316
    My Mood
    Angelic
    Quote Originally Posted by Orbit View Post
    Thanks anyways
    Followed your tutorial and just changed the obfuscated names and it worked
    For Fabiano?

  14. #12
    Zxoro's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Location
    Mother Russia
    Posts
    111
    Reputation
    38
    Thanks
    10
    My Mood
    Pensive
    Hello Mike,
    I'm using fabiano source:
    i've done what you wrote in your tutorial step by step, rebuilt everything, turned on the server, went to "classes", chosen my Spearman class, my client connected to nexus and went blackscreen, i clicked "Back to home" and got this
    https://imgur.com/bv2MpuE
    I created another account, tried to buy the class using coins, got this https://imgur.com/a/l7lEC
    My question is: What do i do?
    I can show you my files', but i cannot write to you due to my low posts counter.

    upd: whenever i try to give myself class' items, it shows me ART picture, i know how to fix it, still waiting for your answer, gone fixing art bug
    upd2: i think i found what i did wrong, will report back soon
    upd3: omfg Mike ty very much, i typed indexes of my items wrong, it worked, yay
    Last edited by Zxoro; 10-09-2016 at 12:24 PM. Reason: upd3

  15. #13
    kgcgods's Avatar
    Join Date
    Nov 2015
    Gender
    male
    Posts
    63
    Reputation
    10
    Thanks
    13
    My Mood
    Bored
    i did it on fabiano. i just trying to learn how to add customized slot types that is what i dont get
    JPEXS to export and replace the file in the client

    Guys here is how to add classes on fabiano </Objects> in dat1.xml but make sure its not in the binary file in the client
    u need to use
    This is is just an example
    if u wanna use this make sure to add
    <Object type="0x07dd" id="RealmKGC">
    <Class>Player</Class>
    <Description>Op Knight</Description>
    <AnimatedTexture>
    <File>players</File>
    <Index>14</Index>
    </AnimatedTexture>
    <HitSound>player/knight_hit</HitSound>
    <DeathSound>player/knight_death</DeathSound>
    <Player/>
    <BloodProb>1.0</BloodProb>
    <SlotTypes>24, 13, 7, 9, 0, 0, 0, 0, 0, 0, 0, 0</SlotTypes>
    <Equipment>-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1</Equipment>
    <MaxHitPoints max="770">200</MaxHitPoints>
    <MaxMagicPoints max="252">100</MaxMagicPoints>
    <Attack max="100">100</Attack>
    <Defense max="100">100</Defense>
    <Speed max="100">100</Speed>
    <Dexterity max="100">100</Dexterity>
    <HpRegen max="300">300</HpRegen>
    <MpRegen max="300">300</MpRegen>
    <LevelIncrease min="20" max="50">MaxHitPoints</LevelIncrease>
    <LevelIncrease min="2" max="60">MaxMagicPoints</LevelIncrease>
    <LevelIncrease min="1" max="5">Attack</LevelIncrease>
    <LevelIncrease min="0" max="5">Defense</LevelIncrease>
    <LevelIncrease min="0" max="5">Speed</LevelIncrease>
    <LevelIncrease min="0" max="5">Dexterity</LevelIncrease>
    <LevelIncrease min="1" max="5">HpRegen</LevelIncrease>
    <LevelIncrease min="0" max="5">MpRegen</LevelIncrease>
    <UnlockLevel level="20" type="0x031d">Warrior</UnlockLevel>
    <UnlockCost>30000</UnlockCost>
    <DisplayId>RealmKGC</DisplayId>

    u can change anything u want on it really

    u need to use a program to edit the binarydata file
    the file is going to be called EmbeddedData_PlayersCXML
    u can use a prgoram called EmEditor
    when u add the classs to the file make sure u add it
    where u find
    an
    </Objects>
    </Objects>
    Last edited by kgcgods; 10-12-2016 at 12:29 AM.

  16. #14
    MikeRaarupBirk's Avatar
    Join Date
    Mar 2016
    Gender
    male
    Posts
    1,583
    Reputation
    38
    Thanks
    3,775
    My Mood
    Stressed
    Quote Originally Posted by kgcgods View Post
    i did it on fabiano. i just trying to learn how to add customized slot types that is what i dont get
    JPEXS to export and replace the file in the client

    Guys here is how to add classes on fabiano </Objects> in dat1.xml but make sure its not in the binary file in the client
    u need to use
    This is is just an example
    if u wanna use this make sure to add
    <Object type="0x07dd" id="RealmKGC">
    <Class>Player</Class>
    <Description>Op Knight</Description>
    <AnimatedTexture>
    <File>players</File>
    <Index>14</Index>
    </AnimatedTexture>
    <HitSound>player/knight_hit</HitSound>
    <DeathSound>player/knight_death</DeathSound>
    <Player/>
    <BloodProb>1.0</BloodProb>
    <SlotTypes>24, 13, 7, 9, 0, 0, 0, 0, 0, 0, 0, 0</SlotTypes>
    <Equipment>-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1</Equipment>
    <MaxHitPoints max="770">200</MaxHitPoints>
    <MaxMagicPoints max="252">100</MaxMagicPoints>
    <Attack max="100">100</Attack>
    <Defense max="100">100</Defense>
    <Speed max="100">100</Speed>
    <Dexterity max="100">100</Dexterity>
    <HpRegen max="300">300</HpRegen>
    <MpRegen max="300">300</MpRegen>
    <LevelIncrease min="20" max="50">MaxHitPoints</LevelIncrease>
    <LevelIncrease min="2" max="60">MaxMagicPoints</LevelIncrease>
    <LevelIncrease min="1" max="5">Attack</LevelIncrease>
    <LevelIncrease min="0" max="5">Defense</LevelIncrease>
    <LevelIncrease min="0" max="5">Speed</LevelIncrease>
    <LevelIncrease min="0" max="5">Dexterity</LevelIncrease>
    <LevelIncrease min="1" max="5">HpRegen</LevelIncrease>
    <LevelIncrease min="0" max="5">MpRegen</LevelIncrease>
    <UnlockLevel level="20" type="0x031d">Warrior</UnlockLevel>
    <UnlockCost>30000</UnlockCost>
    <DisplayId>RealmKGC</DisplayId>

    u can change anything u want on it really

    u need to use a program to edit the binarydata file
    the file is going to be called kabam****tmg.assets.EmbeddedData_PlayersCXML_kabam ****tmg.assets.EmbeddedData_PlayersCXML
    u can use a prgoram called EmEditor
    when u add the classs to the file make sure u add it
    where u find
    an
    </Objects>
    </Objects>
    I am not sure what ur trying to do, my tutorial shows how to add a new class, and you just did a tutorial on a tutorial xD

  17. #15
    kgcgods's Avatar
    Join Date
    Nov 2015
    Gender
    male
    Posts
    63
    Reputation
    10
    Thanks
    13
    My Mood
    Bored
    i read a few guys had a problem on fabiano.

Page 1 of 3 123 LastLast

Similar Threads

  1. [Help Request] How to add a new weapon with ready texture and data.
    By kacper42342432 in forum Realm of the Mad God Private Servers Help
    Replies: 0
    Last Post: 06-09-2016, 10:21 AM
  2. How to add a new class to my private server?
    By Dpalad67 in forum Realm of the Mad God Private Servers Help
    Replies: 1
    Last Post: 09-25-2015, 05:23 PM
  3. [Tutorial] How to add a new Sprite Sheet on As3 Client
    By Omniraptor in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 1
    Last Post: 02-28-2015, 04:12 PM
  4. How to add custom in class set?
    By section@geek in forum Call of Duty Black Ops 2 Help
    Replies: 3
    Last Post: 07-23-2013, 08:10 AM
  5. Will someone please make a tutorial on how to make a new class?
    By Aceaku1 in forum Realm of the Mad God Help & Requests
    Replies: 8
    Last Post: 06-16-2013, 08:17 AM