Jump to content
  • 0

access only 3rd class for change dress npc


Question

Posted (edited)

 

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

4 answers to this question

Recommended Posts

  • 0
Posted
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.

  • 0
Posted

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;
}

 

  • 0
Posted
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)) {

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...