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.
Lmao I had the same idea as adz, although when killing someone on my server you'll get x amount of CPs based on the victims level, your own level, etc.. And you can buy XP *****, Mets, DBs, etc. for CPs
Pretty good idea i just stuck with normal exp lol still working on bits of it
Lmao I had the same idea as adz, although when killing someone on my server you'll get x amount of CPs based on the victims level, your own level, etc.. And you can buy XP *****, Mets, DBs, etc. for CPs
When i buy db,exp ball or mets in market i buy them with silvers... how can i change for buying with cps?
i know much ppls need guilds so i will post the the source for guild ^^
1.Guild.cs go in source\
Code:
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
namespace COServer
{
public class Guild : object
{
#region Private Members
private string v_Name;
private string v_Bulletin;
private string v_Leader;
private Guild[] v_Branches = new Guild[5];
private Guild[] v_Enemies = new Guild[5];
private Guild[] v_Allies = new Guild[5];
private string[][] v_MemberIDs = new string[100][];
private int v_Fund;
private int v_Members;
private int v_Wins;
private int v_GuildID;
private bool v_HoldingPole = false;
private bool v_Branch = false;
#endregion
public Guild[] Branches
{
get { return v_Branches; }
set { v_Branches = value; }
}
public string Name
{
get { return v_Name; }
set { v_Name = value; }
}
public string Bulletin
{
get { return v_Bulletin; }
set { v_Bulletin = value; }
}
public string Leader
{
get { return v_Leader; }
set { v_Leader = value; }
}
public Guild[] Enemies
{
get { return v_Enemies; }
set { v_Enemies = value; }
}
public Guild[] Allies
{
get { return v_Allies; }
set { v_Allies = value; }
}
public int Fund
{
get { return v_Fund; }
set { v_Fund = value; }
}
public int Members
{
get { return v_Members; }
set { v_Members = value; }
}
public int Wins
{
get { return v_Wins; }
set { v_Wins = value; }
}
public int GuildID
{
get { return v_GuildID; }
set { v_GuildID = value; }
}
public string[][] MemberIDs
{
get { return v_MemberIDs; }
set { v_MemberIDs = value; }
}
public bool HoldingPole
{
get { return v_HoldingPole; }
set { v_HoldingPole = value; }
}
public bool Branch
{
get { return v_Branch; }
set { v_Branch = value; }
}
}
}
2.SendGuild go in source\ClientRequest\
Code:
using System;
using System.Collections.Generic;
using System.Text;
using COServer.GamePacketsOutgoing;
namespace COServer.GamePacketsIncomming
{
public class SendGuilds : GameBasePacket
{
public SendGuilds(byte[] Data, COClient Client)
{
int Type = (Data[7] << 24) + (Data[6] << 16) + (Data[5] << 8) + Data[4];
///Type 1 = join, Type 12 = Guild Info
int CharID = (Data[11] << 24) + (Data[10] << 16) + (Data[9] << 8) + Data[8];
SendGuild Response = new SendGuild(Client.Char);
byte[] Reply = Response.Send();
Client.SendData(Reply);
}
}
}
i know much ppls need guilds so i will post the the source for guild ^^
1.Guild.cs go in source
Code:
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
namespace COServer
{
public class Guild : object
{
#region Private Members
private string v_Name;
private string v_Bulletin;
private string v_Leader;
private Guild[] v_Branches = new Guild[5];
private Guild[] v_Enemies = new Guild[5];
private Guild[] v_Allies = new Guild[5];
private string[][] v_MemberIDs = new string[100][];
private int v_Fund;
private int v_Members;
private int v_Wins;
private int v_GuildID;
private bool v_HoldingPole = false;
private bool v_Branch = false;
#endregion
public Guild[] Branches
{
get { return v_Branches; }
set { v_Branches = value; }
}
public string Name
{
get { return v_Name; }
set { v_Name = value; }
}
public string Bulletin
{
get { return v_Bulletin; }
set { v_Bulletin = value; }
}
public string Leader
{
get { return v_Leader; }
set { v_Leader = value; }
}
public Guild[] Enemies
{
get { return v_Enemies; }
set { v_Enemies = value; }
}
public Guild[] Allies
{
get { return v_Allies; }
set { v_Allies = value; }
}
public int Fund
{
get { return v_Fund; }
set { v_Fund = value; }
}
public int Members
{
get { return v_Members; }
set { v_Members = value; }
}
public int Wins
{
get { return v_Wins; }
set { v_Wins = value; }
}
public int GuildID
{
get { return v_GuildID; }
set { v_GuildID = value; }
}
public string[][] MemberIDs
{
get { return v_MemberIDs; }
set { v_MemberIDs = value; }
}
public bool HoldingPole
{
get { return v_HoldingPole; }
set { v_HoldingPole = value; }
}
public bool Branch
{
get { return v_Branch; }
set { v_Branch = value; }
}
}
}
2.SendGuild go in sourceClientRequest
Code:
using System;
using System.Collections.Generic;
using System.Text;
using COServer.GamePacketsOutgoing;
namespace COServer.GamePacketsIncomming
{
public class SendGuilds : GameBasePacket
{
public SendGuilds(byte[] Data, COClient Client)
{
int Type = (Data[7] << 24) + (Data[6] << 16) + (Data[5] << 8) + Data[4];
///Type 1 = join, Type 12 = Guild Info
int CharID = (Data[11] << 24) + (Data[10] << 16) + (Data[9] << 8) + Data[8];
SendGuild Response = new SendGuild(Client.Char);
byte[] Reply = Response.Send();
Client.SendData(Reply);
}
}
}
Credits go to Me and CutZ.
Now i need too the GuildAdmin dialog pls
Stolen from CoFuture, doesnt build, no credits go to you, you stole from their source.
i know much ppls need guilds so i will post the the source for guild ^^
1.Guild.cs go in source
Code:
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
namespace COServer
{
public class Guild : object
{
#region Private Members
private string v_Name;
private string v_Bulletin;
private string v_Leader;
private Guild[] v_Branches = new Guild[5];
private Guild[] v_Enemies = new Guild[5];
private Guild[] v_Allies = new Guild[5];
private string[][] v_MemberIDs = new string[100][];
private int v_Fund;
private int v_Members;
private int v_Wins;
private int v_GuildID;
private bool v_HoldingPole = false;
private bool v_Branch = false;
#endregion
public Guild[] Branches
{
get { return v_Branches; }
set { v_Branches = value; }
}
public string Name
{
get { return v_Name; }
set { v_Name = value; }
}
public string Bulletin
{
get { return v_Bulletin; }
set { v_Bulletin = value; }
}
public string Leader
{
get { return v_Leader; }
set { v_Leader = value; }
}
public Guild[] Enemies
{
get { return v_Enemies; }
set { v_Enemies = value; }
}
public Guild[] Allies
{
get { return v_Allies; }
set { v_Allies = value; }
}
public int Fund
{
get { return v_Fund; }
set { v_Fund = value; }
}
public int Members
{
get { return v_Members; }
set { v_Members = value; }
}
public int Wins
{
get { return v_Wins; }
set { v_Wins = value; }
}
public int GuildID
{
get { return v_GuildID; }
set { v_GuildID = value; }
}
public string[][] MemberIDs
{
get { return v_MemberIDs; }
set { v_MemberIDs = value; }
}
public bool HoldingPole
{
get { return v_HoldingPole; }
set { v_HoldingPole = value; }
}
public bool Branch
{
get { return v_Branch; }
set { v_Branch = value; }
}
}
}
2.SendGuild go in sourceClientRequest
Code:
using System;
using System.Collections.Generic;
using System.Text;
using COServer.GamePacketsOutgoing;
namespace COServer.GamePacketsIncomming
{
public class SendGuilds : GameBasePacket
{
public SendGuilds(byte[] Data, COClient Client)
{
int Type = (Data[7] << 24) + (Data[6] << 16) + (Data[5] << 8) + Data[4];
///Type 1 = join, Type 12 = Guild Info
int CharID = (Data[11] << 24) + (Data[10] << 16) + (Data[9] << 8) + Data[8];
SendGuild Response = new SendGuild(Client.Char);
byte[] Reply = Response.Send();
Client.SendData(Reply);
}
}
}
Credits go to Me and CutZ.
Now i need too the GuildAdmin dialog pls
This is stolen, Cuz u didn't changed anything, ... I edited this one and released it, and I didn't asked Credits,
Quote:
Originally Posted by IAmHawtness
Oh yea, btw.. When you change the color of your gear you get "superhuman strength"?
Well, I found a solution
Find this in NpcDialog.cs
Change ClickyClient.MyChar.SendEquips(); to ClickyClient.MyChar.SendEquips2();
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...