Jump to content

Recommended Posts

Posted (edited)

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
  • 3 weeks later...
Posted

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

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.

  • Recently Browsing   0 members

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