Jump to content
  • 0

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


Question

Posted

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.

2 answers to this question

Recommended Posts

  • 0
Posted
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 ?

  • 0
Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...