Jump to content
  • 0

How to do this properly on different classes?


Currently

Question


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  313
  • Reputation:   1
  • Joined:  01/22/12
  • Last Seen:  

if (Class == Job_Lord_Knight) getitem 56000,1; warp "job_soul",30,30; end;
} else {
if (Class == Job_High_Priest) getitem 56001,1; warp "prontera",30,30; end;
} else {

For Lord Knight, the getitem work and also send the character to job soul.

 

However, High Priest the getitem does not work and does not send the character to Prontera.

 

Any reasoning or help please?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   18
  • Joined:  08/18/15
  • Last Seen:  

Make sure that the High Priest class is defined as Job_High_Priest and not something else.

 

Also, one problem: prontera,30,30 isn't a real coordinate. Try making it 144,223 and see if it works.

Edited by greenmagic469
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  

Would it not be better to use the numerical values when checking classes?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   18
  • Joined:  08/18/15
  • Last Seen:  

Agreed, no need for confusing class names with all different variations in different parts of the database... Just use the class numbers which can be easily found by simply typing @job while logged into the game.

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

maybe you wrote it wrongly?

try this

if (Class == Job_Lord_Knight) {
	getitem 56000,1; 
	warp "job_soul",30,30;
}
 else if (Class == Job_High_Priest) {
	getitem 56001,1; 
	warp "prontera",30,30;
}
 else { // other classes.
	
}

or

switch( Class ) {
	case Job_Lord_Knight:
		getitem 56000,1;
		break;
	case Job_High_Priest:
		getitem 56000,1;
		break;
	case Job_High_Wizard:
		getitem 56000,1;
		break;
	case Job_Whitesmith:
		getitem 56000,1;
		break;
	case Job_Sniper:
		getitem 56000,1;
		break;
	case Job_Assassin_Cross:
		getitem 56000,1;
		break;
	default:
}
warp "prontera",30,30;
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...