Jump to content
  • 0

GetSkillList Assistance...


Peopleperson49

Question


  • Group:  Members
  • Topic Count:  219
  • Topics Per Day:  0.05
  • Content Count:  1181
  • Reputation:   141
  • Joined:  01/27/12
  • Last Seen:  

For some reason this is kicking my butt and I'm usually pretty good with this stuff! I'm trying to use the getskilllist; for a script and the array section is ticking me off!!! I need to save them as permanent player varables for the purpose I'm trying to do. Also need to be able to save and the readd the full skill tree back to a character at a later point in time.

Peopleperson49

I have the array setup like this:

First part of the code:
for(set @i,0; @skilllist_count>@i; set @i,@i+1 ) { set @SK_ID[@i],@skilllist_id[@i]; set @SK_LV[@i],@skilllist_lv[@i]; }

The second part of the code:
skill @SK_ID[.@i],@SK_LV[.@i],0;

  • Upvote 1
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2371
  • Joined:  10/28/11
  • Last Seen:  

what's the purpose for this ? i dont get it...

anyway...in your case...i dont think using permanent variable suit your cases...

it's not really a good / suggested way ...

More Details :

http://www.eathena.ws/board/index.php?showtopic=181741&st=0&p=1478950entry1478950

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  219
  • Topics Per Day:  0.05
  • Content Count:  1181
  • Reputation:   141
  • Joined:  01/27/12
  • Last Seen:  

I'm trying to get it to save a characters entire skill tree and be able to recall it at a later point in time, even after the script ends. So when they come back later the information is still saved there. I have made a similar script a while ago, but I can't seem to get it right or even close now!

Peopleperson49

This is basically what I want to do:

*getskilllist;
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.
While 'getskillv' is probably more useful for most situations, this is the
easiest way to store all the skills and make the character something else for a
while. Advanced job for a day?  This could also be useful to see how many
skills a character has.

Edited by peopleperson49
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...