[Requesting Help] Understanding Guard1 Code

02/17/2010 07:13 darkdestiny54#1
This is the code from "MobInfos.txt" in OldCODB:
Code:
97 Guard1 6 900 250 50000 2500 70 10000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False
Can someone please help me understand it? I know what the first 2 numbers mean... I just can't figure out the rest without my server crashing.
02/17/2010 07:19 spare2#2
Here. Info[0] is the first number, and so on.
Code:
            MobID = int.Parse(Info[0]);
            Name = Info[1];
            Type = (MobBehaveour)byte.Parse(Info[2]);
            Mesh = ushort.Parse(Info[3]);
            Level = byte.Parse(Info[4]);
            MaxHP = uint.Parse(Info[5]);
            Defense = ushort.Parse(Info[6]);
            MDef = ushort.Parse(Info[7]);
            MAttack = ushort.Parse(Info[8]);
            MinAttack = ushort.Parse(Info[9]);
            MaxAttack = ushort.Parse(Info[10]);
            DmgReduceTimes = byte.Parse(Info[11]);
            Dodge = byte.Parse(Info[12]);
            AtkType = (AttackType)byte.Parse(Info[13]);
            if (AtkType == AttackType.Magic)
            {
                MagicSkill = ushort.Parse(Info[14]);
                MagicLvl = byte.Parse(Info[15]);
                Gives = bool.Parse(Info[16]);
                AttackDist = byte.Parse(Info[17]);
                MinSilvers = int.Parse(Info[18]);
                MaxSilvers = int.Parse(Info[19]);
                MoveSpeed = ushort.Parse(Info[20]);
                SpawnSpeed = uint.Parse(Info[21]);
                LevDifDmg = bool.Parse(Info[22]);
            }
            else
            {
                Gives = bool.Parse(Info[14]);
                AttackDist = byte.Parse(Info[15]);
                MinSilvers = int.Parse(Info[16]);
                MaxSilvers = int.Parse(Info[17]);
                MoveSpeed = ushort.Parse(Info[18]);
                SpawnSpeed = uint.Parse(Info[19]);
                LevDifDmg = bool.Parse(Info[20]);
            }
02/17/2010 07:44 xSynthesis#3
Code:
ID	Name          type	Mesh	level	MaxHP	Defense  MDef	Matk	MinAtk	MaxAtk	DmgRedTime	Dodge	AtkType  Gives	AtkDist	 MinSilver   MaxSilver   MoveSpeed    SpawnSpeed      LevDifDmg
18	BanditL33       1	601	  33	1634	  0	  0	 0	 86	  94	    1		 75 	  2	  True	  3 	    30		  300      1000 	  12 		 True
More understandable..
02/17/2010 15:27 darkdestiny54#4
Thanks you guys! This really helped =P
02/18/2010 09:43 LegalConquer#5
What was the point of this thread when theres about 6 more with a lot more detail there is a good search button on the top of the page... if you where not aware.
03/09/2010 05:30 -NewDawn-#6
public enum MobBehaveour : byte
{
HuntPlayers = 1,
HuntMobs = 2,
HuntMobsAndPlayers = 3,
HuntBlueNames = 4,
HuntMobsAndBlue = 6
}