mleo1 Posted March 29, 2012 Posted March 29, 2012 I'm planning to have a NPC that will change a character to a baby class. This NPC also can turn you back to a non-baby class. A Baby Turner and Unturner NPC. How do you check if you can turn to a baby? How do you know if you are a baby class? How do you get the Job ID of your char? Quote
Emistry Posted March 29, 2012 Posted March 29, 2012 How do you check if you can turn to a baby? how about checking if they are not a Baby Class since they going to change into Baby Class ? if( Upper != 2 && Upper != 6 ){ mes "You can change to Baby Class"; close; } How do you know if you are a baby class? if( Upper == 2 || Upper ==6 ){ mes "You are Baby Class"; close; } How do you get the Job ID of your char? mes "You current Class ID : "+Class; Quote
mleo1 Posted March 30, 2012 Author Posted March 30, 2012 (edited) // mleo test baby/adult change no 3rd jobs mall,130,98,3 script Baby Adult Changer 100,{ if ((Class>=4001&&Class<=4021) || (Class>=24&&Class<=25) ||(Class>=4046&&Class<=4049) || Class==23 || Class==0){ mes "You cannot change"; goto QUIT; } if (baselvl==80&&Upper==2 || baselvl==99&&Upper==0){ }else{ mes "[baby Adult]"; mes "Come back here, if you're max level"; goto QUIT; } mes "[baby Adult Changer]" +Class; if(Upper==2 || Upper==6){ mes "Do you want to be a adult?"; }else{ mes "Do you want to be a baby?"; } next; menu "OK",-,"NOPE",QUIT; Resetlvl(1); if(Upper==2){ jobchange Class-4023; atcommand "@baselvl 98"; atcommand "@joblevel 49"; }else{ jobchange Class+4023; atcommand "@baselvl 79"; atcommand "@joblevel 49"; } QUIT: close; OnInit: waitingroom "Baby Adult Changer",0; } Upper==6 is Baby3rdJob? How do you get your char's baselevel? Edited March 30, 2012 by mleo1 Quote
Question
mleo1
I'm planning to have a NPC that will change a character to a baby class.
This NPC also can turn you back to a non-baby class. A Baby Turner and Unturner NPC.
How do you check if you can turn to a baby?
How do you know if you are a baby class?
How do you get the Job ID of your char?
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.