Register for your free account! | Forgot your password?

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

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

Advertisement



Adding NPC in NPC Dialog

Discussion on Adding NPC in NPC Dialog within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2010
Posts: 2
Received Thanks: 0
Lightbulb Adding NPC in NPC Dialog

Okay so I'm running 5165 (Conqure SX) I'm new to Conqure and a little rusty in c# I was wondering weather I could charge more cps each time you want a higher level so 15-16 costing 2k cps and 16-17 3k and if so would this be about right
Code:
                            #endregion
                            #region Vanish CO leveling NPC
                            case 0001:

                                    {
                                        if (option == 0)
                                        {
                                            GC.AddSend(Packets.NPCSay("Welcome to Vanish CO - This is the leveling NPC! Would you like to buy one level?"));
                                            GC.AddSend(Packets.NPCLink("Hell yeah!", 1));
                                            GC.AddSend(Packets.NPCLink("I'm cool", 255));
                                            GC.AddSend(Packets.NPCSetFace(20));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                        if (option == 1)
                                        {
                                            GC.AddSend(Packets.NPCSay("That will be 2000 cps"));
                                            GC.AddSend(Packets.NPCLink("Yes", 2));
                                            GC.AddSend(Packets.NPCLink("No way", 255));
                                        }
                                            if (option == 2)
                                            {
                                                if (GC.MyChar.CPs >= 2000)
                                        {
                                            GC.MyChar.CPs -= 2000
                                            GC.MyChar.Level += 1;
    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 (GC.MyChar.Level ==16)

                                            GC.AddSend(Packets.NPCSay("That will be 3000 cps"));
                                            GC.AddSend(Packets.NPCLink("Yes", 2));
                                            GC.AddSend(Packets.NPCLink("No way", 255));
                                                     {
                                                if (GC.MyChar.CPs >= 3000)
                                        {
                                            GC.MyChar.CPs -= 3000
                                            GC.MyChar.Level += 1;
    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());
                                        }
Thanks for your help guys
danere2k10 is offline  
Old 12/17/2013, 06:29   #2
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,211
Received Thanks: 4,114
How did you manage to find a copy of ConquerSx around? That's quite the achievement. I thought all the forums that hosted it closed. Hm.. well, if you insist on using that source, it looks like you're missing a few braces around code blocks (the { }'s). Try looking up some tutorials on selection statements if you don't quite understand what I mean.
Spirited is offline  
Old 12/17/2013, 08:14   #3
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Ooh *** I thought we were done having to hear about conquer sx....
pro4never is offline  
Old 12/17/2013, 13:58   #4
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 946
I'm literally crying right now :'(

@OP Look in the release section there is a numerous of better sources to use.
Super Aids is offline  
Reply

Tags
coding, conqure, leveling, npc


Similar Threads Similar Threads
Adding NPC's and Adding Items in Shopping Mall
03/19/2015 - CO2 Private Server - 21 Replies
Hello there, I have an 5518 source; Albetros Source. Now I have a few questions about it. 1. How do you add new NPC's and where can I find them in the Source? 2. How to add items in the Shopping Mall. I tried a few things but that didn't helped me alot. 3. How to set game char to GM. I tried to give it 5 but that didn't helped either. I looked in the Commands file and that was 5. But it didn't helped. Thanks...
[Request Help] In adding new Uniques Spawn + adding its notice
03/14/2013 - SRO Private Server - 13 Replies
Hello ... I am learning some DB Editing .. i wanted any one to explain HOW TO , add new unique spawn at one place , like add a Devil shitan at jangan door ever 2 hours from last kill .. ++ i wanted to know how to add Unique Notice .. like " Demon shitan has appeared in Roc Mt. "
Cant Add NPC.Dialog
06/21/2010 - CO2 Private Server - 12 Replies
Alright everytime im adding a npc dialog i always get the do not talk anything useful yet. Well looking at guides they tell them to put npc.txt file or w.e, add the npc code there. I have the npc and the dialog goes to that npc. So far 5 codes havnt worked ,dunno what im doing wrong, This is a example of how the npc dialog starts off



All times are GMT +2. The time now is 12:59.


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