Register for your free account! | Forgot your password?

You last visited: Today at 02:39

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

Advertisement



[Release] DeathMatch Game!

Discussion on [Release] DeathMatch Game! within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Closed Thread
 
Old   #1
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
[Release] DeathMatch Game!

Hello fellows. I just got an idea from Counter-Strike,and figured I'd code it.

Quote:
What does it do?
It revives you 4 seconds after you died in the DeathMatch-map.
Quote:
Is cheapshot allowed?
No. Its coded so you gain 10 PKPs if you kill people who has not moved since they revived.( Not timers >.> )
Quote:
Can I enter with above 30 PKP's, and what happens if I gain over 30 PKPs in there?
No,you cannot enter with above 30 PKP. If you cheapshot until you get 30 PKPs,you will be sent out right away.

Quote:
Which kind of map is it??
Its an ´copy´ of TwinCity, look like TC but no npcs / monsters plus smaller.
Quote:
Do I gain anything?
No, not exactly. You might try your fastblade/scentsword skills in here,else - no.






Okay, here's the codes :

Find:

Quote:
if (!Other.CanPK(LocMap))
if (!PTarget.BlueName)
if (PTarget.PKPoints < 100)
Under it , add:

Quote:
if (PTarget.LocMap == 1505 && PTarget.LocX == 131 && PTarget.LocY == 209)


Find:

Quote:
if (!Other.CanPK(User.LocMap))
if (!Player.BlueName)
if (Player.PKPoints < 100)

Under it , add:


Quote:
if (Player.LocMap == 1505 && Player.LocX == 131 && Player.LocY == 209)




Find the CHAT:
Search for:

