Jump to content
  • 0

SRC - SKILL.CPP - EDIT CR_ACIDDEMONSTRATION


WillJocker

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.01
  • Content Count:  33
  • Reputation:   0
  • Joined:  03/27/22
  • Last Seen:  

Hello everyone! I would like some help to make a small change to the CR_ACIDDEMONSTRATION skill, where if the player is ready, a custom item would be charged to execute the skill. On other maps, the 2 normal items (Acid Flask and Greek Fire Flask) would continue to be required. However, I was unable to find a way to change this condition within the skill.cpp in the src-map. Can you help me, please?

I tried to add a new call, on line 13631 (before case AM_DEMONSTRATION:) but without success either. It seems that the system did not read the code that I put after it. Can you please tell me where I can change it to make this work? If you can provide the code, great, but if you can't, that's okay, I'll keep trying ❤️

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  897
  • Reputation:   248
  • Joined:  01/30/13
  • Last Seen:  

I'd put it in

void skill_consume_requirement(map_session_data *sd, uint16 skill_id, uint16 skill_lv, int16 type)

Under type type&2 section.

Maybe it's easier if you set the skill in the db to consume all 3 items but then put an exception here that the third item is not consumed under certain conditions.

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