P Server "NPC base code/shops/drop items" for who asked me 2 do it
Discussion on P Server "NPC base code/shops/drop items" for who asked me 2 do it within the CO2 Private Server forum part of the Conquer Online 2 category.
As im a member of samhvans team i thought i release a Mob.txt 4 ya all which contains special mobs u have never seen be4 like a Doubble Winged Dragen or a Zombie,Axeman,....KINGS ARE ADDED!
I HOPE U PRESS THE THX BUTTON 4 it lol
ENJOY
//BTW L8TER I RELEASE A NPC DIALOG WITCH ADDING LAB1 2 3 4 DIS CITY AND SO ON //
nice mobs, but do you know the much for mobs? o you test it to see if they are like in CO?btw i hit ty button
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;
}
would this be the code for messageing everyone
Code:
/// <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;
}
}
and this is for the inventory if you want to have more right
Code:
{
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();
}
}
}
That i think is you Wherehouse code
Nice about that Warehouse, But ... Were i need to place it?
BTW POST REPLAYS //FEEDBACKS// 4 MY MOB.TXT and tell me if i should add a mob
Sorry tried to test it on Rev4-A but the client crashes like before,after tried to hit a mob in tc the client was closed.
Ill try tomorrow after back from work
Verkaufe: Guild Wars "Platin", "Ectos, "Items" mehr... 09/12/2008 - Guild Wars Trading - 0 Replies Hallo,
ich biete gegen Euro viele schöne dinge für das Spiel Guild Wars an. Bitte meldet euch dann bei mir per PM was genau ihr haben möchtet und wieviel von den jeweiligen Virtuellen Gegenständen. Die Übergabe kann wie folgt ab laufen. Ich erstelle extra für euch die Ebay Auktion mit der gewünschten menge der jeweiligen Virtuellen Guild Wars gegenstände. Wenn ihr kein Ebay habt und euch auch kein Account anlegen möchtet kann die Übergabe auch ausserhalb Ebays statt finden hierzu erhaltet...