Register for your free account! | Forgot your password?

You last visited: Today at 07:28

  • Please register to post and access all features, it's quick, easy and FREE!


[Release] TDM-

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 320
[Release] Team Death Match

Well, This is from another forums and yes i did ask Catalin if I Can Release it Here, So this is a Team Death Match Game, Coded for v5165,

The NPC-
PHP Code:
                            #region Team Death Match
                            
case 8000:
                                {
                                    if (
Control == 0)
                                    {
                                        
GC.AddSend(Packets.NPCSay("Hey there Do You Whant to Join the Team Death Match"));
                                        
GC.AddSend(Packets.NPCLink("Yeah"1));
                                        
GC.AddSend(Packets.NPCLink("What Team Am i In"4));
                                        
GC.AddSend(Packets.NPCLink("No Thanx"255));
                                        
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        
GC.AddSend(Packets.NPCFinish());
                                    }
                                    if (
Control == 4)
                                    {
                                        if (
GC.MyChar.dmred == 1)
                                        {
                                            
GC.AddSend(Packets.NPCSay("You Are in the Read Team"));
                                            
GC.AddSend(Packets.NPCLink("Ok"255));
                                            
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            
GC.AddSend(Packets.NPCFinish());
                                        }
                                        else if (
GC.MyChar.dmblack == 1)
                                        {
                                            
GC.AddSend(Packets.NPCSay("You Are In the Black Team"));
                                            
GC.AddSend(Packets.NPCLink("Ok"255));
                                            
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            
GC.AddSend(Packets.NPCFinish());
                                        }
                                        else if (
GC.MyChar.dmblue == 1)
                                        {
                                            
GC.AddSend(Packets.NPCSay("You Are In the Blue Team"));
                                            
GC.AddSend(Packets.NPCLink("OK i see"255));
                                            
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            
GC.AddSend(Packets.NPCFinish());
                                        }
                                        else
                                        {
                                            
GC.AddSend(Packets.NPCSay("You dont is in team"));
                                            
GC.AddSend(Packets.NPCLink("Ok"255));
                                            
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            
GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    if (
Control == 1)
                                    {
                                        if (
GC.MyChar.dmjoin == 0)
                                        {
                                            if (
World.dm == true)
                                            {
                                                
Random teams = new Random();
                                                
int team teams.Next(12);
                                                if (
team == 1)
                                                {

                                                    
GC.MyChar.dmblack 1;
                                                    
GC.MyChar.dmjoin 1;
                                                    
World.DeathMatch.teamblack += 1;
                                                }
                                                if (
team == 2)
                                                {

                                                    
GC.MyChar.dmblue 1;
                                                    
GC.MyChar.dmjoin 1;
                                                    
World.DeathMatch.teamblue += 1;

                                                }
                                                if (
World.DeathMatch.teamred World.DeathMatch.teamblue)
                                                {
                                                    
GC.MyChar.dmred 1;
                                                    
GC.MyChar.dmblue 0;
                                                    
World.DeathMatch.teamblue -= 1;
                                                    
World.DeathMatch.teamred += 1;

                                                }
                                                else if (
World.DeathMatch.teamred World.DeathMatch.teamblack)
                                                {
                                                    
GC.MyChar.dmred 1;
                                                    
GC.MyChar.dmblack 0;
                                                    
World.DeathMatch.teamblack -= 1;
                                                    
World.DeathMatch.teamred += 1;

                                                }
                                                if (
GC.MyChar.dmred == 1)
                                                {
                                                    
GC.AddSend(Packets.NPCSay("Your In RedTeam"));
                                                    
GC.AddSend(Packets.NPCLink("Cool"255));
                                                    
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                    
GC.AddSend(Packets.NPCFinish());
                                                }
                                                else if (
GC.MyChar.dmblack == 1)
                                                {
                                                    
GC.AddSend(Packets.NPCSay("Your In BlackTeam"));
                                                    
GC.AddSend(Packets.NPCLink("OK i see"255));
                                                    
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                    
GC.AddSend(Packets.NPCFinish());
                                                }
                                                else if (
GC.MyChar.dmblue == 1)
                                                {
                                                    
GC.AddSend(Packets.NPCSay("Your In Blue Team"));
                                                    
GC.AddSend(Packets.NPCLink("OK i see"255));
                                                    
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                    
GC.AddSend(Packets.NPCFinish());
                                                }

                                            }
                                            else
                                            {
                                                
GC.AddSend(Packets.NPCSay("I'am Sorry but there is No DeathMatch Going On At the Moment"));
                                                
GC.AddSend(Packets.NPCLink("Alrite"255));
                                                
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                
GC.AddSend(Packets.NPCFinish());
                                            }
                                        }
                                        else
                                        {
                                            
GC.AddSend(Packets.NPCSay("Iam Sorry But Your Already In A Team"));
                                            
GC.AddSend(Packets.NPCLink("Oh Ok"255));
                                            
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            
GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    break;
                                }
                            
#endregion 
This is the NPC in NPCs.txt
Code:
8000 310 2 0 1002 422 361
Go to World.cs Search for
Code:
  public static void NewEmpire(Character C)
Above that Add,
PHP Code:
        public static bool dm false
        public class 
DeathMatch 
        
{   
            public static 
int teamred 0
            public static 
int teamblue 0
            public static 
int teamblack 0
            public static 
int teamwhite 0

        } 
        public class 
Dmscore 
        

            public static 
int redscore 0
            public static 
int bluescore 0
            public static 
int blackscore 0
            public static 
int whitescore 0
        } 
Go to Character.cs Search for,
Code:
public byte OnlineTrainingPts = 0;
Above it add,
PHP Code:
        public int dmjoin 0
        public 
int dmred 0
        public 
int dmblack 0
        public 
int dmblue 0
        public 
int dmwhite 0
In Character.cs Search for,
PHP Code:
                            if (BuffOf(SkillsClass.ExtraEffect.Fly).Eff== SkillsClass.ExtraEffect.Fly
                                return; 
Below it add,
PHP Code:
                  if (dmblack == 1
                    { 
                        foreach (
DictionaryEntry DE in Game.World.H_Chars
                        { 
                            
Game.Character Chaar = (Game.Character)DE.Value
                            if (
Chaar.Name != MyClient.MyChar.Name
                            { 
                                if (
Chaar.dmblack == 1
                                { 
                                    
Damage 0
                                    return; 
                                } 

                            } 
                        } 
                    } 
                    if (
dmblue == 1
                    { 
                        foreach (
DictionaryEntry DE in Game.World.H_Chars
                        { 
                            
Game.Character Chaar = (Game.Character)DE.Value
                            if (
Chaar.Name != MyClient.MyChar.Name
                            { 
                                if (
Chaar.dmblue == 1
                                { 
                                    
Damage 0
                                    return; 
                                } 

                            } 
                        } 
                    } 
                    if (
dmred == 1
                    { 
                        foreach (
DictionaryEntry DE in Game.World.H_Chars
                        { 
                            
Game.Character Chaar = (Game.Character)DE.Value
                            if (
Chaar.Name != MyClient.MyChar.Name
                            { 
                                if (
Chaar.dmred == 1
                                { 
                                    
Damage 0
                                    return; 
                                } 

                            } 
                        } 

                    } 
Go to Your Features folder and make a New Class Call it DMScore.cs
And add
PHP Code:
using System
using System.Collections
using System.Collections.Generic
using System.Linq
using System.Threading
using System.Text
using NewestCOServer.Game


namespace 
NewestCOServer.Features 

    public class 
DMScore 
    

        public static 
DateTime LastScores
        public static 
void SendScores() 
        { 
            foreach (
Character C in World.H_Chars.Values
            { 
                if (
C.Loc.Map == 1090
                { 
                    
byte c 0
                    if (
== 0
                    { 
                        
C.MyClient.AddSend(Packets.ChatMessage(0"SYSTEM""ALLUSERS""TopWarrior  score -" World.Dmscore.blackscore " "0x83c0)); 
                    } 
                    else 
                        
C.MyClient.AddSend(Packets.ChatMessage(0"SYSTEM""ALLUSERS""TopWarrior  score -" World.Dmscore.blackscore " "0x83d0)); 
                    
C.MyClient.AddSend(Packets.ChatMessage(2"SYSTEM""ALLUSERS""TopNinja score - " World.Dmscore.bluescore " "0x83d0)); 
                    
C.MyClient.AddSend(Packets.ChatMessage(3"SYSTEM""ALLUSERS""WeeklyPKChampion  score -" World.Dmscore.redscore " "0x83d0)); 
                    
c++; 
                } 
            } 
        } 
    } 

In Chat.cs Add iN,
below using System.Text; ADd below using System.Threading;
PHP Code:
                            if (Cmd[0] == "/dmtrue"
                        { 
                            
Game.World.dm true
                            
Game.World.SendMsgToAll("Server""DeathMatch start in 2 min!go TwinCity at 424 361 for join to tornament!"20110); 
                            new 
Thread(new ThreadStart(delegate() 
                            { 
                                
Console.WriteLine("DeathMatch Activated (via Console)."); 

                                
Thread.Sleep(30000); 
                                
Game.World.SendMsgToAll("Server""DeathMatch will start in 1 minutes and 30 Seconds! go TwinCity at 424 361 for join to tornament!"20110); 
                                
Console.WriteLine("1 Minutes 30 seconds Left"); 
                                
Thread.Sleep(30000); 
                                
Game.World.SendMsgToAll("Server""DeathMatch will start in 1 minutes! go TwinCity at 424 361 for join to tornament!"20110); 
                                
Console.WriteLine("1 Minutes Left"); 
                                
Thread.Sleep(30000); 
                                
Game.World.SendMsgToAll("Server""DeathMatch will start in 30 Seconds! go TwinCity at 424 361 for join to tornament!"20110); 
                                
Console.WriteLine("30 seconds Left"); 
                                
Thread.Sleep(30000); 
                                
Game.World.SendMsgToAll("Server""DeathMatch will start "20110); 
                                
Console.WriteLine("DeathMatch will start "); 

                                foreach (
DictionaryEntry DE in Game.World.H_Chars
                                { 
                                    
Game.Character Chaar = (Game.Character)DE.Value
                                    if (
Chaar.dmjoin == 1
                                    { 
                                        if (
Chaar.dmblack == 1
                                        { 
                                            
Chaar.StatEff.Add(NewestCOServer.Game.StatusEffectEn.TopWarrior); 
                                            
Chaar.Teleport(109012170); 
                                        } 
                                        else if (
Chaar.dmblue == 1
                                        { 
                                            
Chaar.StatEff.Add(NewestCOServer.Game.StatusEffectEn.TopNinja); 
                                            
Chaar.Teleport(1090144152); 
                                       
//    GC.MyChar.AddItemPos(181825);//181825 
                                        

                                        else if (
Chaar.dmred == 1
                                        { 
                                            
Chaar.StatEff.Add(NewestCOServer.Game.StatusEffectEn.WeeklyPKChampion); 
                                            
Chaar.Teleport(10904367); 
                                         
//   GC.MyChar.AddItemPos(181625);//181625 
                                        

                                    } 
                                } 
                                
Game.World.dm false
                                
Thread.Sleep(60000); 
                                
Game.World.SendMsgToAll("Server""DeathMatch will finish in 9 minutes"20110); 
                                
Console.WriteLine("9 Minutes Left"); 
                                
Thread.Sleep(60000); 
                                
Game.World.SendMsgToAll("Server""DeathMatch will finish in 8 minutes"20110); 
                                
Console.WriteLine("8 Minutes Left");  
                                
Thread.Sleep(60000); 
                                
Game.World.SendMsgToAll("Server""DeathMatch will finish in 7 minutes"20110); 
                                
Console.WriteLine("7 Minutes Left");  
                                
Thread.Sleep(60000); 
                                
Game.World.SendMsgToAll("Server""DeathMatch will finish in 6 minutes"20110); 
                                
Console.WriteLine("6 Minutes Left"); 
                                
Thread.Sleep(60000); 
                                
Game.World.SendMsgToAll("Server""DeathMatch will finish in 5 minutes"20110); 
                                
Console.WriteLine("5 Minutes Left");  
                                
Thread.Sleep(60000); 
                                
Game.World.SendMsgToAll("Server""DeathMatch will finish in 4 minutes"20110); 
                                
Console.WriteLine("4 Minutes Left"); 
                                
Thread.Sleep(60000); 
                                
Game.World.SendMsgToAll("Server""DeathMatch will finish in 3 minutes"20110); 
                                
Console.WriteLine("3 Minutes Left"); 
                                
Thread.Sleep(60000); 
                                
Game.World.SendMsgToAll("Server""DeathMatch will finish in 2 minutes"20110); 
                                
Console.WriteLine("2 Minutes Left");  
                                
Thread.Sleep(60000); 
                                
Game.World.SendMsgToAll("Server""DeathMatch will finish in 1 minutes"20110); 
                                
Console.WriteLine("1 Minutes Left");  
                                
Thread.Sleep(30000); 
                                
Game.World.SendMsgToAll("Server""DeathMatch will finish in 30 seconds! "20110); 
                                
Console.WriteLine("DeathMatch will finish in 30 seconds!"); 
                                
Thread.Sleep(30000); 
                                
Game.World.SendMsgToAll("Server""DeathMatch will finish! "20110); 
                                
Console.WriteLine("DeathMatch will finish"); 
                                
#region wins 
                                
if (Game.World.Dmscore.blackscore Game.World.Dmscore.bluescore
                                { 
                                    if (
Game.World.Dmscore.blackscore Game.World.Dmscore.redscore
                                    { 
                                        foreach (
DictionaryEntry DE in Game.World.H_Chars
                                        { 
                                            
Game.Character Chaar = (Game.Character)DE.Value
                                            if (
Chaar.Loc.Map == 1090
                                            { 
                                                
Chaar.Teleport(1002390323); 
                                                
Game.World.DeathMatch.teamblack 0
                                                
Game.World.DeathMatch.teamblue 0
                                                
Game.World.DeathMatch.teamred 0
                                                
Game.World.Dmscore.blackscore 0
                                                
Game.World.Dmscore.bluescore 0
                                                
Game.World.Dmscore.redscore 0
                                                
Chaar.dmblue 0
                                                
Chaar.dmjoin 0
                                                
Chaar.dmred 0
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.TopWarrior); 
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.WeeklyPKChampion); 
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.WeeklyPKChampion); 
                                                if (
Chaar.dmblack == 1
                                                { 
                                                    
Chaar.dmblack 0
                                                    
Chaar.CPs += 10000
                                                    
Game.World.SendMsgToAll("Server""Congration! black team win DeathMatch ,all members win 10.000CPs"20110); 

                                                } 
                                            } 
                                        } 
                                        return; 
                                    } 
                                    else 
                                    { 
                                        foreach (
DictionaryEntry DE in Game.World.H_Chars
                                        { 
                                            
Game.Character Chaar = (Game.Character)DE.Value
                                            if (
Chaar.Loc.Map == 1090
                                            { 
                                                
Chaar.Teleport(1002390323); 
                                                
Game.World.DeathMatch.teamblack 0
                                                
Game.World.DeathMatch.teamblue 0
                                                
Game.World.DeathMatch.teamred 0
                                                
Game.World.Dmscore.blackscore 0
                                                
Game.World.Dmscore.bluescore 0
                                                
Game.World.Dmscore.redscore 0
                                                
Chaar.dmblack 0
                                                
Chaar.dmblue 0
                                                
Chaar.dmjoin 0
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.TopWarrior); 
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.WeeklyPKChampion); 
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.WeeklyPKChampion); 
                                                if (
Chaar.dmred == 1
                                                { 
                                                    
Chaar.dmred 0
                                                    
Chaar.CPs += 10000
                                                    
Game.World.SendMsgToAll("Server""Congration! red team win DeathMatch ,all members win 10.000CPs"20110); 

                                                } 
                                            } 
                                        } 
                                        return; 

                                    } 
                                } 
                                else if (
Game.World.Dmscore.blackscore Game.World.Dmscore.bluescore
                                { 
                                    if (
Game.World.Dmscore.bluescore Game.World.Dmscore.redscore
                                    { 
                                        foreach (
DictionaryEntry DE in Game.World.H_Chars
                                        { 
                                            
Game.Character Chaar = (Game.Character)DE.Value
                                            if (
Chaar.Loc.Map == 1090
                                            { 
                                                
Chaar.Teleport(1002390323); 
                                                
Game.World.DeathMatch.teamblack 0
                                                
Game.World.DeathMatch.teamblue 0
                                                
Game.World.DeathMatch.teamred 0
                                                
Game.World.Dmscore.blackscore 0
                                                
Game.World.Dmscore.bluescore 0
                                                
Game.World.Dmscore.redscore 0
                                                
Chaar.dmblack 0
                                                
Chaar.dmjoin 0
                                                
Chaar.dmred 0
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.TopWarrior); 
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.WeeklyPKChampion); 
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.WeeklyPKChampion); 
                                                if (
Chaar.dmblue == 1
                                                { 
                                                    
Chaar.dmblue 0
                                                    
Chaar.CPs += 10000
                                                    
Game.World.SendMsgToAll("Server""Congration! blue team win DeathMatch ,all members win 10.000CPs"20110); 

                                                } 
                                            } 
                                        } return; 
                                    } 
                                    else 
                                    { 

                                        foreach (
DictionaryEntry DE in Game.World.H_Chars
                                        { 
                                            
Game.Character Chaar = (Game.Character)DE.Value
                                            if (
Chaar.Loc.Map == 1090
                                            { 
                                                
Chaar.Teleport(1002390323); 
                                                
Game.World.DeathMatch.teamblack 0
                                                
Game.World.DeathMatch.teamblue 0
                                                
Game.World.DeathMatch.teamred 0
                                                
Game.World.Dmscore.blackscore 0
                                                
Game.World.Dmscore.bluescore 0
                                                
Game.World.Dmscore.redscore 0
                                                
Chaar.dmblack 0
                                                
Chaar.dmblue 0
                                                
Chaar.dmjoin 0
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.TopWarrior); 
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.WeeklyPKChampion); 
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.WeeklyPKChampion); 
                                                if (
Chaar.dmred == 1
                                                { 
                                                    
Chaar.dmred 0
                                                    
Chaar.CPs += 10000
                                                    
Game.World.SendMsgToAll("Server""Congration! red team win DeathMatch ,all members win 10.000CPs"20110); 

                                                } 
                                            } 
                                        } 
                                        return; 
                                    } 


                                } 
                                else if (
Game.World.Dmscore.blackscore Game.World.Dmscore.redscore
                                { 
                                    if (
Game.World.Dmscore.blackscore Game.World.Dmscore.bluescore
                                    { 
                                        foreach (
DictionaryEntry DE in Game.World.H_Chars
                                        { 
                                            
Game.Character Chaar = (Game.Character)DE.Value
                                            if (
Chaar.Loc.Map == 1090
                                            { 
                                                
Chaar.Teleport(1002390323); 
                                                
Game.World.DeathMatch.teamblack 0
                                                
Game.World.DeathMatch.teamblue 0
                                                
Game.World.DeathMatch.teamred 0
                                                
Game.World.Dmscore.blackscore 0
                                                
Game.World.Dmscore.bluescore 0
                                                
Game.World.Dmscore.redscore 0
                                                
Chaar.dmblue 0
                                                
Chaar.dmjoin 0
                                                
Chaar.dmred 0
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.TopWarrior); 
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.WeeklyPKChampion); 
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.WeeklyPKChampion); 
                                                if (
Chaar.dmblack == 1
                                                { 
                                                    
Chaar.dmblack 0
                                                    
Chaar.CPs += 10000
                                                    
Game.World.SendMsgToAll("Server""Congration! black team win DeathMatch ,all members win 10.000CPs"20110); 

                                                } 
                                            } 
                                        } 
                                        return; 
                                    } 
                                    else 
                                    { 
                                        foreach (
DictionaryEntry DE in Game.World.H_Chars
                                        { 
                                            
Game.Character Chaar = (Game.Character)DE.Value
                                            if (
Chaar.Loc.Map == 1090
                                            { 
                                                
Chaar.Teleport(1002390323); 
                                                
Game.World.DeathMatch.teamblack 0
                                                
Game.World.DeathMatch.teamblue 0
                                                
Game.World.DeathMatch.teamred 0
                                                
Game.World.Dmscore.blackscore 0
                                                
Game.World.Dmscore.bluescore 0
                                                
Game.World.Dmscore.redscore 0
                                                
Chaar.dmblack 0
                                                
Chaar.dmjoin 0
                                                
Chaar.dmred 0
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.TopWarrior); 
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.WeeklyPKChampion); 
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.WeeklyPKChampion); 
                                                if (
Chaar.dmblue == 1
                                                { 
                                                    
Chaar.dmblue 0
                                                    
Chaar.CPs += 10000
                                                    
Game.World.SendMsgToAll("Server""Congration! blue team win DeathMatch ,all members win 10.000CPs"20110); 

                                                } 
                                            } 
                                        } 
                                        return; 
                                    } 
                                } 
                                else if (
Game.World.Dmscore.blackscore Game.World.Dmscore.redscore
                                { 
                                    if (
Game.World.Dmscore.redscore Game.World.Dmscore.blackscore
                                    { 
                                        foreach (
DictionaryEntry DE in Game.World.H_Chars
                                        { 
                                            
Game.Character Chaar = (Game.Character)DE.Value
                                            if (
Chaar.Loc.Map == 1090
                                            { 
                                                
Chaar.Teleport(1002390323); 
                                                
Game.World.DeathMatch.teamblack 0
                                                
Game.World.DeathMatch.teamblue 0
                                                
Game.World.DeathMatch.teamred 0
                                                
Game.World.Dmscore.blackscore 0
                                                
Game.World.Dmscore.bluescore 0
                                                
Game.World.Dmscore.redscore 0
                                                
Chaar.dmblack 0
                                                
Chaar.dmblue 0
                                                
Chaar.dmjoin 0
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.TopWarrior); 
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.WeeklyPKChampion); 
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.WeeklyPKChampion); 
                                                if (
Chaar.dmred == 1
                                                { 
                                                    
Chaar.dmred 0
                                                    
Chaar.CPs += 10000
                                                    
Game.World.SendMsgToAll("Server""Congration! red team win DeathMatch ,all members win 10.000CPs"20110); 

                                                } 
                                            } 
                                        } 
                                        return; 
                                    } 
                                    else 
                                    { 
                                        foreach (
DictionaryEntry DE in Game.World.H_Chars
                                        { 
                                            
Game.Character Chaar = (Game.Character)DE.Value
                                            if (
Chaar.Loc.Map == 1090
                                            { 
                                                
Chaar.Teleport(1002390323); 
                                                
Game.World.DeathMatch.teamblack 0
                                                
Game.World.DeathMatch.teamblue 0
                                                
Game.World.DeathMatch.teamred 0
                                                
Game.World.Dmscore.blackscore 0
                                                
Game.World.Dmscore.bluescore 0
                                                
Game.World.Dmscore.redscore 0
                                                
Chaar.dmblue 0
                                                
Chaar.dmjoin 0
                                                
Chaar.dmred 0
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.TopWarrior); 
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.WeeklyPKChampion); 
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.WeeklyPKChampion); 
                                                if (
Chaar.dmblack == 1
                                                { 
                                                    
Chaar.dmblack 0
                                                    
Chaar.CPs += 10000
                                                    
Game.World.SendMsgToAll("Server""Congration! black team win DeathMatch ,all members win 10.000CPs"20110); 

                                                } 
                                            } 
                                        } 
                                        return; 
                                    } 
                                } 
                                else if (
Game.World.Dmscore.bluescore Game.World.Dmscore.redscore
                                { 
                                    if (
Game.World.Dmscore.bluescore Game.World.Dmscore.blackscore
                                    { 
                                        foreach (
DictionaryEntry DE in Game.World.H_Chars
                                        { 
                                            
Game.Character Chaar = (Game.Character)DE.Value
                                            if (
Chaar.Loc.Map == 1090
                                            { 
                                                
Chaar.Teleport(1002390323); 
                                                
Game.World.DeathMatch.teamblack 0
                                                
Game.World.DeathMatch.teamblue 0
                                                
Game.World.DeathMatch.teamred 0
                                                
Game.World.Dmscore.blackscore 0
                                                
Game.World.Dmscore.bluescore 0
                                                
Game.World.Dmscore.redscore 0
                                                
Chaar.dmblack 0
                                                
Chaar.dmjoin 0
                                                
Chaar.dmred 0
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.TopWarrior); 
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.WeeklyPKChampion); 
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.WeeklyPKChampion); 
                                                if (
Chaar.dmblue == 1
                                                { 
                                                    
Chaar.dmblue 0
                                                    
Chaar.CPs += 10000
                                                    
Game.World.SendMsgToAll("Server""Congration! blue team win DeathMatch ,all members win 10.000CPs"20110); 

                                                } 
                                            } 
                                        } 
                                        return; 
                                    } 
                                    else 
                                    { 

                                        foreach (
DictionaryEntry DE in Game.World.H_Chars
                                        { 
                                            
Game.Character Chaar = (Game.Character)DE.Value
                                            if (
Chaar.Loc.Map == 1090
                                            { 
                                                
Chaar.Teleport(1002390323); 
                                                
Game.World.DeathMatch.teamblack 0
                                                
Game.World.DeathMatch.teamblue 0
                                                
Game.World.DeathMatch.teamred 0
                                                
Game.World.Dmscore.blackscore 0
                                                
Game.World.Dmscore.bluescore 0
                                                
Game.World.Dmscore.redscore 0
                                                
Chaar.dmblue 0
                                                
Chaar.dmjoin 0
                                                
Chaar.dmred 0
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.TopWarrior); 
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.WeeklyPKChampion); 
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.WeeklyPKChampion); 
                                                if (
Chaar.dmblack == 1
                                                { 
                                                    
Chaar.dmblack 0
                                                    
Chaar.CPs += 10000
                                                    
Game.World.SendMsgToAll("Server""Congration! black team win DeathMatch ,all members win 10.000CPs"20110); 

                                                } 
                                            } 
                                        } 
                                        return; 
                                    } 
                                } 
                                else if (
Game.World.Dmscore.bluescore Game.World.Dmscore.redscore
                                { 
                                    if (
Game.World.Dmscore.redscore Game.World.Dmscore.blackscore
                                    { 
                                        foreach (
DictionaryEntry DE in Game.World.H_Chars
                                        { 
                                            
Game.Character Chaar = (Game.Character)DE.Value
                                            if (
Chaar.Loc.Map == 1090
                                            { 
                                                
Chaar.Teleport(1002390323); 
                                                
Game.World.DeathMatch.teamblack 0
                                                
Game.World.DeathMatch.teamblue 0
                                                
Game.World.DeathMatch.teamred 0
                                                
Game.World.Dmscore.blackscore 0
                                                
Game.World.Dmscore.bluescore 0
                                                
Game.World.Dmscore.redscore 0
                                                
Chaar.dmblack 0
                                                
Chaar.dmblue 0
                                                
Chaar.dmjoin 0
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.TopWarrior); 
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.WeeklyPKChampion); 
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.WeeklyPKChampion); 
                                                if (
Chaar.dmred == 1
                                                { 
                                                    
Chaar.dmred 0
                                                    
Chaar.CPs += 10000
                                                    
Game.World.SendMsgToAll("Server""Congration! red team win DeathMatch ,all members win 10.000CPs"20110); 

                                                } 
                                            } 
                                        } 
                                        return; 
                                    } 
                                    else 
                                    { 
                                        foreach (
DictionaryEntry DE in Game.World.H_Chars
                                        { 
                                            
Game.Character Chaar = (Game.Character)DE.Value
                                            if (
Chaar.Loc.Map == 1090
                                            { 
                                                
Chaar.Teleport(1002390323); 
                                                
Game.World.DeathMatch.teamblack 0
                                                
Game.World.DeathMatch.teamblue 0
                                                
Game.World.DeathMatch.teamred 0
                                                
Game.World.Dmscore.blackscore 0
                                                
Game.World.Dmscore.bluescore 0
                                                
Game.World.Dmscore.redscore 0
                                                
Chaar.dmblue 0
                                                
Chaar.dmjoin 0
                                                
Chaar.dmred 0
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.TopWarrior); 
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.WeeklyPKChampion); 
                                                
Chaar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.WeeklyPKChampion); 
                                                if (
Chaar.dmblack == 1
                                                { 
                                                    
Chaar.dmblack 0
                                                    
Chaar.CPs += 10000
                                                    
Game.World.SendMsgToAll("Server""Congration! black team win DeathMatch ,all members win 10.000CPs"20110); 

                                                } 
                                            } 
                                        } 
                                        return; 
                                    } 

                                } 
                                
#endregion 
                            

                            )).
Start(); 
                        } 
In Character.cs Search for #region Teleport Scrolls And replace it with
PHP Code:
                    #region Teleport Scrolls 
                    
case 1060020
                        { 
                            if (
Loc.Map != 6000 && Loc.Map != 6001 && Loc.Map != 1090
                            { 
                                
Teleport(1002429378); 
                                
RemoveItem(I); 
                            } 
                            else 
                                
MyClient.LocalMessage(2005"Cannot use teleport scrolls in jail."); 
                            break; 
                        } 
                    case 
1060021
                        { 
                            if (
Loc.Map != 6000 && Loc.Map != 6001 && Loc.Map != 1090
                            { 
                                
Teleport(1000500650); 
                                
RemoveItem(I); 
                            } 
                            else 
                                
MyClient.LocalMessage(2005"Cannot use teleport scrolls in jail."); 
                            break; 
                        } 
                    case 
1060022
                        { 
                            if (
Loc.Map != 6000 && Loc.Map != 6001 && Loc.Map != 1090
                            { 
                                
Teleport(1020565562); 
                                
RemoveItem(I); 
                            } 
                            else 
                                
MyClient.LocalMessage(2005"Cannot use teleport scrolls in jail."); 
                            break; 
                        } 
                    case 
1060023
                        { 
                            if (
Loc.Map != 6000 && Loc.Map != 6001 && Loc.Map != 1090
                            { 
                                
Teleport(1011188264); 
                                
RemoveItem(I); 
                            } 
                            else 
                                
MyClient.LocalMessage(2005"Cannot use teleport scrolls in jail."); 
                            break; 
                        } 
                    case 
1060024
                        { 
                            if (
Loc.Map != 6000 && Loc.Map != 6001 && Loc.Map != 1090
                            { 
                                
Teleport(1015717571); 
                                
RemoveItem(I); 
                            } 
                            else 
                                
MyClient.LocalMessage(2005"Cannot use teleport scrolls in jail."); 
                            break; 
                        } 
                    
#endregion 
Next find
PHP Code:
                    InitAngry(true); 
                    
Attacker.AtkMem.Attacking false
                    
Attacker.AtkMem.Target 0
                    
AtkMem.Attacking false
                    
AtkMem.Target 0
Replace it with
PHP Code:
InitAngry(true); 
                    
Attacker.AtkMem.Attacking false
                    
Attacker.AtkMem.Target 0
                    
AtkMem.Attacking false
                    
AtkMem.Target 0

                    if (
Loc.Map == 1090
                    { 
                        if(
Attacker.dmblack == 1){ World.Dmscore.blackscore += 1;} 
                        else if (
Attacker.dmblue == 1){World.Dmscore.bluescore += 1;} 
                        else if (
Attacker.dmred == 1) {World.Dmscore.redscore += 1;} 
                        
Attacker.CPs += 5;//on kill                         
                    

In World.cs Search for
Code:
public static ArrayList FreePKMaps = new ArrayList()
where you add and (ushort)1090,

go to PacketHandler.cs find for
Code:
  if (!GC.DoneLoading) 
{
Below add
PHP Code:
                                               if (GC.MyChar.Loc.Map == 1090
                                                { 
                                                    
GC.MyChar.Teleport(1002429378); 
                                                } 
Now last In Program.cs Add in this
PHP Code:
            try 
            { 
                if (
DateTime.Now Features.DMScore.LastScores.AddSeconds(1)) 
                    
Features.DMScore.SendScores(); 
            } 
            catch { } 



-Shunsui- is offline  
Thanks
12 Users
Old 03/01/2010, 22:27   #2
 
elite*gold: 0
Join Date: Feb 2010
Posts: 492
Received Thanks: 222
THANK YOU!


Paralyzer[GM] is offline  
Old 03/01/2010, 22:28   #3
 
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 205
It don't work because you can't pk on the map it teleports you to.
Decker_ is offline  
Old 03/01/2010, 22:29   #4
 
elite*gold: 0
Join Date: Feb 2010
Posts: 129
Received Thanks: 30
Quote:
Originally Posted by Decker_ View Post
It don't work because you can't pk on the map it teleports you to.
Change the map..


Øblivion is offline  
Old 03/01/2010, 22:30   #5
 
elite*gold: 0
Join Date: Feb 2010
Posts: 492
Received Thanks: 222
bump -- HAD TO BE SEAN!

Then change the map to i dono 1037

what forums did you get this off ?
Paralyzer[GM] is offline  
Old 03/01/2010, 23:03   #6
 
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 205
dude, wtf, don't triple post.
Decker_ is offline  
Old 03/01/2010, 23:03   #7
 
elite*gold: 0
Join Date: Nov 2009
Posts: 322
Received Thanks: 63
This is a pretty amazing release o-O
xScott is offline  
Old 03/01/2010, 23:11   #8
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,293
Received Thanks: 919
Reported for triple posting
Kiyono is offline  
Old 03/01/2010, 23:17   #9
 
elite*gold: 0
Join Date: Feb 2010
Posts: 492
Received Thanks: 222
my net is 8kb p/s thats downloading conquer client in over 24 hours! so too hard to click edit then just it
Paralyzer[GM] is offline  
Old 03/01/2010, 23:28   #10
 
elite*gold: 0
Join Date: Jan 2009
Posts: 40
Received Thanks: 0
Good job ! I will test it tomorrow
~quablerist~ is offline  
Old 03/01/2010, 23:35   #11
 
elite*gold: 0
Join Date: Dec 2007
Posts: 378
Received Thanks: 163
Quote:
Originally Posted by Paralyzer[GM] View Post
my net is 8kb p/s thats downloading conquer client in over 24 hours! so too hard to click edit then just it
Dude then get better internet, that's SERIOUSLY too slow, idc if you live in egypt, get better net.
walmartboi is offline  
Old 03/02/2010, 02:21   #12
 
elite*gold: 0
Join Date: Jun 2009
Posts: 378
Received Thanks: 139
Instead of doing each Case individual where each case does the same just do this

case 1:
case 2:
case 3:
{
Code here
}
It will do the same thing for all cases this will optimize your code and take up less room. Good job tho.
ImFlamedCOD is offline  
Old 03/02/2010, 02:23   #13
 
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 205
JOSE YOU LEECHER!!!
lol joking bro, the real creator of this told me he/she said you could release this.
Good job, your pro
Decker_ is offline  
Old 03/02/2010, 03:37   #14
 
elite*gold: 0
Join Date: Feb 2010
Posts: 80
Received Thanks: 29
PHP Code:
            try 
            { 
                if (
DateTime.Now Features.DMScore.LastScores.AddSeconds(1)) 
                    
Features.DMScore.SendScores(); 
            } 
            catch { } 
Where exactly should i paste this code in program.cs?
xSynthesis is offline  
Old 03/02/2010, 03:47   #15
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 320
Quote:
Originally Posted by xSynthesis View Post
PHP Code:
            try 
            { 
                if (
DateTime.Now Features.DMScore.LastScores.AddSeconds(1)) 
                    
Features.DMScore.SendScores(); 
            } 
            catch { } 
Where exactly should i paste this code in program.cs?
Go to Program.cs Search For
Code:
Global.Elapsed += delegate
Add it below that


-Shunsui- is offline  
Thanks
2 Users
Reply



« [Small release]Player limit | [Release] Xml Npcs »



All times are GMT +2. The time now is 07:28.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.