Jump to content
  • 0

Job check *Send help


iubantot

Question


  • Group:  Members
  • Topic Count:  117
  • Topics Per Day:  0.03
  • Content Count:  312
  • Reputation:   34
  • Joined:  10/15/12
  • Last Seen:  

Hello rAthena!

So im having troubles about job checks.

so i want to check what job the character is?

for ex : 

check if the character is 3rd job (whether it is regular,trans or baby)

i tried to use one by one adding their class numbers each but i would like to have a better one if there is any 

open to suggestions! thank youuuuuuuuuuuu rAthena!! :D:D:D

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

@eac = eaclass();
	if ((@eac&EAJ_BASEMASK) == EAJ_SWORDMAN)
		mes "Your base job is Swordman.";
	if (@eac&EAJL_UPPER)
		mes "You are a rebirth job.";
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

you can check it here

https://github.com/rathena/rathena/blob/master/doc/ea_job_system.txt

	EAJL_UPPER
	EAJL_BABY
	EAJL_THIRD

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  117
  • Topics Per Day:  0.03
  • Content Count:  312
  • Reputation:   34
  • Joined:  10/15/12
  • Last Seen:  

4 hours ago, Cyro said:

you can check it here

https://github.com/rathena/rathena/blob/master/doc/ea_job_system.txt


	EAJL_UPPER
	EAJL_BABY
	EAJL_THIRD

 

so how do i check if the character is 3rd job (whether it is regular,trans or baby)

ex : 

if(@eac&EAJL_THIRD)

is not working for me 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  98
  • Reputation:   74
  • Joined:  12/04/14
  • Last Seen:  

prontera,155,175,2	script	3rd Job Check	754,{
@eac = eaclass();
  if(@eac&EAJL_THIRD){
      @atcommand "@die";
      dispbottom "3rd Job confirmed";
  }
end;
}

 

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