Register for your free account! | Forgot your password?

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

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

Advertisement



Npc not working correctly

Discussion on Npc not working correctly within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2010
Posts: 91
Received Thanks: 5
Npc not working correctly

hes not selling the items what did i code wrong
he just takes the money and sometimes he says you dont have enough but i have 99999999cps
and when it does work nothing is in my inventory
for some reason though this code has no errors
Edit: Can Someone at least give me the code for +12 2 soc items for tanels source
Edit2: il just figure it out nvm thanks everyone....
Code:
#region Kid Seller
    case 4466:
    {
        if (Control == 0)
        {
                GC.AddSend(Packets.NPCSay("Welcome to the Valhalla Legends Market - I'll give you stuff for a fee. I am one of bios Legendary Npcs!"));
                GC.AddSend(Packets.NPCLink("Cool let me in.", 1));
                GC.AddSend(Packets.NPCLink("Haa Ok Then", 255));
                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                GC.AddSend(Packets.NPCFinish());
        }
            if (Control == 1)
            {
            GC.AddSend(Packets.NPCSay("I can gift you with some gear of specified profesion"));
            GC.AddSend(Packets.NPCLink("FireTao-100kCps", 2));
            GC.AddSend(Packets.NPCLink("WaterTao-100kCps", 3));
            GC.AddSend(Packets.NPCLink("Warrior-100kCps", 5));
            GC.AddSend(Packets.NPCLink("Trojan-100kCps", 6));
            GC.AddSend(Packets.NPCLink("Archer-100kCps", 4));
            GC.AddSend(Packets.NPCLink("Ninja-100kCps", 7));
            GC.AddSend(Packets.NPCLink("Woah Too Much.", 255));
            GC.AddSend(Packets.NPCSetFace(15));
            GC.AddSend(Packets.NPCFinish());
        }
        else if (GC.MyChar.Inventory.Count < 20)             

        {
            if (Control == 2)
            {
                if (GC.MyChar.CPs >= 100000)
                {
                    GC.MyChar.CPs -= 100000;
                    GC.MyChar.AddItem(114109 - 12 - 7 - 255 - 3 - 3);//Head Gear
                    GC.MyChar.AddItem(421339 - 12 - 7 - 255 - 3 - 3);//BackSword
                    GC.MyChar.AddItem(120249 - 12 - 7 - 255 - 3 - 3);//Necklace
                    GC.MyChar.AddItem(150249 - 12 - 7 - 255 - 3 - 3);//Ring
                    GC.MyChar.AddItem(160249 - 12 - 7 - 255 - 3 - 3);//Boots
                    GC.MyChar.AddItem(134109 - 12 - 7 - 255 - 3 - 3);//Armor
                    GC.MyChar.AddItem(201009 - 12 - 1 - 0 - 123 - 123);//HeavenFan
                    GC.MyChar.AddItem(202009 - 12 - 1 - 0 - 103 - 103);//StarTower
                    GC.AddSend(Packets.NPCSay("Congratz."));
                    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 money."));
                    GC.AddSend(Packets.NPCLink("I see.", 255));
                    GC.AddSend(Packets.NPCSetFace(N.Avatar));
                    GC.AddSend(Packets.NPCFinish());
                }
            }
            else if (Control == 3)
            {
                if (GC.MyChar.CPs >= 100000)
                {
                    GC.MyChar.CPs -= 100000;
                    GC.MyChar.AddItem(114109 - 12 - 7 - 255 - 13 - 13);//Head Gear
                    GC.MyChar.AddItem(560339 - 12 - 7 - 255 - 13 - 13);//Spear
                    GC.MyChar.AddItem(120249 - 12 - 7 - 255 - 13 - 13);//Necklace
                    GC.MyChar.AddItem(150249 - 12 - 7 - 255 - 13 - 13);//Ring
                    GC.MyChar.AddItem(160249 - 12 - 7 - 255 - 13 - 13);//Boots
                    GC.MyChar.AddItem(134109 - 12 - 7 - 255 - 13 - 13);//Armor
                    GC.MyChar.AddItem(201009 - 12 - 1 - 0 - 123 - 123);//HeavenFan
                    GC.MyChar.AddItem(202009 - 12 - 1 - 0 - 103 - 103);//StarTower
                    GC.AddSend(Packets.NPCSay("Congratz."));
                    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 money."));
                    GC.AddSend(Packets.NPCLink("I see.", 255));
                    GC.AddSend(Packets.NPCSetFace(N.Avatar));
                    GC.AddSend(Packets.NPCFinish());
                }
            }
            else if (Control == 4)
            {
                if (GC.MyChar.CPs >= 100000)
                {
                    GC.MyChar.CPs -= 100000;
                    GC.MyChar.AddItem(142109 - 12 - 7 - 255 - 13 - 13);//Head Gear
                    GC.MyChar.AddItem(500329 - 12 - 7 - 255 - 13 - 13);//Bow
                    GC.MyChar.AddItem(120249 - 12 - 7 - 255 - 13 - 13);//Necklace
                    GC.MyChar.AddItem(150249 - 12 - 7 - 255 - 13 - 13);//Ring
                    GC.MyChar.AddItem(160249 - 12 - 7 - 255 - 13 - 13);//Boots
                    GC.MyChar.AddItem(133109 - 12 - 7 - 255 - 13 - 13);//Armor
                    GC.MyChar.AddItem(201009 - 12 - 1 - 0 - 123 - 123);//HeavenFan
                    GC.MyChar.AddItem(202009 - 12 - 1 - 0 - 103 - 103);//StarTower
                    GC.AddSend(Packets.NPCSay("Congratz."));
                    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 money."));
                    GC.AddSend(Packets.NPCLink("I see.", 255));
                    GC.AddSend(Packets.NPCSetFace(N.Avatar));
                    GC.AddSend(Packets.NPCFinish());
                }
            }
            if (Control == 5)
            {
                if (GC.MyChar.CPs >= 100000)
                {
                    GC.MyChar.CPs -= 100000;
                    GC.MyChar.AddItem(141109 - 12 - 7 - 255 - 13 - 13);//Head Gear
                    GC.MyChar.AddItem(480339 - 12 - 7 - 255 - 13 - 13);//Club
                    GC.MyChar.AddItem(410339 - 12 - 7 - 255 - 13 - 13);//Blade
                    GC.MyChar.AddItem(420339 - 12 - 7 - 255 - 13 - 13);//Sword
                    GC.MyChar.AddItem(900109 - 12 - 7 - 255 - 13 - 13);//Shield
                    GC.MyChar.AddItem(120249 - 12 - 7 - 255 - 13 - 13);//Necklace
                    GC.MyChar.AddItem(150249 - 12 - 7 - 255 - 13 - 13);//Ring
                    GC.MyChar.AddItem(160249 - 12 - 7 - 255 - 13 - 13);//Boots
                    GC.MyChar.AddItem(131109 - 12 - 7 - 255 - 13 - 13);//Armor
                    GC.MyChar.AddItem(201009 - 12 - 1 - 0 - 123 - 123);//HeavenFan
                    GC.MyChar.AddItem(202009 - 12 - 1 - 0 - 103 - 103);//StarTower
                    GC.AddSend(Packets.NPCSay("Congratz."));
                    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 (Control == 6)
            {
                if (GC.MyChar.CPs >= 100000)
                {
                    GC.MyChar.CPs -= 100000;
                    GC.MyChar.AddItem(118109 - 12 - 7 - 255 - 13 - 13);//Head Gear
                    GC.MyChar.AddItem(480339 - 12 - 7 - 255 - 13 - 13);//Club
                    GC.MyChar.AddItem(410339 - 12 - 7 - 255 - 13 - 13);//Blade
                    GC.MyChar.AddItem(420339 - 12 - 7 - 255 - 13 - 13);//Sword
                    GC.MyChar.AddItem(120249 - 12 - 7 - 255 - 13 - 13);//Necklace
                    GC.MyChar.AddItem(150249 - 12 - 7 - 255 - 13 - 13);//Ring
                    GC.MyChar.AddItem(160249 - 12 - 7 - 255 - 13 - 13);//Boots
                    GC.MyChar.AddItem(130109 - 12 - 7 - 255 - 13 - 13);//Armor
                    GC.MyChar.AddItem(201009 - 12 - 1 - 0 - 123 - 123);//HeavenFan
                    GC.MyChar.AddItem(202009 - 12 - 1 - 0 - 103 - 103);//StarTower
                    GC.AddSend(Packets.NPCSay("Congratz."));
                    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 (Control == 7)
            {
                if (GC.MyChar.CPs >= 100000)
                {
                    GC.MyChar.CPs -= 100000;
                    GC.MyChar.AddItem(123109 - 12 - 7 - 255 - 13 - 13);//Head Gear
                    GC.MyChar.AddItem(601339 - 12 - 7 - 255 - 13 - 13);//Katana
                    GC.MyChar.AddItem(601339 - 12 - 7 - 255 - 13 - 13);//Katana
                    GC.MyChar.AddItem(120249 - 12 - 7 - 255 - 13 - 13);//Necklace
                    GC.MyChar.AddItem(150249 - 12 - 7 - 255 - 13 - 13);//Ring
                    GC.MyChar.AddItem(160249 - 12 - 7 - 255 - 13 - 13);//Boots
                    GC.MyChar.AddItem(135109 - 12 - 7 - 255 - 13 - 13);//Armor
                    GC.MyChar.AddItem(201009 - 12 - 1 - 0 - 123 - 123);//HeavenFan
                    GC.MyChar.AddItem(202009 - 12 - 1 - 0 - 103 - 103);//StarTower
                    GC.AddSend(Packets.NPCSay("Congratz."));
                    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("Your inventory is more than 20."));
            GC.AddSend(Packets.NPCLink("I see.", 255));
            GC.AddSend(Packets.NPCSetFace(N.Avatar));
            GC.AddSend(Packets.NPCFinish());
        }
        break;
    }
    #endregion
biohazardous is offline  
Old 10/10/2010, 23:34   #2
 
.Beatz's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 1,190
Received Thanks: 516
Try this as an example.

Code:
#region Kid Seller
    case 4466:
    {
        if (Control == 0)
        {
                GC.AddSend(Packets.NPCSay("Welcome to the Valhalla Legends Market - I'll give you stuff for a fee. I am one of bios Legendary Npcs!"));
                GC.AddSend(Packets.NPCLink("Cool let me in.", 1));
                GC.AddSend(Packets.NPCLink("Haa Ok Then", 255));
                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                GC.AddSend(Packets.NPCFinish());
        }
            if (Control == 1)
            {
            GC.AddSend(Packets.NPCSay("I can gift you with some gear of specified profesion"));
            GC.AddSend(Packets.NPCLink("FireTao-100kCps", 2));
            GC.AddSend(Packets.NPCLink("WaterTao-100kCps", 3));
            GC.AddSend(Packets.NPCLink("Warrior-100kCps", 5));
            GC.AddSend(Packets.NPCLink("Trojan-100kCps", 6));
            GC.AddSend(Packets.NPCLink("Archer-100kCps", 4));
            GC.AddSend(Packets.NPCLink("Ninja-100kCps", 7));
            GC.AddSend(Packets.NPCLink("Woah Too Much.", 255));
            GC.AddSend(Packets.NPCSetFace(15));
            GC.AddSend(Packets.NPCFinish());
        }     
        {
            if (Control == 2)
            {
 if (GC.MyChar.Inventory.Count < 20)
{
                if (GC.MyChar.CPs >= 100000)
                {
                    GC.MyChar.CPs -= 100000;
                    GC.MyChar.AddItem(114109 - 12 - 7 - 255 - 3 - 3);//Head Gear
                    GC.MyChar.AddItem(421339 - 12 - 7 - 255 - 3 - 3);//BackSword
                    GC.MyChar.AddItem(120249 - 12 - 7 - 255 - 3 - 3);//Necklace
                    GC.MyChar.AddItem(150249 - 12 - 7 - 255 - 3 - 3);//Ring
                    GC.MyChar.AddItem(160249 - 12 - 7 - 255 - 3 - 3);//Boots
                    GC.MyChar.AddItem(134109 - 12 - 7 - 255 - 3 - 3);//Armor
                    GC.MyChar.AddItem(201009 - 12 - 1 - 0 - 123 - 123);//HeavenFan
                    GC.MyChar.AddItem(202009 - 12 - 1 - 0 - 103 - 103);//StarTower
                    GC.AddSend(Packets.NPCSay("Congratz."));
                    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 money."));
                    GC.AddSend(Packets.NPCLink("I see.", 255));
                    GC.AddSend(Packets.NPCSetFace(N.Avatar));
                    GC.AddSend(Packets.NPCFinish());
}
else
{
            GC.AddSend(Packets.NPCSay("Your inventory is more than 20."));
            GC.AddSend(Packets.NPCLink("I see.", 255));
            GC.AddSend(Packets.NPCSetFace(N.Avatar));
            GC.AddSend(Packets.NPCFinish());
        }
              }
                break;
            }
if you have problems add me on msn and I will TV or something and fix it for you.
.Beatz is offline  
Old 10/11/2010, 02:23   #3
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
PHP Code:
#region Kid Seller
case 4466:
switch(
Control)
{
case 
0:
GC.AddSend(Packets.NPCSay("Welcome to the Valhalla Legends Market - I'll give you stuff for a fee. I am one of bios Legendary Npcs!"));
GC.AddSend(Packets.NPCLink("Cool let me in."1));
GC.AddSend(Packets.NPCLink("Haa Ok Then"255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
break
case 
1:
if (
GC.MyChar.Inventory.count 20 && GC.MyChar.CPs 99999)
{
GC.AddSend(Packets.NPCSay("I can gift you with some gear of specified profesion"));
GC.AddSend(Packets.NPCLink("FireTao-100kCps"2));
GC.AddSend(Packets.NPCLink("WaterTao-100kCps"3));
GC.AddSend(Packets.NPCLink("Warrior-100kCps"5));
GC.AddSend(Packets.NPCLink("Trojan-100kCps"6));
GC.AddSend(Packets.NPCLink("Archer-100kCps"4));
GC.AddSend(Packets.NPCLink("Ninja-100kCps"7));
GC.AddSend(Packets.NPCLink("Woah Too Much."255));
GC.AddSend(Packets.NPCSetFace(15));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("Please check your inventory space and amount of CPs. You need at least 20 free spaces and 100,000 CPs"));
GC.AddSend(Packets.NPCLink("I see."255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
break;
case 
2:
break;
case 
3:
break;
case 
4:
break;
case 
5:
break;
case 
6:
break;
case 
7:
break;
}
break;
#endregion 
Give that a go, just fill case 2-7, with the function you want them to do.
Arcо is offline  
Thanks
1 User
Old 10/11/2010, 03:28   #4
 
elite*gold: 0
Join Date: Mar 2010
Posts: 91
Received Thanks: 5
Quote:
Originally Posted by Аrco View Post
PHP Code:
#region Kid Seller
case 4466:
switch(
Control)
{
case 
0:
GC.AddSend(Packets.NPCSay("Welcome to the Valhalla Legends Market - I'll give you stuff for a fee. I am one of bios Legendary Npcs!"));
GC.AddSend(Packets.NPCLink("Cool let me in."1));
GC.AddSend(Packets.NPCLink("Haa Ok Then"255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
break
case 
1:
if (
GC.MyChar.Inventory.count 20 && GC.MyChar.CPs 99999)
{
GC.AddSend(Packets.NPCSay("I can gift you with some gear of specified profesion"));
GC.AddSend(Packets.NPCLink("FireTao-100kCps"2));
GC.AddSend(Packets.NPCLink("WaterTao-100kCps"3));
GC.AddSend(Packets.NPCLink("Warrior-100kCps"5));
GC.AddSend(Packets.NPCLink("Trojan-100kCps"6));
GC.AddSend(Packets.NPCLink("Archer-100kCps"4));
GC.AddSend(Packets.NPCLink("Ninja-100kCps"7));
GC.AddSend(Packets.NPCLink("Woah Too Much."255));
GC.AddSend(Packets.NPCSetFace(15));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("Please check your inventory space and amount of CPs. You need at least 20 free spaces and 100,000 CPs"));
GC.AddSend(Packets.NPCLink("I see."255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
break;
case 
2:
break;
case 
3:
break;
case 
4:
break;
case 
5:
break;
case 
6:
break;
case 
7:
break;
}
break;
#endregion 
Give that a go, just fill case 2-7, with the function you want them to do.
Got it figured out(not by me) but thanks anyway arco i found out my source is coded differently than yours but use tanels system still
Could you please Close this thread Arco
biohazardous is offline  
Old 10/11/2010, 05:47   #5
 
elite*gold: 0
Join Date: Oct 2010
Posts: 21
Received Thanks: 17
Quote:
Originally Posted by biohazardous View Post
Got it figured out(not by me) but thanks anyway arco i found out my source is coded differently than yours but use tanels system still
Could you please Close this thread Arco
He cannot, he is not a moderator in this section.
-diRt is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[GUIDE] DSEE [EU] How to set your bot correctly
05/02/2010 - Dragonica Hacks, Bots, Cheats & Exploits - 116 Replies
Okay Kane49 have been asking for a "How to use" DragonicaSEE so here we go. (Sorry for my poor English, I'm French. ;) ) 1. Download DSEE for 0.908.2701 : Here (Last Version, Beta) 2. Extract the 2 files in the RAR archive downloaded on your desktop just like this : http://img34.imageshack.us/img34/6804/98045139.jp g
how to work cabalrider PH 1.0.7 correctly
07/17/2008 - Cabal Online - 9 Replies
at first when i tried to bot using cr PH 1.0.7 and login, the cabalrider wont show up... then i tried experimenting and found this solution... 1st u have to open the game CABAL then when u start the game the nprotect gameguard update will show up (u have to cancel it before it is done) . after u cancel it there will be a message in the game saying there is an error (gameguard error) gameguard detected something. After that close the game and open ur cabalriderPH 1.0.7 login and start the game...
How to scan your weapon correctly?
05/19/2008 - RF Online - 2 Replies
Can some1 teach me how to scan your weapon correctly...every time i scan my weapon several addresses were found on the left window of CE.. is it always on the 1st address were is Smart intense Missile Launcher is A2 A9?
Help ! Am I using ALBot correctly ?
12/17/2007 - Archlord - 5 Replies
I tried it with a level 1 character and it works great, able to target each mob, kill it and pick up the loot. However when I try it on a higher level character with AOE attacks, it can only target one mob at a time. Even with AOE attacks, it will finish the target mob and wait aother second before it will move onto the next mob. Within this 1 second it will receive sufficient damage from the remaining mob...
FOR EVERYONE WHO CANNOT GET SV 1.17 TO RUN CORRECTLY
10/26/2007 - CO2 Guides & Templates - 90 Replies
I am not taking credit for any of this. Frankly, I had problems with SV 1.17 crashing every hour and that made me mad. I was not able to bot when I slept :( . However, all you helpless folk, fret no longer. This is a guide for you to get it to work. It is very simple folks. Here is how you get SV to work WITHOUT crashing. First of all, follow the instructions here: http://www.elitepvpers.com/forum/co2-guides-templat es/90725-sv-1-17-4353-diy-updated-dura-lost.html This will get you to be...



All times are GMT +1. The time now is 05:22.


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.