Hairstyle

uzami

New member
Messages
21
Points
0
Github
Uzami
'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
 
Back
Top