Jump to content
  • 0

Q> getskilllist and skillist_id


Question

Posted (edited)

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

2 answers to this question

Recommended Posts

  • 0
Posted (edited)
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

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