Jump to content
  • 0

Mage Class attack count as range and matk base


Question

Posted (edited)

I am looking for this kind of source modification

 

Quote

condition

- mage class range should be lower or half than archer class

- damage of base attack (normal attack) should be based on matk

 

sorry for bad english

hopefully someone can help me with this..

thanks

Edited by mjonrest

4 answers to this question

Recommended Posts

  • 0
Posted

Adjust the range here (Each skills)

db\re\skill_db.txt

 

And Atk to you can try simple code. (You need to check/change it, I just try to help.)

src\map\battle.cpp

line 6275

add this lines.

	//Damage by ATK
			ad.damage += (int64)sd->weapon_atk;
			ad.damage += (int64)sd->battle_status.batk;
			ad.damage += (int64)sd->battle_status.eatk;
			ad.damage += (int64)sd->battle_status.watk;
			ad.damage += (int64)sd->battle_status.watk2;

			//Damage bonuses

 

  • Love 1
  • 0
Posted

@Start_

thanks for your help

- i mean normal attack with range animation just like archer class but it works for mage class...

or may i should adjust it here 

db\re\item_db.txt (weapon range) 

- like this?

Quote

if(sd) {
            //Damage by ATK
            ad.damage += (int64)sd->weapon_atk;
            ad.damage += (int64)sd->battle_status.batk;
            ad.damage += (int64)sd->battle_status.eatk;
            ad.damage += (int64)sd->battle_status.watk;
            ad.damage += (int64)sd->battle_status.watk2;

            //Damage bonuses
            if ((i = pc_skillatk_bonus(sd, skill_id)))
                ad.damage += (int64)ad.damage*i/100;

            //Ignore Defense?
            if (!flag.imdef && (
                sd->bonus.ignore_mdef_ele & ( 1 << tstatus->def_ele ) || sd->bonus.ignore_mdef_ele & ( 1 << ELE_ALL ) ||
                sd->bonus.ignore_mdef_race & ( 1 << tstatus->race ) || sd->bonus.ignore_mdef_race & ( 1 << RC_ALL ) ||
                sd->bonus.ignore_mdef_class & ( 1 << tstatus->class_ ) || sd->bonus.ignore_mdef_class & ( 1 << CLASS_ALL )
            ))
                flag.imdef = 1;
        }


 

  • 0
Posted (edited)

Yes you need to adjust staff range. (Do this in SDE will faster than notepad)

 

And SRC thing just try it.

Edited by Start_
  • Love 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...