Register for your free account! | Forgot your password?

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

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

Advertisement



[Help] UnMount the steeds

Discussion on [Help] UnMount the steeds within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2009
Posts: 29
Received Thanks: 10
[Help] UnMount the steeds

How could i unmount the steed when i attack to players (pk)? and when i use all skills? because steeds ruining the pvp.

btw source is 5165
.RainBow. is offline  
Old 02/03/2010, 18:56   #2
 
elite*gold: 0
Join Date: Sep 2008
Posts: 178
Received Thanks: 62
In skill.cs search for:

case ExtraEffect.Fly:
{
Buff B = new Buff();
B.Eff = Info.ExtraEff;
B.Lasts = Info.EffectLasts;
B.Value = Info.EffectValue;
B.Started = DateTime.Now;
B.StEff = StatusEffectEn.Fly;
C.AddBuff(B);

}
break;

Just need to add this code:

if (C.StatEff.Contains(StatusEffectEn.Ride))
{
C.StatEff.Remove(StatusEffectEn.Ride);
}

finally code is :

Code:
case ExtraEffect.Fly:
                                {
                                    Buff B = new Buff();
                                    B.Eff = Info.ExtraEff;
                                    B.Lasts = Info.EffectLasts;
                                    B.Value = Info.EffectValue;
                                    B.Started = DateTime.Now;
                                      B.StEff = StatusEffectEn.Fly;
                                    C.AddBuff(B);
                                    if (C.StatEff.Contains(StatusEffectEn.Ride))
                                    {
                                        C.StatEff.Remove(StatusEffectEn.Ride);
                                    }
                                    break;
Edit: You find more skills in the skills.cs >.<'
.Kob is offline  
Old 02/03/2010, 21:57   #3
 
elite*gold: 0
Join Date: Dec 2007
Posts: 1,326
Received Thanks: 539
so this is about skills what about normal attack?
[GM] is offline  
Old 02/03/2010, 22:26   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Quote:
Originally Posted by [GM] View Post
so this is about skills what about normal attack?
obviously add

Code:
if (C.StatEff.Contains(StatusEffectEn.Ride))
                                    {
                                        C.StatEff.Remove(StatusEffectEn.Ride);
                                    }
to the attack code. That's the section of the code actually removing the horse from the little I glanced at it. Go to where your attack code is and on attack do the exact same thing.
pro4never is offline  
Old 02/03/2010, 22:38   #5
 
elite*gold: 0
Join Date: Jun 2009
Posts: 29
Received Thanks: 10
Quote:
Originally Posted by cakobu View Post
In skill.cs search for:

case ExtraEffect.Fly:
{
Buff B = new Buff();
B.Eff = Info.ExtraEff;
B.Lasts = Info.EffectLasts;
B.Value = Info.EffectValue;
B.Started = DateTime.Now;
B.StEff = StatusEffectEn.Fly;
C.AddBuff(B);

}
break;

Just need to add this code:

if (C.StatEff.Contains(StatusEffectEn.Ride))
{
C.StatEff.Remove(StatusEffectEn.Ride);
}

finally code is :

Code:
case ExtraEffect.Fly:
                                {
                                    Buff B = new Buff();
                                    B.Eff = Info.ExtraEff;
                                    B.Lasts = Info.EffectLasts;
                                    B.Value = Info.EffectValue;
                                    B.Started = DateTime.Now;
                                      B.StEff = StatusEffectEn.Fly;
                                    C.AddBuff(B);
                                    if (C.StatEff.Contains(StatusEffectEn.Ride))
                                    {
                                        C.StatEff.Remove(StatusEffectEn.Ride);
                                    }
                                    break;
Edit: You find more skills in the skills.cs >.<'
Ok i did that and now it works good for skills but what about when attacking a player? i meant how do i dismount the steed when attacking a player?
.RainBow. is offline  
Old 02/03/2010, 22:46   #6
 
elite*gold: 0
Join Date: Sep 2008
Posts: 178
Received Thanks: 62
Just put it in Atack.cs :S :S
.Kob is offline  
Old 02/03/2010, 22:52   #7
 
elite*gold: 0
Join Date: Dec 2007
Posts: 1,326
Received Thanks: 539
Quote:
Originally Posted by cakobu View Post
Just put it in Atack.cs :S :S
under Which line ?
[GM] is offline  
Old 02/03/2010, 22:52   #8
 
elite*gold: 0
Join Date: Jun 2009
Posts: 29
Received Thanks: 10
already tried and i get error messages

Quote:
Error 1 The name 'C' does not exist in the current context C:\JusticeCo\Beta\PacketHandling\Attack.cs 69 29 NewestCOServer
Error 2 The name 'StatusEffectEn' does not exist in the current context C:\JusticeCo\Beta\PacketHandling\Attack.cs 69 48 NewestCOServer
Error 3 The name 'C' does not exist in the current context C:\JusticeCo\Beta\PacketHandling\Attack.cs 71 29 NewestCOServer
Error 4 The name 'StatusEffectEn' does not exist in the current context C:\JusticeCo\Beta\PacketHandling\Attack.cs 71 46 NewestCOServer
.RainBow. is offline  
Old 02/04/2010, 01:56   #9
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by .RainBow. View Post
already tried and i get error messages
Must add a reference.
I believe it is
using NewestCOServer.Game;

#EDIT
Here's what I use for the skill ride
Code:
                            case ExtraEffect.Ride:
                                {
                                    if ((C.StatEff.Contains(StatusEffectEn.ShurikenVortex)) || (C.StatEff.Contains(StatusEffectEn.FatalStrike)) || (C.StatEff.Contains(StatusEffectEn.Fly)))
                                    {
                                        C.Stamina -= 0;
                                        return;
                                    }
                                    if (!User.StatEff.Contains(StatusEffectEn.Ride))
                                        User.StatEff.Add(StatusEffectEn.Ride);
                                    else
                                        User.StatEff.Remove(StatusEffectEn.Ride);
                                    User.Vigor = User.MaxVigor;
                                    break;
                                }
Arcо is offline  
Thanks
1 User
Old 02/04/2010, 13:55   #10
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
i have a little problem in vigor -.-

i have a mount +12 but the vigor is 30 :S but horse +12 vigor is 4030
ramix is offline  
Reply


Similar Threads Similar Threads
Hmm... About Steeds?
09/06/2010 - CO2 Private Server - 13 Replies
Why always when i Ride Steed and when i try to unmount it i cant ??? why? And PLEASE dont post stupid answers or questions :rtfm::rtfm::rtfm::rtfm:
NEW WIREFRAME/NO NEED TO UNMOUNT W/ COLORS
09/06/2009 - Soldier Front Philippines - 50 Replies
:p:)This is the THAILAND Wireframe but this is working in PSF i dont know how to post the screenshot and how to scan for virus ?But TRUST me there is NO VIRUS AND ITS REALLY WORKING? INSRUCTION:Mount MON_22ISO theN OPEN 4THlockedload then log-in YOUR SF account then start the SF(no need to UNMOUNT) Q=WIREFRAME F1=SMALL CROSSHAIR F2=SEMI-SMALL X-HAIR F3=BIG X-HAIR F4=DOT X-HAIR F5=COLOR OF YOUR CHAR. AND THINS IN THE MAP
RIGHT TIME WHEN TO UNMOUNT THE ISO
08/11/2009 - Soldier Front - 5 Replies
WHEN THE GAMEGUARD LOGO APPEARS AT THE TASK MANAGER BESIDE THE CLOCK UNMOUNT IT..101% SURE WORKING TECHNIQ,FUKK ALL THE ONES NOT SAYING THE RIGHT TIMING AND MAKING U EXPERIMENT LIKE SHIITT>>



All times are GMT +2. The time now is 18:01.


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.