Register for your free account! | Forgot your password?

You last visited: Today at 12:48

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


[Release] Fix for WeaponMaster (5165)

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2009
Posts: 749
Received Thanks: 432
[Release] Fix for WeaponMaster (5165)

Heya!

here is the fixed npc : P (without DC or anything else : D)

Code:
#region WeaponMaster
                            case 7050:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Choose the equipment you want to upgrade."));
                                        GC.AddSend(Packets.NPCLink("Headgear", 1));
                                        GC.AddSend(Packets.NPCLink("Necklace/Bag", 2));
                                        GC.AddSend(Packets.NPCLink("Armor", 3));
                                        GC.AddSend(Packets.NPCLink("Weapon", 4));
                                        GC.AddSend(Packets.NPCLink("Ring", 6));
                                        GC.AddSend(Packets.NPCLink("Boots", 8));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                        GC.Agreed = false;
                                    }
                                    else if (Control >= 1 && Control <= 8)
                                    {
                                        Item I = GC.MyChar.Equips.Get(Control);
                                        byte PrevLevel = I.DBInfo.LevReq;

                                        ItemIDManipulation IMan = new ItemIDManipulation(I.ID);
                                        IMan.IncreaseLevel();

                                        DatabaseItem Di = (DatabaseItem)Database.DatabaseItems[IMan.ToID()];

                                        if (I.DBInfo.LevReq < 110)
                                        {
                                            GC.AddSend(Packets.NPCSay("The item must be at last level 110, other else i won't upgrade it!"));
                                            GC.AddSend(Packets.NPCLink("I'll be right back!", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                            return;
                                        }

                                        byte NewLevel = Di.LevReq;
                                        if (NewLevel > PrevLevel)
                                        {
                                            if (GC.MyChar.Level >= NewLevel)
                                            {
                                                if (!GC.Agreed)
                                                {
                                                    GC.AddSend(Packets.NPCSay("You need a DragonBall. Are you ready?"));
                                                    GC.AddSend(Packets.NPCLink("Upgrade it.", Control));
                                                    GC.AddSend(Packets.NPCLink("Forget it.", 255));
                                                    GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                    GC.AddSend(Packets.NPCFinish());
                                                    GC.Agreed = true;
                                                }
                                                else
                                                {
                                                    GC.Agreed = false;
                                                    if (GC.MyChar.InventoryContains(1088000, 1))
                                                    {
                                                        GC.MyChar.EquipStats(Control, false);
                                                        GC.MyChar.RemoveItem(GC.MyChar.NextItem(1088000));
                                                        I.ID = IMan.ToID();

                                                        GC.MyChar.Equips.Replace(Control, I, GC.MyChar);
                                                        GC.MyChar.EquipStats(Control, true);
                                                    }
                                                    else
                                                    {
                                                        GC.AddSend(Packets.NPCSay("You don't have a DragonBall."));
                                                        GC.AddSend(Packets.NPCLink("Oh hold on.", 255));
                                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                        GC.AddSend(Packets.NPCFinish());
                                                    }
                                                }
                                            }
                                            else
                                            {
                                                GC.AddSend(Packets.NPCSay("You aren't high level enough to wear the item after upgrading."));
                                                GC.AddSend(Packets.NPCLink("Alright.", 255));
                                                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                GC.AddSend(Packets.NPCFinish());
                                            }
                                        }

                                    }
                                    else
                                    {
                                        GC.AddSend(Packets.NPCSay("The item cannot be upgraded anymore."));
                                        GC.AddSend(Packets.NPCLink("Alright.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    break;
                                }
                            #endregion
cya!



12tails is offline  
Thanks
11 Users
Old 04/06/2010, 14:56   #2
 
elite*gold: 0
Join Date: Feb 2010
Posts: 492
Received Thanks: 222
Nice release, Simple, Basic, Easy fix, I had that fix but then again simple fix but this is good for noobs!


Paralyzer[GM] is offline  
Old 04/06/2010, 16:06   #3
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 490
I'm surprised 12tails that you are actually releasing good things... good job your not paralayzer
PeTe Ninja is offline  
Old 04/06/2010, 16:38   #4
 
elite*gold: 0
Join Date: Apr 2009
Posts: 749
Received Thanks: 432
thanks pete_ninja and paralyzer : D


12tails is offline  
Thanks
3 Users
Old 04/06/2010, 16:39   #5
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 490
Quote:
Originally Posted by 12tails View Post
thanks pete_ninja and paralyzer : D
noo its PeTe Ninja no _
PeTe Ninja is offline  
Old 04/06/2010, 16:43   #6
 
elite*gold: 0
Join Date: Apr 2009
Posts: 110
Received Thanks: 32
lol, 12tails is gay :x jk
this is only what i think xD
Luiz01 is offline  
Old 04/06/2010, 16:48   #7
 
elite*gold: 0
Join Date: Apr 2009
Posts: 749
Received Thanks: 432
heya luiz! : P go to school hahaha (i'm not gay : D)
12tails is offline  
Thanks
3 Users
Old 04/06/2010, 18:53   #8
 
elite*gold: 0
Join Date: Feb 2010
Posts: 492
Received Thanks: 222
haha. :P this release is very good you do relise how many servers had this problem ?
Paralyzer[GM] is offline  
Old 04/06/2010, 19:24   #9
 
elite*gold: 0
Join Date: Apr 2009
Posts: 749
Received Thanks: 432
hmmm i think many : D... because is a very low number of coders that see this error... this make the attack of a character become more or less 400000k : D
12tails is offline  
Thanks
3 Users
Old 04/07/2010, 03:01   #10
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,740
Received Thanks: 5,268
GC.MyChar.EquipStats(Control, false);
Was the fix correct?
Arcо is offline  
Thanks
1 User
Old 04/07/2010, 08:30   #11
 
elite*gold: 0
Join Date: Apr 2009
Posts: 749
Received Thanks: 432
yep : P
12tails is offline  
Thanks
1 User
Old 04/12/2010, 00:10   #12
 
elite*gold: 0
Join Date: Dec 2007
Posts: 378
Received Thanks: 163
I don't understand how this is any different than the one that comes with the source.
walmartboi is offline  
Old 05/25/2010, 22:22   #13
 
elite*gold: 0
Join Date: Apr 2007
Posts: 142
Received Thanks: 15
Quote:
Originally Posted by Paralyzer[GM] View Post
Nice release, Simple, Basic, Easy fix, I had that fix but then again simple fix but this is good for noobs!
"noobs" Lol, you should watch your mouth in the future. If you was a pro or at least advanced C# coder, you would be a little nicer. Example you could say: simple fix for the rookies. Instead of saying noobs, which sounds like an insult. If you ask me, I'd consider you as one of the "noobs" but in the other words, like I would say: I'll consider you as one of the rookies.
P.S Didn't wanna insult you or make fun of you and your banned account, but seen you trying to correct people whose spelling fails. Before doing anything, you should check your spelling and how much it fails. Me, myself.. my english Ain't so bad or good, but I'd say that my english is decent. Not so messy. Also, I know that the americans/britts does spelling mistakes such as.. they say your when they mean you're. but anyway, think at least twice, before you're trying to say anything to anyone. Good luck.

@12Tails Nice little fix. +k
Secrets-man is offline  
Thanks
3 Users
Old 06/15/2010, 21:04   #14
 
elite*gold: 0
Join Date: Jun 2010
Posts: 12
Received Thanks: 7
Nice Release Easy and Simple!!!!!!!!!!!!!!!!!
AngeaL™ is offline  
Old 08/19/2010, 19:12   #15
 
elite*gold: 0
Join Date: Jun 2010
Posts: 2,200
Received Thanks: 851
Seen some more servers with this problem(Getting annoying now) so I think it's fair to say I am #Bumping the thread for that reason.


_DreadNought_ is offline  
Reply



« BigShow-Co Website [5730+] | Upgrade Quality Calculation »

Similar Threads
[RELEASE]TDM 5165
01/31/2012 - CO2 PServer Guides & Releases - 54 Replies
Hello, i will show you how to create a team deathmatch tournament for your 5165server (tanels). What do you need? -The source -How to copy + paste :P Features: -First blood (Give +5points):P -4Teams (Red, Blue, Black, White) -Random choose team
[Release] Offline TG [5165]
04/20/2010 - CO2 PServer Guides & Releases - 32 Replies
None of you deserve this. #request close
Code MagicArtisan or WeaponMaster
07/06/2009 - CO2 PServer - Discussions / Questions - 0 Replies
please emmethe codder, andyd123 anyone ..who know code for MAgicArtisan or Weapon Master Post Here Please ! Or New Codes FoR coemu2 :X:)
[Help]I Need Up New Item in Weaponmaster
04/28/2009 - CO2 PServer - Discussions / Questions - 4 Replies
Hello , I need up new item by WeaponMaster , i Have ring lvl 135 , Necklace 132 , Earring 120 and Boot lvl 133. Thank !



All times are GMT +1. The time now is 12:48.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.