Jump to content

Add new Mounts to Attack and Damage


Recommended Posts

Hi i would like share with u guys how to add new mounts to attack and do dmg

On game u will need find the

pvp.cpp and find

        switch( pkChr->GetMountVnum() )

        {

            case 0:

Then above case 0: u should add the mount id u want like this exemple

        switch( pkChr->GetMountVnum() )

        {

            case 0:

            case 19000:

            case 19001:

            case 19002:

            case 19003:

Now client side u will need open the file

InstanceBase.cpp

and find

UINT CInstanceBase::SHORSE::GetLevel()

{

    if (m_pkActor)

    {

        DWORD mount = m_pkActor->GetRace();

        switch (mount)

        {

Then u will add all case and end with a return 3 like this

UINT CInstanceBase::SHORSE::GetLevel()

{

    if (m_pkActor)

    {

        DWORD mount = m_pkActor->GetRace();

        switch (mount)

        {
            case 19001:

            case 19002:

            case 19003:

                return 3;
  • Love 17
Link to comment
  • 6 months later...

Hi ....

i've a problem with skill mount's...hit but don't damage ...please can you help me?

Same problem as you, try to do a new help request maybe someone with find the problem, i've not searched at the moment.

 

 

Link to comment
  • 3 weeks later...
  • 3 months later...
  • 3 years later...
UINT CInstanceBase::SHORSE::GetLevel()
{
	if (m_pkActor)
	{
		DWORD mount = m_pkActor->GetRace();
		
		TMapMountLevelByVNum::iterator it = g_mapMountLevelByVNum.find(mount);
		if (it == g_mapMountLevelByVNum.end())
			return 0;

		return it->second;
	}
	return 0;
}

How should i have to edit?

Link to comment
  • 8 months later...
  • VIP

Src&Binary\Srcs_CLIENT_OFFICIAL\Srcs\Client\UserInterface\InstanceBase.cpp   This is crucial. Thank you!@yagokurt

--------------------------------------------------------------------------------------------------------------------

In the two files of game source, I found the case 20114 related to mount: copy the monster number corresponding to the new mount,

It didn't work, but I followed @yagokurt, got client in vs2013, and my mounts can attack!Thanks again!

source\game\char_battle  
source\game\char_skill    

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.