Register for your free account! | Forgot your password?

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

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

Advertisement



[Request] NPC gives Exp

Discussion on [Request] NPC gives Exp within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2009
Posts: 27
Received Thanks: 0
[Request] NPC gives Exp

Can someone make a code that NPC give exp... Please. Thanks.
LetMeBeTheOne is offline  
Old 08/06/2009, 19:25   #2
 
xellios's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 310
Received Thanks: 13
= Source?
xellios is offline  
Old 08/07/2009, 17:47   #3
 
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 99
Make an npc that gives you say..10 exp ***** worth of Exp for LOTF.
Jay1029 is offline  
Old 08/07/2009, 18:05   #4
 
elite*gold: 0
Join Date: Aug 2006
Posts: 323
Received Thanks: 14
Quote:
Originally Posted by Jay1029 View Post
Make an npc that gives you say..10 exp balls worth of Exp for LOTF.
Code:
                                if (CurrentNPC == 1234)
                                {
                                    SendPacket(General.MyPackets.NPCSay("Hello, you want some exp?"));
                                    SendPacket(General.MyPackets.NPCLink("Yes please!", 1));
                                    SendPacket(General.MyPackets.NPCLink("Get a job.", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(1));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }


                            if (CurrentNPC == 1234)
                            {
                                if (Control == 1)
                                {
               				 if (Level < 100)
                  			 AddExp((ulong)(1295000 + Level * 500000), false);

               				 else if (Level < 110)
                  			 AddExp((ulong)(1395000 + Level * 800000), false);

               				 else if (Level < 115)
                 			 AddExp((ulong)(1595000 + Level * 1000000), false);

               				 else if (Level < 120)
                   			 AddExp((ulong)(1895000 + Level * 1200000), false);

             				 else if (Level < 125)
                    			 AddExp((ulong)(2095000 + Level * 1500000), false);

               				 else if (Level < 130)
                  			 AddExp((ulong)(2395000 + Level * 1800000), false);

                			 else if (Level < 135)
                   			 AddExp((ulong)(2895000 + Level * 2000000), false);

                                	SendPacket(General.MyPackets.NPCSay("There you go."));
                                        SendPacket(General.MyPackets.NPCLink("Thanks!", 255));
                                        SendPacket(General.MyPackets.NPCSetFace(1));
                                        SendPacket(General.MyPackets.NPCFinish());

                                }
			    }
First part is Talk second is Do.
killermickle is offline  
Old 08/07/2009, 22:01   #5
 
ZkiNeF's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 80
Received Thanks: 7
Killermickle... its a nice code xD!
ZkiNeF is offline  
Old 08/09/2009, 05:23   #6
 
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 99
Yeah that is a nice code. I'm sure anyone with some decent knowledge of C# could make it work. At the moment it gives errors =p
Jay1029 is offline  
Old 08/09/2009, 11:58   #7
 
elite*gold: 0
Join Date: Aug 2006
Posts: 323
Received Thanks: 14
Quote:
Originally Posted by Jay1029 View Post
Yeah that is a nice code. I'm sure anyone with some decent knowledge of C# could make it work. At the moment it gives errors =p
Im assuming you're putting it in wrong.

case 2031:
Code:
                           if (CurrentNPC == 1234)
                                {
                                    SendPacket(General.MyPackets.NPCSay("Hello, you want some exp?"));
                                    SendPacket(General.MyPackets.NPCLink("Yes please!", 1));
                                    SendPacket(General.MyPackets.NPCLink("Get a job.", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(1));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
case 2032:
Code:
                           if (CurrentNPC == 1234)
                            {
                                if (Control == 1)
                                {
               				 if (Level < 100)
                  			 AddExp((ulong)(1295000 + Level * 500000), false);

               				 else if (Level < 110)
                  			 AddExp((ulong)(1395000 + Level * 800000), false);

               				 else if (Level < 115)
                 			 AddExp((ulong)(1595000 + Level * 1000000), false);

               				 else if (Level < 120)
                   			 AddExp((ulong)(1895000 + Level * 1200000), false);

             				 else if (Level < 125)
                    			 AddExp((ulong)(2095000 + Level * 1500000), false);

               				 else if (Level < 130)
                  			 AddExp((ulong)(2395000 + Level * 1800000), false);

                			 else if (Level < 135)
                   			 AddExp((ulong)(2895000 + Level * 2000000), false);

                                	SendPacket(General.MyPackets.NPCSay("There you go."));
                                        SendPacket(General.MyPackets.NPCLink("Thanks!", 255));
                                        SendPacket(General.MyPackets.NPCSetFace(1));
                                        SendPacket(General.MyPackets.NPCFinish());

                                }
			    }
killermickle is offline  
Old 08/09/2009, 18:22   #8
 
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 99
Nope that's what I did. Maybe my source is coded differently idk
Jay1029 is offline  
Old 08/09/2009, 18:25   #9
 
elite*gold: 0
Join Date: Aug 2006
Posts: 323
Received Thanks: 14
Quote:
Originally Posted by Jay1029 View Post
Nope that's what I did. Maybe my source is coded differently idk
Sorry thats my fault, I should have tried it first.

Code:
                                if (CurrentNPC == 1234)
                                {
                                    if (Control == 1)
                                    {
                                        if (MyChar.Level < 100)
                                            MyChar.AddExp((ulong)(1295000 + MyChar.Level * 500000), false);

                                        else if (MyChar.Level < 110)
                                            MyChar.AddExp((ulong)(1395000 + MyChar.Level * 800000), false);

                                        else if (MyChar.Level < 115)
                                            MyChar.AddExp((ulong)(1595000 + MyChar.Level * 1000000), false);

                                        else if (MyChar.Level < 120)
                                            MyChar.AddExp((ulong)(1895000 + MyChar.Level * 1200000), false);

                                        else if (MyChar.Level < 125)
                                            MyChar.AddExp((ulong)(2095000 + MyChar.Level * 1500000), false);

                                        else if (MyChar.Level < 130)
                                            MyChar.AddExp((ulong)(2395000 + MyChar.Level * 1800000), false);

                                        else if (MyChar.Level < 135)
                                            MyChar.AddExp((ulong)(2895000 + MyChar.Level * 2000000), false);

                                        SendPacket(General.MyPackets.NPCSay("There you go."));
                                        SendPacket(General.MyPackets.NPCLink("Thanks!", 255));
                                        SendPacket(General.MyPackets.NPCSetFace(1));
                                        SendPacket(General.MyPackets.NPCFinish());

                                    }
                                }
killermickle is offline  
Thanks
1 User
Old 08/09/2009, 18:46   #10
 
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 99
There you go =) Nice work.
Jay1029 is offline  
Old 08/10/2009, 21:06   #11
 
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 99
Hey bro I got a question. I added something so that players above level 70 can not receive Exp. When I'm in the game it still gives me Exp although I'm above level 70. The NPC also keeps saying "Sorry this is only for players below level 70. To help them." Over and over every time I click "Oh, my bad" It says it again. I'm pretty sure everything is right too. Please have a look.

Code:
if (CurrentNPC == 1235)
                            {
                                if (Control == 1)
                                {
                                    if (MyChar.Level < 100)
                                        MyChar.AddExp((ulong)(1295000 + MyChar.Level * 1000000), false);
                                    else if (MyChar.Level < 110)
                                        MyChar.AddExp((ulong)(1395000 + MyChar.Level * 1600000), false);
                                    else if (MyChar.Level < 115)
                                        MyChar.AddExp((ulong)(1595000 + MyChar.Level * 2000000), false);
                                    else if (MyChar.Level < 120)
                                        MyChar.AddExp((ulong)(1895000 + MyChar.Level * 2400000), false);
                                    else if (MyChar.Level < 125)
                                        MyChar.AddExp((ulong)(2095000 + MyChar.Level * 3000000), false);
                                    else if (MyChar.Level < 130)
                                        MyChar.AddExp((ulong)(2395000 + MyChar.Level * 3600000), false);
                                    else if (MyChar.Level < 135)
                                        MyChar.AddExp((ulong)(2895000 + MyChar.Level * 4000000), false);
                                    SendPacket(General.MyPackets.NPCSay("There you go."));
                                    SendPacket(General.MyPackets.NPCLink("Thanks!", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(1));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                                if (MyChar.Level >= 70)
                                {
                                    SendPacket(General.MyPackets.NPCSay("Sorry this is only for players to level 70 or below. To help them out."));
                                    SendPacket(General.MyPackets.NPCLink("Oh, my bad.", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(1));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                            }
Jay1029 is offline  
Old 08/11/2009, 12:13   #12
 
elite*gold: 0
Join Date: Aug 2006
Posts: 323
Received Thanks: 14
Quote:
Originally Posted by Jay1029 View Post
Hey bro I got a question. I added something so that players above level 70 can not receive Exp. When I'm in the game it still gives me Exp although I'm above level 70. The NPC also keeps saying "Sorry this is only for players below level 70. To help them." Over and over every time I click "Oh, my bad" It says it again. I'm pretty sure everything is right too. Please have a look.
Code:
                                if (CurrentNPC == 1235)
                                {
                                    if (Control == 1)
                                    {
                                        if (MyChar.Level <= 70)
                                            MyChar.AddExp((ulong)(1295000 + MyChar.Level * 1000000), false);
                                        SendPacket(General.MyPackets.NPCSay("There you go."));
                                        SendPacket(General.MyPackets.NPCLink("Thanks!", 255));
                                        SendPacket(General.MyPackets.NPCSetFace(1));
                                        SendPacket(General.MyPackets.NPCFinish());
                                    }
                                    if (MyChar.Level > 70)
                                    {
                                        SendPacket(General.MyPackets.NPCSay("Sorry this is only for players to level 70 or below. To help them out."));
                                        SendPacket(General.MyPackets.NPCLink("Oh, my bad.", 255));
                                        SendPacket(General.MyPackets.NPCSetFace(1));
                                        SendPacket(General.MyPackets.NPCFinish());
                                    }
                                }
killermickle is offline  
Thanks
1 User
Old 08/11/2009, 20:45   #13
 
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 99
Bah! I should have been able to figure that out -.-
Thanks again dude =D
Jay1029 is offline  
Reply


Similar Threads Similar Threads
[Request] Request all 5165 sources/npc dialog
02/28/2010 - CO2 Private Server - 0 Replies
so i want to do a good source like every1 right ? so i stay some time and i got a idea to take lot of 5165 and take what's not bugged and essentialy :mofo: i will release it :D
[Request]ZeroTolerance Dekaron Admin Request
02/21/2010 - Dekaron Private Server - 1 Replies
We need Staff Members ~EDITED~
[REQUEST] speak freakin english -_- florensi hack [REQUEST]
01/22/2010 - Florensia - 1 Replies
any florensia hacks?



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


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.