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.