[Question] where is char creation data located?

09/24/2008 06:03 vietkidd510#1
hey i wanna ask where is the char creation data located at?? in which .cs file because i have a copy of kinshi source and it seem that the source dont have a char creation section because when i make a new acc i always get stuck at logging in but when i create the char manually it works so can someone give me some advice on where its located and what to add in please thank you.
09/24/2008 06:07 pegaeu#2
database.cs i belive
09/24/2008 06:47 vietkidd510#3
but the thing is that i want to know which section is it in what part of the script?
09/24/2008 06:53 reborn666#4
Quote:
public static bool CreateCharacter(string Name, byte Class, uint Model, uint Avatar, Client UClient)
{
try
{
string str = "0";
string agi = "0";
string vit = "0";
string spi = "0";

if (Class == 10)
{
str = (Stats.ReadValue("Trojan", "Strength[1]"));
agi = (Stats.ReadValue("Trojan", "Agility[1]"));
vit = (Stats.ReadValue("Trojan", "Vitality[1]"));
spi = (Stats.ReadValue("Trojan", "Spirit[1]"));
}
if (Class == 20)
{
str = (Stats.ReadValue("Warrior", "Strength[1]"));
agi = (Stats.ReadValue("Warrior", "Agility[1]"));
vit = (Stats.ReadValue("Warrior", "Vitality[1]"));
spi = (Stats.ReadValue("Warrior", "Spirit[1]"));
}
if (Class == 40)
{
str = (Stats.ReadValue("Archer", "Strength[1]"));
agi = (Stats.ReadValue("Archer", "Agility[1]"));
vit = (Stats.ReadValue("Archer", "Vitality[1]"));
spi = (Stats.ReadValue("Archer", "Spirit[1]"));
}
if (Class == 100)
{
str = (Stats.ReadValue("Taoist", "Strength[1]"));
agi = (Stats.ReadValue("Taoist", "Agility[1]"));
vit = (Stats.ReadValue("Taoist", "Vitality[1]"));
spi = (Stats.ReadValue("Taoist", "Spirit[1]"));
}
string hp = Convert.ToString((short.Parse(vit) * 24 + short.Parse(str) * 3 + short.Parse(agi) * 3 + short.Parse(spi) * 3));
ulong uid = (uint)General.Rand.Next(1000001, 19999999);

try
{
if (DataBase.AllowQuerys)
DataBase.DatabaseQueue.Enqueue(new MySqlCommand("INSERT INTO characters (CharName,Account,Level,Exp,Strength,Agility,Vital ity,Spirit,Job,Model,Money,CPs,CurrentHP,StatPoint s,LocationMap,LocationX,LocationY,UID,Hair,Equipme nt,Inventory,PKPoints,Skills,Profs,RBCount,Avatar, WHMoney,Warehouses,VP,Friends,Enemies,GuildDonatio n,MyGuild,GuildPos,PrevMap) VALUES ('" + Name + "','" + UClient.Account + "',1,0," + str + "," + agi + "," + vit + "," + spi + "," + Class + "," + Model + ",10000,0," + hp + ",0,1010,58,113," + uid + ",410,'','',0,'','',0," + Avatar + ",0,'',0,'','',0,0,0,1010)", Connection));
if (DataBase.AllowQuerys)
DataBase.DatabaseQueue.Enqueue(new MySqlCommand("UPDATE `accounts` SET `LogonType` = 1 WHERE `AccountID` = '" + UClient.Account + "'", Connection));

if (DataBase.AllowQuerys)
DataBase.DatabaseQueue.Enqueue(new MySqlCommand("UPDATE `accounts` SET `Charr` = '" + Name + "' WHERE `AccountID` = '" + UClient.Account + "'", Connection));
}
catch { return false; }

return true;
}
catch (Exception Exc) { General.WriteLine(Convert.ToString(Exc)); return false; }
}
I'm not sure ..:p
09/24/2008 07:46 vietkidd510#5
ok i just found out that when i log on i hear the trojan weps sounds but still a black screen...
09/24/2008 07:57 _Emme_#6
copy of kinshis source? huh?