Jump to content
  • 0

Thara frog is like GTB


razermantis

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  49
  • Reputation:   0
  • Joined:  12/18/16
  • Last Seen:  

how could thara frog can reduce magic damage? im just only a begginer kindly give me a idea .. that only thara frog card can reduce physical not magical ? 

screenrAthena003.jpg

screenrAthena005.jpg

Link to comment
Share on other sites

13 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  57
  • Reputation:   16
  • Joined:  09/26/16
  • Last Seen:  

from what i research so far, thara frog card DO affect magic damage. but if you really want ALL magical damages to ignore race calculation, here's a solution:
src/battle.c
 

int battle_calc_cardfix(int attack_type, struct block_list *src, struct block_list *target, int nk, int rh_ele, int lh_ele, int64 damage, int left, int flag){
.....
#define APPLY_CARDFIX(damage, fix) { (damage) = (damage) - (int64)(((damage) * (1000 - (fix))) / 1000); }

	switch( attack_type ) {
		case BF_MAGIC:
........
				cardfix = cardfix * (100 - tsd->subsize[sstatus->size] - tsd->subsize[SZ_ALL]) / 100;
				cardfix = cardfix * (100 - tsd->subrace2[s_race2]) / 100;
				cardfix = cardfix * (100 - tsd->subrace[sstatus->race] - tsd->subrace[RC_ALL]) / 100;
				cardfix = cardfix * (100 - tsd->subclass[sstatus->class_] - tsd->subclass[CLASS_ALL]) / 100;


comment out the tsd->subrace

				cardfix = cardfix * (100 - tsd->subsize[sstatus->size] - tsd->subsize[SZ_ALL]) / 100;
				cardfix = cardfix * (100 - tsd->subrace2[s_race2]) / 100;
				//cardfix = cardfix * (100 - tsd->subrace[sstatus->race] - tsd->subrace[RC_ALL]) / 100;
				cardfix = cardfix * (100 - tsd->subclass[sstatus->class_] - tsd->subclass[CLASS_ALL]) / 100;

not yet tested

Edited by Athan17
Link to comment
Share on other sites

  • 1

  • Group:  Developer
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  815
  • Reputation:   235
  • Joined:  01/30/13
  • Last Seen:  

Racial reductions always worked for magical damage too. Some skills ignore it, though.

Link to comment
Share on other sites

  • 1

  • Group:  Developer
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  815
  • Reputation:   235
  • Joined:  01/30/13
  • Last Seen:  

Right now there is no bonus to only reduce physical damage from a race. If a server had that they must have solved that by changing the source code. I've never seen a server like that, though.

If you want that too you'd need to learn how to code yourself. Or ask those servers for a diff.

https://raw.githubusercontent.com/rathena/rathena/master/src/map/battle.c

The function you are looking for is:

int battle_calc_cardfix(int attack_type, struct block_list *src, struct block_list *target, int nk, int rh_ele, int lh_ele, int64 damage, int left, int flag){
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  745
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

8 hours ago, razermantis said:

how could thara frog can reduce magic damage? im just only a begginer kindly give me a idea .. that only thara frog card can reduce physical not magical ? 

screenrAthena003.jpg

screenrAthena005.jpg

Reduce damage from DemiHuman monster by 30%.
Item Script    
{ bonus2 bSubRace,RC_DemiHuman,30; bonus2 bSubRace,RC_Player,30; },{},{}

Gtb Effect

{ bonus bNoMagicDamage,100; bonus bUseSPrate,100; },{},{}

bonus bNoMagicDamage,100 = 100% all magic miss reduce the like 60

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  49
  • Reputation:   0
  • Joined:  12/18/16
  • Last Seen:  

how could that. happen that thara frog card can reduce Magic skill Damage like Firebolt // Storm gust // all i know thara can only reduce physical attacks not a magic.. im so noob at this

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  49
  • Reputation:   0
  • Joined:  12/18/16
  • Last Seen:  

i,ve tried it also nothing happen db/re/item_db.txt .. ill try to remove it but nothing happen

 

  {  bonus2 bSubRace,RC_DemiHuman,30;  },{},{}  >>> Nothing happen


 bonus2 bSubRace,RC_DemiHuman,30; bonus2 bSubRace,RC_DemiHuman,30; },{},{} >> it works on other skills but ( Cart Termination.. Sacri dont effect why?)

 

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

Sir RC_Player

 

Not RC_demihuman

 

Players are their own race

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  49
  • Reputation:   0
  • Joined:  12/18/16
  • Last Seen:  

4058,Thara_Frog_Card,Thara Frog Card,6,20,,10,,,,,,,,32,,,,,{ bonus2 bSubRace,RC_DemiHuman,30; bonus2 bSubRace,RC_Player,30; },{},{} << Original Effect <<

Why this card keep reducing all magic skills? beacase of this >>> bonus2 bSubRace,RC_Player,30??? 

what should i do .. to stop reducing magic damage? all i want that this thara frog card will only reduce physical attacks not magical 

Thank you for your reply.. just want to fixed this problem cuz it takes almost 10 hours O_O but nothing happen

screenrAthena000.jpg

screenrAthena001.jpg

Edited by razermantis
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  49
  • Reputation:   0
  • Joined:  12/18/16
  • Last Seen:  

But in other RO like Vanro Etc.. Thara frog dont reduce Magic Skill Damage like " FIREBOLT // STORM GUST// JUPITEL // ETC. all i know is just for melee attacks sorry for being noob and asking so many questions

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  49
  • Reputation:   0
  • Joined:  12/18/16
  • Last Seen:  

when i tried to remove  bonus2 bSubRace,RC_Player,30 some other melee skill will not be reduce

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  49
  • Reputation:   0
  • Joined:  12/18/16
  • Last Seen:  

so if the reduction of thara frog can reduce all magic skills and physicall .. GTB would no longer be use..

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  49
  • Reputation:   0
  • Joined:  12/18/16
  • Last Seen:  

Thank you so much Athna.. you help me :* <3 <3

by the way advance merry christmas send me ur email :)

Link to comment
Share on other sites

  • -1

  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   46
  • Joined:  03/27/13
  • Last Seen:  

2 hours ago, razermantis said:

how could that. happen that thara frog card can reduce Magic skill Damage like Firebolt // Storm gust // all i know thara can only reduce physical attacks not a magic.. im so noob at this

 

Because RC_Player means everything about the player. You should try removing the  bonus2 bSubRace,RC_Player,30; and test if it works for physical only.

Edited by Scylla
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...