Why the Ethereal, He can not do "-n" in the earrings or helmet, when I press earrings / helmet still going the same dialogue
case 211091:
case 390:
Quote:
okay before you kill me, let me point im somewhat slow to learning. Anyway, I have a problem it regards to the first post, where you get the libeay.dll error, now I
ve followed the instructions on the 32bit tut even though i do have 64bit operating system, i still tried both ways. Both ended in utter failure to build, kept saying i had something wrong with my NPCDialog.cs, looked into the code found a peculiar block of code in between to cases under lady luck.
andCode:case 211091:. Its something along the lines of AddItem, etc. I just removed it seemed okay till more errors came around saying that Linkback, and other things werent in the context. So I just tried to extract the Fixed Source.rar again and replace everything. Didnt work, so i removed the folder for the solution extracted again, and the same result.Code:case 390:
case 211091:
{
if (LinkBack == 0)
{
Text("Ho i can give you full +12 gea if you wish Just Choose your pro?", CSocket); //Remove one ) and add, CSocket
Link("Trojan", 1, CSocket);
Link("Warrior", 2, CSocket);
Link("Archer", 3, CSocket);
Link("Toa", 4, CSocket);
Link("NiNja", 5, CSocket);
Link("No, I dont need", 255, CSocket);
Face(19, CSocket);
End(CSocket);
}
else if (LinkBack == 1)
{
AddItem(130109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//conquestarmor
AddItem(480339, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//kingsclub
AddItem(480339, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//kingsclub
AddItem(120249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//tornado
AddItem(150249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//thunder
AddItem(160249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//Blizzard
AddItem(118109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//magiccornet
AddItem(202009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//startower
AddItem(201009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//heavenfan
}
else if (LinkBack == 2)
{
AddItem(131109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//PhoenixArmor
AddItem(480339, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//kingsclub
AddItem(900109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//dragonshield
AddItem(120249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//tornado
AddItem(150249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//thunder
AddItem(160249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//Blizzard
AddItem(111109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//conquesthelment
AddItem(202009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//startower
AddItem(201009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//heavenfan
}
else if (LinkBack == 3)
{
AddItem(133109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//PhoenixJerkin
AddItem(500329, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//shadowbow
AddItem(120249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//tornado
AddItem(150249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//thunder
AddItem(160249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//Blizzard
AddItem(111109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//PhoenixHat
AddItem(202009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//startower
AddItem(201009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//heavenfan
}
else if (LinkBack == 4)
{
AddItem(134109, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//pineRobe
AddItem(421339, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//KingsOfBackSword
AddItem(121249, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//SunShine
AddItem(152229, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//Lightning
AddItem(160249, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//Blizzard
AddItem(114109, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//PhoenixHat
AddItem(202009, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//startower
AddItem(201009, 7, 255, 255, 12, 0, 3, 3, 0, CSocket);//heavenfan
}
else if (LinkBack == 5)
{
AddItem(135109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//pineRobe
AddItem(601339, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//EmperorKatana
AddItem(601339, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//EmperorKatana
AddItem(120249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//SunShine
AddItem(150249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//Lightning
AddItem(160249, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//Blizzard
AddItem(112109, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//PhoenixHat
AddItem(202009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//startower
AddItem(201009, 7, 255, 255, 12, 0, 13, 13, 0, CSocket);//heavenfan
}
break;
{
public static void AddItem(int itemid, int bless, int dura, int enchant, int plus, int position, int soc1, int soc2, int color, ClientSocket CSocket)
{
Struct.ItemInfo Item = new Struct.ItemInfo();
if (dura == 255)
{
Item.Dura = Item.MaxDura;
}
else
{
Item.Dura = dura;
}
Item.Bless = bless;
Item.Enchant = enchant;
Item.ItemID = itemid;
Item.Plus = plus;
Item.Position = position;
Item.Soc1 = soc1;
Item.Soc2 = soc2;
Item.Color = color;
Item.UID = Nano.Rand.Next(1, 9999999);
bool created = Database.Database.NewItem(Item, CSocket);
while (!created)
{
Item.UID = Nano.Rand.Next(1, 9999999);
created = Database.Database.NewItem(Item, CSocket);
}
CSocket.Client.Inventory.Add(Item.UID, Item);
CSocket.Send(ConquerPacket.ItemInfo(Item.UID, Item.ItemID, Item.Plus, Item.Bless, Item.Enchant, Item.Soc1, Item.Soc2, Item.Dura, Item.MaxDura, Item.Position, Item.Color));
}
public static void AddItem
Add me on msn.Quote:
Edit: Yeah it kinda failed on me. Says there is 101 Errors now, should I just move the,
Cus after I delete and change the backwards bracket to the right one from "{" to "}" it just gives errors about LinkBack, and AddItem afterwards.Code:public static void AddItem
Quote:
Try replacing with this
Code:using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NewestCOServer { public struct coords { public int X; public int Y; public coords(int x, int y) { this.X = x; this.Y = y; } } public static class MyMath { public static bool Contains(this coords[] Coords, coords Check) { foreach (coords Coord in Coords) if (Coord.X == Check.X && Check.Y == Coord.Y) return true; return false; } public static List<coords> LineCoords(ushort userx, ushort usery, ushort shotx, ushort shoty, byte length) { double dir = Math.Atan2(shoty - usery, shotx - userx); double f_x = (Math.Cos(dir) * length) + userx; double f_y = (Math.Sin(dir) * length) + usery; return bresenham(userx, usery, (int)f_x, (int)f_y); } public static void Add(this List<coords> Coords, int x, int y) { coords add = new coords((ushort)x, (ushort)y); if (!Coords.Contains(add)) Coords.Add(add); } public static List<coords> bresenham(int x0, int y0, int x1, int y1) { List<coords> ThisLine = new List<coords>(); int dy = y1 - y0; int dx = x1 - x0; int stepx, stepy; if (dy < 0) { dy = -dy; stepy = -1; } else { stepy = 1; } if (dx < 0) { dx = -dx; stepx = -1; } else { stepx = 1; } dy <<= 1; dx <<= 1; ThisLine.Add(x0, y0); if (dx > dy) { int fraction = dy - (dx >> 1); while (x0 != x1) { if (fraction >= 0) { y0 += stepy; fraction -= dx; } x0 += stepx; fraction += dy; ThisLine.Add(x0, y0); } } else { int fraction = dx - (dy >> 1); while (y0 != y1) { if (fraction >= 0) { x0 += stepx; fraction -= dy; } y0 += stepy; fraction += dx; ThisLine.Add(x0, y0); } } return ThisLine; } static Random Rnd = new Random(); public static double LevelDifference(byte Lev1, byte Lev2) { if (Lev1 > Lev2) { double Rt = (Lev1 - Lev2 + 7) / 5; return Rt = ((Rt - 1) * 0.8) + 1; } return 1; } public static bool ChanceSuccess(double Chance) { int e = Rnd.Next(10000000); double a = ((double)e / (double)10000000) * 100; return Chance >= a; } public static double PointDirecton(double x1, double y1, double x2, double y2) { double direction = 0; double AddX = x2 - x1; double AddY = y2 - y1; double r = (double)Math.Atan2(AddY, AddX); if (r < 0) r += (double)Math.PI * 2; direction = 360 - (r * 180 / (double)Math.PI); return direction; } public static double PointDirectonRad(double x1, double y1, double x2, double y2) { double AddX = x2 - x1; double AddY = y2 - y1; double r = (double)Math.Atan2(AddY, AddX); return r; } public static double PointDirecton2(double x1, double y1, double x2, double y2) { double direction = 0; double AddX = x2 - x1; double AddY = y2 - y1; double r = (double)Math.Atan2(AddY, AddX); direction = (r * 180 / (double)Math.PI); return direction; } public static double RadianToDegree(double r) { if (r < 0) r += (double)Math.PI * 2; double direction = 360 - (r * 180 / (double)Math.PI); return direction; } public static double DegreeToRadian(double degr) { return degr * Math.PI / 180; } public static int PointDistance(double x1, double y1, double x2, double y2) { return (int)Math.Sqrt(((x1 - x2) * (x1 - x2)) + ((y1 - y2) * (y1 - y2))); } public static bool InBox(double x1, double y1, double x2, double y2, byte Range) { return (Math.Max(Math.Abs(x1 - x2), Math.Abs(y1 - y2)) <= Range); } } }
foreach (Character C in World.H_Chars.Values)
{
if (C.Alive && (C != User || Info.Damageing == DamageType.HealHP || Info.Damageing == DamageType.HealMP))
{
if ((!RangeFromChar && MyMath.PointDistance(AimX, AimY, C.Loc.X, C.Loc.Y) <= Info.MaxDist) || MyMath.PointDistance(User.Loc.X, User.Loc.Y, C.Loc.X, C.Loc.Y) <= Info.MaxDist)
if (Info.Targetting == TargetType.Sector && InSector(C.Loc.X, C.Loc.Y) || Info.Targetting != TargetType.Sector)
if (Info.Targetting == TargetType.Linear && [COLOR="Red"]LineThanks, it works but it still gives me error on .Contains(new coords(C.Loc.X, C.Loc.Y)) || Info.Targetting != TargetType.Linear)
if (C.PKAble(User.PKMode, User) && !PlayerTargets.Contains(C) && !World.NoPKMaps.Contains(User.Loc.Map) || Info.ExtraEff == ExtraEffect.UnMount)
if (Game.World.NoPKMaps.Contains(User.Loc.Map) && GetDamage(C) == 0 || !Game.World.NoPKMaps.Contains(User.Loc.Map) || (Info.ExtraEff == ExtraEffect.UnMount && C.StatEff.Contains(StatusEffectEn.Ride)) && C.Equips.Steed.Plus < User.Equips.Steed.Plus)
if (true)
PlayerTargets.Add(C, GetDamage(C));
}
}
That's what happens when you try to ban an entire race from your server.Quote:
Hey got 2 servers running. My one server is fine. But i have egyptians the same ones over and over trying to hack into my CMD or whatever. got 3 firewalls on .. But they can still get onto my CMD after hours of trying. Wtf do i need to stop them........ They give themselves cps. But it took them a damn good 6 hours. What can i get or purchase to prevent this.
No, they are atually not banned we just like them to think that if they had any sence they would try to just login and it would work and they did login wtf is there problem and .Arco why do u hate Conquer 3.0 so much and old server even when they were not banned and we mention nothing about banning them they STILL come in I mean like cant we get them in trubble with some high authority for hacking ?Quote:
That's what happens when you try to ban an entire race from your server.
The smart ones retaliate.