anyone know?

08/27/2012 01:41 Litper#1
Hi my source is 5530 and have this problem can anyone help me a little bit with this?


System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeExceptio n()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at Conquer_Online_Server.Database.MonsterInformation. Drop(Entity killer) in C:\DaRkHellCO 4 Source 5525\Database\MonsterTable.cs:line 1904
at Conquer_Online_Server.Game.Entity.Die(Entity killer) in C:\DaRkHellCO 4 Source 5525\Game\Entity.cs:line 2113
at Conquer_Online_Server.Game.Attacking.Handle.Receiv eAttack(Entity attacker, Entity attacked, Attack attack, UInt32 damage, SpellInformation spell) in C:\DaRkHellCO 4 Source 5525\Game\Attacking\Handle.cs:line 4537
at Conquer_Online_Server.Game.Attacking.Handle.Execut e() in C:\DaRkHellCO 4 Source 5525\Game\Attacking\Handle.cs:line 2491
at Conquer_Online_Server.Game.Attacking.Handle..ctor( Attack attack, Entity attacker, Entity attacked) in C:\DaRkHellCO 4 Source 5525\Game\Attacking\Handle.cs:line 24
at Conquer_Online_Server.Program.AttackThread_Execute () in C:\DaRkHellCO 4 Source 5525\Program.cs:line 287


__________________________________________________ ___________
this part is 1904

retry:
times--;
int generateItemId = ServerBase.Kernel.Random.Next(itemdroplist.Count);
uint id = itemdroplist[generateItemId];
if (!Boss)
{
if (Database.ConquerItemInformation.BaseInformations[id].Level > 121 && times > 0)
goto retry;
id = (id / 10) * 10 + (uint)quality;
}
if (!Database.ConquerItemInformation.BaseInformations .ContainsKey(id))
{
id = itemdroplist[generateItemId];
}
08/27/2012 01:59 .Kinshi#2
Variables have a minimum and maximum value depending on its type. It means the number you're using is too high or too low.
08/27/2012 02:42 Litper#3
Quote:
Originally Posted by .Kinshi View Post
Variables have a minimum and maximum value depending on its type. It means the number you're using is too high or too low.
so how i cant fixed this part where exactly need make it and tanks for answer
08/27/2012 03:24 badguy4you#4
Quote:
Originally Posted by Litper View Post
so how i cant fixed this part where exactly need make it and tanks for answer
Learn programming to fix it
08/27/2012 03:53 Litper#5
Quote:
Originally Posted by badguy4you View Post
Learn programming to fix it

i learn it just im ask about this problem to know how to fix it and know more about this and continue learn more
08/27/2012 03:57 badguy4you#6
Quote:
Originally Posted by Litper View Post
i learn it just im ask about this problem to know how to fix it and know more about this and continue learn more
he told you the problem so you if you know programming you could fix it easily
08/27/2012 07:41 I don't have a username#7
The problem happens here:
Code:
uint id = itemdroplist[generateItemId];
And the reason is here:
Code:
int generateItemId = ServerBase.Kernel.Random.Next(itemdroplist.Count);
Change itemdroplist.Count to itemdroplist.Count - 1, because arrays starts from 0.
08/27/2012 08:38 Litper#8
thanks guys i fixed it with all yours help
09/03/2012 20:58 Litper#9
other little question ur know how the users can clones CPs on this version? i have a big problem with this and im check all the code and dont have error on the console.
09/03/2012 21:24 I don't have a username#10
Do you know how they do it?
09/03/2012 21:55 Litper#11
Quote:
Originally Posted by I don't have a username View Post
Do you know how they do it?
create a new character you will get 50k cps to kill mobs are left connected and disconnected to return 50k cps pass to another account let themselves be killed by a mob and was supposedly disconnected and return Cps

sorry but my english is no good :)
09/03/2012 22:19 I don't have a username#12
Why do you even have that in the first place? And save it to the database when you add them