mleo1 Posted March 29, 2012 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 123 Reputation: 4 Joined: 11/21/11 Last Seen: January 26 Share 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 Link to comment Share on other sites More sharing options...
Emistry Posted March 29, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share 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 Link to comment Share on other sites More sharing options...
mleo1 Posted March 30, 2012 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 123 Reputation: 4 Joined: 11/21/11 Last Seen: January 26 Author Share 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 Link to comment Share on other sites More sharing options...
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?
Link to comment
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.