Jump to content
  • 0

How to know if a player has a specific skill?


Vali

Question


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  128
  • Reputation:   7
  • Joined:  12/29/11
  • Last Seen:  

Well, is there a way to know if a player has a specified skill in the skill tree?

Thank you.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   6
  • Joined:  01/25/12
  • Last Seen:  

if(getskilllv("MG_FROSTDIVER"))

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  592
  • Reputation:   31
  • Joined:  11/14/11
  • Last Seen:  

example is in renting a mado required a license skills

if (BaseJob != Job_Merchant && BaseClass == Job_Merchant && checkriding() == 0 && getskilllv("NC_MADOLICENCE")>0 && Class == 4064 || Class == 4058) {

atcommand "@mount";

close;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  128
  • Reputation:   7
  • Joined:  12/29/11
  • Last Seen:  

What is the file of renting mado? I cant find it in the scripts.

Thank you!

example is in renting a mado required a license skills

if (BaseJob != Job_Merchant && BaseClass == Job_Merchant && checkriding() == 0 && getskilllv("NC_MADOLICENCE")>0 && Class == 4064 || Class == 4058) {

atcommand "@mount";

close;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   6
  • Joined:  01/25/12
  • Last Seen:  

npc/merchants/renters.txt

uh edit: its only rune knight peco breeder in there xD, i think there is none yet for renting mado, only custom made

Edited by deathscythe13
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  592
  • Reputation:   31
  • Joined:  11/14/11
  • Last Seen:  

This is not mine but im going to share it

prontera,162,179,5 script Magic Gear Master 105,{

mes "[Magic Gear Master]";

mes "Hi, here you can rent Magic Gears from me.";

next;

switch(select("Magic Gear:No Thanks")) {

case 1:

if (BaseJob != Job_Merchant && BaseClass == Job_Merchant && checkriding() == 0 && getskilllv("NC_MADOLICENCE")>0 && Class == 4064 || Class == 4058) {

atcommand "@mount";

close;

}else{

mes "[Magic Gear Master]";

mes "Sorry " + strcharinfo(0) + ", Please make sure you are the required job and have the required skill.";

close;

}

case 2:

close;

}

}

- credits to eAthena

Edited by GM Takumirai
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...