Jump to content
  • 0

skill_db.txt programmatically grep values. [ is it possible? ]


laonglaing

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   0
  • Joined:  06/12/16
  • Last Seen:  

hello!
not sure if this is the right/correction section. but would like to ask as what the title says to programmatically get values in skill_db.txt when using a skill.

i am trying to implement in skill.cpp for a certain melee skill wherein if i use the skill to enemy/other player/mobs it will behave as it is. but if i target a party member, it will splash to enemy as well.

was able to create a code for this, apparently the code depends on the value of "inf" (column 4) in skill_db.txt . if the value is 16, the party member target of skill with splash to enemy works. but i still want to work by default if i target an enemy which requires the value of "inf" to be 1. 

 

any help or suggestion is much appreciated.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1537
  • Reputation:   237
  • Joined:  08/03/12
  • Last Seen:  

2 hours ago, laonglaing said:

hello!
not sure if this is the right/correction section. but would like to ask as what the title says to programmatically get values in skill_db.txt when using a skill.

i am trying to implement in skill.cpp for a certain melee skill wherein if i use the skill to enemy/other player/mobs it will behave as it is. but if i target a party member, it will splash to enemy as well.

was able to create a code for this, apparently the code depends on the value of "inf" (column 4) in skill_db.txt . if the value is 16, the party member target of skill with splash to enemy works. but i still want to work by default if i target an enemy which requires the value of "inf" to be 1. 

 

any help or suggestion is much appreciated.

you're not using skilldb YML yet ? older rathena version ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   0
  • Joined:  06/12/16
  • Last Seen:  

yeah. old rathena. i haven't tried the latest version. though, after an hour posting this, I was able to do what i want to do. i just call the method that do the original skill behavior when BCT_ENEMY is the target. 🙂 

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