Register for your free account! | Forgot your password?

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

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

Advertisement



i need help here pliz in this condition

Discussion on i need help here pliz in this condition within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
thesamuraivega's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 125
Received Thanks: 21
i need help here pliz in this condition

Hi i need help here pliz

Code:
public static void cathdie(Network.GamePackets.Data generalData)
        {
            if (DateTime.Now.Second == 1 && signup == true)
            {
                Client.GameState[] Clients = Conquer_Online_Server.ServerBase.Kernel.GamePool.Values.ToArray();
                foreach (Client.GameState client in Clients)
                {
                    if (client.Entity.MapID == 10001 && client.Entity.Dead)
                    {
                        client.Entity.Action = Conquer_Online_Server.Game.Enums.ConquerAction.None;
                        client.ReviveStamp = Time32.Now;
                        client.Attackable = false;
                        client.Entity.TransformationID = 0;
                        client.Entity.RemoveFlag(Network.GamePackets.Update.Flags.Dead);
                        client.Entity.RemoveFlag(Network.GamePackets.Update.Flags.Ghost);
                        client.Entity.Hitpoints = client.Entity.MaxHitpoints;
                    }
                }
            }
        }
no work the condition pliz help! :S
i need auto revive players in x map
i have this code in my system killtheterrorist.cs i need put this in other .cs?
ty
thesamuraivega is offline  
Old 11/01/2011, 05:16   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
are you actually running this method from anywhere? It seems kinda odd coding to me but that's just my own personal preference...


Personally I'd use some sort of delayed action system to say if user.Map.ContainsEffect(MapEffects.AutoRevive) user.DelayedActions.Add(ActionType.Revive, 10000);

Something like that but of course you'd need to write in the map effects system as well as the delayed actions system... a timer would work but I try to avoid using lots of them just as a rule.


You're issue is probably just you never actually calling this method.

Breakpoint it and you'll see if it's actually running this code ever. You could also just right click the method name and do 'find all references' to see where you're calling it from.
pro4never is offline  
Thanks
1 User
Old 11/01/2011, 06:03   #3
 
thesamuraivega's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 125
Received Thanks: 21
Quote:
Originally Posted by pro4never View Post
are you actually running this method from anywhere? It seems kinda odd coding to me but that's just my own personal preference...


Personally I'd use some sort of delayed action system to say if user.Map.ContainsEffect(MapEffects.AutoRevive) user.DelayedActions.Add(ActionType.Revive, 10000);

Something like that but of course you'd need to write in the map effects system as well as the delayed actions system... a timer would work but I try to avoid using lots of them just as a rule.


You're issue is probably just you never actually calling this method.

Breakpoint it and you'll see if it's actually running this code ever. You could also just right click the method name and do 'find all references' to see where you're calling it from.
or you know how i can revive in x map and no in twincity?
ty men
thesamuraivega is offline  
Old 11/01/2011, 07:37   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Quote:
Originally Posted by thesamuraivega View Post
or you know how i can revive in x map and no in twincity?
ty men
I can guarentee your source has some sort of teleport method (look at scrolls or npcs which do it) and simply use that to send them to w/e map and coords you want rofl.
pro4never is offline  
Reply


Similar Threads Similar Threads
eS4League Problem Pliz pliz Help me
06/26/2011 - S4 League - 3 Replies
i have a prob' in my game i can't open it i installed it twice and update it but when i run it the x trap is disappeard and the game didn't open ..... my ram:512 thank's waiting for replay .................
pliz im need ZSZC download pliz helpppp
03/10/2011 - SRO Private Server - 1 Replies
pliz im need ZSZC download pliz helpppp :(
[S] CSS [B] Cs 1.6 + CS COndition Zero
02/18/2011 - Steam Trading - 1 Replies
Hallo tauscht jmd nen Counter Strike Source acc gegen Counter Strike 1.6 COunter Strike Cndition Zero würde mich freuen. Am besten über MM. mfg REflex



All times are GMT +1. The time now is 21:01.


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.