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 05:45

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

Advertisement



[Release]DragonBall-Zone Parts 1 and 2! 5165 Source!

Discussion on [Release]DragonBall-Zone Parts 1 and 2! 5165 Source! within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
killersub's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
[Release]DragonBall-Zone Parts 1 and 2! 5165 Source!

Originated from 4botters, here's a little code I decided to work on...I have not yet put the mobinfos/mobspawns etc because I haven't had time to do so and since I'm basically more into NPC coding I know very little about putting mobs in their appropiate file lols...anyways enjoy the code It'll be easy to add the mob spawns later ^_^...

Part 1
Code:
#region DBZone Part 1
                            case 7005:
                                {
                                    if (Control == 0)
                                    {
                                    if (GC.MyChar.Level <= 110)
                                    {
                                        GC.AddSend(Packets.NPCSay("Hey There, " + GC.MyChar.Name + "I can help those who need CPs/Silvers badly.I can send them to a very special Map so that they can get what they want."));
                                        GC.AddSend(Packets.NPCSay("I can help those who are level 110 and below, because I know that power players are above that level. I charge but a mere 5k CPs and 5k Silvers,What do you say?"));
                                        GC.AddSend(Packets.NPCLink("I'm ready to go.", 1));
                                        GC.AddSend(Packets.NPCLink("Just passing by.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else
                                    {
                                        GC.AddSend(Packets.NPCSay("You are above that level, I cannot send you in!"));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    if (Control == 1)
                                    {
                                        {
                                            if (GC.MyChar.Silvers >= 5000)
                                            if (GC.MyChar.CPs >= 5000)
                                            {
                                                GC.MyChar.Silvers -= 5000;
                                                GC.MyChar.CPs -= 5000;
                                                GC.MyChar.Teleport(1212, 256, 401);
                                                GC.AddSend(Packets.NPCSay("Enjoy the adventureful quest young one, you'll need it!"));
                                                GC.AddSend(Packets.NPCLink("Thank you.", 255));
                                                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                GC.AddSend(Packets.NPCFinish());
                                            }
                                            else
                                            {
                                                GC.AddSend(Packets.NPCSay("You don't have the required CPs/Silvers to continue,Please go and obtain them!"));
                                                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                GC.AddSend(Packets.NPCFinish());
                                            }
                                        }
                                    }
                                }
                         break;
                         }
                            #endregion
Part 2
Code:
#region DBZone Part 2
                            case 7006:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Ha, I see that you have had enough young one, I will now teleport you out of here and on to Twin City."));
                                        GC.AddSend(Packets.NPCLink("Teleport me to Twin City!", 1));
                                        GC.AddSend(Packets.NPCLink("I'd rather stay.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (Control == 1)
                                        GC.MyChar.Teleport(1002, 453, 391);
                                    break;
                                }
                            #endregion
+thanks if this helped somehow in any way!
killersub is offline  
Thanks
2 Users
Old 02/14/2010, 03:31   #2
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Hmm you forgot the brackets in control 0 in your first npc, just thought I'd let you know.
Good job!
Arcо is online now  
Thanks
1 User
Old 02/14/2010, 03:41   #3
 
NukingFuts's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 480
Received Thanks: 111
nice work mate
NukingFuts is offline  
Old 02/14/2010, 03:43   #4
 
killersub's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
Quote:
Originally Posted by .Arco View Post
Hmm you forgot the brackets in control 0 in your first npc, just thought I'd let you know.
Good job!
rofl thanx for that I'm lazy XD I'll fix dat A.S.A.P!thanks!
killersub is offline  
Old 02/15/2010, 01:11   #5
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
There is a thanks button for a reason
hunterman01 is offline  
Old 02/15/2010, 14:36   #6
 
elite*gold: 0
Join Date: Jan 2010
Posts: 54
Received Thanks: 6
Hello.
After pasting your code and pressed F6, the following error appears:



Thank you for your help.

Edit: the error message mean:
The control can not move from one case label (case 7005: ") to another
jitus2 is offline  
Old 02/15/2010, 16:26   #7
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
break; is in the wrong spot
hunterman01 is offline  
Thanks
1 User
Old 02/15/2010, 16:43   #8
 
killersub's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
Quote:
Originally Posted by jitus2 View Post
Hello.
After pasting your code and pressed F6, the following error appears:



Thank you for your help.

Edit: the error message mean:
The control can not move from one case label (case 7005: ") to another
#UPDATED!
killersub is offline  
Old 02/15/2010, 16:47   #9
 
elite*gold: 0
Join Date: Jan 2010
Posts: 54
Received Thanks: 6
I must place where please?
I began as the state .. I did copy / paste.

Edit: I got thank you.

Edit: Another worry is ....
I have more errors when I press F6. I add 1 NPC with the corresponding ID, when I spoke to him he said "blablabla....". I put "I'm ready to go"
and there ..... nothing happens ...
jitus2 is offline  
Old 02/15/2010, 21:29   #10
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
Change the npc id to something different

Then re add it to the database and it should work fine
hunterman01 is offline  
Old 02/15/2010, 21:48   #11
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by jitus2 View Post
Hello.
After pasting your code and pressed F6, the following error appears:



Thank you for your help.

Edit: the error message mean:
The control can not move from one case label (case 7005: ") to another
The npc id 7005 is being used already.
Changed it to something else like 4567.
Arcо is online now  
Thanks
1 User
Old 02/15/2010, 22:11   #12
 
elite*gold: 0
Join Date: Jan 2010
Posts: 54
Received Thanks: 6
Thank you for your support is nice. But the problem of the NPC is set.
Now another concern is that as I told you ... When I click the npc, the following dialog box appears:



So I click on the circle that I have you box, and after nothing happens ....
I am not teleported to the map in question.
jitus2 is offline  
Reply


Similar Threads Similar Threads
[Release] My 5165 Source
03/23/2012 - CO2 PServer Guides & Releases - 74 Replies
Hello I would like to release my 5165 source to everyone. Enjoy! Features: Houses Top Halos Class PK Envoy PK Tournament Scroll Commands
[Release]5165 Source
06/13/2010 - CO2 PServer Guides & Releases - 0 Replies
This is an old 5165 Source I was adding stuff to when I was helping with EmperionCO, now its ForsakendCO. Nothing really special about it..lots of copy/paste stuff and a few small stuff I added in myself. Kept all the really cool stuff I made for myself, adding to pringles release, if anyone remembers it, which I won't release because I dont have a good enough computer to host it myself and will not have someone else host it and run off and call it thiers the same as this source im posting...
[RELEASE] My 5165 Source
02/09/2010 - CO2 PServer Guides & Releases - 4 Replies
Hello This is my 5165 source I added a few things but some things were already added, so credits to the people who added the things i didn't, xD Features: I hope you press thanks! Download HERE
[Release]5165 Source
11/23/2009 - CO2 PServer Guides & Releases - 31 Replies
#Edit There removed it now leave me alone But its not gonna matter that i removed it cause its alll on 4BOTTERS and stickied lmao #requesclose Pleas and Thank You



All times are GMT +2. The time now is 05:45.


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.