Jump to content
  • 0

How to do this properly on different classes?


Question

Posted
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?

4 answers to this question

Recommended Posts

  • 0
Posted (edited)

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

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;

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