Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 05:23

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

Advertisement



123Tails Source Version 5369 Simple Code - important for me :)

Discussion on 123Tails Source Version 5369 Simple Code - important for me :) within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
abdeen's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
Smile 123Tails Source Version 5369 Simple Code - important for me :)

hey Epvp Members , i am looking for Check how many players alive on the current map , can anybody help me to find it ?

thanks everybody .
abdeen is offline  
Old 06/03/2011, 12:07   #2
 
12tails's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 458
nice my name is 123tails now oO

hmm lol... do something like :

Code:
int alive = 0;
foreach(Entity player in Program.GamePool.Values)
    if(player.Map = Desiredmaphere)
         if(player.Alive)//or if (!player.ContainsFlag(Enums.Flags.Dead))
              alive++;
don't copy e paste.. its an example >D
12tails is offline  
Thanks
1 User
Old 06/03/2011, 12:26   #3

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Well at least he got the tails right.
Kiyono is offline  
Old 06/03/2011, 13:00   #4
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
Quote:
Originally Posted by Kiyono View Post
Well at least he got the tails right.
I was thinking exactly the same.
BaussHacker is offline  
Old 06/03/2011, 13:56   #5
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,225
Received Thanks: 868
This "guy" emailed me asking how o.O why he made a thread just goes to show that unless you give him exactly the right code he can copy+paste into his source he'll keep asking.

The code I gave him to adapt was something like
Code:
foreach(GameClient client in Kernel.GamePool.Values)
{
       if (client.Char.MapID.Id == MapID(desired ID) && (!client.Char.Dead))
       {
                 /*
                  *Execute the code you want to do if there MapID is the correct one
                  *and if the client is Dead.
                 */
       }
}
_DreadNought_ is offline  
Thanks
1 User
Old 06/03/2011, 14:08   #6
 
abdeen's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
Quote:
Originally Posted by 12tails View Post
nice my name is 123tails now oO

hmm lol... do something like :

Code:
int alive = 0;
foreach(Entity player in Program.GamePool.Values)
    if(player.Map = Desiredmaphere)
         if(player.Alive)//or if (!player.ContainsFlag(Enums.Flags.Dead))
              alive++;
don't copy e paste.. its an example >D
lol , sorry for wrong name

but i think this isnt right code , i need code like

PHP Code:
if (map.playerscount 1
i know this is wrong code , but im looking for one like that code .

to check if the alive players == 1players , which is talking to the npc or more than one player , thats all .

thanks 12Tails

i hope you understand my idea .
abdeen is offline  
Old 06/03/2011, 14:20   #7
 
abdeen's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
Quote:
Originally Posted by _DreadNought_ View Post
This "guy" emailed me asking how o.O why he made a thread just goes to show that unless you give him exactly the right code he can copy+paste into his source he'll keep asking.

The code I gave him to adapt was something like
Code:
foreach(GameClient client in Kernel.GamePool.Values)
{
       if (client.Char.MapID.Id == MapID(desired ID) && (!client.Char.Dead))
       {
                 /*
                  *Execute the code you want to do if there MapID is the correct one
                  *and if the client is Dead.
                 */
       }
}

your code didnt worked for me .
abdeen is offline  
Old 06/03/2011, 14:24   #8
 
abdeen's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
the code which i need must be like this

PHP Code:
                    if (client.Entity.currentmap == 1002)
                        if (
client.Entity.Alive && InMapAlive == 1)
                        {
                            
_GC.MyChar.Teleport(1002438382); 
i need code like thats working on 12Tails Source .
abdeen is offline  
Old 06/03/2011, 14:27   #9
 
12tails's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 458
_DreadNought_ <-- give the same example as me... you just need to use the brain to make it work how do you wan't... also no need to TRIPLE POST!
12tails is offline  
Old 06/03/2011, 14:31   #10
 
abdeen's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
Quote:
Originally Posted by 12tails View Post
_DreadNought_ <-- give the same example as me... you just need to use the brain to make it work how do you wan't... also no need to TRIPLE POST!
it dosent work for me , could yuou guide how to make it work ?
and sorry for triple post
abdeen is offline  
Old 06/03/2011, 15:02   #11
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,225
Received Thanks: 868
Because you cant copy and paste, and please quit PM'ing me about your other problems.
_DreadNought_ is offline  
Old 06/03/2011, 15:10   #12
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
Quote:
Originally Posted by _DreadNought_ View Post
Because you cant copy and paste, and please quit PM'ing me about your other problems.
OWNed xD, also you just told him what should he DO DUH!
Mr_PoP is offline  
Old 06/03/2011, 16:43   #13
 
abdeen's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
Quote:
Originally Posted by _DreadNought_ View Post
Because you cant copy and paste, and please quit PM'ing me about your other problems.
i edited it to work fine with my source , but it still give me 1 error .
abdeen is offline  
Old 06/03/2011, 16:44   #14
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,225
Received Thanks: 868
What is the error?
_DreadNought_ is offline  
Old 06/03/2011, 17:06   #15
 
abdeen's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
here is pic of problem



and here is a pic if i edited it

abdeen is offline  
Reply


Similar Threads Similar Threads
Comands for 12talis source (5369)
08/14/2012 - CO2 PServer Guides & Releases - 28 Replies
Here all commands How use? Go to source>Instances>Chat>Commands.cs And read!!!!!!:mad:
Did any one will help us and releases some 5369 source Fixed ??
05/21/2011 - CO2 Private Server - 2 Replies
i hope to found one person to releases some source have fixed things like : - when i got killed by monster, can make reviver " show the button for that " - subclass fixed with npc - that the big problems in 12tilas source in phoenix source .. - just the skills after rebs Tro - Tro - Tro , Monk - Monk - Monl , bla bla - clan system - subclass
Can i ask about this for 5369 source
05/14/2011 - CO2 Private Server - 5 Replies
I have this error I dunno what the cause can you tell me what to do please I have here the image.
Help me source 5369!
05/13/2011 - CO2 Private Server - 5 Replies
In the configuration there is no where to put the name of the database or login and password for app serv help plz:o sorry my bad english



All times are GMT +1. The time now is 05:23.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.