Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Skill power NPC not take damage

Newbie Spellweaver
Joined
Aug 3, 2020
Messages
9
Reaction score
0
I have a problem where the skill powers of NPCs do not take any damage, however in melee combat everything is normal, only long distance skill powers have no damage ... already replaces all files related to npcs by original files and also in the zitem but it still remains without any damage ... could someone help me?
 
I'm retired, I'm already
Banned
Joined
Oct 3, 2011
Messages
832
Reaction score
155
add these in your zitem.
PHP:
 <ITEM id="300011" name="STR:ZITEM_NAME_300011" desc="STR:ZITEM_DESC_300011" weapon="dagger" type="melee" slot="melee" res_sex="a" mesh_name="" totalpoint="0" res_level="0"
    weight="0" bt_price="0" magazine="0" reloadtime="0" slug_output="false" gadget_id="0" image_id="0" bullet_image_id="0" magazine_image_id="0" delay="0" snd_fire="blade_swing"
    hp="0" ap="0" maxwt="0" sf="0" fr="0" cr="0" pr="0" lr="0"
    damage="20" range="160" angle="30" ctrl_ability="0" />
  <!-- 고블린 거너의 공격 -->
  <ITEM id="300012" name="STR:ZITEM_NAME_300012" desc="STR:ZITEM_DESC_300012" weapon="dagger" type="melee" slot="melee" res_sex="a" mesh_name="" totalpoint="0" res_level="0"
    weight="0" bt_price="0" magazine="0" reloadtime="0" slug_output="false" gadget_id="0" image_id="0" bullet_image_id="0" magazine_image_id="0" delay="0"  snd_fire="swing"
    hp="0" ap="0" maxwt="0" sf="0" fr="0" cr="0" pr="0" lr="0"
    damage="15" range="120" angle="45" ctrl_ability="0" />
  <!-- 고블린 위저드의 펀치 -->
  <ITEM id="300013" name="STR:ZITEM_NAME_300013" desc="STR:ZITEM_DESC_300013" weapon="katana" type="melee" slot="melee" res_sex="a" mesh_name="" totalpoint="0" res_level="0"
    weight="0" bt_price="0" magazine="0" reloadtime="0" slug_output="false" gadget_id="0" image_id="0" bullet_image_id="0" magazine_image_id="0" delay="0" snd_fire="blade_swing"
    hp="0" ap="0" maxwt="0" sf="0" fr="0" cr="0" pr="0" lr="0"
    damage="20" range="140" angle="45" ctrl_ability="0" />
  <!-- 대장 고블린의 몽둥이 -->
  <ITEM id="300014" name="STR:ZITEM_NAME_300014" desc="STR:ZITEM_DESC_300014" weapon="katana" type="melee" slot="melee" res_sex="a" mesh_name="" totalpoint="0" res_level="0"
    weight="0" bt_price="0" magazine="0" reloadtime="0" slug_output="false" gadget_id="0" image_id="0" bullet_image_id="0" magazine_image_id="0" delay="0" snd_fire="blade_swing"
    hp="0" ap="0" maxwt="0" sf="0" fr="0" cr="0" pr="0" lr="0"
    damage="30" range="240" angle="60" ctrl_ability="0" />
  <!-- 고블린 족장의 지팡이 -->
  <ITEM id="300015" name="STR:ZITEM_NAME_300015" desc="STR:ZITEM_DESC_300015" weapon="katana" type="melee" slot="melee" res_sex="a" mesh_name="" totalpoint="0" res_level="0"
    weight="0" bt_price="0" magazine="0" reloadtime="0" slug_output="false" gadget_id="0" image_id="0" bullet_image_id="0" magazine_image_id="0" delay="0" snd_fire="blade_swing"
    hp="0" ap="0" maxwt="0" sf="0" fr="0" cr="0" pr="0" lr="0"
    damage="30" range="300" angle="30" ctrl_ability="0" />
  <!-- 고블린 킹의 해머 -->
  <ITEM id="300016" name="STR:ZITEM_NAME_300016" desc="STR:ZITEM_DESC_300016" weapon="katana" type="melee" slot="melee" res_sex="a" mesh_name="" totalpoint="0" res_level="0"
    weight="0" bt_price="0" magazine="0" reloadtime="0" slug_output="false" gadget_id="0" image_id="0" bullet_image_id="0" magazine_image_id="0" delay="0" snd_fire="blade_swing"
    hp="0" ap="0" maxwt="0" sf="0" fr="0" cr="0" pr="0" lr="0"
    damage="50" range="550" angle="40" ctrl_ability="0" />
  <!-- 고블린 킹 고렙 버전의 해머 -->
  <ITEM id="300017" name="STR:ZITEM_NAME_300017" desc="STR:ZITEM_DESC_300017" weapon="katana" type="melee" slot="melee" res_sex="a" mesh_name="" totalpoint="0" res_level="0"
    weight="0" bt_price="0" magazine="0" reloadtime="0" slug_output="false" gadget_id="0" image_id="0" bullet_image_id="0" magazine_image_id="0" delay="0" snd_fire="blade_swing"
    hp="0" ap="0" maxwt="0" sf="0" fr="0" cr="0" pr="0" lr="0"
    damage="75" range="550" angle="40" ctrl_ability="0" />
  <!-- 고블린 킹 주니어의 해머 -->
  <ITEM id="300018" name="STR:ZITEM_NAME_300018" desc="STR:ZITEM_DESC_300018" weapon="katana" type="melee" slot="melee" res_sex="a" mesh_name="" totalpoint="0" res_level="0"
    weight="0" bt_price="0" magazine="0" reloadtime="0" slug_output="false" gadget_id="0" image_id="0" bullet_image_id="0" magazine_image_id="0" delay="0" snd_fire="blade_swing"
    hp="0" ap="0" maxwt="0" sf="0" fr="0" cr="0" pr="0" lr="0"
    damage="30" range="400" angle="40" ctrl_ability="0" />
  <!-- 리쟈드의 도끼 -->
  <ITEM id="300021" name="STR:ZITEM_NAME_300021" desc="STR:ZITEM_DESC_300021" weapon="katana" type="melee" slot="melee" res_sex="a" mesh_name="" totalpoint="0" res_level="0"
    weight="0" bt_price="0" magazine="0" reloadtime="0" slug_output="false" gadget_id="0" image_id="0" bullet_image_id="0" magazine_image_id="0" delay="0" snd_fire="blade_swing"
    hp="0" ap="0" maxwt="0" sf="0" fr="0" cr="0" pr="0" lr="0"
    damage="15" range="165" angle="45" ctrl_ability="0" />
  <!-- 리쟈드 샤만의 펀치 -->
  <ITEM id="300022" name="STR:ZITEM_NAME_300022" desc="STR:ZITEM_DESC_300022" weapon="katana" type="melee" slot="melee" res_sex="a" mesh_name="" totalpoint="0" res_level="0"
    weight="0" bt_price="0" magazine="0" reloadtime="0" slug_output="false" gadget_id="0" image_id="0" bullet_image_id="0" magazine_image_id="0" delay="0" 
    hp="0" ap="0" maxwt="0" sf="0" fr="0" cr="0" pr="0" lr="0"
    damage="20" range="135" angle="45" ctrl_ability="0" />
  <!-- 대장 리쟈드의 도끼 -->
  <ITEM id="300023" name="STR:ZITEM_NAME_300023" desc="STR:ZITEM_DESC_300023" weapon="katana" type="melee" slot="melee" res_sex="a" mesh_name="" totalpoint="0" res_level="0"
    weight="0" bt_price="0" magazine="0" reloadtime="0" slug_output="false" gadget_id="0" image_id="0" bullet_image_id="0" magazine_image_id="0" delay="0" snd_fire="blade_swing"
    hp="0" ap="0" maxwt="0" sf="0" fr="0" cr="0" pr="0" lr="0"
    damage="30" range="260" angle="30" ctrl_ability="0" />
  <!-- 리쟈드 왕의 도끼 -->
  <ITEM id="300024" name="STR:ZITEM_NAME_300024" desc="STR:ZITEM_DESC_300024" weapon="katana" type="melee" slot="melee" res_sex="a" mesh_name="" totalpoint="0" res_level="0"
    weight="0" bt_price="0" magazine="0" reloadtime="0" slug_output="false" gadget_id="0" image_id="0" bullet_image_id="0" magazine_image_id="0" delay="0" snd_fire="blade_swing"
    hp="0" ap="0" maxwt="0" sf="0" fr="0" cr="0" pr="0" lr="0"
    damage="40" range="400" angle="30" ctrl_ability="0" />
  <!-- 리쟈드 왕(보스)의 도끼 -->
  <ITEM id="300025" name="STR:ZITEM_NAME_300025" desc="STR:ZITEM_DESC_300025" weapon="katana" type="melee" slot="melee" res_sex="a" mesh_name="" totalpoint="0" res_level="0"
    weight="0" bt_price="0" magazine="0" reloadtime="0" slug_output="false" gadget_id="0" image_id="0" bullet_image_id="0" magazine_image_id="0" delay="0" snd_fire="blade_swing"
    hp="0" ap="0" maxwt="0" sf="0" fr="0" cr="0" pr="0" lr="0"
    damage="40" range="620" angle="30" ctrl_ability="0" />
  <!-- 고장난 골렘의 펀치 -->
  <ITEM id="300026" name="STR:ZITEM_NAME_300026" desc="STR:ZITEM_DESC_300026" weapon="katana" type="melee" slot="melee" res_sex="a" mesh_name="" totalpoint="0" res_level="0"
    weight="0" bt_price="0" magazine="0" reloadtime="0" slug_output="false" gadget_id="0" image_id="0" bullet_image_id="0" magazine_image_id="0" delay="0" snd_fire="blade_swing"
    hp="0" ap="0" maxwt="0" sf="0" fr="0" cr="0" pr="0" lr="0"
    damage="50" range="450" angle="45" ctrl_ability="0" />
  <!-- 스켈레톤의 칼 -->
  <ITEM id="300031" name="STR:ZITEM_NAME_300031" desc="STR:ZITEM_DESC_300031" weapon="katana" type="melee" slot="melee" res_sex="a" mesh_name="" totalpoint="0" res_level="0"
    weight="0" bt_price="0" magazine="0" reloadtime="0" slug_output="false" gadget_id="0" image_id="0" bullet_image_id="0" magazine_image_id="0" delay="0" snd_fire="blade_swing"
    hp="0" ap="0" maxwt="0" sf="0" fr="0" cr="0" pr="0" lr="0"
    damage="15" range="190" angle="60" ctrl_ability="0" />
  <!-- 스켈레톤 메이지의 펀치 -->
  <ITEM id="300032" name="STR:ZITEM_NAME_300032" desc="STR:ZITEM_DESC_300032" weapon="katana" type="melee" slot="melee" res_sex="a" mesh_name="" totalpoint="0" res_level="0"
    weight="0" bt_price="0" magazine="0" reloadtime="0" slug_output="false" gadget_id="0" image_id="0" bullet_image_id="0" magazine_image_id="0" delay="0" snd_fire="blade_swing"
    hp="0" ap="0" maxwt="0" sf="0" fr="0" cr="0" pr="0" lr="0"
    damage="20" range="130" angle="45" ctrl_ability="0" />
  <!-- 대장 스켈레톤의 칼 -->
  <ITEM id="300033" name="STR:ZITEM_NAME_300033" desc="STR:ZITEM_DESC_300033" weapon="katana" type="melee" slot="melee" res_sex="a" mesh_name="" totalpoint="0" res_level="0"
    weight="0" bt_price="0" magazine="0" reloadtime="0" slug_output="false" gadget_id="0" image_id="0" bullet_image_id="0" magazine_image_id="0" delay="0" snd_fire="blade_swing"
    hp="0" ap="0" maxwt="0" sf="0" fr="0" cr="0" pr="0" lr="0"
    damage="30" range="370" angle="45" ctrl_ability="0" />
  <!-- 거대 스켈레톤의 칼 -->
  <ITEM id="300034" name="STR:ZITEM_NAME_300034" desc="STR:ZITEM_DESC_300034" weapon="katana" type="melee" slot="melee" res_sex="a" mesh_name="" totalpoint="0" res_level="0"
    weight="0" bt_price="0" magazine="0" reloadtime="0" slug_output="false" gadget_id="0" image_id="0" bullet_image_id="0" magazine_image_id="0" delay="0" snd_fire="blade_swing"
    hp="0" ap="0" maxwt="0" sf="0" fr="0" cr="0" pr="0" lr="0"
    damage="40" range="450" angle="45" ctrl_ability="0" />
  <!-- 저주받은 시신의 손톱 -->
  <ITEM id="300035" name="STR:ZITEM_NAME_300035" desc="STR:ZITEM_DESC_300035" weapon="katana" type="melee" slot="melee" res_sex="a" mesh_name="" totalpoint="0" res_level="0"
    weight="0" bt_price="0" magazine="0" reloadtime="0" slug_output="false" gadget_id="0" image_id="0" bullet_image_id="0" magazine_image_id="0" delay="0" snd_fire="blade_swing"
    hp="0" ap="0" maxwt="0" sf="0" fr="0" cr="0" pr="0" lr="0"
    damage="30" range="190" angle="45" ctrl_ability="0" />
  <!-- 리치 베이비의 꼬리 -->
  <ITEM id="300036" name="STR:ZITEM_NAME_300036" desc="STR:ZITEM_DESC_300036" weapon="katana" type="melee" slot="melee" res_sex="a" mesh_name="" totalpoint="0" res_level="0"
    weight="0" bt_price="0" magazine="0" reloadtime="0" slug_output="false" gadget_id="0" image_id="0" bullet_image_id="0" magazine_image_id="0" delay="0" snd_fire="blade_swing"
    hp="0" ap="0" maxwt="0" sf="0" fr="0" cr="0" pr="0" lr="0"
    damage="15" range="130" angle="45" ctrl_ability="0" />
  <!-- 거대 스켈레톤(보스)의 칼 -->
  <ITEM id="300037" name="STR:ZITEM_NAME_300037" desc="STR:ZITEM_DESC_300037" weapon="katana" type="melee" slot="melee" res_sex="a" mesh_name="" totalpoint="0" res_level="0"
    weight="0" bt_price="0" magazine="0" reloadtime="0" slug_output="false" gadget_id="0" image_id="0" bullet_image_id="0" magazine_image_id="0" delay="0" snd_fire="blade_swing"
    hp="0" ap="0" maxwt="0" sf="0" fr="0" cr="0" pr="0" lr="0"
    damage="50" range="700" angle="30" ctrl_ability="0" />
   <!-- 리치의 꼬리 -->
  <ITEM id="300039" name="STR:ZITEM_NAME_300039" desc="STR:ZITEM_DESC_300039" weapon="katana" type="melee" slot="melee" res_sex="a" mesh_name="" totalpoint="0" res_level="0"
    weight="0" bt_price="0" magazine="0" reloadtime="0" slug_output="false" gadget_id="0" image_id="0" bullet_image_id="0" magazine_image_id="0" delay="0" snd_fire="blade_swing"
    hp="0" ap="0" maxwt="0" sf="0" fr="0" cr="0" pr="0" lr="0"
    damage="30" range="370" angle="120" ctrl_ability="0" />
 
