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

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

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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