goddameit Posted June 16, 2013 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Share Posted June 16, 2013 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 Quote Link to comment Share on other sites More sharing options...
Mootie Posted June 17, 2013 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 815 Reputation: 86 Joined: 10/26/12 Last Seen: June 10, 2022 Share Posted June 17, 2013 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? Quote Link to comment Share on other sites More sharing options...
Cydh Posted June 17, 2013 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 748 Joined: 06/16/12 Last Seen: February 21 Share Posted June 17, 2013 (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 June 17, 2013 by Cydh Quote Link to comment Share on other sites More sharing options...
Mootie Posted June 17, 2013 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 815 Reputation: 86 Joined: 10/26/12 Last Seen: June 10, 2022 Share Posted June 17, 2013 ic i got it how you set the item_bonus Quote Link to comment Share on other sites More sharing options...
Diss Posted July 3, 2013 Group: Members Topic Count: 67 Topics Per Day: 0.02 Content Count: 207 Reputation: 1 Joined: 05/01/13 Last Seen: July 23, 2016 Share Posted July 3, 2013 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 .. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.