Register for your free account! | Forgot your password?

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

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

Advertisement



The CoEmu V2 NPC Thread - Post your ready made NPCs

Discussion on The CoEmu V2 NPC Thread - Post your ready made NPCs within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old 06/03/2009, 02:52   #31
 
scottdavey's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
Quote:
Originally Posted by m4l4ria View Post
Can Help me?
Error in the name 'Face' dont existi in the current context
Search
scottdavey is offline  
Old 06/03/2009, 02:53   #32
 
UnoAmigos's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 192
Received Thanks: 107
Honestly i want LOFT than this....lot of **** bugs................. ;-(
UnoAmigos is offline  
Old 06/03/2009, 03:00   #33
 
scottdavey's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
Quote:
Originally Posted by UnoAmigos View Post
Honestly i want LOFT than this....lot of **** bugs................. ;-(
You want Land of forgotten the?

I've never heard of such a thing, it's nothing to do with bugs. It's mainly just the fact that your a nubcake.
scottdavey is offline  
Old 06/03/2009, 04:36   #34
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
Quote:
Originally Posted by UnoAmigos View Post
Honestly i want LOFT than this....lot of **** bugs................. ;-(
LOL WHAT THE FU_-------89d&(@#)

You're saying LOTF has less bugs than CoEmu? ROFLMAO.

Thanks, I feel better now.

EDIT: Also, this source has no real bugs unless you **** something up; thus ignorance
Zeroxelli is offline  
Old 06/04/2009, 06:07   #35
 
elite*gold: 0
Join Date: Nov 2006
Posts: 65
Received Thanks: 2
i cant login no more, check my picture

Quote:
Originally Posted by felipeboladao View Post
To Work Record Maps ;D For Leave Conducter in Market.

Go to Handles Folder , Teleport.cs Replace it to
Code:
/*
 * Created by SharpDevelop.
 * User: sams
 * Date: 3/14/2009
 * Time: 1:56 PM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Collections;
using System.Collections.Generic;
using CoEmu_v2_GameServer.Connections;
using CoEmu_v2_GameServer.Entities;
using CoEmu_v2_GameServer.Structs;
using CoEmu_v2_GameServer.Packets;
using CoEmu_v2_GameServer.Calculations;

namespace CoEmu_v2_GameServer.Handlers
{
	/// <summary>
	/// Handles teleportations in the Conquer worls
	/// </summary>
	public partial class Handler
	{
		public static void Teleport(int Map, int X, int Y, int Instance, ClientSocket CSocket)
		{
            if (Map > 0 && X > 0 && Y > 0 && CSocket != null)
            {
                ConquerPacket.ToLocal(ConquerPacket.General(CSocket.Client.ID, CSocket.Client.X, CSocket.Client.Y, 0, 0, 0, Struct.DataType.EntityRemove), CSocket.Client.X, CSocket.Client.Y, (int)CSocket.Client.Map, 0, CSocket.Client.ID);
                CSocket.Client.RecordMap = (int)CSocket.Client.Map;
                CSocket.Client.RecordX = CSocket.Client.X;
                CSocket.Client.RecordY = CSocket.Client.Y;
                CSocket.Client.Map = (Struct.Maps)Map;
                CSocket.Client.X = X;
                CSocket.Client.Y = Y;
                //TODO: Instance pairing.
                CSocket.Send(ConquerPacket.General(CSocket.Client.ID, (int)CSocket.Client.Map, 0, CSocket.Client.X, CSocket.Client.Y, 0, Struct.DataType.ChangeMap));
                CSocket.Send(ConquerPacket.General(CSocket.Client.ID, Nano.TintR, Nano.TintG, 0, 0, 0, Struct.DataType.CompleteMapChange));
                CSocket.Send(ConquerPacket.NewMap((int)CSocket.Client.Map));
                CSocket.Send(ConquerPacket.General(CSocket.Client.ID, 2, 0, CSocket.Client.X, CSocket.Client.Y, 0, Struct.DataType.MapShow3));
                ConquerPacket.ToLocal(ConquerPacket.SpawnCharacter(CSocket), CSocket.Client.X, CSocket.Client.Y, (int)CSocket.Client.Map, 0, CSocket.Client.ID);
                CSocket.Client.PrevX = 0;
                CSocket.Client.PrevY = 0;
                Spawn.All(CSocket);
			}
		}
	}
}
And go to Chat.cs and Replace

Code:
               case 45: // Mark. Controller
                    {
                        if (LinkBack == 0)
                        {
                            Text("Hello I can teleport You outside of the market for free! Do you want to leave?", CSocket);
                            Link("Why would you be so kind to do so?", 1, CSocket);
                            Link("No, Thank you anyway.", 255, CSocket);
                            End(CSocket);
                        }
                        else if (LinkBack == 1)
                        {
                            if (CSocket.Client.RecordMap == 1002) //Twin City
                            {
                                Teleport(1002, 430, 380, 0, CSocket);
                            }
                            else if (CSocket.Client.RecordMap == 1011) //phoniex
                            {
                                Teleport(1011, 232, 260, 0, CSocket);
                            }
                            else if (CSocket.Client.RecordMap == 1020) //apecity
                            {
                                Teleport(1020, 565, 565, 0, CSocket);
                            }
                            else if (CSocket.Client.RecordMap == 1000) //desertcity
                            {
                                Teleport(1000, 496, 649, 0, CSocket);
                            }
                            else if (CSocket.Client.RecordMap == 1015) //birdisland
                            {
                                Teleport(1015, 723, 573, 0, CSocket);
                            }
                            else //For Other Map
                                Teleport(1002, 430, 380, 0, CSocket);
                        }
                        break;
                    }
And Replace in Database.cs

Code:
        public static void SaveCharacter(Character Client)
        {
            MySqlCommand Cmd = new MySqlCommand("UPDATE `characters` SET `Level` = " + Client.Level + ", `WHMoney` = " + Client.WHMoney + ", `PkPoints` = " + Client.PkPoints + ", `xCord` = " + Client.X + ", `yCord` = " + Client.Y + ", `Map` = " + (int)Client.Map + ", `HairStyle` = " + Client.Hair + ", `Class` = " + (int)Client.Class + ", `Exp` = " + Client.Exp + ", `Money` = " + Client.Money + ", `CPoints` = " + Client.CPs + ", `Str` = " + Client.Strength + ",`Vit` = " + Client.Vitality + ", `Spi` = " + Client.Spirit + ", `Dex` = " + Client.Dexterity + ", `StatPoints` = " + Client.StatPoints + ", `FirstLog` = " + 1 + ", `Reborn` = " + Client.Reborn + ", `HP` = " + Client.CurrentHP + ", `MP` = " + Client.CurrentMP + ", `RecordMap` = " + Client.RecordMap + ", `RecordX` = " + Client.RecordX + ", `RecordY` = " + Client.RecordY + " WHERE `CharID` = " + Client.ID, DatabaseConnection.NewConnection());
            Cmd.ExecuteNonQuery();
            Cmd.Connection.Close();
            Cmd.Connection.Dispose();
            Cmd.Dispose();
        }
Work??, Give me +k...


ok, after i debug the codes above, but when in, it wont log in, frozen login. it refers to where i pointed on the image. anybody got any ideas. sorry for the big image.

killerbee is offline  
Old 06/04/2009, 09:16   #36
 
damianpesta's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
Quote:
Originally Posted by killerbee View Post
ok, after i debug the codes above, but when in, it wont log in, frozen login. it refers to where i pointed on the image. anybody got any ideas. sorry for the big image.

Make a table im phpmyadmin 4 the commands you get error on.
damianpesta is offline  
Old 06/04/2009, 13:18   #37
 
elite*gold: 0
Join Date: Jan 2007
Posts: 220
Received Thanks: 63
Quote:
Originally Posted by killerbee View Post
ok, after i debug the codes above, but when in, it wont log in, frozen login. it refers to where i pointed on the image. anybody got any ideas. sorry for the big image.

go to mysql (either from phpmyadmin or from any prog like navicat or w/e) go to the 'character' tab and edit it, add these 3 :

Record map, int, 11, 0, no null
Record X, int, 11, 0, no null
Record Y, int, 11, 0, no null

enjoy.
BlooD-BoY is offline  
Thanks
1 User
Old 06/04/2009, 17:22   #38
 
elite*gold: 0
Join Date: Oct 2006
Posts: 64
Received Thanks: 4
Quote:
Originally Posted by scottdavey View Post
Search
I got the same error how you mean search ?
ScamBolterII is offline  
Old 06/04/2009, 17:23   #39
 
scottdavey's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
It's not my code your having a problem with, pm the author.
scottdavey is offline  
Old 06/04/2009, 18:41   #40
 
elite*gold: 0
Join Date: Jun 2008
Posts: 97
Received Thanks: 16
i got this error
Error The name 'LinkBack' does not exist in the current context
nuhali is offline  
Old 06/04/2009, 21:53   #41
 
elite*gold: 0
Join Date: Nov 2006
Posts: 65
Received Thanks: 2
thank you BlooD-BoY. now the error is gone.
killerbee is offline  
Old 06/04/2009, 22:23   #42
 
danielachraf's Avatar
 
elite*gold: 20
Join Date: Mar 2008
Posts: 958
Received Thanks: 494
For who have error on LoginServer/databaseconnection line 30 ... Because you didn't setup mysql ..
danielachraf is offline  
Old 06/05/2009, 00:14   #43
 
coreymills's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 555
Received Thanks: 99
cp admin with dbz and db scrolls

EDIT: code didnt work workin on it again
coreymills is offline  
Old 06/25/2009, 12:54   #44
 
elite*gold: 0
Join Date: Sep 2007
Posts: 36
Received Thanks: 6
Ok i Tried taking the Db to cps npc and editing it but i kept getting an error.
Code:
                [U]case[/U] 10062: // Gears
                    {
                        if (LinkBack == 0)
                        {
                            Text("Hi. Gear here.", CSocket);
                            Link("Trojan", 1, CSocket);
                            Link("Nevermind", 255, CSocket);
                        }
                        else if (LinkBack == 1)
                        {
                            int AMUID = 0;
                            int AMcount = 0;

                            foreach (Struct.ItemInfo Item in CSocket.Client.Inventory.Values)
                            {
                                if (Item.ItemID == 1088000)
                                {
                                    AMUID = Item.UID;
                                    AMcount++;
                                }
                            }

                            if (AMcount >= 1)
                            {
                                AddItem(130009, 0, 0, 0, 0, 0, 0, 0, 0, 0, CSocket);
                                CSocket.Client.Inventory.Remove(AMUID);
                                CSocket.Send(ConquerPacket.ItemUsage(AMUID, 255, Struct.ItemUsage.RemoveItem));
                                Database.Database.DeleteItem(AMUID);
                                Text("There you go.", CSocket);
                                Link("Bye.", 255, CSocket);
                                End(CSocket);
                            }
                            else
                            {
                                Text("Your Do not have a trojan Amulet", CSocket);
                                Link("Bye.", 255, CSocket);
                                End(CSocket);
                            }
                        }
                    }
I get an error under that something like "Control cannot fall through from one case label ('case 10062' to another"
Can Any1 let me know what i did wrong?
duddz is offline  
Old 06/25/2009, 13:03   #45

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
You forgot the break; at the end.
Kiyono is offline  
Reply


Similar Threads Similar Threads
HELP IN COEMU V2 Npcs
08/25/2009 - CO2 Private Server - 2 Replies
Hello i create one server of conquer and now i can enter BUt The npcs dont have the code for talk Pleaseee the code3sssssssssssssssssssssssss
Post your ready made edits for Conquer =)
08/10/2009 - CO2 Private Server - 4 Replies
Seeing as that a lot of people are out to make their clients look more of "their own" I suggest that people post up their ready made edits for people who can not edit themselves. This will also be a great opportunity to show off your editing skills to other editors. Have fun with it, help others, and go crazy! Yours truly That Guy! =D
The CoEmu V2 NPC Thread - POST all of your already made NPC's here, and grow
07/13/2009 - CO2 Private Server - 16 Replies
Post all of your NPC's here.... for CoEmu



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


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