-----------------------------------------------------------------------
Q.1.: That's work for CoEmu? Because here don't work:
PS: This code is in database.cs above it has: public static class Database {
Code:
public static void SaveConquerPoints(Character Client)
{
MySqlCommand Command = new MySqlCommand("UPDATE `characters` SET `CPoint` = " + Client.CPs + " WHERE `CharID` = " + Client.ID, DatabaseConnection.NewConnection());
Command.ExecuteNonQuery();
Command.Connection.Close();
Command.Connection.Dispose();
}
Q.2.:Okay, this code will certainly seem ridiculous, but I can say, "I tried!" In several ways, but here I am asking for help.
All help is welcome:
PS: This code is in useitem.cs above it has: case 1002040://Stancher{
Code:
case 723583:
{
if (CSocket.Client.Model == 11004)
{
int Model = 11004;
Model -= 1;
}
if (CSocket.Client.Model == 11003)
{
int Model = 11003;
Model += 1;
}
break;
}
Code:
if (CSocket.Client.Model == 11003)
{
CSocket.Client.Model == 11004;
}
Q.3.:Realloter NPC ... This code was for LOFT, but I want to put CoEmu.
MyChar there, in place of what should I use?
Sample:
Code:
MyChar.Str = 0;
Code:
SendPacket(General.MyPackets.Vital((long)MyChar.UID, 16, MyChar.Str));
Code:
case 350050:
{
if (LinkBack == 0){
Text("*Reborn level 70+ players can redistribute their attribute points at the cost of a dragonball.", CSocket);
Link("I will reallot my points.", 1, CSocket);
Link("let me think it over.", 255, CSocket);
if (LinkBack == 1)
{
if (CSocket.Client.Reborn >= 1)
{
if (CSocket.Client.Inventory.ContainsKey(1088000))
{
CSocket.Client.Inventory.Remove(1088000);
uint Points = 0;
Points += CSocket.Client.Str;
Points += CSocket.Client.Spi;
Points += CSocket.Client.Agi;
Points += CSocket.Client.vit;
CSocket.Client.StatPoints += (ushort)Points;
MyChar.Str = 0;
MyChar.Spi = 0;
MyChar.Agi = 0;
MyChar.Vit = 0;
SendPacket(General.MyPackets.Vital((long)MyChar.UID, 16, MyChar.Str));
SendPacket(General.MyPackets.Vital((long)MyChar.UID, 17, MyChar.Agi));
SendPacket(General.MyPackets.Vital((long)MyChar.UID, 15, MyChar.Vit));
SendPacket(General.MyPackets.Vital((long)MyChar.UID, 14, MyChar.Spi));
SendPacket(General.MyPackets.Vital((long)MyChar.UID, 5, (ulong)MyChar.Exp));
SendPacket(General.MyPackets.Vital((long)MyChar.UID, 2, MyChar.MaxMana()));
SendPacket(General.MyPackets.GeneralData((long)MyChar.UID, 0, 0, 0, 92));
SendPacket(General.MyPackets.Vital((long)MyChar.UID, 0, MyChar.CurHP));
SendPacket(General.MyPackets.Vital(MyChar.UID, 11, MyChar.StatP));
MyChar.SaveStatPoints();
MyChar.Save();
SendPacket(General.MyPackets.NPCSay("You cannot reallot your stats manually, Please use the /allot command."));
SendPacket(General.MyPackets.NPCSay(" Command Breakdown: /allot [vit, str, agi, spi] [Amount to ADD to the Stat]"));
SendPacket(General.MyPackets.NPCLink("I see, Thanks.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
else
{
SendPacket(General.MyPackets.NPCSay("You don't have a Dragonball."));
SendPacket(General.MyPackets.NPCLink("I see.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
else
{
SendPacket(General.MyPackets.NPCSay("You cannot reallot your attribute points if you aren't reborn."));
SendPacket(General.MyPackets.NPCLink("I see.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
}
break;
}
-----------------------------------------------------------------------
I hope to get help here, and sorry for my English, thanks;






