Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 05:52

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Transformation skill in Redux

Discussion on Transformation skill in Redux within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2010
Posts: 940
Received Thanks: 76
Transformation skill in Redux

I am using a redux source and I noticed an issue with transformation skills, basically transform to DivineHare, WaterElf, and NightDevil and your mana disappears. I had this working but had to reinstall Win 10 due to a dumb Win 11 update that screwed my OS up and now I can't remember where the error originally was.

Any help would be greatly appreciated
denominator is offline  
Old 10/06/2022, 05:23   #2
 
pintinho12's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 908
Received Thanks: 390
Quote:
Originally Posted by denominator View Post
I am using a redux source and I noticed an issue with transformation skills, basically transform to DivineHare, WaterElf, and NightDevil and your mana disappears. I had this working but had to reinstall Win 10 due to a dumb Win 11 update that screwed my OS up and now I can't remember where the error originally was.

Any help would be greatly appreciated

I got it working request close
Can you explain what happened so it can be documented here?
pintinho12 is offline  
Old 10/06/2022, 20:26   #3
 
elite*gold: 0
Join Date: Aug 2010
Posts: 940
Received Thanks: 76
I was using extra unneeded code which I deleted, so now it works but only in TG. I got to figure out now why in cities it still persists lol. Code in question was this
Code:
public override void SetDisguise(Database.Domain.DbMonstertype _mob, long _duration, bool increaseAS)
        {
            if (!Alive)
                return;
            LastServerJump -= 1000;
            LastClientJump -= 1000;
            if (_mob == null)
            {
                var pctLife = Life * 100 / MaximumLife;
                Transformation = 0;
                waitingAttackSpeedFix = true;
                Recalculate();
                Life = MaximumLife * pctLife / 100;
            }
            else
            {
                AddStatus(Enum.ClientStatus.TransformationTimeout, (int)_mob.Mesh, _duration);
                CombatStats = CombatStatistics.Create(_mob);
                if (increaseAS)
                {
                    CombatStats.BonusHitratePct += 50; // todo: adjust this value
                }

                Transformation = (ushort)_mob.Mesh;
                TransformationAttackSpeed = CombatStats.BonusHitratePct;
                Send(UpdatePacket.Create(UID, UpdateType.MaxLife, MaximumLife));
                Life = MaximumLife;
            }
        }
I'm still struggling with this, code is working fine if I'm in TG but as soon as I transform out of TG then the mana disappears? I had this working after checking another source but I can't remember what source I found it in, iirc it was a line of code that is missing but from where and what that code was I can't for the life of me remember

I have tried adding things like Mana = MaximumMana; but anything that I try adding results in the original issue but even in TG

Code:
 public override void SetDisguise(Database.Domain.DbMonstertype _mob, long _duration, bool increaseAS)
        {
            if (!Alive)
                return;
            LastServerJump -= 1000;
            LastClientJump -= 1000;
            if (_mob == null)
            {
                var pctLife = Life * 100 / MaximumLife;
                var pctMana = Mana * 100 / MaximumMana;
                Transformation = 0;
                waitingAttackSpeedFix = true;
                Recalculate();
                Life = MaximumLife * pctLife / 100;
                Mana = (ushort)(MaximumMana * pctMana / 100);
            }
            else
            {
                AddStatus(Enum.ClientStatus.TransformationTimeout, (int)_mob.Mesh, _duration);
                CombatStats = CombatStatistics.Create(_mob);
                if (increaseAS)
                {
                    CombatStats.BonusHitratePct += 50; // todo: adjust this value
                }

                Transformation = (ushort)_mob.Mesh;
                TransformationAttackSpeed = CombatStats.BonusHitratePct;
                Send(UpdatePacket.Create(UID, UpdateType.MaxLife, MaximumLife));
                Life = MaximumLife;
                Mana = (ushort)MaximumMana;

            }
        }
Even this fails, code is from Fangs source

So I finally got it to work not sure if it's the correct way but it's actually working

Code:
public override void SetDisguise(Database.Domain.DbMonstertype _mob, long _duration, bool increaseAS)
        {
            if (!Alive)
                return;
            LastServerJump -= 1000;
            LastClientJump -= 1000;
            if (_mob == null)
            {
                var pctLife = Life * 100 / MaximumLife;
                Transformation = 0;
                waitingAttackSpeedFix = true;
                Recalculate();
                Life = MaximumLife * pctLife / 100;
            }
            else
            {
                AddStatus(Enum.ClientStatus.TransformationTimeout, (int)_mob.Mesh, _duration);
                CombatStats = CombatStatistics.Create(_mob);
                if (increaseAS)
                {
                    CombatStats.BonusHitratePct += 50; // todo: adjust this value
                }

                Transformation = (ushort)_mob.Mesh;
                TransformationAttackSpeed = CombatStats.BonusHitratePct;              
                Send(UpdatePacket.Create(UID, UpdateType.MaxLife, MaximumLife));
                Life = MaximumLife;
                Send(UpdatePacket.Create(UID, UpdateType.MaxMana, MaximumMana));
                CombatStats.MaxMana = (ushort)(Common.GetTaoistManaBonus(MaximumMana) * 100);

            }
        }
denominator is offline  
Reply


Similar Threads Similar Threads
[Learning Redux] Video Guides To Using Redux
03/22/2024 - CO2 PServer Guides & Releases - 43 Replies
So I know jumping into a new source can be scary and it's not something everyone wants to do, especially if they have a lot of content running already under something else (looking at you NCOS based servers!). These videos are designed to help people get their feet wet with Redux by providing accurate and easy to follow information on how to accomplish common tasks. DOWNLOAD REDUX/FAQ:...
[Selling] Saints Row 4, Metro Redux, Metro Last Light Redux Keys
12/14/2014 - Steam Trading - 1 Replies
---
[Buying] Metro 2033 Redux, Metro LL Redux, Fallout NV, Fallout 3, S.T.A.L.K.E.R: SoC
12/07/2014 - elite*gold Trading - 4 Replies
Suche diese Spiele für e*g (Steam).



All times are GMT +2. The time now is 05:52.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.