Jump to content
  • 0

access only 3rd class for change dress npc


domez86

Question


  • Group:  Members
  • Topic Count:  85
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   0
  • Joined:  06/11/13
  • Last Seen:  

 

hi, I can ask if it adds to this npc the possibility to access it only if you have a 3rd class?
maybe if you do not have the 3rd class it tells you: "I'm sorry, but you do not have 3rd class."
Thanks in advance.

--------------------------------------------------------------------------------------------------------------------------------------------------------

prontera,147,174,5    script    Change Dress    509,{

mes "[Armando]";
mes "Hi "+strcharinfo(0)+" do you want to change your dress?";
next;
switch(prompt("Primary Dress:Second Dress")) {
case 1:
    next;
    atcommand "+bodystyle 0";
mes "Done!";
close;
case 2:
    next;
    atcommand "+bodystyle 1";
mes "Done!";
close;
case 255:
    mes "[Kasondra]";
    mes "Goodbye.";
    close;
}
}

-----------------------------------------------------------------------------------------------------

Edited by domez86
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.02
  • Content Count:  176
  • Reputation:   60
  • Joined:  01/11/19
  • Last Seen:  

This is in the npc I'm using :

	if((Class >= 0 && Class <= 4052) || (Class >= 4190 && Class <=4244)){ // Job ID check so only 3rd Class chars can change costume.

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  85
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   0
  • Joined:  06/11/13
  • Last Seen:  

11 minutes ago, Seravy said:

This is in the npc I'm using :


	if((Class >= 0 && Class <= 4052) || (Class >= 4190 && Class <=4244)){ // Job ID check so only 3rd Class chars can change costume.

 

not work.....I tried with Creator class, still allows to talk to the NPC.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

you have 3 topics about 3rd class ...

prontera,147,174,5	script	Change Dress	509,{
	mes "[Armando]";
	if ( !(eaclass() & EAJL_THIRD) || BaseJob == Job_SuperNovice ) {
		mes "I'm sorry, but you do not have 3rd class.";
		close;
	}
	mes "Hi "+strcharinfo(0)+" do you want to change your dress?";
	next;
	if ( prompt( "Primary Dress", "Second Dress" ) == 255 ) {
		mes "[Kasondra]"; // why keep changing name ?
		mes "Goodbye.";
		close;
	}
	setlook LOOK_BODY2, @menu -1;
	mes "Done!";
	close;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  85
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   0
  • Joined:  06/11/13
  • Last Seen:  

6 minutes ago, AnnieRuru said:

you have 3 topics about 3rd class ...


prontera,147,174,5	script	Change Dress	509,{
	mes "[Armando]";
	if ( !(eaclass() & EAJL_THIRD) || BaseJob == Job_SuperNovice ) {
		mes "I'm sorry, but you do not have 3rd class.";
		close;
	}
	mes "Hi "+strcharinfo(0)+" do you want to change your dress?";
	next;
	if ( prompt( "Primary Dress", "Second Dress" ) == 255 ) {
		mes "[Kasondra]"; // why keep changing name ?
		mes "Goodbye.";
		close;
	}
	setlook LOOK_BODY2, @menu -1;
	mes "Done!";
	close;
}

 

only 3rd is this? 

if ( !(eaclass() & EAJL_THIRD)) {
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...