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.
i changed lvl and equipped gears and when i create a new char it is lvl 110 and full sup tro gears ... i don't understand why... see my screenshot of my TheDB.cs
Rebuild the File, Than copy "TheCOServer" from ur release folder to ur Debug folder, Done ...
Quote:
Originally Posted by anerax
Ok thx and for rename /skill herc in /skill avezole ?
Thx
Open ur Chat.cs, Look for herc and rename it... than rebuild your file and than copy "TheCOServer" from ur release folder to ur Debug folder, Done ...
the map ids have been posted at least 10 times...
please stop double posting so much
@adz
grats on guilds btw =o
Sam made them i'm just bug fixing there is still alot to be done on the guilds which i'm gonna need alot of help from Sam (he is probably gonna have to do the majority of it)
But i am working on a few things at once, guilds are going ok.
Oh that reminds me does anyone know how to code skills? If you can, can you code a few that I already havent? Would save me alot of time.
Sam made them i'm just bug fixing there is still alot to be done on the guilds which i'm gonna need alot of help from Sam (he is probably gonna have to do the majority of it)
But i am working on a few things at once, guilds are going ok.
Oh that reminds me does anyone know how to code skills? If you can, can you code a few that I already havent? Would save me alot of time.
Code:
if (SkillId == 1045 || SkillId == 1046)
{
byte Range = 10;
Hashtable Targets = new Hashtable();
Hashtable PTargets = new Hashtable();
byte SkillLvl = (byte)Skills[(short)SkillId];
IDictionaryEnumerator en = MobsFunctions.AllMobs.GetEnumerator();
double Aim = MyMath.PointDirecton((short)ToX, (short)ToY, PosX, PosY);
while (en.MoveNext())
{
SingleMob TheMob = (SingleMob)en.Value;
double MobDir = MyMath.PointDirecton(TheMob.PosX, TheMob.PosY, PosX, PosY);
int MobDist = MyMath.PointDistance(TheMob.PosX, TheMob.PosY, PosX, PosY);
long DMG = (long)Rand.Next((int)MinAtk, (int)MaxAtk);
if ((Level - 2) > TheMob.Level)
{
int AddDamage = (int)(2 + (Level - (TheMob.Level + 2)) / 2);
DMG *= AddDamage;
DMG = DMG * 3 / 4;
}
if (TheMob.Map == PosMap)
if (MobDist < Range + 1)
if (MobDir == Aim)
if (!Targets.Contains(TheMob))
Targets.Add(TheMob,DMG);
}
en = WorldHandler.AllClients.GetEnumerator();
while (en.MoveNext())
{
Character ThePlayer = ((Client)en.Value).MyChar;
double CharDir = MyMath.PointDirecton(ThePlayer.PosX, ThePlayer.PosY, PosX, PosY);
int CharDist = MyMath.PointDistance(ThePlayer.PosX, ThePlayer.PosY, PosX, PosY);
long DMG = (long)Rand.Next((int)MinAtk, (int)MaxAtk);
DMG -= ThePlayer.Defense;
if (DMG < 1)
DMG = 1;
if (PKMode == 0 || PKMode == 2)
if (ThePlayer.PosMap == PosMap)
if (CharDist < Range + 1)
if (CharDir == Aim)
if (ThePlayer != this)
if (ThePlayer.Alive)
PTargets.Add(ThePlayer, DMG);
}
ok... here is a screeny from my NPCdialog.cs... tell me plz if i'm wrong in my coding or if i have to add something when i make that one working i'll be able to code all others in BV
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...