Where is his source, cant find it O_o
Thank You for helping us. If you want to join the project, then please PM me :)Quote:
heyyyyyy you guys are useing my Npc dialog i better update it for you LOL
so then could i join you team thing... :cool::cool:
Thats exactly right.Quote:
well lol when he post u will c it its called dirty something lol. Also there working on a SVN project which is better so u can update right when they add something new
if (Message[0] == '/')
{
string[] Splitter = Message.Split(' ');
foreach (string[] NPC3 in BackendDB.CommandsDatabase)
{
//2 = helper
//4 = gm
//6 = administrator
int Flag = 0;
string Message3 = Convert.ToString(NPC3[0]);
int Flags = Convert.ToInt32(NPC3[1]);
if (Splitter[0].ToLower() == ("/" + Message3))
{
Flag = 0;
}
/// <summary>
/// Summary description for Inventory.
/// </summary>
public class Inventory
{
private int m_MaxSize = 40;
public int[][] n_items = new int[40][];
public System.Collections.ArrayList m_Items;
public System.Collections.ArrayList m_Items2;
}
}
{
public class Warehouse : ServerBasePacket
{
//Attack
private int UniqueID;
private int ItemID;
private int NpcID;
private int Amount;
private int Length;
private int Value;
private int Value2;
private int _Type;
private COClient Client;
private int[][] warehouse = null;
public Warehouse(int _npcid, int _amount, int _value, int _value2, COClient _client)
{
NpcID = _npcid;
Amount = _amount;
if (Amount != 0)
{
Length = Amount * 20;
}
else
{
Length = 20;
}
Value = _value;
Value2 = _value2;
Client = _client;
if (NpcID == 8)//twincity
{
warehouse = _client.Char.TwinWare;
}
if (NpcID == 10012)//phoenix castle
{
warehouse = _client.Char.PhoenixWare;
}
if (NpcID == 10028)//ape mountain
{
warehouse = _client.Char.ApeWare;
}
if (NpcID == 10011)//desert city
{
warehouse = _client.Char.DesertWare;
}
if (NpcID == 10027)//bird island
{
warehouse = _client.Char.BirdWare;
}
if (NpcID == 44)//market
{
warehouse = _client.Char.MarketWare;
}
}
//soooooo not working yet >.< look into 'value2' values and 'value' values,
//10 is display, 11 deposit cash, 12 withdraw cash,
public byte[] writeImpl()
{
writeH(20);
writeH(1009);
writeD(NpcID);
writeD(Amount);
writeD(Value);
writeD(Value2);
return getBytes();
}
public byte[] writeImp0()
{
writeH(16 + Length);
writeH(1102);
writeD(NpcID);
writeD(0);
writeD(Amount);
if (Amount >= 1)
{
foreach (int[] item in warehouse)
{
if (item[0] != 0)
{
writeD(Convert.ToInt32(item[9]));//uid
writeD(Convert.ToInt32(item[0]));//itemid
writeC(0);
writeC(Convert.ToInt32(item[10]));//Soc1
writeC(Convert.ToInt32(item[11]));//Soc2
writeH(0);
writeC(Convert.ToInt32(item[3]));//+dmg
writeC(Convert.ToInt32(item[4]));//-dmg
writeC(0);
writeH(Convert.ToInt32(item[5]));//enchant
writeH(0);
}
}
}
else
{
writeD(0);
writeD(0);
writeD(0);
writeD(0);
writeD(0);
}
return getBytes();
}
public byte[] writeImp2()
{
writeH(32);
writeH(1102);
writeD(NpcID);
writeD(1);
writeD(Value);
writeD(Value2);
writeD(0);
writeH(0);
writeC(0);
writeC(255);
writeD(0);
return getBytes();
}
public byte[] writeImp3()
{
writeH(32);
writeH(1102);
writeD(NpcID);
writeD(2562);
writeD(Value);
writeD(0);
writeD(0);
writeD(0);
writeD(0);
return getBytes();
}
}
}