Register for your free account! | Forgot your password?

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

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

Advertisement



Boss immune to superman

Discussion on Boss immune to superman within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
zakkwilde_17's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 137
Received Thanks: 4
Question Boss immune to superman

Hi guys, i'm here just to request one help...

i'm working on a 5525 source and need to learn how to do a Boss immune to Superman skill. Warriors can kill a boss so easy =(

some one know how to make a Boss immune to superman?

thanks guys.
zakkwilde_17 is offline  
Old 05/19/2012, 07:08   #2
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
Quote:
Originally Posted by zakkwilde_17 View Post
some one know how to make a Boss immune to superman?
kryptonite?
Spirited is offline  
Thanks
6 Users
Old 05/19/2012, 09:14   #3
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Go to where you calculate damage. Inside the calculation, go where superman bonus damage is calculated and say something like.

if(!Target.IsBoss)
Damage *= 9.9;

Simple stuff, just need to check conditions and react accordingly.
pro4never is offline  
Thanks
1 User
Old 05/19/2012, 17:51   #4
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
What About the Immunity Blue Word Under Boss Name how can i Make This Work ?
shadowman123 is offline  
Old 05/19/2012, 18:15   #5
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
Quote:
Originally Posted by shadowman123 View Post
What About the Immunity Blue Word Under Boss Name how can i Make This Work ?
It's probably an attack packet (1022) subtype. Just make a command that tests subtypes. You'll find it eventually. There aren't that many.
Spirited is offline  
Old 05/19/2012, 18:57   #6
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Quote:
Originally Posted by Fаng View Post
It's probably an attack packet (1022) subtype. Just make a command that tests subtypes. You'll find it eventually. There aren't that many.
i Already did that b4 and all i could get is Absorb Damage beside some Types ...ill Do packet sniffer And check how it works
shadowman123 is offline  
Old 05/20/2012, 02:03   #7
 
zakkwilde_17's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 137
Received Thanks: 4
Quote:
Originally Posted by Fаng View Post
kryptonite?
hahahaha xD no no man!

Quote:
Originally Posted by pro4never View Post
Go to where you calculate damage. Inside the calculation, go where superman bonus damage is calculated and say something like.

if(!Target.IsBoss)
Damage *= 9.9;

Simple stuff, just need to check conditions and react accordingly.
ha! thanks man. I have fixed it. (Y)
I'm just following your instruction and make a alteration here... I have made this:

Code:
            if (attacker.OnSuperman())
            {
                if (attacked.Name.Contains("TeratoDragon"))
                    Damage = (int)(Damage * 0.9);
                else
                    Damage *= 10;
                if (attacked.EntityFlag == EntityFlag.Player)
                    Damage = (int)(Damage * 0.1);
   
            }



Tnks for you help bro
^^

Request Closed
zakkwilde_17 is offline  
Old 05/20/2012, 02:22   #8
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
well i have some notice on your code which is

PHP Code:
            if (attacker.OnSuperman())
            {
                if (
attacked.Name.Contains("TeratoDragon"))
                    
Damage = (int)(Damage 0.9);
                else
                    
Damage *= 10;
                if (
attacked.EntityFlag == EntityFlag.Player)
                    
Damage = (int)(Damage 0.1);
            } 
well This Code is weakly coded for SOme reasons 1st :-

1 - You have to make another 4 cases cuz u r making checkers using name so u would need to add cases of SnowBanshee , and other super bosses so thats
inefficient it should Be bool instance Named Bosses for example and then its set to True once the monster is Boss and luckly u seem to be using Impulse Source in this Case its already been Added..

2 - Superman damage x 2 in case you attacks player not 0.1 as i guess

3 - y did u make Damage = (uint)Damage * 0.9 while it should had written this way Damage *= 10;

Anyways Heres A Code For all cases

PHP Code:
            if (attacker.EntityFlag == EntityFlag.Player && attacker.OnSuperman())
            {
                switch (
attacked.EntityFlag)
                {
                    case 
EntityFlag.Player:
                        {
                            
Damage *= 2;
                            break;
                        }
                    case 
EntityFlag.Monster:
                        {
                            if (
attacked.MonsterInfo.Boss == true)
                            {
                                
Damage *= 1;
                            }
                            else
                            {
                                
Damage *= 10;
                            }
                            break;
                        }
                }
            } 
shadowman123 is offline  
Thanks
1 User
Old 05/20/2012, 03:07   #9
 
zakkwilde_17's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 137
Received Thanks: 4
Quote:
Originally Posted by shadowman123 View Post
well i have some notice on your code which is

PHP Code:
            if (attacker.OnSuperman())
            {
                if (
attacked.Name.Contains("TeratoDragon"))
                    
Damage = (int)(Damage 0.9);
                else
                    
Damage *= 10;
                if (
attacked.EntityFlag == EntityFlag.Player)
                    
Damage = (int)(Damage 0.1);
            } 
well This Code is weakly coded for SOme reasons 1st :-

1 - You have to make another 4 cases cuz u r making checkers using name so u would need to add cases of SnowBanshee , and other super bosses so thats
inefficient it should Be bool instance Named Bosses for example and then its set to True once the monster is Boss and luckly u seem to be using Impulse Source in this Case its already been Added..

