Register for your free account! | Forgot your password?

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

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

Advertisement



[Question]Npc selling moonbox.

Discussion on [Question]Npc selling moonbox. within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2008
Posts: 98
Received Thanks: 6
Question [Question]Npc selling moonbox.

hello,

i want a Npc in Twin City who is selling Moonboxes for any price.
Could anybody tell me how to create that Npc?
alex4war is offline  
Old 05/06/2010, 23:20   #2
 
elite*gold: 0
Join Date: May 2010
Posts: 33
Received Thanks: 9
Quote:
Originally Posted by alex4war View Post
hello,

i want a Npc in Twin City who is selling Moonboxes for any price.
Could anybody tell me how to create that Npc?

Code:
#region Promotion Item Seller
                            case 24:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Would u like to buy any of these promotion items"));
                                        GC.AddSend(Packets.NPCLink("Eux Ores (10CPs)", 1));
                                        GC.AddSend(Packets.NPCLink("Emerald (10CPs)", 2));
                                        GC.AddSend(Packets.NPCLink("Meteor (13CPs)", 3));
                                        GC.AddSend(Packets.NPCLink("Moonbox (200CPs)", 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 >= 100)
                                        {
                                            GC.MyChar.CPs -= 100;
                                            GC.MyChar.AddItem(1072031);
                                        }
                                    }
                                    if (Control == 2)
                                    {
                                        if (GC.MyChar.CPs >= 10)
                                        {
                                            GC.MyChar.CPs -= 10;
                                            GC.MyChar.AddItem(1080001);
                                        }
                                    }
                                    if (Control == 3)
                                    {
                                        if (GC.MyChar.CPs >= 13)
                                        {
                                            GC.MyChar.CPs -= 13;
                                            GC.MyChar.AddItem(1088001);
                                        }
                                    }
                                    if (Control == 4)
                                    {
                                        if (GC.MyChar.CPs >= 200)
                                        {
                                            GC.MyChar.CPs -= 200;
                                            GC.MyChar.AddItem(721020);
                                        }
                                    }
                                    break;
                                }
                            #endregion

also add this at the bottom in NPCs.txt

Code:
24 1390 2 0 1002 382 341
Press thanks if it helped
NeoN[PM] is offline  
Thanks
1 User
Old 05/08/2010, 19:58   #3
 
ftp4life's Avatar
 
elite*gold: 0
Join Date: Mar 2007
Posts: 130
Received Thanks: 9
do you know why im getting an error saying this (my ID is 24) and nothing else
ftp4life is offline  
Old 05/08/2010, 22:06   #4
 
elite*gold: 0
Join Date: Jul 2008
Posts: 98
Received Thanks: 6
It Says Hi,i dont talk my ID is 24
alex4war is offline  
Old 05/08/2010, 22:37   #5
 
elite*gold: 0
Join Date: May 2006
Posts: 297
Received Thanks: 58
u maybe already have an NPC who's case is "24"
Make it Case 030208..

change in NPC.txt here:
Code:
24 1390 2 0 1002 382 341
Will be:
Code:
030208 1390 2 0 1002 382 341


In NPCDialog.cs
will be this:
Code:
#region Promotion Item Seller
                            case 030208:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Would u like to buy any of these promotion items"));
                                        GC.AddSend(Packets.NPCLink("Eux Ores (10CPs)", 1));
                                        GC.AddSend(Packets.NPCLink("Emerald (10CPs)", 2));
                                        GC.AddSend(Packets.NPCLink("Meteor (13CPs)", 3));
                                        GC.AddSend(Packets.NPCLink("Moonbox (200CPs)", 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 >= 100)
                                        {
                                            GC.MyChar.CPs -= 100;
                                            GC.MyChar.AddItem(1072031);
                                        }
                                    }
                                    if (Control == 2)
                                    {
                                        if (GC.MyChar.CPs >= 10)
                                        {
                                            GC.MyChar.CPs -= 10;
                                            GC.MyChar.AddItem(1080001);
                                        }
                                    }
                                    if (Control == 3)
                                    {
                                        if (GC.MyChar.CPs >= 13)
                                        {
                                            GC.MyChar.CPs -= 13;
                                            GC.MyChar.AddItem(1088001);
                                        }
                                    }
                                    if (Control == 4)
                                    {
                                        if (GC.MyChar.CPs >= 200)
                                        {
                                            GC.MyChar.CPs -= 200;
                                            GC.MyChar.AddItem(721020);
                                        }
                                    }
                                    break;
                                }
                            #endregion
Still thanks for neon
pintser is offline  
Thanks
1 User
Old 05/08/2010, 22:49   #6
 
elite*gold: 0
Join Date: May 2010
Posts: 33
Received Thanks: 9
Quote:
Originally Posted by pintser View Post
u maybe already have an NPC who's case is "24"
Make it Case 030208..

change in NPC.txt here:
Code:
24 1390 2 0 1002 382 341
Will be:
Code:
030208 1390 2 0 1002 382 341


