Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 03:11

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

Advertisement



[Release]Another Labyrinth NPC Code Pay with CPs to Enter Lab 1-4

Discussion on [Release]Another Labyrinth NPC Code Pay with CPs to Enter Lab 1-4 within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2008
Posts: 39
Received Thanks: 4
Cool [Release] NPC for Labyrinth (5165)

This NPC let enter you to Lab 1-4 for CPs
I added a Guide how to change the Price´s


Code:
case 1152:
{
    if (Control == 0)
    {
        GC.AddSend(Packets.NPCSay("Hey do you wish to Teleport to Labyrinth ? It will Cost you for Lab 1 ( 20 CPs ) Lab 2 ( 100 CPs ) Lab 3 ( 200 CPs) Lab 4 ( 500 CPs )."));
        GC.AddSend(Packets.NPCLink("Lab 1", 1));
        GC.AddSend(Packets.NPCLink("Lab 2", 2));
        GC.AddSend(Packets.NPCLink("Lab 3", 3));
        GC.AddSend(Packets.NPCLink("Lab 4", 4));
        GC.AddSend(Packets.NPCLink("Just passing by.", 255));
        GC.AddSend(Packets.NPCSetFace(N.Avatar));
        GC.AddSend(Packets.NPCFinish());
    }
    if (Control == 1)
    {
        if (GC.MyChar.CPs >= 20)
        {
            GC.MyChar.CPs -= 20;
            GC.MyChar.Teleport(1351, 015, 127);
            GC.AddSend(Packets.NPCSay("Here you are."));
            GC.AddSend(Packets.NPCLink("Thanks.", 255));
            GC.AddSend(Packets.NPCSetFace(N.Avatar));
            GC.AddSend(Packets.NPCFinish());
        }
    }
    else if (Control == 2)
    {
        if (GC.MyChar.CPs >= 100)
        {
            GC.MyChar.CPs -= 20;
            GC.MyChar.Teleport(1352, 029, 230);
            GC.AddSend(Packets.NPCSay("Here you are."));
            GC.AddSend(Packets.NPCLink("Thanks.", 255));
            GC.AddSend(Packets.NPCSetFace(N.Avatar));
            GC.AddSend(Packets.NPCFinish());
        }
    }
    else if (Control == 3)
    {
        if (GC.MyChar.CPs >= 200)
        {
            GC.MyChar.CPs -= 200;
            GC.MyChar.Teleport(1353, 028, 270);
            GC.AddSend(Packets.NPCSay("Here you are."));
            GC.AddSend(Packets.NPCLink("Thanks.", 255));
            GC.AddSend(Packets.NPCSetFace(N.Avatar));
            GC.AddSend(Packets.NPCFinish());
        }
    }
    else if (Control == 4)
            {
        if (GC.MyChar.CPs >= 500)
        {
            GC.MyChar.CPs -= 500;
            GC.MyChar.Teleport(1354, 009, 290);
            GC.AddSend(Packets.NPCSay("Here you are."));
            GC.AddSend(Packets.NPCLink("Thanks.", 255));
            GC.AddSend(Packets.NPCSetFace(N.Avatar));
            GC.AddSend(Packets.NPCFinish());
        }
    }
    break;
}

To Change the CPs Prices u need only to change this

if (GC.MyChar.CPs >= 500)
{
GC.MyChar.CPs -= 500;

Like to

if (GC.MyChar.CPs >= 444)
{
GC.MyChar.CPs -= 444;

Now the People have to Pay 444 CPs for entering Lab 4

Say Thanks If you Like My first Release ^^
JKdeVille is offline  
Thanks
3 Users
Old 02/05/2010, 14:51   #2
 
elite*gold: 0
Join Date: Jan 2009
Posts: 4
Received Thanks: 0
thnexx
hawas80 is offline  
Old 03/09/2010, 18:32   #3
 
DemonicCo's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 2
Received Thanks: 0
Not bad for a first release. It was good. You could have showed alittle guide to where to put this for people that are first starting out. Otherwise good.
DemonicCo is offline  
Old 03/09/2010, 18:44   #4
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by 6Sh00ter View Post
Ain't it supposed to have a #region/#endregion?
It doesn't need to, but it keeps it organized.
Arcо is offline  
Old 03/10/2010, 02:14   #5
 
killersub's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
a little one of my newbie tips XD...don't forget your else statements....like you don't need them but it keeps the server managed in an orderly way imo...Example:
Code:
else
    {
        GC.AddSend(Packets.NPCSay("You don't have the required CPs, please come back when you have them!"));
        GC.AddSend(Packets.NPCLink("I see.", 255));
        GC.AddSend(Packets.NPCSetFace(N.Avatar));
        GC.AddSend(Packets.NPCFinish());
    }

just an example you know... anyways +k since it's your first release...!
killersub is offline  
Old 03/10/2010, 18:03   #6
 
elite*gold: 0
Join Date: Mar 2009
Posts: 51
Received Thanks: 1
ummm where exactly would i put this code at cause i am a noob lol
jasonk1980 is offline  
Old 03/10/2010, 18:04   #7


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
In with the rest of your Npc Dialogs
Korvacs is offline  
Old 03/10/2010, 18:18   #8
 
elite*gold: 0
Join Date: Mar 2009
Posts: 51
Received Thanks: 1
so in NPCtalk.cs in the client file then?
jasonk1980 is offline  
Old 03/10/2010, 18:41   #9
 
elite*gold: 0
Join Date: Mar 2009
Posts: 51
Received Thanks: 1
oj nvm i found the NPCDialogue.cs file and added that in but it didnt do anything for simon is there something particular i have to do. Because when i try and use him in game it says "hi i dont talk anything useful yet my id is 1152" and that is after i added in the code. Do i need to have #region Simon before the case number?
jasonk1980 is offline  
Reply


Similar Threads Similar Threads
Whats the code so when you enter the server a message will appear were the /c message
04/04/2010 - CO2 Private Server - 15 Replies
Ok so this is a darn NOOB ass question ok so I have this in my teleport with all my other code for login GC.LocalMessage(2000, "Welcome to TestCo Coded By Paralyzer!"); GC.LocalMessage(2000, "The server is still being fixed. Anyway, We want you to enjoy this server."); GC.LocalMessage(2000, "If you want to revive here while being blessed, you have to type /rh or /revivehere."); GC.LocalMessage(2000, "Also if somehow you died, you...
[Release]enter and exit guild arena
07/14/2009 - CO2 PServer Guides & Releases - 2 Replies
just open up npc talk and put the code on top of a code yes i named it niggerislands you can change the text
[Release]Lotto limit (enter 10 times a day) - LAME XD
11/15/2008 - CO2 PServer Guides & Releases - 9 Replies
Okay I have a free 3 minutes, so I thought that 99% of the noobs doesn`t have this so, here it is. My excuse for the others is that I`m bored Okay, first go to the Character.cs at the variables, and add this line : public byte LottoCount = 0; Now go to the Lotto NPC (ID is 1846). Modify the option which teleports you to lotto. At me it looks like this Now, change it to this



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


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.