Jump to content
  • 0

Q - Job Check for Script


iraciz

Question


  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   108
  • Joined:  10/05/12
  • Last Seen:  

Hello, could you help me please? I need to now, how to check and filter jobs? without branches? The problem is that using the
if (BaseJob == Job_Novice) gathers both novice and super novice, I need a filter focus in the job and no the classes.

Example:   
- if High Novice goto greet;
- if Novice goto deny;


greet:
mes "Hello";

deny:
mes "Not allowed";

Same for other classes, I want filter only high novice to a chek without involving the other rebirth jobs as high thief and etc. 

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  477
  • Reputation:   269
  • Joined:  06/13/17
  • Last Seen:  

if( Class == 0 ) mes "Hi";
else if( Class == 4001 ) mes "Hello";

 

  • Upvote 1
  • MVP 1
Link to comment
Share on other sites

  • 1

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

You can also is the flag "Upper", which defines if the character is normal, rebirth or baby class. As well there is the *eaclass() command. Just take a look in that doc/script_commands. txt about these.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   108
  • Joined:  10/05/12
  • Last Seen:  

Thanks, it helped a lot.

I am working in a custom job quest warper, and it was neccessary to grab the information individualy.

any upper inlcudes the high's or rebirth jobs, and I can't send a high novice to the valhalla, I was wondering how to do the class check,
because my custom Job quest warper works with menu for each class, example... a normal thief will open the warp menu for the 2 job choices and the high thief will open a menu to read ymir book and change the last job in the valhalla.
Swordsman Archer Merchant must work individualy to.

Now is solved 

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