In NPCDialog.cs
will be this:
Code:
#region Promotion Item Seller
                            case 030208:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Would u like to buy any of these promotion items"));
                                        GC.AddSend(Packets.NPCLink("Eux Ores (10CPs)", 1));
                                        GC.AddSend(Packets.NPCLink("Emerald (10CPs)", 2));
                                        GC.AddSend(Packets.NPCLink("Meteor (13CPs)", 3));
                                        GC.AddSend(Packets.NPCLink("Moonbox (200CPs)", 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 >= 100)
                                        {
                                            GC.MyChar.CPs -= 100;
                                            GC.MyChar.AddItem(1072031);
                                        }
                                    }
                                    if (Control == 2)
                                    {
                                        if (GC.MyChar.CPs >= 10)
                                        {
                                            GC.MyChar.CPs -= 10;
                                            GC.MyChar.AddItem(1080001);
                                        }
                                    }
                                    if (Control == 3)
                                    {
                                        if (GC.MyChar.CPs >= 13)
                                        {
                                            GC.MyChar.CPs -= 13;
                                            GC.MyChar.AddItem(1088001);
                                        }
                                    }
                                    if (Control == 4)
                                    {
                                        if (GC.MyChar.CPs >= 200)
                                        {
                                            GC.MyChar.CPs -= 200;
                                            GC.MyChar.AddItem(721020);
                                        }
                                    }
                                    break;
                                }
                            #endregion
Still thanks for neon

Thanks Dident think about "ID is already in use" ^^
NeoN[PM] is offline  
Old 05/08/2010, 23:02   #7
 
elite*gold: 0
Join Date: May 2006
Posts: 297
Received Thanks: 58
np...
pintser is offline  
Old 05/09/2010, 12:56   #8
 
elite*gold: 0
Join Date: Jul 2008
Posts: 98
Received Thanks: 6
She says hi, i dont talk anything useful yet, my id is 30208 i did everything you say. help me?
alex4war is offline  
Old 05/09/2010, 13:47   #9
 
elite*gold: 0
Join Date: May 2006
Posts: 297
Received Thanks: 58
did u put it in NPc.Dialog?
are u using 5165?
pintser is offline  
Old 05/09/2010, 15:38   #10
 
elite*gold: 0
Join Date: Jul 2008
Posts: 98
Received Thanks: 6
yes and yes
alex4war is offline  
Old 05/09/2010, 15:42   #11
 
elite*gold: 0
Join Date: May 2006
Posts: 297
Received Thanks: 58
Add me on msn, email is in PM
pintser is offline  
Old 05/09/2010, 16:54   #12
 
ftp4life's Avatar
 
elite*gold: 0
Join Date: Mar 2007
Posts: 130
Received Thanks: 9
okay i had fixed it but now i cant even use the moon box it says not added yet its for promotion use only and it doesnt work for promo either u got any idea bout that bro?
ftp4life is offline  
Old 05/09/2010, 17:09   #13
 
elite*gold: 0
Join Date: May 2006
Posts: 297
Received Thanks: 58
look in youre: items.txt
Search for moonbox

Look if there are 2 diffrent itemtypes..(7 numbers long i thought)
then just compare them in youre promotion Npc code..
and if needed change them.
pintser is offline  
Old 05/09/2010, 18:14   #14
 
ftp4life's Avatar
 
elite*gold: 0
Join Date: Mar 2007
Posts: 130
Received Thanks: 9
how bout i send u my 2 files and tell me wth is wrong with them
ftp4life is offline  
Old 05/09/2010, 19:21   #15
 
elite*gold: 0
Join Date: May 2010
Posts: 298
Received Thanks: 57
Here it is WORKING RIGHT ID and a faster way to do npc's
Code:
#region MoobBox seller
                            case 559988:
                                {
                                    switch (Control)
                                    {
                                        case 0:
                                            Say("Would you like to MooobBox for 1000CPs ?", GC);
                                            Link("Yes", 2, GC);
                                            Link("No", 255, GC);
                                            break;

                                        case 2:
                                            if (GC.MyChar.CPs == 1000)
                                            {
                                                GC.MyChar.AddItem(721080);
                                                Say("There you are!", GC);
                                                Link("Thanks", 255, GC);
                                            }
                                            else
                                            {
                                                Say("You do not have enough CPs", GC);
                                                Link("Ok", 255, GC);
                                            }
                                            break;
                                    }
                                    Face(N.Avatar, GC);
                                    Finish(GC);
                                    break;
                                }
                            #endregion
and if you npcs are not like that do this

Change:
- Text to GC.AddSend(Packets.NPCSay
- Link to GC.AddSend(Packets.NPCLink
- Finish(GC) to GC.AddSend(Packets.NPCFinish());
- Face(N.Avatar, GC) to GC.AddSend(Packets.NpcSetFace(N.Avater));

and add this to OldCODB/NPCs.txt
Code:
559988 1390 2 0 1002 382 341
MonstersAbroad is offline  
Reply


Similar Threads Similar Threads
moonbox question
04/02/2006 - Conquer Online 2 - 6 Replies
playin with unknownes item renamer I noticed that moonbox is listed numerous times with only the ItemId number changed on each. is this to assume that these can be renamed also like command tokens? like if I get a mb and I can tell somehow its item id 721032 and I write that down and open it and I get 3 mets can I assume that I will always get the lousy 3 mets from that one and change it in itemtype so I dont buy that one anymore? and so on and so forth till I get all of them named. would...
question about moonbox....
01/20/2006 - Conquer Online 2 - 26 Replies
was wondering how many moonbox you guy open to find a socket? Been opening over 30 moonbox so far (total), and didn't get one single socket yet. Does timing matter (like XX:33 etc) or is it just random luck? thanks
Moonbox question
09/16/2005 - Conquer Online 2 - 12 Replies
is ther eanyway to make the toughhorns with tokens larger then the ones without ? im not sure if this is already possible but if anyone knows a way or if it is possible plz let me know ty



All times are GMT +2. The time now is 15:26.


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.