make monster who drop good things?

06/20/2010 12:33 sohaib#1
hi, so i have co pserver 5165

well this is my idea

i want to make a monster with big attack and big deffence, with a lot of hp

i place it any where , so players come and kill him, when he die he drop an item like 135 item or( i have a ID of ther item)


is it possible?

if it's yes, give me a guide of blabla to make it please

thanks
06/20/2010 14:22 pintser#2
Hp & attack is set at:

MobInfo.txt (in youre OLDCODB)
probably in C:/>OldcoDB

This is what all info means about youre mobs: (bid messy tho)

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


And for the Drop of items/ anything FRom a MOb:
Mob.cs

Search for:

Code:
if (MyMath.ChanceSuccess(90))
Code:
if (Char.Loc.Map == 1048) // Map number
                    {
                        if (Name == "Toughorn") // Name of the mob
                        {
                            if (MyMath.ChanceSuccess(10.5)) // Number of succes.
                            {
                                DI2.Info.ID = 721015; // number of the item u wont him to drop
                                DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
                                DI2.Info.CurDur = DI2.Info.MaxDur;
                            }
                        }
                    }
just copy and paste this below the if (MyMath.ChanceSuccess(90)) code.(below the last } of the WHOLE code.
06/20/2010 16:48 sohaib#3
if (MyMath.ChanceSuccess(90)) do not exist in my mob.cs

please if some one have time make me the mob ( ID of mob : 54 & 55)
and make it dropping this item ( item ID: 721512) please

and don't change the place , and the mob has 10% chance to drop this item

then, give me download link of Mob.cs(edited) in private msg or reply
06/20/2010 20:10 Adziunia#4
Quote:
if (Char.Loc.Map == 1048) // Map number
{
if (Name == "Toughorn") // Name of the mob
{
if (MyMath.ChanceSuccess(0.1)) // Number of succes.
{
DI2.Info.ID = 721512; // number of the item u wont him to drop
DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
DI2.Info.CurDur = DI2.Info.MaxDur;
}
}
}
just change what u want there i think 0.1 is 10% :P
and u need to put mob name not ID
06/20/2010 23:37 pintser#5
as he said.
just look into: mob.cs for Drop code..
and then paste my code, and edit it.
06/21/2010 12:39 sohaib#6
man i did it, but i doesn't work

please do it and give me the download link of mob.cs, i think it doesn't make time
06/21/2010 19:20 Arcо#7
Quote:
Originally Posted by sohaib View Post
man i did it, but i doesn't work

please do it and give me the download link of mob.cs, i think it doesn't make time
Are you compiling(f5) the source after you make the changes?
06/21/2010 22:18 sohaib#8
yes