Jump to content
  • 0

npc clickable only third classes


Question

Posted

guys but what is the script that to even just click an NPC you have to have the third class? thank you.

ex:

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

prontera,150,150,4    script    npc    92,{

mes "Hello";
close;

}
-------------------------------------------------------------------------------

clickable only by the third classes, thanks.

6 answers to this question

Recommended Posts

  • 0
Posted (edited)
41 minutes ago, domez86 said:

guys but what is the script that to even just click an NPC you have to have the third class? thank you.

ex:

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

prontera,150,150,4    script    npc    92,{

mes "Hello";
close;

}
-------------------------------------------------------------------------------

clickable only by the third classes, thanks.

prontera,150,150,4    script    npc    92,{
switch(Class) {
	case Job_Rune_Knight:
	case Job_Royal_Guard:
	case Job_Warlock:
	case Job_Sorcerer:
	case Job_Ranger:
	case Job_Minstrel:
	case Job_Wanderer:
	case Job_Arch_Bishop:
	case Job_Sura:
	case Job_Mechanic:
	case Job_Genetic:
	case Job_Guillotine_Cross:
	case Job_Shadow_Chaser:
	case Job_Kagerou:
	case Job_Oboro:
		break;	// goes to `this happens`
	default:
		end; // if not listed above, ends npc conversation
}
mes "Hello";	// this happens
close;
}

im sure there was a simplified one, EAJ_THIRD? not sure but that will work.

 

Edited by pajodex
  • 0
Posted
1 hour ago, pajodex said:

prontera,150,150,4    script    npc    92,{
switch(Class) {
	case Job_Rune_Knight:
	case Job_Royal_Guard:
	case Job_Warlock:
	case Job_Sorcerer:
	case Job_Ranger:
	case Job_Minstrel:
	case Job_Wanderer:
	case Job_Arch_Bishop:
	case Job_Sura:
	case Job_Mechanic:
	case Job_Genetic:
	case Job_Guillotine_Cross:
	case Job_Shadow_Chaser:
	case Job_Kagerou:
	case Job_Oboro:
		break;	// goes to `this happens`
	default:
		end; // if not listed above, ends npc conversation
}
mes "Hello";	// this happens
close;
}

im sure there was a simplified one, EAJ_THIRD? not sure but that will work.

 

not work, not clik in game.

  • 0
Posted (edited)
prontera,150,150,4	script	OnlyThirdNPC	100,{
	
	if(Class < 4054 || Class > 4079) {
		mes "That NPC only can be used by 3rd Classes"; 
		close;
	} else
	mes "Add your Stuff here!";
	close;

}

Not tested, tho.

Edited by Tanlor
Forgot a "
  • 0
Posted
1 hour ago, Tanlor said:

prontera,150,150,4	script	OnlyThirdNPC	100,{
	
	if(Class < 4054 || Class > 4079) {
		mes "That NPC only can be used by 3rd Classes; 
		close;
	} else
	mes "Add your Stuff here!";
	close;

}

Not tested, tho.

not work, error at line fist close;

  • 0
Posted
4 minutes ago, domez86 said:

not work, error at line fist close;

That's cause I forgot to put the extra " at the final 'mes' command.

 

Just change:

mes "That NPC only can be used by 3rd Classes; 

To:

mes "That NPC only can be used by 3rd Classes";

 

And that should work fine now. Sorry about that. \o\

  • 0
Posted
27 minutes ago, Tanlor said:

That's cause I forgot to put the extra " at the final 'mes' command.

 

Just change:


mes "That NPC only can be used by 3rd Classes; 

To:


mes "That NPC only can be used by 3rd Classes";

 

And that should work fine now. Sorry about that. \o\

PERFECT! TNX

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...