Jump to content
  • 0

New in Scripting, Help


mleo1

Question


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  123
  • Reputation:   4
  • Joined:  11/21/11
  • Last Seen:  

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


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2369
  • Joined:  10/28/11
  • Last Seen:  

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;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  123
  • Reputation:   4
  • Joined:  11/21/11
  • Last Seen:  

// 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 by mleo1
Link to comment
Share on other sites

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.   Paste as plain text instead

  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.

×
×
  • Create New...