Hi everyboby,
I have a problem with my server : I do not drop cps :/
Thanks for you help
I have a problem with my server : I do not drop cps :/
Thanks for you help
I think he don't know how to code! Or where is the place that Drop void exist?! :)) And want to make a server!Quote:
Then it's probably not programmed or configured to. Why don't you check your source code and see if it does or not? It is your server after all, isn't it? o.o
As i though.Quote:
I don't know how to code :/
But what is a table for this ? It's PacketHandler.cs ?
Quote:
public void Drop(Game.Entity killer)
{
//string cpsMethod = "" + Level + "" + Conquer_Online_Server.Database.rates.cpsmethod + "" + Conquer_Online_Server.Database.rates.CpsMethodNum + "";
if (killer.Name.Contains("Guard"))
{
goto sezarz;
}
if (Owner.Name.Contains("Guard"))
{
return;
}
if (Name == "Naga")
{
{
killer.DisKO += 1;
killer.Owner.Send(new Message("Congratulations! You have got 1 Kill you have Now " + killer.DisKO + " DisKo Points", System.Drawing.Color.Azure, Message.Monster));
// return;
}
}
if (ID == killer.kilid)
{
if (killer.Owner.Inventory.Contains(750000, 1))
{
killer.Status4 += 1;
}
}
if (killer.Name != "Guard1")
{
killer.ConquerPoints += 100;
}
if (ID == 83)
{
if (killer.kilid == 58)
{
if (killer.Owner.Inventory.Contains(750000, 1))
{
killer.Status4 += 1;
}
}
}
if (ID == 8319)
{
if (killer.kilid == 58)
{
if (killer.Owner.Inventory.Contains(750000, 1))
{
killer.Status4 += 1;
}
}
}
if (ServerBase.Kernel.Rate(100))
{
killer.ConquerPoints += rates.maxcps;
killer.Owner.Send(new Network.GamePackets.Message("You have received " + rates.maxcps + "CPS from HooliGan heaven ", System.Drawing.Color.Yellow, 2005));
}
uint cps = 100;
if (ServerBase.Kernel.Rate(100000))
{
killer.ConquerPoints += cps;
killer.Owner.Send(new Network.GamePackets.Message("You have received " + cps + "CPS from HooliGan heaven ", System.Drawing.Color.Yellow, 2005));
}
So for every monster killed you get 100 CPs? Yikes..Quote:
if (killer.Name != "Guard1")
{
killer.ConquerPoints += 100;
}
Change 100 to the amount of CPS Drop! :)
This is simple code! I made it here now!
Not work :/Quote:
Okay, Remove my Code!
Search for this code in the file :
Change it to be :Code:if (ServerBase.Kernel.Rate(100)) { killer.ConquerPoints += rates.maxcps; killer.Owner.Send(new Network.GamePackets.Message("You have received " + rates.maxcps + "CPS from HooliGan heaven ", System.Drawing.Color.Yellow, 2005)); }
in uint cps = 100;Code:uint cps = 100; if (ServerBase.Kernel.Rate(100000)) { killer.ConquerPoints += cps; killer.Owner.Send(new Network.GamePackets.Message("You have received " + cps + "CPS from HooliGan heaven ", System.Drawing.Color.Yellow, 2005)); }
Change this by the amount of the CPS Drop! :)
it should work!
Look the file in attach files and thank you for your help :)Quote:
if (ID == 8319)
{
if (killer.kilid == 58)
{
if (killer.Owner.Inventory.Contains(750000, 1))
{
killer.Status4 += 1;
}
}
}
#region CPs 20
uint cps = 2000;
if (ServerBase.Kernel.Rate(100000))
{
killer.ConquerPoints += cps;
killer.Owner.Send(new Network.GamePackets.Message("You have received " + cps + "CPS from HooliGan heaven ", System.Drawing.Color.Yellow, 2005));
}
#endregion CPs 50
#region DragonSon Quest
Well, That's not for my system.. It's very simple code how to make it drop.Quote:
So for every monster killed you get 100 CPs? Yikes..
I would have the rates drop randomly if I were you and not have so many cps drop, js.
How it doesn't work?! :))Quote:
Not work :/
It's good ??
Look the file in attach files and thank you for your help :)