Jump to content
  • 0

Q> getskilllist and skillist_id


Johnson

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   1
  • Joined:  08/22/18
  • Last Seen:  

I'm tryna do something with @skilllist_id that returns all skills based on player class(Job).
However, i get all skills including passives. I created a sample script that lists all skill that is an attack.
I get the result of 42 < Mammonite, 153 < Cart Revolution for blacksmith.
when i tried using a for loop and the menu will show up like this.
image.png.6dc02123cc627d56ff277edf82043a97.png

After selecting 42, it returns ID: 2 which is not the skill ID that i have selected.
image.png.ff03f64a78410bb8908eea23a54b8383.png

Code Snippet:

getskilllist;
 
    for(set .@i, 0; .@i < @skilllist_count; set .@i, .@i+1){
if (@skilllist_flag != NoDamage){
set .@menu$, .@menu$ + ":" + getskillname(@skilllist_id[.@i];
}

}

 

.@skillids = select(.@men$+":Cancel") -1;           
mes "Skill level to use:";
            mes "[" + getskillstring(0,.@skillids) + "]" + " - Max lv : " + getskilllv(.@skillids);
            input .@attskilllvl;
 
        } while(.@attskilllvl < 0 || .@attskilllvl > getskilllv(.@skillids));
 
        setattack(.@skillids + ";" + .@attskilllvl);

in the array for @skilllist_id how does it get the skills and how will i remove the skills after setting it in select(.@men$)

 

Edited by khouuming21
typo
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  461
  • Reputation:   61
  • Joined:  08/28/12
  • Last Seen:  

It's not the question, but maybe it helps.

That's shows the skill-name instead of the ID. 😄

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   1
  • Joined:  08/22/18
  • Last Seen:  

On 12/17/2023 at 9:09 AM, WhiteEagle said:

It's not the question, but maybe it helps.

That's shows the skill-name instead of the ID. 😄

I've got this already. The problem I encounter was when selecting the skill ID 42 or 153 it does not return the ID i've selected. instead it return basic skill which is skill id = 1

Edit: Solved

Edited by khouuming21
Solved
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...