Jump to content
  • 0

need help.. If item is equip in source code


Jaycee KyD

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   3
  • Joined:  06/03/12
  • Last Seen:  

hi there anyone can help me in this source code. sample i want to make extra damage if the player equip the item( id code ) in source code not in item_db. 

EXAMPLE:

DARKNESSATTACK:
        if (sd->equip_index[EQP_HEAD_TOP] == 19001 ) { skillratio += 500 + 40 * skill_lv;
 break; }
            skillratio += 300 + 40 * skill_lv;
            break;

this code is not working  if (sd->equip_index[EQP_HEAD_TOP] == 19001 ) is there anyone can help me? thank you in advance

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  439
  • Reputation:   29
  • Joined:  12/08/11
  • Last Seen:  

if (sd->equip_index[EQI_HEAD_TOP] >= 0 && sd->inventory_data[sd->equip_index[EQI_HEAD_TOP]]->nameid == 19001)
	skillratio += 500 + 40 * skill_lv;
else
	skillratio += 300 + 40 * skill_lv;
break;

Make sure to recompile.

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
Answer this question...

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