2 - Superman damage x 2 in case you attacks player not 0.1 as i guess

3 - y did u make Damage = (uint)Damage * 0.9 while it should had written this way Damage *= 10;

Anyways Heres A Code For all cases

PHP Code:
            if (attacker.EntityFlag == EntityFlag.Player && attacker.OnSuperman())
            {
                switch (
attacked.EntityFlag)
                {
                    case 
EntityFlag.Player:
                        {
                            
Damage *= 2;
                            break;
                        }
                    case 
EntityFlag.Monster:
                        {
                            if (
attacked.MonsterInfo.Boss == true)
                            {
                                
Damage *= 1;
                            }
                            else
                            {
                                
Damage *= 10;
                            }
                            break;
                        }
                }
            } 
ah! very good! thanks man ^^
i'm not good in codes ... I started working with this two weeks ago... now i solved my problem 100%.
zakkwilde_17 is offline  
Old 05/20/2012, 03:12   #10
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Quote:
Originally Posted by zakkwilde_17 View Post
ah! very good! thanks man ^^
i'm not good in codes ... I started working with this two weeks ago... now i solved my problem 100%.
No worries You gonna become Better one day
shadowman123 is offline  
Old 05/20/2012, 05:59   #11


 
CptSky's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,445
Received Thanks: 1,176
Quote:
Originally Posted by shadowman123 View Post
[...]
For 2 statements, a switch require more CIL code than an if/else statement. Plus, a *= 1 is completely useless... (I hope that the C# compiler will optimize it by removing it.


PHP Code:
            if (attacker.EntityFlag == EntityFlag.Player && attacker.OnSuperman())
            {
                if (
attacked.EntityFlag == EntityFlag.Player)
                    
Damage *= 2;
                else if (
attacked.EntityFlag == EntityFlag.Monster && !attacked.MonsterInfo.Boss)
                    
Damage *= 10;
            } 
CptSky is offline  
Thanks
1 User
Old 05/20/2012, 06:44   #12
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Quote:
Originally Posted by CptSky View Post
For 2 statements, a switch require more CIL code than an if/else statement. Plus, a *= 1 is completely useless... (I hope that the C# compiler will optimize it by removing it.


PHP Code:
            if (attacker.EntityFlag == EntityFlag.Player && attacker.OnSuperman())
            {
                if (
attacked.EntityFlag == EntityFlag.Player)
                    
Damage *= 2;
                else if (
attacked.EntityFlag == EntityFlag.Monster && !attacked.MonsterInfo.Boss)
                    
Damage *= 10;
            } 

Thank you so much for pointing this out.

I saw it and was like "da fuck... you're taking your damage, multiplying it by 10 then dividing it by 10?" then I saw the "fix" which was to multiply it by 1. Very odd indeed.
pro4never is offline  
Reply


Similar Threads Similar Threads
light immune boss = chain lightning?
06/03/2010 - Diablo 2 - 32 Replies
Hi, oft gibts einen immunen light boss (selbst mit infi) und den schießt die sorc die ganze zeit an.. macht 0 dmg.. der merc killt die ganzen mobs die um die sorc stehen. Ich würde gerne in solchen fällen chain lightning benutzen wodurch der blitz auf die nicht-immunen char um mich herum springt und die tötet sodass der merc auf den immunen boss läuft (da der dann als einzig lebendes monster übrieg ist). hat da jemand eine idee? thx
Light immune boss = chain lightning?
06/01/2010 - Diablo 2 Programming - 1 Replies
Hi, oft gibts einen immunen light boss (selbst mit infi) und den schießt die sorc die ganze zeit an.. macht 0 dmg.. der merc killt die ganzen mobs die um die sorc stehen. Ich würde gerne in solchen fällen chain lightning benutzen wodurch der blitz auf die nicht-immunen char um mich herum springt und die tötet sodass der merc auf den immunen boss läuft (da der dann als einzig lebendes monster übrieg ist). hat da jemand eine idee? :( thx
Immune hack
07/29/2009 - PW Hacks, Bots, Cheats, Exploits - 31 Replies
please upload who have immune hack or please create immune hack who have knowledge to do that.
IMMUNE
05/27/2009 - General Gaming Discussion - 11 Replies
HAHAHAH PLZ LOOK AT THE SCREENS !!!!! INVINCI SEND HODER NICE MAILS !!! http://www.elitepvpers.com/forum/attachments/neocr on/21162d1239133817-immune-flame-lol1.jpg http://www.elitepvpers.com/forum/attachments/neocr on/21163d1239133817-immune-flame-lol2.jpg
Immune to all dmg
03/24/2008 - World of Warcraft - 10 Replies
It is possible to become immune to all DAMAGE with Jang,thraze (Thottbot World of Warcraft: Jang'thraze the Protector) http://i9.photobucket.com/albums/a89/slaf/WoWScrn Shot_031908_204716.jpg Board Message i have sword but i dont know what next to do to get immune... can some1 find what to do?



All times are GMT +1. The time now is 08:22.


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.