Jump to content
  • 0
mjonrest

Mage Class attack count as range and matk base

Question

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
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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
Link to comment
Share on other sites

  • 0

@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;
        }


 

Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.