Upvote 0
Newbie Spellweaver
Joined
Aug 22, 2016
Messages
73
Reaction score
22
I had this bug too but this means you changed something in the source damage related.

My problem was in ZMyCharacter.cpp line 3923, void ZMyCharacter::OnDamaged
try to winmerge and see what changed.
 
Upvote 0
Newbie Spellweaver
Joined
Aug 3, 2020
Messages
9
Reaction score
0
jork esses itens npc eu já tinha meu zitem mas obrigado pelo seu apoio, TxDutch obrigado realmente essa foi a causa, muito obrigado ....

solution:

void ZMyCharacter::OnDamaged(ZObject* pAttacker, rvector srcPos, ZDAMAGETYPE damageType, MMatchWeaponType weaponType, float fDamage, float fPiercingRatio, int nMeleeType){ if (!pAttacker) return;

replace with:

void ZMyCharacter::OnDamaged(ZObject* pAttacker, rvector srcPos, ZDAMAGETYPE damageType, MMatchWeaponType weaponType, float fDamage, float fPiercingRatio, int nMeleeType){
 
Upvote 0
Newbie Spellweaver
Joined
Aug 22, 2016
Messages
73
Reaction score
22
Thank you for posting the solution, this will help people in the future with the same problem!
 
Upvote 0
Back
Top