Jump to content
  • 0

Need help with storing the skill info of player


Question

Posted

Hello, I was working on a job change script that functions similar to the job system in FFXIV. The main idea is that the script stores the data about the current class (level, skill tree, etc) in the sql db, and retrieval another set of class data. The rest of the data is relatively easy to handle, but I can't find where the data about the skill tree (such as which skill is allocated and what level the skill is at) is stored, can anybody help me out ?

1 answer to this question

Recommended Posts

  • 0
Posted

Hello, the data is stored on sql database table skill.

You can use script command getskilllist.

/doc/script_commands.txt#L3662

*getskilllist({<char_id>});

This command sets a bunch of arrays with a complete list of skills the
invoking character has. Here's what you get:

@skilllist_id[]   - skill ids.
@skilllist_lv[]   - skill levels.
@skilllist_flag[] - see 'skill' for the meaning of skill flags.
@skilllist_count  - number of skills in the above arrays.

 

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