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 04:38

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

Advertisement



[Release] 5165 furnitureNPC and store for 2nd time

Discussion on [Release] 5165 furnitureNPC and store for 2nd time within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
StarEvaAfta!~'s Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 180
Received Thanks: 82
[Release] 5165 furnitureNPC and store for 2nd time

After I got the creator's(pringle) permission to do that, im here to release furnitureNPC 5165 store
now will works perfect



THIS IS NOT MY WORK
100% TO pringle
DUN GIVE THANKS


in NPCDialog.cs and this
Code:
#region FurnitureNPC
                            case 30161:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Welcome to Twin City Furniture Store. Currently, you have limited selection, but more furniture will come in soon."));
                                        GC.AddSend(Packets.NPCLink("I wanna have a look.", 1));
                                        GC.AddSend(Packets.NPCLink("I am not interested.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (Control == 1)
                                    {
                                        GC.MyChar.Teleport(1511, 52, 70);
                                    }
                                    break;
                                }
                            #endregion
OldCODB > portals.txt
add this
Quote:
1511 51 73 1002 439 385
OldCODB > NPCs.txt
Quote:
30161 8120 2 188 1002 409 370
3113 10 26 188 1511 41 61
3114 21 26 188 1511 44 50
3115 37 26 188 1511 37 54
3116 51 26 188 1511 45 42
3117 61 26 188 1511 38 35
3118 71 26 188 1511 51 38
3119 81 26 188 1511 44 58
3120 91 26 188 1511 52 50
3121 101 26 188 1511 56 44
3122 111 26 188 1511 52 58
3123 121 26 188 1511 56 59
3124 8200 2 188 1511 62 54
3125 41 26 188 1511 37 42
Here is the script for the furniture.
Put this into NPCDialog.cs
Code:
#region Furniture Items
                            case 3113:
                            case 3114:
                            case 3115:
                            case 3116:
                            case 3117:
                            case 3118:
                            case 3119:
                            case 3120:
                            case 3121:
                            case 3122:
                            case 3123:
                            case 3124:
                            case 3125:
                                {
                                    string FurnitureName = "";
                                    uint FurnitureCost = 0;
                                    uint FurnitureId = 0;
                                    switch (NPC)
                                    {
                                        case 3113:
                                            FurnitureName = "Lamp";
                                            FurnitureId = 721177;
                                            FurnitureCost = 8500;
                                            break;
                                        case 3114:
                                            FurnitureName = "LowShelf";
                                            FurnitureId = 721178;
                                            FurnitureCost = 8000;
                                            break;
                                        case 3115:
                                            FurnitureName = "Cabinet";
                                            FurnitureId = 721179;
                                            FurnitureCost = 8000;
                                            break;
                                        case 3116:
                                            FurnitureName = "BombeChest";
                                            FurnitureId = 721181;
                                            FurnitureCost = 8000;
                                            break;
                                        case 3117:
                                            FurnitureName = "RosewoodCabinet";
                                            FurnitureId = 721182;
                                            FurnitureCost = 8500;
                                            break;
                                        case 3118:
                                            FurnitureName = "HighCabinet";
                                            FurnitureId = 721183;
                                            FurnitureCost = 8000;
                                            break;
                                        case 3119:
                                            FurnitureName = "FoldingScreen";
                                            FurnitureId = 721184;
                                            FurnitureCost = 12000;
                                            break;
                                        case 3120:
                                            FurnitureName = "Dresser";
                                            FurnitureId = 721185;
                                            FurnitureCost = 12000;
                                            break;
                                        case 3121:
                                            FurnitureName = "BasinRack";
                                            FurnitureId = 721186;
                                            FurnitureCost = 6000;
                                            break;
                                        case 3122:
                                            FurnitureName = "Chair";
                                            FurnitureId = 721187;
                                            FurnitureCost = 9000;
                                            break;
                                        case 3123:
                                            FurnitureName = "EndTable";
                                            FurnitureId = 721188;
                                            FurnitureCost = 9000;
                                            break;
                                        case 3124:
                                            FurnitureName = "ItemBox";
                                            FurnitureId = 721189;
                                            FurnitureCost = 100000;
                                            break;
                                        case 3125:
                                            FurnitureName = "HighShelf";
                                            FurnitureId = 721180;
                                            FurnitureCost = 8000;
                                            break;
                                    }
                                    if (Control == 0)
                                    {
                                        if(FurnitureCost < 100000)
                                            GC.AddSend(Packets.NPCSay("Do you want this " + FurnitureName + "? It costs only " + FurnitureCost + " silvers."));
                                        else
                                            GC.AddSend(Packets.NPCSay("Do you want this " + FurnitureName + "? It is expensive, and costs " + FurnitureCost + " silvers."));
                                        GC.AddSend(Packets.NPCLink("Yes.", 1));
                                        GC.AddSend(Packets.NPCLink("No.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (Control == 1)
                                    {
                                        if (GC.MyChar.Silvers >= FurnitureCost)
                                        {
                                            if (GC.MyChar.Inventory.Count < GC.MyChar.Inventory.Capacity)
                                            {
                                                GC.MyChar.Silvers -= FurnitureCost;
                                                GC.MyChar.AddItem(FurnitureId);
                                                GC.LocalMessage(2005, "You got a " + FurnitureName + ".");
                                            }
                                            else
                                            {
                                                GC.AddSend(Packets.NPCSay("Please prepare one slot in your inventory."));
                                                GC.AddSend(Packets.NPCLink("Alright.", 255));
                                                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                GC.AddSend(Packets.NPCFinish());
                                            }
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You do not have " + FurnitureCost + " silvers with you."));
                                            GC.AddSend(Packets.NPCLink("I am sorry.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    break;
                                }
                            #endregion
Thats it
StarEvaAfta!~ is offline  
Thanks
7 Users
Old 02/11/2010, 14:20   #2
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
you ask him to release that? pringle is **** off with this...
ramix is offline  
Old 02/11/2010, 14:35   #3
 
StarEvaAfta!~'s Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 180
Received Thanks: 82
Yeah, i asked him and he said that its okei
StarEvaAfta!~ is offline  
Old 02/11/2010, 17:19   #4
 
.Ocularis's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 309
Received Thanks: 208
Added thanks just becuz.
.Ocularis is offline  
Old 02/11/2010, 17:39   #5
 
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
what is it with quotes when you paste a code instead of [ quote ] hello [ /quote ] replace quote with code and dont put spaces btw
copz1337 is offline  
Old 03/09/2010, 00:34   #6
 
elite*gold: 0
Join Date: Jan 2010
Posts: 37
Received Thanks: 0


When i added the codes... i clicked - f6 then f5 and when server should start this message shows up!!! Please help me! now i cant run the server,even,after i deleted the code! HELP!
chester6 is offline  
Old 03/09/2010, 01:33   #7
 
elite*gold: 0
Join Date: Mar 2010
Posts: 133
Received Thanks: 22
could of just made a new store.. you know that right? but good job i guess... or could of made it like they used to have it ( or still do )

go into the furniety place make the furnites talkingable items ( npcs ) and say do u want to buy this and u say yes so u buy it its in ur invent and u go and right clic kand pops up in ur house
herekorvac is offline  
Old 03/13/2010, 16:41   #8
 
StarEvaAfta!~'s Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 180
Received Thanks: 82
Quote:
Originally Posted by chester6 View Post


When i added the codes... i clicked - f6 then f5 and when server should start this message shows up!!! Please help me! now i cant run the server,even,after i deleted the code! HELP!
F5 then F6
StarEvaAfta!~ is offline  
Old 02/02/2011, 20:38   #9
 
elite*gold: 0
Join Date: Feb 2010
Posts: 7
Received Thanks: 1
Hey, i click on the furniture and nothing happens.
Right click ''Unable to use the item''
Left click ''Noting happens''
When i drop it it's nothing happens to!
mraggie14 is offline  
Reply


Similar Threads Similar Threads
Time between attacks (5165)
09/03/2010 - CO2 Private Server - 3 Replies
How do i change time between attacks on 5165? Finally i give up i can`t find that. In my server i can hit a mob every few secs or use fb/ss hercules any kind of skill. 1 at few secs 3 4 5... that piss me off For those who`ll say get another source... I can`t i worked on this alot is very stable but can`t find that:D Anyone??Pleaseee:handsdown:
can any one solve this proplem i got it when i logged in 2nd time (5165)
06/19/2010 - CO2 Private Server - 0 Replies
when i close my acc and then opened it agine i got this error System.InvalidOperationException: Connection must be valid and open at MySql.Data.MySqlClient.MySqlCommand.CheckState() at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader( CommandBehavior behavior) at MySql.Data.MySqlClient.MySqlCommand.System.Data.ID bCommand.ExecuteReader(CommandBehavior behavior) at System.Data.Common.DbDataAdapter.FillInternal(Data Set dataset, DataTable datatables, Int32 startRecord, Int32...
[Huge Question] Events Triggered by Time [5165]
03/06/2010 - CO2 Private Server - 17 Replies
Ok, I've been wanting to create events that happen at a certain time on the server. What I mean is, at an "x" time, i want something that will trigger an event that does "y". For example: ------------ - I would like a "/c" command message to be sent to everyone at 5:00 pm saying "Event Test". (That's basicly what I've been trying to do) My big question is, does the client support it? If it does, where do I put the even code? If it doesn't then can someone help me out? I've been working...
[HELP] 5165 console spams all the time
01/18/2010 - CO2 Private Server - 8 Replies
my 5165 newestcoserver console spams about suspicious money and cps how do i go about stopping this because more stuff the servers trying 2 do = lag :pimp:



All times are GMT +2. The time now is 04:38.


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.