Register for your free account! | Forgot your password?

You last visited: Today at 20:33

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

Advertisement



[Fixed]Weapon Master

Discussion on [Fixed]Weapon Master within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
C#Storm's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 146
Received Thanks: 57
[Fixed]Weapon Master

Hello, many people had the same problem as me, Weapon Master adds +20k attack every level.

And he keeps taking dbs even after you achieve the highest level, i tried to fix those things, i got help in the 1st problem.

I know it's very easy to fix, but i felt that it would be nice to share it on elitepvpers


This is the new Weapon Master code(if your weapon master doesn't have these problems don't use mine, it might not be compatible with your source)

Now you'll see this when you upgrade your items
C#Storm is offline  
Old 07/29/2012, 18:31   #2
 
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;
                                                }
Use something like this instead of your huge code.
diedwarrior is offline  
Thanks
1 User
Old 07/29/2012, 18:35   #3
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
Stop hardcoding the ID and use a correct algorithm.
I don't have a username is offline  
Old 07/29/2012, 20:22   #4
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,225
Received Thanks: 868
Why so much work?

Custom source ftw.
PHP Code:
if (!item.HasParent())
{
         
Say("Item is fully upgraded");
         
Link("Okay"Options.End);
         
Finish();

_DreadNought_ is offline  
Thanks
2 Users
Old 07/29/2012, 21:40   #5


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
@DreadNought : Shouldn`t the lowest level item be the root item and the higher ones childs instead of parents? Just asking.
KraHen is offline  
Old 07/29/2012, 22:13   #6
 
.Kinshi's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 341
Received Thanks: 255
Quote:
Originally Posted by KraHen View Post
@DreadNought : Shouldn`t the lowest level item be the root item and the higher ones childs instead of parents? Just asking.
Exactly what I was thinking haha.


No one use this, its complete and utter ****.
There's plenty of examples of better ways to code this in many public sources.
.Kinshi is offline  
Old 07/29/2012, 22:40   #7
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,225
Received Thanks: 868
Quote:
Originally Posted by KraHen View Post
@DreadNought : Shouldn`t the lowest level item be the root item and the higher ones childs instead of parents? Just asking.
Most probably, My logic was real life, Lower Level items as childs and higher level items as parents.
_DreadNought_ 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: { ...
[Request] Weapon Master
10/01/2010 - CO2 Private Server - 19 Replies
Can anyone help me add an option for upgrading fan and towers to 130? Also i dont know why but he only lvls some items past 130. the rest dont lvl and he doesnt say anything. about it so are there fixes for this? #region WeaponMaster case 7050: { if (Control == 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.")); ...
Weapon MAster 5095
05/19/2010 - CO2 Private Server - 3 Replies
hey all i need Weapon master Npc normal mean= max level ring=126maxmum bracelet=126maxmum armors and robs=120maxmum boots=129maxmum head gears=112maxmum i need it normal can any one upload sql file to me And Thanks
[Request] Weapon Master
11/28/2009 - CO2 Private Server - 4 Replies
Hello there, im currently editing, CoEmu.V2 and I just cannot get my weapon master working, so im here to ask would someone be kind enough to release me there CoEmu.V2 Weapon Master Code. I have tried to search but i found nothing :(.. If you could/would possibly link me to one would be great too.. Kindest Regards Phenom



All times are GMT +1. The time now is 20:34.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.