drop cps for 5165 conquer-sx's source

07/04/2010 03:54 262315610#1
first:
open database
alert config table
add a column name is "AutoEmoney"

second:
open conquer-sx source
go to Game/Mob.cs
open that
and find 44 row!
add it
Code:
public static int AutoEmoney = 0;
third:
go to Database.cs
find Loadconfig method
and add it:
Code:
Game.Mob.AutoEmoney = Convert.ToInt32(DR["AutoEmoney"]);
Fourth:
goto Mob.cs find
Code:
Char = (Character)Game.World.H_Chars[Owner];
add that code behind it
Code:
                if (AutoEmoney != 0)
                {
                    Char.CPs += (uint)Mob.AutoEmoney;
                    Char.MyClient.LocalMessage(2000, "You killing a monster and get " + AutoEmoney+" CPs");
                }
                else
                {
                    if (Char != null)
                    {
                        if (MyMath.ChanceSuccess(20))
                        {
                        DI2.Info.ID = 729910;
                        DI2.UID = (uint)Rnd.Next(10000000);
                        DI2.Loc.X = (ushort)(Loc.X + Rnd.Next(4) - Rnd.Next(4));
                        DI2.Loc.Y = (ushort)(Loc.Y + Rnd.Next(4) - Rnd.Next(4));
                        DI2.Drop();
                        }
                        else if (MyMath.ChanceSuccess(10))
                        {
                            DI2.Info.ID = 729911;
                            DI2.UID = (uint)Rnd.Next(10000000);
                            DI2.Loc.X = (ushort)(Loc.X + Rnd.Next(4) - Rnd.Next(4));
                            DI2.Loc.Y = (ushort)(Loc.Y + Rnd.Next(4) - Rnd.Next(4));
                            DI2.Drop();
                        }
                        else if (MyMath.ChanceSuccess(10))
                        {
                            DI2.Info.ID = 729912;
                            DI2.UID = (uint)Rnd.Next(10000000);
                            DI2.Loc.X = (ushort)(Loc.X + Rnd.Next(4) - Rnd.Next(4));
                            DI2.Loc.Y = (ushort)(Loc.Y + Rnd.Next(4) - Rnd.Next(4));
                            DI2.Drop();
                        }
                    }
                    
                }


Ok...Press F5 to run project ...

if my code help you .... It is my pleasure
07/05/2010 03:17 262315610#2
no one like i will del it!
07/05/2010 09:52 sawickas#3
Here a lot guides for cps
07/05/2010 14:03 Adziunia#4
no1 uses conquer-sx source :D:D
07/05/2010 20:42 kd20#5
really wonerfull I did it and it works 100%
so 100 thanks my babe
07/05/2010 22:06 Adziunia#6
kd20 u r pretty
05/30/2011 11:02 reexco#7
what datebase navicatt?
05/31/2011 08:46 BaussHacker#8
Quote:
Originally Posted by reexco View Post
what datebase navicatt?
Navicat is not a database, but a tool to manage MySQL database.
05/31/2011 15:57 petje1#9
Would this work Impulse hes Source?, lol a database is what you've created in navicat
06/01/2011 00:33 BaussHacker#10
Quote:
Originally Posted by petje1 View Post
Would this work Impulse hes Source?, lol a database is what you've created in navicat
You don't need Navicat at all.
06/01/2011 11:58 12366#11
what is database i dont get what he means by it