Register for your free account! | Forgot your password?

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

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

Advertisement



Shield and Twohander BP

Discussion on Shield and Twohander BP within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2007
Posts: 187
Received Thanks: 45
Shield and Twohander BP

When I wear a 2hander I get double BP from it, when I wear a wear a shield it says the double bp is gone but it is still there as hidden bp when you whisper.


Code:
                if (ID / 1000 == 421 || PacketHandler.IsTwoHand(ID))
                {
                    
                    potBase *= 2;
                    
                }
                return potBase
That is the code that doubles the BP, I tried multiple things but none worked

How could i fix this?
Andrew.A is offline  
Old 09/06/2011, 03:13   #2
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
IF you wear Two-handed weapon you will get times 2 of the bp of the weapon, but if you wear Two-handed weapon together with shield of course the two handed weapon will be now consider as 1 handed weapon(even though it is Two-Handed) so that you can wear the shield so the double bp of it will be gone its now consider as 1 handed........ hope you understand that.
marlyandedsel is offline  
Old 09/06/2011, 04:15   #3
 
elite*gold: 0
Join Date: Aug 2007
Posts: 187
Received Thanks: 45
I get it, but the fact is that it isn't gone. It shows when I whisper but when I examine gears it doesn't show.
Andrew.A is offline  
Old 09/06/2011, 06:05   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Right in that code you are saying if I'm wearing a 2 hander or backsword double my bp from that item... you NEED to check what's in the other hand. it an item is equipped into it then do not double your bp.

If anything exists in 2nd hand then do not double bp from first hand.


Simple as that.
pro4never is offline  
Old 09/06/2011, 13:37   #5
 
elite*gold: 0
Join Date: Aug 2007
Posts: 187
Received Thanks: 45
This is what I tried before and it didn't make a difference. I know I needed to add a check but whatever I try doesn't seem to work

Code:
if (ID / 1000 == 421 || PacketHandler.IsTwoHand(ID))
                {
                   If (LeftWeapon / 1000 != 900)
                    {
                    potBase *= 2;
                    }
                }
                return potBase
Andrew.A is offline  
Old 09/06/2011, 16:03   #6
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
When is left weapon considered 900? What I would be more likely to check for would be...

if(LeftWeaponType == Backsword || LeftWeaponType == Twohander/Bow)
if(LefWeapon == null (or zero as it seems you are using item id and not item structure) || IsArrow(LeftWeapon)
basePot *= 2;

That way you first check if ANYTHING exists in second slot. If nothing exists there you KNOW you can do your double pot

Then check if the item in 2nd slot is an arrow type item. If it IS an arrow you can STILL do your double pot.
pro4never is offline  
Old 09/06/2011, 23:24   #7
 
elite*gold: 0
Join Date: Aug 2007
Posts: 187
Received Thanks: 45
Ive tried the whole if(LeftWeapon ==0) before and I get Unreachable code detected
Andrew.A is offline  
Reply


Similar Threads Similar Threads
WTS Lv. 104 Sword / Shield Nuker with NOVA Sword +9 & NOVA Shield +7
01/04/2011 - Silkroad Online Trading - 3 Replies
WTS Lv. 104 Sword/Shield Nuker with Nova items +5+6+7+8+9 on Server VENICE The Account is NOT email verified.. The Character has 4 Garment Nova Parts +5 +6 +7 +8 Full Blue skills at 100 FF...
WTS Lv. 104 Sword / Shield Nuker with NOVA Sword +9 & NOVA Shield +5
12/24/2010 - Silkroad Online Trading - 1 Replies
WTS Lv. 104 Sword/Shield Nuker with Nova items +5+6+8+9 on Server VENICE The Account is NOT email verified.. The Character has 4 Garment Nova Parts +5 +6 +8 Full Blue skills at 100 FF and has 130k SP left..
WTS Lv. 104 Sword / Shield Nuker with NOVA Sword +9 & NOVA Shield +5
12/24/2010 - Silkroad Online Trading - 4 Replies
WTS Lv. 104 Sword/Shield Nuker with Nova items +5+6+8+9 on Server VENICE The Account is NOT email verified.. The Character has 4 Garment Nova Parts +5 +6 +8 Full Blue skills at 100 FF and has 130k SP left..
WTS Lv. 104 Sword / Shield Nuker with NOVA Sword +9 & NOVA Shield +5
12/21/2010 - Silkroad Online Trading - 2 Replies
WTS Lv. 104 Sword/Shield Nuker with Nova items +5+6+8+9 on Server VENICE The Account is NOT email verified.. skills at 98 FF and has 130k SP left.. the char has pet & devil spirit & skill ticket 7days left Nova Sword +9 very nice stats & Nova Shield +5 BR 21 FB 100%
[WTS] Croche Shield (132 ak shield) +7 [ Hellion ]
12/12/2010 - Dekaron Trading - 2 Replies
Tittle says all! I want to sell it for DILS only! Hellion Server. Thanks!



All times are GMT +1. The time now is 13:30.


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.