|
You last visited: Today at 00:22
Advertisement
How to make PKTourny Death Match and others
Discussion on How to make PKTourny Death Match and others within the CO2 Private Server forum part of the Conquer Online 2 category.
12/10/2009, 10:27
|
#1
|
elite*gold: 0
Join Date: Dec 2009
Posts: 37
Received Thanks: 2
|
what i do to make PK Tournament , i want to know the code off it
__________________________________________________ ______________________________________
Quote:
Love IS My msg
|
but please i need the Code fast to make my Server
__________________________________________________ _______________________________________________
Love is my msg
|
|
|
12/10/2009, 12:02
|
#2
|
elite*gold: 0
Join Date: Sep 2008
Posts: 617
Received Thanks: 38
|
Trai code it
|
|
|
12/10/2009, 18:33
|
#3
|
elite*gold: 0
Join Date: Dec 2009
Posts: 116
Received Thanks: 42
|
Quote:
Originally Posted by D0OM
what i do to make PK Tournament , i want to know the code off it
__________________________________________________ ______________________________________
|
Dont double post
#reported multi accounts
|
|
|
12/11/2009, 01:03
|
#4
|
elite*gold: 0
Join Date: Aug 2009
Posts: 39
Received Thanks: 2
|
i think no one can Code it cus it's not res yet:|
|
|
|
12/11/2009, 01:07
|
#5
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by the.Evil
i think no one can Copy and paste it cus it's not res yet:|
|
^------------Corrected
|
|
|
12/11/2009, 04:48
|
#6
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,377
|
Coding a death match or pk tournament simply requires coding some timers, adding a hashtable and a few other specific functions.
Basically you want a date time check to see if it's the time that the event starts (for testing or for a different version of a pk event you could have it start via a gm command)
You will want a hash table to store players scores who are in the event. create the hashtable then under where pk points are controlled you will want to do a check to see if players are on that map AND part of the pk event, if so you want to increase their score (score based pk event) on the other hand you could use a 1/0 system for your hash table to control if players are still in the round (eg: if player dies their hashtable value is set to 0, if set to 0 they cannot pk on that map but they are still 'part of the event' and as such can claim there rewards or be effected by codes that will remove players from the map or other related functions)
Once you have a working hashtable functioning you will need a timer to system to control how the event is ended.
To do this you will want to do a looped timer that basically checks for certain conditions (someone in hashtable reaches score x [score required to win], time limit is up or only one player is left standing in the event)
You will also need a fot each type loop to get player ids and add them to the initial events.
If you look at the link in my siggy I have some very basic examples of how to do for each loops, hashtables and I think someone posted some information on timers. There is no real copy/paste system for pk tournies or death matches other then those for lotf but the system itself isn't super complicated. just break it down into the steps required for it to work and program them one bit at a time.
Good luck.
|
|
|
12/11/2009, 19:21
|
#7
|
elite*gold: 0
Join Date: Sep 2008
Posts: 259
Received Thanks: 64
|
Quote:
Originally Posted by pro4never
Coding a death match or pk tournament simply requires coding some timers, adding a hashtable and a few other specific functions.
Basically you want a date time check to see if it's the time that the event starts (for testing or for a different version of a pk event you could have it start via a gm command)
You will want a hash table to store players scores who are in the event. create the hashtable then under where pk points are controlled you will want to do a check to see if players are on that map AND part of the pk event, if so you want to increase their score (score based pk event) on the other hand you could use a 1/0 system for your hash table to control if players are still in the round (eg: if player dies their hashtable value is set to 0, if set to 0 they cannot pk on that map but they are still 'part of the event' and as such can claim there rewards or be effected by codes that will remove players from the map or other related functions)
Once you have a working hashtable functioning you will need a timer to system to control how the event is ended.
To do this you will want to do a looped timer that basically checks for certain conditions (someone in hashtable reaches score x [score required to win], time limit is up or only one player is left standing in the event)
You will also need a fot each type loop to get player ids and add them to the initial events.
If you look at the link in my siggy I have some very basic examples of how to do for each loops, hashtables and I think someone posted some information on timers. There is no real copy/paste system for pk tournies or death matches other then those for lotf but the system itself isn't super complicated. just break it down into the steps required for it to work and program them one bit at a time.
Good luck.
|
good and clear answer . This will help me alot , i gonna try coding it . but just wondering is it also possible to start and end it with a command ? i gues so . correct me if i'm wrong
|
|
|
12/15/2009, 22:35
|
#8
|
elite*gold: 0
Join Date: Dec 2009
Posts: 37
Received Thanks: 2
|
hey all
|
|
|
12/15/2009, 22:42
|
#9
|
elite*gold: 0
Join Date: Aug 2009
Posts: 930
Received Thanks: 448
|
Quote:
Originally Posted by D0OM
hey all
|
of course it is.. not many ppl left in the co section could code one, simply because i doubt but only a couple here understand the concept of dynamic maps, unless it's a specific tournament, all vs. all.
|
|
|
12/15/2009, 23:04
|
#10
|
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
|
This is already coded in my source and ye, Its prety confusing
|
|
|
12/16/2009, 01:08
|
#11
|
elite*gold: 0
Join Date: Aug 2009
Posts: 930
Received Thanks: 448
|
yeah dynamic map is simply a submapid.. just gotta know a bit about it. jose msn me.. i wanna ask about your pk tourney.
|
|
|
All times are GMT +2. The time now is 00:22.
|
|