Jump to content
  • 0
Sign in to follow this  
uzami

Hairstyle

Question



'm wanting to create an NPC that lets you choose a type of hair depending on what already is equipped, and am then doing some test, the first option, which is below the number 42, and another function, those who have above number 43.

is there any command for that?

 

and i found some option for SQL like

query_sql "SELECT `hair` FROM `char` WHERE `hair`=<42", @humanhair;

query_sql "SELECT `hair` FROM `char` WHERE `hair`=>43", @miqohair;

 

but... i think I just did something wrong... cuz I have no ideia what I'm doing haha

 

 



//Stylist------------------------------------------------------------------------------------------------------------

prontera,150,180,1    script    Estilista-Teste#test_stylist    122,{

    if (hairstyle() < 42)

    mes "[^FF8000Stylist^000000]";

    mes "Teste human!";

    close;

    

    if (hairstyle() > 43)

    mes "[^FF8000Stylist^000000]";

    mes "Test Miqo'te!";

    close;

}

 

thx and sorry for the bad english haha

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.