SphereCommunity
Dam x RESPHYSICAL - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Dam x RESPHYSICAL (/Thread-Dam-x-RESPHYSICAL)



Dam x RESPHYSICAL - darksoulfe - 07-01-2017 12:57 AM

Good morning guys,
I need more help from you, I'm wondering if anyone here has something to cancel or even put a fixed damage on RESPHYSICAL because in my shard the resistors are sine used in it. The plate containing more RESPHYSICAL total value 70. I have a weapon where I want to put a damage of 30.38. If I raise the DAM when I hit a player without RESPHYSICAL he would have received the damage without resistance and did not want it. Follow the script of the weapon below.

PHP Code:
[ITEMDEF i_sword_viking_inferno]
DEFNAME=i_sword_viking_inferno
ID
=i_sword_viking
NAME
=Espada Viking do Inferno
SKILLMAKE
=BLACKSMITHING 95.0
RESOURCES
=20 i_ingot_iron
REQSTR
=110
WEIGHT
=4.0
CATEGORY
=Provisions Weapons
SUBSECTION
=Armas Tesouros
DESCRIPTION
=Viking Sword Inferno
DAM
=60,70

ON
=@Create
HITPOINTS
=999
COLOR
=025
ATTR
=attr_magic

ON
=@DAMAGE
SRC
.SOUND=SND_SPELL_MAGIC_UNTRAP
src
.fxt 036b00252
RETURN 



RE: Dam x RESPHYSICAL - darksun84 - 07-01-2017 01:32 AM

I don't understand, if you want to use a fixed damage for physical damage you can add this (in a event for both player and npcs) in the @gethit trigger

Code:
ON=@GetHit
if <argn2> & dam_physical
argn2 |= dam_fixed
endif