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;
}
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.
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.
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
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?
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