|
You last visited: Today at 23:31
Advertisement
ProjectX Source
Discussion on ProjectX Source within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
08/01/2011, 00:06
|
#76
|
elite*gold: 0
Join Date: Jul 2011
Posts: 16
Received Thanks: 0
|
i know. but where do i have to look in database.cs? i search for loadmobs and found some thing.
Quote:
public static void LoadMobs()
{
string[] FMobs = File.ReadAllLines(@"C:\OldCODB\MobInfos.txt");
Hashtable Mobs = new Hashtable(FMobs.Length);
for (int i = 0; i < FMobs.Length; i++)
{
if (FMobs[i][0] != '*')
{
Game.Mob M = new ProjectX.Game.Mob(FMobs[i]);
Mobs.Add(M.MobID, M);
Console.ForegroundColor = ConsoleColor.Yellow;
Console.WriteLine("Loading Mob: " + M.MobID);
Console.ResetColor();
}
}
int MobsCount = 0;
string[] FSpawns = File.ReadAllLines(@"C:\OldCODB\MobSpawns.txt");
foreach (string Spawn in FSpawns)
{
if (Spawn[0] == '*') return;
string[] SpawnInfo = Spawn.Split(' ');
int MobID = int.Parse(SpawnInfo[0]);
int Count = int.Parse(SpawnInfo[1]);
ushort Map = ushort.Parse(SpawnInfo[2]);
ushort XFrom = ushort.Parse(SpawnInfo[3]);
ushort YFrom = ushort.Parse(SpawnInfo[4]);
ushort XTo = ushort.Parse(SpawnInfo[5]);
ushort YTo = ushort.Parse(SpawnInfo[6]);
if (!Game.World.H_Mobs.Contains(Map))
Game.World.H_Mobs.Add(Map, new Hashtable());
Hashtable MapMobs = (Hashtable)Game.World.H_Mobs[Map];
DMap D = (DMap)DMaps.H_DMaps[Map];
for (int i = 0; i < Count; i++)
{
Game.Mob _Mob = new ProjectX.Game.Mob((Game.Mob)Mobs[MobID]);
_Mob.Loc = new ProjectX.Game.Location();
_Mob.Loc.Map = Map;
_Mob.Loc.X = (ushort)Program.Rnd.Next(Math.Min(XFrom, XTo), Math.Max(XFrom, XTo));
_Mob.Loc.Y = (ushort)Program.Rnd.Next(Math.Min(YFrom, YTo), Math.Max(YFrom, YTo));
while (D != null && D.GetCell(_Mob.Loc.X, _Mob.Loc.Y).NoAccess)
{
_Mob.Loc.X = (ushort)Program.Rnd.Next(Math.Min(XFrom, XTo), Math.Max(XFrom, XTo));
_Mob.Loc.Y = (ushort)Program.Rnd.Next(Math.Min(YFrom, YTo), Math.Max(YFrom, YTo));
}
_Mob.StartLoc = _Mob.Loc;
_Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
while (Game.World.H_Chars.Contains(_Mob.EntityID) || MapMobs.Contains(_Mob.EntityID))
_Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
MapMobs.Add(_Mob.EntityID, _Mob);
MobsCount++;
}
}
Program.WriteLine("Mobs loaded " + MobsCount.ToString());
}
|
the mobs arent spawning. whats wrong?
|
|
|
08/01/2011, 00:10
|
#77
|
elite*gold: 0
Join Date: Nov 2009
Posts: 785
Received Thanks: 422
|
He said in LoadMobs.cs not in Database.cs
|
|
|
08/01/2011, 01:05
|
#78
|
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
|
Oh wait a minute my bad, go to the database and add mobspawns in mobspawn.txt or take any others mob spawn from 5165 sources.
I apologize.
|
|
|
08/01/2011, 02:01
|
#79
|
elite*gold: 0
Join Date: Jul 2011
Posts: 16
Received Thanks: 0
|
Quote:
Originally Posted by BaussHacker
Oh wait a minute my bad, go to the database and add mobspawns in mobspawn.txt or take any others mob spawn from 5165 sources.
I apologize.
|
Thnx ur the best.
it works.
But now my last question.
I know its PVP but i want to use bows and katanas. cuz when i try to buy katanas, system says Katanas & Bows are not allowed. how to allow it?
|
|
|
08/01/2011, 05:57
|
#80
|
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
|
Quote:
Originally Posted by soldiar...
Thnx ur the best.
it works.
But now my last question.
I know its PVP but i want to use bows and katanas. cuz when i try to buy katanas, system says Katanas & Bows are not allowed. how to allow it?
|
Find the buyitem.cs or something, then you just remove the check for it.
|
|
|
08/01/2011, 12:23
|
#81
|
elite*gold: 0
Join Date: Jul 2011
Posts: 16
Received Thanks: 0
|
awh. thnx i found shop.cs in itempacket and i found this
Quote:
catch (Exception Exc) { Program.WriteLine(Exc); }
Game.ItemIDManipulation e = new ProjectX.Game.ItemIDManipulation(I.ID);
if (e.Part(0, 2) == 11 || e.Part(0, 2) == 13 || e.Part(0, 3) == 123 || e.Part(0, 3) == 141 || e.Part(0, 3) == 142)
I.Color = ProjectX.Game.Item.ArmorColor.Orange;
string iid = I.ID.ToString();
if (iid.StartsWith("601") || iid.StartsWith("5003") || iid.StartsWith("5002") || iid.StartsWith("5001") || iid.StartsWith("5000"))
{
GC.MyChar.MyClient.LocalMessage(2000, "Katanas & Bows are not allowed!");
}
else
{
GC.MyChar.AddItem(I);
GC.MyChar.Silvers -= DBI.Worth;
}
}
else if (S.MoneyType == 1 && GC.MyChar.CPs >= DBI.CPsWorth)
{
Game.Item I = new ProjectX.Game.Item();
I.ID = ItemID;
I.UID = (uint)Game.World.Rnd.Next(10000000);
try
{
I.MaxDur = DBI.Durability;
I.CurDur = I.MaxDur;
}
catch (Exception Exc) { Program.WriteLine(Exc); }
if (Game.ItemIDManipulation.Part(I.ID, 0, 2) == 73)
I.Plus = Game.ItemIDManipulation.Digit(I.ID, 6);
string iid = I.ID.ToString();
if (iid.StartsWith("601") || iid.StartsWith("5003") || iid.StartsWith("5002") || iid.StartsWith("5001") || iid.StartsWith("5000"))
{
GC.MyChar.MyClient.LocalMessage(2000, "Katanas & Bows are not allowed!");
}
else
{
GC.MyChar.AddItem(I);
GC.MyChar.CPs -= DBI.CPsWorth;
|
what should i delete?
|
|
|
08/01/2011, 12:56
|
#82
|
elite*gold: 0
Join Date: Aug 2010
Posts: 93
Received Thanks: 18
|
Well all Katanas start with the ID 601 if you checked in items.txt
if (iid.StartsWith("601")
|
|
|
08/01/2011, 13:24
|
#83
|
elite*gold: 0
Join Date: Jul 2011
Posts: 16
Received Thanks: 0
|
i removed it but i cant still buy katanas and bows
|
|
|
08/01/2011, 15:22
|
#84
|
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
|
Did you build or debug?
|
|
|
08/01/2011, 17:33
|
#85
|
elite*gold: 0
Join Date: Jul 2011
Posts: 16
Received Thanks: 0
|
yea i pressed f6 and f5.
but still cant buy them.
i see the problem i got c# 2008. i think i need c# 2010. but i got no reg key =(
|
|
|
08/01/2011, 20:46
|
#86
|
elite*gold: 0
Join Date: Aug 2010
Posts: 93
Received Thanks: 18
|
Quote:
Originally Posted by soldiar...
yea i pressed f6 and f5.
but still cant buy them.
i see the problem i got c# 2008. i think i need c# 2010. but i got no reg key =(
|
You got to register the product, it was free when someone told me to do that, if i remember right they will send you a register key once you registered the product.
|
|
|
08/01/2011, 21:12
|
#87
|
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
|
Quote:
Originally Posted by soldiar...
yea i pressed f6 and f5.
but still cant buy them.
i see the problem i got c# 2008. i think i need c# 2010. but i got no reg key =(
|
Just register your product at microsoft and activate it with your mail.
|
|
|
08/02/2011, 00:37
|
#88
|
elite*gold: 0
Join Date: Jul 2011
Posts: 16
Received Thanks: 0
|
yea i got it now. microsoft blocked my isp. :S i registrated @ a friend. but now i try to debug and it gives me an error in connection.cs when i try to login. does anyone having the same?
Quote:
|
pinvokestackimbalance was detected
|
Quote:
|
A call to PInvoke function ProjectX!ProjectX.Native::memcpy has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.
|
Uploaded with
|
|
|
08/02/2011, 01:26
|
#89
|
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
|
Quote:
Originally Posted by soldiar...
yea i got it now. microsoft blocked my isp. :S i registrated @ a friend. but now i try to debug and it gives me an error in connection.cs when i try to login. does anyone having the same?
Uploaded with 
|
Please search, the fix for it have been posted multiple times ^^
|
|
|
08/05/2011, 03:42
|
#90
|
elite*gold: 0
Join Date: Jun 2007
Posts: 32
Received Thanks: 0
|
anyone know how to fix the timer file?
|
|
|
 |
|
Similar Threads
|
ProjectX
07/14/2008 - Conquer Online 2 - 10 Replies
yesterday i logged in to my other email and Project just comes up and say this
ZoMg Its..Project Aka Andrew Owner Of YourFunWorld.comBored...! says:
Lol
ZoMg Its..Project Aka Andrew Owner Of YourFunWorld.comBored...! says:
ur server is prob gunna fail again
ZoMg Its..Project Aka Andrew Owner Of YourFunWorld.comBored...! says:
zZz
ZoMg Its..Project Aka Andrew Owner Of YourFunWorld.comBored...! says:
whats the site now?
|
how to use UCE projectx 3.0
04/30/2008 - Dekaron - 1 Replies
Hi,
I'm a new cheater and i want to create a bot, but i want to be sure my acount wasn't ban.
So i have install projectX 3.0 but i dont say how to use it?
Anyone can say me plz.
|
Where to buy projectx
02/13/2008 - Cabal Online - 6 Replies
I did search but found nothing about how to buy.
Just curious and wanted to have a look at it, where can i buy that?
|
ProjectX Engine for HO
01/23/2008 - General Gaming Discussion - 4 Replies
Use this program to cheat in the game, but not for the values of addresses.
If someone achieve pole here please ..
will the links.
Http://rapidshare.com/files/48816486/ProjectX.rar .html
Or
Http://rapidshare.com/files/48817633/Project_X.ra r
|
Where can i buy ProjectX 4.0 ?
10/07/2007 - Cabal Online - 5 Replies
I've looking for projectx 4.0, many member said that program worked with cabalonline :) but i can't found any thread talk about this :confused: plz let's me know if you know too :p thanks !
|
All times are GMT +1. The time now is 23:31.
|
|