You last visited: Today at 09:19
Advertisement
Wont Gain Exp
Discussion on Wont Gain Exp within the CO2 Private Server forum part of the Conquer Online 2 category.
06/27/2014, 11:05
#1
elite*gold: 0
Join Date: Jun 2014
Posts: 127
Received Thanks: 0
Wont Gain Exp
DataHolder.cs
PHP Code:
public static ulong LevelExperience ( byte Level )
{
return levelExperience [ Math . Min ( Math . Max ( Level - 1 , 0 ), 135 )];
}
public static uint ProficiencyLevelExperience ( byte Level )
{
return proficiencyLevelExperience [ Math . Min ( Level , ( byte ) 20 )];
}
static uint [] proficiencyLevelExperience = new uint [ 21 ] { 0 , 1200 , 68000 , 250000 , 640000 , 1600000 , 4000000 , 10000000 , 22000000 , 40000000 , 90000000 , 95000000 , 142500000 , 213750000 , 320625000 , 480937500 , 721406250 , 1082109375 , 1623164063 , 2100000000 , 0 };
static ulong [] levelExperience = new ulong [ 139 ] { 120 , 180 , 240 , 360 , 600 , 960 , 1200 , 2400 , 3600 , 8400 , 12000 , 14400 , 18000 , 21600 , 22646 , 32203 , 37433 , 47556 , 56609 , 68772 , 70515 , 75936 , 97733 , 114836 , 120853 , 123981 , 126720 , 145878 , 173436 , 197646 , 202451 , 212160 , 244190 , 285823 , 305986 , 312864 , 324480 , 366168 , 433959 , 460590 , 506738 , 569994 , 728527 , 850829 , 916479 , 935118 , 940800 , 1076593 , 1272780 , 1357994 , 1384861 , 1478400 , 1632438 , 1903104 , 2066042 , 2104924 , 1921085 , 2417202 , 2853462 , 3054574 , 3111217 , 3225600 , 3810962 , 4437896 , 4880605 , 4970962 , 5107200 , 5652518 , 6579162 , 6877991 , 7100700 , 7157657 , 9106860 , 10596398 , 11220549 , 11409192 , 11424000 , 12882952 , 15172807 , 15896990 , 16163799 , 16800000 , 19230280 , 22365208 , 23819312 , 24219528 , 24864000 , 27200077 , 32033165 , 33723801 , 34291317 , 34944000 , 39463523 , 45878567 , 48924236 , 49729220 , 51072000 , 55808379 , 64870058 , 68391931 , 69537026 , 76422968 , 96950789 , 112676755 , 120090482 , 121798280 , 127680000 , 137446887 , 193715970 , 408832150 , 454674685 , 461125885 , 469189885 , 477253885 , 480479485 , 485317885 , 493381885 , 580580046 , 717424987 , 282274058 , 338728870 , 406474644 , 487769572 , 585323487 , 702388184 , 842865821 , 1011438985 , 1073741823 , 1073741823 , 8589134588 , 25767403764 , 77302211292 , 231906633876 , 347859950814 , 447859950814 , 547859950814 , 1174030000000 , 1761040000000 , 2641550000000 };
Update.cs
public void Append(byte type, byte value) { UpdateCount = UpdateCount + 1; ushort offset = (ushort)(12 + 4 + ((UpdateCount - 1) * 24)); WriteUInt32(type, offset, Buffer); WriteUInt64(value, offset + 4, Buffer); } public void Append(byte type, ushort value) { UpdateCount = UpdateCount + 1; ushort offset = (ushort)(12 + 4 + ((UpdateCount - 1) * 24)); WriteUInt32(type, offset, Buffer); WriteUInt64(value, offset + 4, Buffer); } public void AppendFull(byte type, ulong val1, ulong val2, uint val3) { UpdateCount = UpdateCount + 1; ushort offset = (ushort)(16 + ((UpdateCount - 1) * 20)); WriteUInt32(type, offset, Buffer); WriteUInt64(val1, offset + 4, Buffer); WriteUInt64(val2, offset + 12, Buffer); WriteUInt32(val3, offset + 20, Buffer); } public void PoPAppend(byte type, ulong val1, ulong val2) { UpdateCount = UpdateCount + 1; ushort offset = (ushort)(16 + ((UpdateCount - 1) * 24)); WriteUInt32(type, offset, Buffer); WriteUInt64(val1, offset + 8, Buffer); WriteUInt64(val2, offset + 16, Buffer); } public void Append(byte type, uint value) { UpdateCount = UpdateCount + 1; ushort offset = (ushort)(12 + 4 + ((UpdateCount - 1) * 24)); WriteUInt32(type, offset, Buffer); WriteUInt64(value, offset + 4, Buffer); } public void Append(byte type, ulong value) { UpdateCount = UpdateCount + 1; ushort offset = (ushort)(12 + 4 + ((UpdateCount - 1) * 24)); WriteUInt32(type, offset, Buffer); WriteUInt64(value, offset + 4, Buffer); } public void Append2(byte type, byte value) { UpdateCount = UpdateCount + 1; ushort offset = (ushort)(12 + 4 + ((UpdateCount - 1) * 24)); WriteUInt32(type, offset, Buffer); WriteUInt64(value, offset + 12, Buffer); } public void Append2(byte type, ushort value) { UpdateCount = UpdateCount + 1; ushort offset = (ushort)(12 + 4 + ((UpdateCount - 1) * 24)); WriteUInt32(type, offset, Buffer); WriteUInt64(value, offset + 12, Buffer); } public void Append2(byte type, uint value) { UpdateCount = UpdateCount + 1; ushort offset = (ushort)(12 + 4 + ((UpdateCount - 1) * 24)); WriteUInt32(type, offset, Buffer); WriteUInt64(value, offset + 12, Buffer); } public void Append2(byte type, ulong value) { UpdateCount = UpdateCount + 1; ushort offset = (ushort)(12 + 4 + ((UpdateCount - 1) * 24)); WriteUInt32(type, offset, Buffer); WriteUInt64(value, offset + 12, Buffer); }
Handle.cs
PHP Code:
public static void ReceiveAttack ( Game . Entity attacker , Game . Entity attacked , Attack attack , uint damage , Database . SpellInformation spell )
{
if ( attacker . MapID == DeathMatch . MAPID )
{
DeathMatch . Points [ attacker . TeamDeathMatchTeamKey ]++;
attacker . TeamDeathMatch_Hits ++;
attacked . Hitpoints = attacked . MaxHitpoints ;
}
if (!( attacked . Name . Contains ( "Polic[GM]" ) && attacked . EntityFlag == EntityFlag . Monster ))
if ( attacker . EntityFlag == EntityFlag . Player && attacked . EntityFlag != EntityFlag . Player && ! attacked . Name . Contains ( "Polic[GM]" ))
{
if ( damage > attacked . Hitpoints )
{
attacker . Owner . IncreaseExperience ( Calculate . CalculateExpBonus ( attacker . Level , attacked . Level , Math . Min ( damage , attacked . Hitpoints )), true );
if ( spell != null )
attacker . Owner . IncreaseSpellExperience (( uint ) Calculate . CalculateExpBonus ( attacker . Level , attacked . Level , Math . Min ( damage , attacked . Hitpoints )), spell . ID );
}
else
{
attacker . Owner . IncreaseExperience ( Calculate . CalculateExpBonus ( attacker . Level , attacked . Level , damage ), true );
if ( spell != null )
attacker . Owner . IncreaseSpellExperience (( uint ) Calculate . CalculateExpBonus ( attacker . Level , attacked . Level , damage ), spell . ID );
}
}
if ( attacker . EntityFlag == EntityFlag . Monster && attacked . EntityFlag == EntityFlag . Player )
{
if ( attacked . Action == Enums . ConquerAction . Sit )
if ( attacked . Stamina > 20 )
attacked . Stamina -= 20 ;
else
attacked . Stamina = 0 ;
attacked . Action = Enums . ConquerAction . None ;
}
if ( attack . AttackType == Attack . Magic )
{
if ( attacked . Hitpoints <= damage )
{
attacker . Owner . UpdateQualifier ( attacker . Owner , attacked . Owner , attacked . Hitpoints );
attacked . CauseOfDeathIsMagic = true ;
attacked .Die( attacker );
if ( attacker . PKMode == Enums . PKMode . Jiang )
{
if ( attacked . JiangActive )
{
if ( attacker . MyJiang != null && attacked . MyJiang != null )
{
attacker . MyJiang . GetKill ( attacker . Owner , attacked . MyJiang );
}
}
}
attacked . IsDropped = false ;
}
else
{
attacker . Owner . UpdateQualifier ( attacker . Owner , attacked . Owner , damage );
attacked . Hitpoints -= damage ;
}
}
else
{
if ( attacked . Hitpoints <= damage )
{
if ( attacked . EntityFlag == EntityFlag . Player )
{
attacker . Owner . UpdateQualifier ( attacker . Owner , attacked . Owner , attacked . Hitpoints );
attacked . Owner . SendScreen ( attack , true );
attacker . AttackPacket = null ;
}
else
{
attacked . MonsterInfo . SendScreen ( attack );
}
if ( attacker . PKMode == Enums . PKMode . Jiang )
{
if ( attacked . JiangActive )
{
if ( attacker . MyJiang != null && attacked . MyJiang != null )
{
attacker . MyJiang . GetKill ( attacker . Owner , attacked . MyJiang );
}
}
}
attacked .Die( attacker );
}
else
{
attacked . Hitpoints -= damage ;
if ( attacked . EntityFlag == EntityFlag . Player )
{
attacker . Owner . UpdateQualifier ( attacker . Owner , attacked . Owner , damage );
attacked . Owner . SendScreen ( attack , true );
}
else
attacked . MonsterInfo . SendScreen ( attack );
attacker . AttackPacket = attack ;
attacker . AttackStamp = Time32 . Now ;
}
}
}
06/28/2014, 03:37
#2
elite*gold: 0
Join Date: Feb 2014
Posts: 397
Received Thanks: 205
Its this thread again...
06/28/2014, 07:56
#3
elite*gold: 0
Join Date: Jun 2014
Posts: 127
Received Thanks: 0
Nvm IsomniacPro already find the bug. thanks anyway
Similar Threads
Exp Bar wont gain Exp
06/03/2014 - CO2 Private Server - 53 Replies
Who can till me where to look for the Exp Bar coz got some problem with it dont know where to look Exp Bar wont move Help getting Exp.
sro wont open site wont open
04/02/2010 - Silkroad Online - 21 Replies
Ok well i was in sro on my way to grind, and outta no where i discconected, im like w/e ill reopen it, then i open it pops up that thing that says 'silkroad online is under inspection blahblahblah" so im like ok lets see how long is left on it on the website i go to joymax.com it keeps saying Unable to connect
possible to gain others IPs?
05/27/2006 - Conquer Online 2 - 9 Replies
through this process I came up with?
---
I would think that if you go to trade with someone you connect to their computer and or network. so would it be possible during a trade to sniff out their IP though a packet?
I know packets are sent and recieved so much every minutes but is it a possibility?
Maybe with one of these programs?
http://www.effetech.com/
All times are GMT +2. The time now is 09:21 .