Register for your free account! | Forgot your password?

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

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

Advertisement



[Weapon Master] he's gonna fail at Maths!!

Discussion on [Weapon Master] he's gonna fail at Maths!! within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
C#Storm's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 146
Received Thanks: 57
[Weapon Master] he's gonna fail at Maths!!



the first thing you can see is a blade with +100k attack, impossible, well this started with less than 8k, after upgrading it from 135 to 140, weapon master is adding +20k attack every level, i know this sucks.

Here's the weapon master's code, what's wrong with that jerk? i tried to understand, tried few fixes, and then figured out that i'm like him haha
C#Storm is offline  
Old 07/28/2012, 20:54   #2
 
devilsmum's Avatar
 
elite*gold: 0
Join Date: Jun 2006
Posts: 899
Received Thanks: 479
Why do you have client.UnloadItemStats(item, false); commented out? I'm pretty sure this removes the stats of the existing item. Therefor when you upgrade, your stats are being added together.
devilsmum is offline  
Thanks
1 User
Old 07/28/2012, 21:05   #3
 
diedwarrior's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 611
Received Thanks: 195
You just gotta decrease the old attack/defense etc of the old item, I had this problem before, its pretty easy to fix tho, so yeah.
diedwarrior is offline  
Thanks
1 User
Old 07/28/2012, 21:40   #4
 
C#Storm's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 146
Received Thanks: 57
the attack (real attack) is back after the character relogs, i mean when you ypgrade the item, you get 200k attack, relog and you'll find it back to the real amount.
C#Storm is offline  
Old 07/28/2012, 22:40   #5
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Quote:
Originally Posted by C#Storm View Post
the attack (real attack) is back after the character relogs, i mean when you ypgrade the item, you get 200k attack, relog and you'll find it back to the real amount.
well you should Load all item information once there is a change in status in order to avoid bugs ,, or even load the item status
shadowman123 is offline  
Thanks
1 User
Old 07/28/2012, 22:46   #6
 
C#Storm's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 146
Received Thanks: 57
i fixed it, thanks guys ^^
C#Storm is offline  
Old 07/29/2012, 04:05   #7
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,885
nice hard coded item ids
InfamousNoone is offline  
Old 07/29/2012, 09:22   #8
 
elite*gold: 0
Join Date: Feb 2006
Posts: 550
Received Thanks: 82
worst code ever
ChingChong23 is offline  
Old 07/29/2012, 09:32   #9
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Quote:
Originally Posted by ChingChong23 View Post
worst code ever
well i noticed its coded in too much lines .. So y do u think its badly coded ( btw iam done with this Npc in better way)
shadowman123 is offline  
Old 07/29/2012, 10:50   #10
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Quote:
Originally Posted by shadowman123 View Post
well i noticed its coded in too much lines .. So y do u think its badly coded ( btw iam done with this Npc in better way)
The npc handler for that specific npc was done and released with the first version of my source, so you didnt do it in a 'better way'. The fact that he hard-coded the ids, and that does not mean that 'if there are lots of code then the code is bad', means he probably doesn't have any idea of how things can be done faster and nicer.
-impulse- is offline  
Old 07/29/2012, 12:44   #11
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Quote:
Originally Posted by -impulse- View Post
The npc handler for that specific npc was done and released with the first version of my source, so you didnt do it in a 'better way'. The fact that he hard-coded the ids, and that does not mean that 'if there are lots of code then the code is bad', means he probably doesn't have any idea of how things can be done faster and nicer.
Perfect thats Right Thx Alot for that
shadowman123 is offline  
Old 07/29/2012, 12:53   #12
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
Quote:
Originally Posted by -impulse- View Post
The npc handler for that specific npc was done and released with the first version of my source, so you didnt do it in a 'better way'. The fact that he hard-coded the ids, and that does not mean that 'if there are lots of code then the code is bad', means he probably doesn't have any idea of how things can be done faster and nicer.
Tho you can't disagree on that it's bad coded. It's pretty ineffecient.
I don't have a username is offline  
Old 07/29/2012, 15:39   #13
 
diedwarrior's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 611
Received Thanks: 195
Code:
   if (infos.BaseInformation.Level == PacketHandler.ItemMaxLevel(PacketHandler.ItemPosition(infos.BaseInformation.ID)))
                                                {
                                                    dialog.Text("This item is already at maximum level!");
                                                    dialog.Link("Alright", 255);
                                                    dialog.Avatar(50);
                                                    dialog.Send();
                                                    return;
                                                }
diedwarrior is offline  
Old 07/29/2012, 20:26   #14
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,226
Received Thanks: 868
Quote:
Originally Posted by -impulse- View Post
The npc handler for that specific npc was done and released with the first version of my source, so you didnt do it in a 'better way'. The fact that he hard-coded the ids, and that does not mean that 'if there are lots of code then the code is bad', means he probably doesn't have any idea of how things can be done faster and nicer.
Actually, The very first version of your source didn't have any npcs coded.
Quote:
Originally Posted by ChingChong23 View Post
worst code ever
That's a face I haven't seen in awhile.
_DreadNought_ is offline  
Old 07/29/2012, 21:01   #15
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
[QUOTE=_DreadNought_;17927756]Actually, The very first version of your source didn't have any npcs coded. /QUOTE]

Well, obviously the first didnt, but the 5165 I released a while ago, which is the base of Trinity's source, had npcs - that's the source I was talking about.
-impulse- is offline  
Reply


Similar Threads Similar Threads
Hi I am confuse about this Weapon Master
03/24/2012 - CO2 Private Server - 2 Replies
all Items can be upgrade to their high level limit except the Bracelet, can not be upgrade the level upto lvl 132 to 137 from 127, I use the impulse one.... can someone check this out please? case 7050: { switch (npcRequest.OptionID) { case 0: { ...
Weapon MasteR
06/10/2010 - CO2 Private Server - 2 Replies
heLp me i get a eror .. in 5165 #region WeaponMaster case 7050: { if (Control == 0) { GC.AddSend(Packets.NPCSay("I can upgrade your items here for a DB each time. But remember for changes to take effect you need to click Finish when done.")); ...
What must i have to be a good Server and not gonna fail
08/14/2008 - Conquer Online 2 - 2 Replies
Hey what requirements must a server have? i go make a server by my own power:rolleyes: (yes i can code c#) but what requirements i must have to make a good server? and im dont want to fail so give me some tips;) and what u guys want in the private server? and what kind of private server you want? you want a leveling or a pvp server ( yeah there will be tournaments in
Message To All Private Servers: You Need This To Not Gonna Fail!
08/10/2008 - Conquer Online 2 - 27 Replies
Hello me and other people are sick of the servers that are based on public sources and that are gonna fail after 24 hours! sometimes a little later! when u gonna make a server first think about this!!!: Requirements: I can code? I can make a good website? I can make a good Forum? I Tested the server a few months before i released it! I can make a good registerpage? I made a own Source!
+N Maths For Beginners
12/22/2006 - Conquer Online 2 - 3 Replies
Hey, i'm completely new to the idea of +Ning items, on my server i have just +5'd my coat, and im wondering if anyone has come up with a quick way to work out how many +Ns you need...? Fankoos ^^



All times are GMT +1. The time now is 03:02.


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.