Jump to content

Reflect"Reflection damage"


goddameit

Recommended Posts


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

index.php?app=downloads&module=display&section=screenshot&id=2917

File Name: Reflect "Reflection damage"

File Submitter: goddameit

File Submitted: 16 Jun 2013

File Category: Source Modifications

Content Author: Goddameit

preview : http://bit.ly/169dTxy

-

When you attack someone and he give you damage cause reflection,

you will also give him a reflection damage if you're wearing some equip which will do this

Click here to download this file

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  815
  • Reputation:   86
  • Joined:  10/26/12
  • Last Seen:  

mind explain this part


 

Quote

if you're wearing some equip which will do this

 

what kind of equips? or item_bonus? if item/equip have BF_Weapon?

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

mind explain this part

Quote

if you're wearing some equip which will do this

 

what kind of equips? or item_bonus? if item/equip have BF_Weapon?

 

item bonus

 

if( (return_=((TBL_PC*)bl)->bonus.short_weapon_damage_return) > 0 )
bonus bShortWeaponDamageReturn,n;
Edited by Cydh
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  815
  • Reputation:   86
  • Joined:  10/26/12
  • Last Seen:  

ic i got it how you set the item_bonus

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  67
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   1
  • Joined:  05/01/13
  • Last Seen:  

hi i need help about this 

 

src\map\battle.c

// Deals the same damage to targets in area. [pakpil]
 int battle_damage_area( struct block_list *bl, va_list ap) {
     unsigned int tick;
    int amotion, dmotion, damage;
    int amotion, dmotion, damage, return_, damage_;
     struct block_list *src;
 
    nullpo_ret(bl);
 
    tick=va_arg(ap, unsigned int);
    src=va_arg(ap,struct block_list *);
    amotion=va_arg(ap,int);
    dmotion=va_arg(ap,int);
    damage=va_arg(ap,int);
    if( bl->type == BL_MOB && ((TBL_MOB*)bl)->class_ == MOBID_EMPERIUM )
        return 0;
    if( bl != src && battle_check_target(src,bl,BCT_ENEMY) > 0 ) {
        map_freeblock_lock();
        if( src->type == BL_PC )
            battle_drain((TBL_PC*)src, bl, damage, damage, status_get_race(bl), is_boss(bl));
        if( amotion )
            battle_delay_damage(tick, amotion,src,bl,0,CR_REFLECTSHIELD,0,damage,ATK_DEF,0,true);
        else
             status_fix_damage(src,bl,damage,0);
         clif_damage(bl,bl,tick,amotion,dmotion,damage,1,ATK_BLOCK,0);
         skill_additional_effect(src, bl, CR_REFLECTSHIELD, 1, BF_WEAPON|BF_SHORT|BF_NORMAL,ATK_DEF,tick);
        if( (return_=((TBL_PC*)bl)->bonus.short_weapon_damage_return) > 0 )
        {
            damage_=damage*return_/100;
            if(damage_>0)
            {
                battle_delay_damage(tick, amotion,bl,src,0,CR_REFLECTSHIELD,0,damage_,ATK_DEF,0,true);
                clif_damage(src,src,tick,amotion,dmotion,damage_,1,ATK_BLOCK,0);
                skill_additional_effect(bl, src, CR_REFLECTSHIELD, 1, BF_WEAPON|BF_SHORT|BF_NORMAL,ATK_DEF,tick);
            }
        }
         map_freeblock_unlock();
     }

 then recompile 

 

item_db2

 2101,Guard,Guard,5,500,,300,,20,,0,0xFFFFFFFF,7,2,32,,0,1,1,{},{bonus bShortWeaponDamageReturn,100; },{ },{}

 

 

i think if i recieve the reflect and one who wear reflcet shield is going to recieve dmg but its nothing happen ano can help me ..

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
Reply to this topic...

×   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...