Quote:
if (CurrentNPC == 21 ||

Above it , add:

Quote:
if (CurrentNPC == 1337)
{
SendPacket(General.MyPackets.NPCSay("Hi there! Would you like to enter the DeathMatch area?"));
SendPacket(General.MyPackets.NPCSay(" I will only let you in if you got PKPoints below 30,for security reasons."));
SendPacket(General.MyPackets.NPCSay(" No one is the winner,neither the looser. You fight and fight and if you die, you will be revived short after"));
SendPacket(General.MyPackets.NPCSay(" You are protected at your spawning location, so if you die there, the killer will gain 10 PKPoints."));
SendPacket(General.MyPackets.NPCSay(" You do also gain 10 PKP if you kill at the protected area,so be careful! Still intresed?"));
SendPacket(General.MyPackets.NPCLink("Hell yeah, seems good!", 1));
SendPacket(General.MyPackets.NPCLink("Just passing by.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}




Find the CODE:
Search for:

Quote:
if (CurrentNPC == 103)

Above it , add:


Quote:
if (CurrentNPC == 1337)
{
if (Control == 1)
{
if (MyChar.PKPoints <= 30)
{
MyChar.Teleport(1505, 131, 209);
MyChar.Action = 250;
}
MyChar.Ready = true;
}
}


Search for:

Quote:
public void TimerElapsed(object source, ElapsedEventArgs e)
{

Under that bracklet, add:

Quote:
foreach (DictionaryEntry DE in World.AllChars)
{
Character Charr = (Character)DE.Value;
if (Charr.LocMap == 1505)
{
if (Charr.PKPoints >= 30)
{
Charr.Teleport(1002, 438, 377);
}
}
}




foreach (DictionaryEntry DE in World.AllChars)
{
Character Charr = (Character)DE.Value;



if (Charr.LocMap == 1505)
{
if (DateTime.Now > Charr.Death.AddSeconds(2))
{
if (!Charr.Alive)
{
Charr.Revive(true);
World.SpawnMeToOthers(Charr, true);
World.SpawnOthersToMe(Charr, true);
World.UpdateSpawn(Charr);
Charr.MyClient.SendPacket(General.MyPackets.Vital( UID, 26, Charr.GetStat()));
Charr.MyClient.SendPacket(General.MyPackets.SendMs g(Charr.MyClient.MessageId, "DEATHMATCH", Name, "You got revived by deathmatch system!", 2005));
System.Threading.Thread.Sleep(100);
}
}
}
}






Now,add a NPC in your database to enter to this map. Remember to use the ID 1337


If you want,add a NPC to get out of there,im to lazy to do that, =]



Think thats it , probably missed something but what tha hell,enjoy

Emme
_Emme_ is offline  
Thanks
16 Users
Old 11/04/2008, 22:59   #2

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 924
NICE ^^
Kiyono is offline  
Old 11/04/2008, 23:01   #3
 
Calabaza1's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 39
Received Thanks: 0
Very Kewl nice for non stop pking =]
Calabaza1 is offline  
Old 11/05/2008, 00:05   #4
 
lolex's Avatar
 
elite*gold: 0
Join Date: May 2007
Posts: 46
Received Thanks: 0
cool!!! thanks
lolex is offline  
Old 11/05/2008, 12:01   #5
 
Exia13's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 256
Received Thanks: 21
Great release. This should help a lot of people who have trouble FBing and SSing. Great practice.
Exia13 is offline  
Old 11/05/2008, 13:12   #6
 
~jochemke~'s Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 259
Received Thanks: 64
nice releases emme
its usefull for many things
i think i gonna use this as a pk event
can be fun already made a command to start and end it
~jochemke~ is offline  
Old 11/05/2008, 15:54   #7
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
Glad for your support! Anyone else got any idea which might improve the gameplay? Thanks
_Emme_ is offline  
Old 11/05/2008, 19:01   #8
 
~jochemke~'s Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 259
Received Thanks: 64
well if u wanna know i'm still waiting till u release ur vip maps cause i tried but i'm not that good yet


ps: i'm making my own quest kinda lotto quest
~jochemke~ is offline  
Old 11/05/2008, 20:18   #9


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 793
VIP maps? What can`t you code on that? simply make some custom maps and make the NPC in such way that it only teleports VIPs.

About this, I`m happy to see that you are improving the gameplay :P Keep it up!
KraHen is offline  
Old 11/05/2008, 20:22   #10
 
~jochemke~'s Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 259
Received Thanks: 64
well i will try it i'm trying to let a npc teleports u to a different map but that isn't the problem i got problems with how to make a player a vip and the custom map
thats why i'm waiting for it so i can see how its made
~jochemke~ is offline  
Old 11/05/2008, 20:24   #11


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 793
About the custom map if I`m right it`s posted somewhere around. The VIP membership - take the GM flag as reference, good luck with it^^
KraHen is offline  
Old 11/05/2008, 20:26   #12
 
~jochemke~'s Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 259
Received Thanks: 64
so i can make it like if the status is 7 and give him acces to some commands ?
~jochemke~ is offline  
Old 11/05/2008, 20:26   #13


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 793
Yep.
KraHen is offline  
Old 01/25/2009, 06:11   #14
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
here is the npc codes for the leave

Quote:
if (CurrentNPC == 1338)//DeathMatchLeave
{
SendPacket(General.MyPackets.NPCSay("Want to leave the deathmatch?"));
SendPacket(General.MyPackets.NPCLink("Yes", 1));
SendPacket(General.MyPackets.NPCLink("No", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
Quote:
if (CurrentNPC == 1338)//DeathMatchLeave
{
if (Control == 1)
{
MyChar.Teleport(1002, 431, 379);
}
}
add the NPC with UID = 1338 into your mysql or w.e urself =] hope it helped
PeTe Ninja is offline  
Old 01/25/2009, 07:11   #15
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,882
I'm cranky and its 1am; but I'll say it again.

Why the **** do people waste their time adding unnecessary, uncalled for, excessive, garbage to LOTF when your time could be spent fixing all the ******* problems with it?

Just my two cents.
InfamousNoone is offline  
Closed Thread


Similar Threads Similar Threads
Team Deathmatch map change?
03/01/2010 - CO2 Private Server - 11 Replies
How can I change the map of team deathmatch? I want to change it to the pk arena. Can someone do it for me? Here are the codes: NPCDialog.cs: #region Dm case 8000: { if (Control == 0)
Deathmatch Classic
12/09/2009 - Metin2 - 6 Replies
ja ich weiß es gehört hier nicht rein und ich kassier ne infra meine frage da das im moment die meißte besuchte section ist wollte ich euch fragen manche zocken doch betimmt von euch steam games und da gibts dieses game namens deathmatch classic und ich wollte fragen es gibt ja diesen hpb_bot dazu weiß einer vll wie ich den einfüge bitte ihr seid meine letzte hilfe :D
Deathmatch Classic
12/08/2009 - General Gaming Discussion - 0 Replies
hi comm... German.. hi ich suche nach bots für das steam spiel deathmatch classic nur finde ich keine und wollte euch fragen wenn einer welche hat kann er mir dann auch bitte sagen wie ich die einfüge und aktiviere



All times are GMT +2. The time now is 02:39.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.