Sistema de Prêmios por hora
Página 1 de 1
Sistema de Prêmios por hora
Na World.cs adicione
Na Entity.cs procure por public Time32 AutoHuntStamp; e publique :
Na PacketHandle.cs Procure por case 723912: e publique :
- Código:
#region OnlineTimer
foreach (var client in Program.Values)
if (client.Entity.OnlinePoints >= 60)
{
if (Time32.Now > client.Entity.MahmoudOnlineTimer.AddHours(1))
if (!client.Entity.Dead)
{
client.Inventory.Add(720674, 0, 1);
client.Entity.OnlinePoints -= 60;
client.Entity.MahmoudOnlineTimer = Time32.Now;
}
}
#endregion
Na Entity.cs procure por public Time32 AutoHuntStamp; e publique :
- Código:
public Time32 KarimOnlineTimer;
Na PacketHandle.cs Procure por case 723912: e publique :
- Código:
#region OnlieTimer..By Karim Ahmed
case 720674://OnlineTimer..
{
client.Entity.Update(_String.Effect, "slowliquid", true);
Random Rand = new Random();
int dis = Rand.Next(1, 19);
if (dis == 1) {
client.Inventory.AddSoul(160249, 824020, 6, 12, 12, 1, true, false); //Bot+12and Soul p7
client.Send(new Message("Congraulations You Have Got The Bot+12 With Soul p7", System.Drawing.Color.White, Message.Center));
}
if (dis == 2) {
client.Inventory.Add(800111, 0, 1);//SkyHammer
client.Send(new Message("Congraulations You Have Got The SkyHammer Soul p7", System.Drawing.Color.White, Message.Center));
}
if (dis == 3) {
client.Inventory.StfDragon(613429, 0, 1);//FantasyKnife
client.Send(new Message("Congraulations You Have Got The FantasyKnife Soul p7", System.Drawing.Color.White, Message.Center));
}
if (dis == 4) {
client.Entity.ConquerPoints += 1000000;//CPS
client.Send(new Message("Congraulations You Have Got The 1,000,000 Cps", System.Drawing.Color.White, Message.Center));
}
if (dis == 5) {
client.Inventory.Add(823059, 0, 1);//DragonRing
client.Send(new Message("Congraulations You Have Got The DragonRing Soul p7", System.Drawing.Color.White, Message.Center));
}
if (dis == 6) {
client.Inventory.AddSoul(150269, 823059, 6, 12, 12, 1, true, false);//Ring
client.Send(new Message("Congraulations You Have Got The Ring +12 With Soul p7", System.Drawing.Color.White, Message.Center));
}
if (dis == 7) {
client.Inventory.Add(616433, 0, 1);//Ninja Epic Weapon
client.Send(new Message("Congraulations You Have Got The Ninja Epic Weapon", System.Drawing.Color.White, Message.Center));
}
if (dis == {
client.Inventory.AddSoul(601439, 800142, 6, 12, 12, 1, true, false);//Katana
client.Send(new Message("Congraulations You Have Got The Katana+12 With Soul p7", System.Drawing.Color.White, Message.Center));
}
if (dis == 9) {
client.Inventory.Add(614439, 0, 1);//Trojan Epic Weapon
client.Send(new Message("Congraulations You Have Got The Trojan Epic Weapon", System.Drawing.Color.White, Message.Center));
}
if (dis == 10) {
client.Entity.ConquerPoints += 30000000;//CPS
Kernel.SendWorldMessage(new Network.GamePackets.Message("Congratulations! " + client.Entity.Name + " Got 30,000,000 CPS From OnlineTimerBox Quest", System.Drawing.Color.White, Message.Center), Program.GamePool);
}
if (dis == 11) {
client.Entity.ConquerPoints += 5000000;//Cps
client.Send(new Message("Congraulations You Have Got The 5,000,000 Cps", System.Drawing.Color.White, Message.Center));
}
if (dis == 12) {
client.Inventory.AddSoul(136309, 822071, 6, 12, 12, 1, true, false);//ArmorMonk
client.Send(new Message("Congraulations You Have Got The ArmorMonk+12 With Soul P7", System.Drawing.Color.White, Message.Center));
}
if (dis == 13) {
client.Inventory.AddSoul(120269, 821033, 6, 12, 12, 1, true, false);//Necklace
client.Send(new Message("Congraulations You Have Got The Necklace+12 With Soul p7", System.Drawing.Color.White, Message.Center));
}
if (dis == 14) {
client.Entity.ConquerPoints += 500000;//CPS
client.Send(new Message("Congraulations You Have Got The 500,000 Cpss", System.Drawing.Color.White, Message.Center));
}
if (dis == 15) {
client.Inventory.AddSoul(421439, 800522, 6, 12, 12, 1, true, false);//BackSowrd
client.Send(new Message("Congraulations You Have Got The BackSowrd+12 With Soul p7", System.Drawing.Color.White, Message.Center));
}
if (dis == 16) {
client.Inventory.AddSoul(410439, 800111, 6, 12, 12, 1, true, false);//Blade
client.Send(new Message("Congraulations You Have Got The Blade+12 With Soul p7", System.Drawing.Color.White, Message.Center));
}
if (dis == 17) {
client.Inventory.Add(2100065, 0, 1);//SilverPrize
Kernel.SendWorldMessage(new Network.GamePackets.Message("Congratulations! " + client.Entity.Name + " Got .> SilverPrize <. From OnlineTimerBox Quest", System.Drawing.Color.White, Message.Center), Program.GamePool);
}
if (dis == 18) {
client.Inventory.Add(720028, 0, 5);//5 DbScroll
client.Send(new Message("Congraulations You Have Got The 5 DbScroll", System.Drawing.Color.White, Message.Center));
}
///Done///
client.Inventory.Remove(item, Game.Enums.ItemUse.Remove);
break;
}
#endregion
Tópicos semelhantes
» Sistema de Vip com dias para acabar
» [Venda] Sistema dia e noite + clima
» Sistema de doação 100% TQ
» sistema de voto
» Npc que vende P6 e P7 [Sistema de Booth]
» [Venda] Sistema dia e noite + clima
» Sistema de doação 100% TQ
» sistema de voto
» Npc que vende P6 e P7 [Sistema de Booth]
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos
|
|