Register for your free account! | Forgot your password?

You last visited: Today at 10:43

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

Advertisement



[HELP] Revised Codes

Discussion on [HELP] Revised Codes within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2007
Posts: 128
Received Thanks: 80
[HELP] Revised Codes

Can you please help me revised this codes. I really don't have any idea how to make them work. Thanks.


Steed Skill Seller:

Code:
case 100983:
                                {
                                    if (option == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Hello. I'm the mount trainer. I'm selling mount skill. Are you interested?"));
                                        GC.AddSend(Packets.NPCLink("Learn Riding Skill for 1 million CPs.", 4));
                                        GC.AddSend(Packets.NPCLink("Learn Spook Skill for 500 thousand CPs.", 5));
                                        GC.AddSend(Packets.NPCLink("Learn WarCry Skill for 500 thousand CPs.", 6));
                                        GC.AddSend(Packets.NPCLink("No. Thanks.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (option == 4)
                                        {
                                            if (GC.MyChar.CPs >= 1000000)
                                            {
                                                GC.MyChar.CPs -= 1000000;
                                                GC.MyChar.RWSkill(new Game.Skill() { ID = 7001, Lvl = 0, Exp = 0 });
                                                GC.AddSend(Packets.NPCSay("You have learned Riding Skill."));
                                                GC.AddSend(Packets.NPCLink("Thanks.", 255));
                                                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                GC.AddSend(Packets.NPCFinish());
                                            }
                                            else
                                            {
                                                GC.AddSend(Packets.NPCSay("You don't have enough CPs."));
                                                GC.AddSend(Packets.NPCLink("I see.", 255));
                                                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    else if (option == 5)
                                    {
                                            if (GC.MyChar.CPs >= 500000)
                                            {
                                                GC.MyChar.CPs -= 500000;
                                                GC.MyChar.RWSkill(new Game.Skill() { ID = 7002, Lvl = 0, Exp = 0 });
                                                GC.AddSend(Packets.NPCSay("You have learned Spook Skill."));
                                                GC.AddSend(Packets.NPCLink("Thanks.", 255));
                                                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                GC.AddSend(Packets.NPCFinish());
                                            }
                                            else
                                            {
                                                GC.AddSend(Packets.NPCSay("You don't have enough CPs."));
                                                GC.AddSend(Packets.NPCLink("I see.", 255));
                                                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    else if (option == 6)
                                    {
                                            if (GC.MyChar.Silvers >= 500000)
                                            {
                                                GC.MyChar.Silvers -= 500000;
                                                GC.MyChar.RWSkill(new Game.Skill() { ID = 7003, Lvl = 0, Exp = 0 });
                                                GC.AddSend(Packets.NPCSay("You have learned Warcry Skill."));
                                                GC.AddSend(Packets.NPCLink("Thanks.", 255));
                                                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                GC.AddSend(Packets.NPCFinish());
                                            }
                                            else
                                            {
                                                GC.AddSend(Packets.NPCSay("You don't have enough CPs."));
                                                GC.AddSend(Packets.NPCLink("I see.", 255));
                                                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                GC.AddSend(Packets.NPCFinish());
                                            }
                                        }
                                    break;
                                }
                            #endregion
Can you please help me put an else on it when i already learned the skill. In this code you can buy the skills even though you have learned it already. Thanks.




Bless NPC:


Code:
#region Ethereal
                            case 35015:
                                {
                                    if (option == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Hello. I can put a bless on your items for tortoise gems."));
                                        GC.AddSend(Packets.NPCLink("Bless Equipment.", 9));
                                        GC.AddSend(Packets.NPCLink("Just passing by.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                        GC.Agreed = false;
                                    }
                                    else if (option == 9)
                                    {
                                        GC.AddSend(Packets.NPCSay("Choose the equipment you want to bless."));
                                        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("Shield", 5));
                                        GC.AddSend(Packets.NPCLink("Ring", 6));
                                        GC.AddSend(Packets.NPCLink("Boots", 8));


                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (option >= 1 && option <= 8)
                                    {
                                        Game.Item I = GC.MyChar.Equips.Get((byte)(option));
                                        if (I.Bless != 7)
                                        {
                                            byte TortoiseNeed = 0;
                                            if (I.Bless == 0)
                                                TortoiseNeed = 5;
                                            else if (I.Bless == 1)
                                                TortoiseNeed = 1;
                                            else if (I.Bless == 3)
                                                TortoiseNeed = 3;
                                            else if (I.Bless == 5)
                                                TortoiseNeed = 5;

                                            if (!GC.Agreed)
                                            {
                                                GC.AddSend(Packets.NPCSay("You need " + TortoiseNeed + " Super Tortoise to upgrade the equipment. Do you want it?"));
                                                GC.AddSend(Packets.NPCSay("Your item current bless is " + I.Bless + "."));
                                                if (I.Bless != 0)
                                                    GC.AddSend(Packets.NPCSay("It will become " + (I.Bless + 2) + "."));
                                                GC.AddSend(Packets.NPCLink("Yes.", option));
                                                GC.AddSend(Packets.NPCLink("Nevermind.", 255));
                                                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                GC.AddSend(Packets.NPCFinish());
                                                GC.Agreed = true;
                                            }
                                            else
                                            {
                                                GC.Agreed = false;
                                                if (GC.MyChar.InventoryContains(700073, TortoiseNeed, GC))
                                                {
                                                    GC.MyChar.EquipStats((byte)(option), false);
                                                    for (byte i = 0; i < TortoiseNeed; i++)
                                                        GC.MyChar.RemoveItem(700073, 1, GC);
                                                        //GC.MyChar.RemoveItem(GC.MyChar.NextItem(700073));
                                                    if (I.Bless == 0)
                                                        I.Bless = 1;
                                                    else
                                                        I.Bless += 2;
                                                    GC.MyChar.Equips.Replace((byte)(option), I, GC.MyChar);
                                                    GC.MyChar.EquipStats((byte)(option), true);

                                                    GC.AddSend(Packets.NPCSay("Here you are. It's done."));
                                                    GC.AddSend(Packets.NPCLink("Thanks.", 255));
                                                    GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                    GC.AddSend(Packets.NPCFinish());
                                                }
                                                else
                                                {
                                                    GC.AddSend(Packets.NPCSay("You don't have enough Tortoise Gems."));
                                                    GC.AddSend(Packets.NPCLink("I see.", 255));
                                                    GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                    GC.AddSend(Packets.NPCFinish());
                                                }
                                            }
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You cannot upgrade an item's bless which is already at the maximum."));
                                            GC.AddSend(Packets.NPCLink("I see.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    break;
                                }
                            #endregion

Can you please make an else on it... because in this code it will continue to put a bless on the item even though you didn't equip the items..




Durability Repair:


Code:
#region GloryArtisan NPC
                            case 10065:
                                {
                                    if (option == 0)
                                    {
                                        OptionText("Hello. I can repair you items durability for just 1 DragonBall. Interested?", GC);
                                        OptionLink("Yes. Please.", 10, GC);
                                        OptionLink("Just passing by.", 255, GC);
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                        GC.Agreed = false;
                                    }
                                    else if (option == 10)
                                    {
                                        OptionText("Choose the equipment you want to fixed durability", GC);
                                        OptionLink("Headgear", 1, GC);
                                        OptionLink("Necklace/Bag", 2, GC);
                                        OptionLink("Armor", 3, GC);
                                        OptionLink("Weapon", 4, GC);
                                        OptionLink("Shield", 5, GC);
                                        OptionLink("Ring", 6, GC);
                                        OptionLink("Boots", 8, GC);
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (option >= 1 && option <= 8)
                                    {
                                        Game.Item I = GC.MyChar.Equips.Get(option);
                                        I.MaxDur = 7099;
                                        I.CurDur = 7099;
                                        {
                                            if (!GC.Agreed)
                                            {
                                                OptionText("You need a DragonBall. Are you ready?", GC);
                                                OptionLink("Yes.", option, GC);
                                                OptionLink("Forget it.", 255, GC);
                                                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                GC.AddSend(Packets.NPCFinish());
                                                GC.Agreed = true;
                                            }
                                            else
                                            {
                                                GC.Agreed = false;
                                                if (GC.MyChar.InventoryContains(1088000, 1, GC))
                                                {

                                                    GC.MyChar.RemoveItem(1088000, 1, GC);
                                                    I.MaxDur = 7099;
                                                    I.CurDur = 7099;
                                                    GC.MyChar.Equips.Replace(option, I, GC.MyChar);
                                                    GC.MyChar.EquipStats(option, true);

                                                    OptionText("Here you are. It's done.", GC);
                                                    OptionLink("Thanks.", 255, GC);
                                                    GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                    GC.AddSend(Packets.NPCFinish());
                                                }
                                                else
                                                {
                                                    OptionText("You don't have a DragonBall.", GC);
                                                    OptionLink("Damn.", 255, GC);
                                                    GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                    GC.AddSend(Packets.NPCFinish());
                                                }
                                            }
                                        }
                                    }
                                    break;
                                }
                            #endregion

Can you please help me put an else on it... because in this it will continue repairing the item even though you didn't equip the item. Thanks.
nestreys is offline  
Old 07/07/2010, 12:53   #2
 
elite*gold: 0
Join Date: Jun 2010
Posts: 50
Received Thanks: 10
i will show you how to do one on skill seller


Code:
  
else if (option == 4)
{
if (!GC.MyChar.Skills.Contains((ushort)7001))
{
 if (GC.MyChar.CPs >= 1000000)
{
GC.MyChar.CPs -= 1000000;
GC.MyChar.RWSkill(new Game.Skill() { ID = 7001, Lvl = 0, Exp = 0 });
GC.AddSend(Packets.NPCSay("You have learned Riding Skill."));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough CPs."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else
{
GC.AddSend(Packets.NPCSay("You already have Riding Skill "));
GC.AddSend(Packets.NPCLink("Oh i see", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
now you see how it done you can do it to rest

as for Bless NPC: and Durability Repair: just look at you thread asking about steed plus NPC look how Shunsui did it on that NPC for you , just apply that to bless and durability. He has showing you how done.
Macnoo is offline  
Reply


Similar Threads Similar Threads
Dupe and DC hack revised.
11/17/2010 - 12Sky2 - 110 Replies
UPDATE: http://www.xfire.com/video/2e74b6/ ^^^ Video guide of what is written below on how to DC. This is a more idiot proof explanation of how to do the hacks mentioned in Wizkids' post. Ignore all the code, I wrote it in the format for the AGE forums, just havent gotten around to posting it yet. And yes, it is idiot proof, before last thursday I had never used a hack or cheat on TS1 or 2 before, and it's easy enough for someone as fail at computers at me to even do. Enjoy, and help...
Duping revised
07/07/2010 - 12Sky2 - 4 Replies
So I see a patch came up, that's a bummer. But I've been running through some things and this patch actually seems to open up some very nice new doors! Anyone interested in researching this with me, please do post here or pm me :) And yeah, I know I have a low post count, that's because I've been mostly observing and keeping my own findings to myself, but I want a bit of help with this to see what can be dug up :) Anyone interested?
Tutorials all revised
03/19/2010 - Soldier Front - 3 Replies
Credits to DrakeFang for the M4A1 Guide 4A1, one of the great weapon of Special Force. M4A1 as many says, is the ideal weapon of choice for those who want to battle in close quarter combat. It is the lightest assault rifle (tied with G36C) among the rifle groups which is favoured by pro assaulter's in rushing. One of its problem is the damage, it ranks second to the last among assault rifles but makes it up with its high rate of firing. Also among the highest recoil just behind AK-74. Well...
THE SKILL HACK (revised)
10/05/2009 - Grand Chase Hacks, Bots, Cheats & Exploits - 198 Replies
Auto Skill hack (UPdated since today) sept. 29, 2009. TuT 1. Download the link given here ||CLICK ME|| 2. After downloading paste the downloaded file to your GCPH stage folder... 3. When launching the game use this swear hack ||CLICK ME|| 4. then log in to your account, go to practice mode.. 5. Select your character then press "Z" button or what you call the attack button ,, when it cast a 3rd skill then it works.. ^__^..
SD hack.. Revised..
04/27/2009 - Grand Chase - 4 Replies
Since nakakaLito daw ung Gnawa ni Cress76 from shei_lamae iLeech ko nLng d2 ung akin.. weLL mas nadaLian ako d2.. 1. trial tower 2. scan 1122238464 -exact value, 4bytes 3. after scan kill all Slime 4. then find a value of 0 5. select all addresses and add them to list(20-25 addresses) 6. leave the room and start it all over again with the addresses you have



All times are GMT +1. The time now is 10:43.


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

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.