Jump to content
  • 0

my jobchanger script


Kanage

Question


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  162
  • Reputation:   3
  • Joined:  01/23/12
  • Last Seen:  

i am having some trouble fixing my script and also i can't pass 99 base level eventhough im already a 3rd job class. can someone help me with the script

prontera,155,184,4 script Job Changer 856,{
mes "^ff0000[Job Master]^000000";
if(Class >= 4054 && Class <= 4085) goto L_max;
if(SkillPoint != 0) goto L_stats;
 if(checkfalcon() || checkcart() || checkriding()) goto L_remove;
 mes "Are you sure you want to change to 3rd Class?";
 if(select("Yes","No")==1){
  if(BaseLevel < 99 || JobLevel < 70) goto L_cantCh;
 switch(Class){
		case Job_Lord_Knight:
			set @target_job, 4060;
			getitem 5746,1;
			getitem 2795,1;
			break;
		case Job_Paladin:
			set @target_job, 4073;
			getitem 5757,1;
			getitem 2795,1;
			break;
		case Job_Champion:
			set @target_job, 4077;
			getitem 5754,1;
			getitem 2795,1;
			break;
		case Job_High_Priest:
			set @target_job, 4063;
			getitem 5747,1;
			getitem 2795,1;
			break;
		case Job_Creator:
			set @target_job, 4078;
			getitem 5752,1;
			getitem 2795,1;
			break;
		case Job_Whitesmith:
			set @target_job, 4064;
			getitem 5760,1;
			getitem 2795,1;
			break;
		case Job_Stalker:
			set @target_job, 4079;
			getitem 6121,1;
			getitem 6122,1;
			getitem 2795,1;
			break;
		case Job_Assassin_Cross:
			set @target_job, 4065;
			getitem 5755,1;
			getitem 2795,1;
			break;
		case Job_High_Wizard:
			set @target_job, 4061;
			getitem 5753,1;
			getitem 2795,1;
			break;
		case Job_Professor:
			set @target_job, 4074;
			getitem 5756,1;
			getitem 2795,1;
			break;
		case Job_Sniper:
			set @target_job, 4062;
			getitem 5748,1;
			getitem 2795,1;
			getitem 6124,1;
			break;
		case Job_Clown:
			set @target_job, 4075;
			getitem 5751,1;
			getitem 2795,1;
			break;
		case Job_Gypsy:
			set @target_job, 4076;
			break;
			}
  mes "Are you sure you want to change to " + JobName(@target_job) + "?";
  if(select("No","Yes") == 2){
callfunc "Job_Change", @target_job;
specialeffect2 381;
close;
}
}
close;
L_cantCh:
mes "I'm sorry, you do not meet the requirements to change";
mes "Please come again soon!";
close;
L_LvError:
mes "I'm sorry, you do not seem to have enough Job Levels";
mes "Please come again soon!";
close;
L_BvError:
mes "I'm sorry, you do not seem to have enough Base Levels";
mes "Please come again soon!";
close;
L_noReq:
mes "I'm sorry, you do not meet the requirements to change";
mes "Please come again soon!";
close;
L_Max:
mes "I'm sorry, there are no further classes for your job.";
close;
L_stats:
mes "I'm sorry, please use up all your skill points before changing jobs";
mes "Please come again soon!";
close;
L_remove:
mes "Please remove your cart,falcon or peco";
mes "Please come again soon!";
close;

OnInit:
// Variable Setup
set $@JC_MinimumJB, 40; //Minimum job level for changing between 2nd and advance Class (Default : 40)
set $@JC_Plat, 1; //Give Platinum skills on Jobchange (Default : 1-yes)
set $@JC_SupNovM, 45; //Base Level to change into Super Novice (Default : 45)
end;
}

sorry i dont own the script i just edited it from some source and i was able to run it but still has some bug.

BTW: its a jobchanger from trans class only to 3rd job class

Edited by Arcenciel
Codeboxed
Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  222
  • Reputation:   35
  • Joined:  12/13/11
  • Last Seen:  

could u please post the bug its having, like the error in the console of ur map server, we can't help u if we dont know what its saying :C

Link to comment
Share on other sites


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

Hmm ?

why are you using this ?

if(BaseLevel < 99 || JobLevel < 70) goto L_cantCh;
if(Class >= 4054 && Class <= 4085) goto L_max;

you cant use > or < in eAthena scripting..

that is HTML Symbol tag right ? you cant use in scripting.....

i think it should be like this

if(BaseLevel < 99 || JobLevel < 70) goto L_cantCh;
if(Class >= 4054 && Class <= 4085) goto L_max;

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  222
  • Reputation:   35
  • Joined:  12/13/11
  • Last Seen:  

emistry, because it was edited by arcen and the forums probably converted the characters to that.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  43
  • Reputation:   2
  • Joined:  01/17/12
  • Last Seen:  

- You don't have "Job_change" function in this script, apparently. You probably removed it while editing the "other" script.

- On a side note, you can safely remove the "variable sets" in the bottom of the script

- On a side note, the NPC can be freely abused by trying to change and saying "No" to "Do you really want to change?" (You can get infinite amount of the items from 'getitem' there.)

"Can't level past 99 even though I'm a third job" is not related to this script.

Edited by Derceto
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  162
  • Reputation:   3
  • Joined:  01/23/12
  • Last Seen:  

thanks for noting that Derceto. ill fix that and hope to post the script to share ^^

here it is, can someont test it for me. i can't check this on my server cause im at my work right now /ok


prontera,155,184,4	script	Job Changer	856,{

OnTouch:	
mes "["+strcharinfo(0)+"]";
mes "Huh!!! Human!?!";
	if(Class >= 4054 && Class <= 4085) goto L_max;
if(SkillPoint != 0) goto L_stats;
	if(checkfalcon() || checkcart() || checkriding()) goto L_remove;
	mes "Are you sure you want to change to 3rd Class?";
	if(select("Yes","No")){
		callfunc "Job_Change", @target_job;
		specialeffect2 381;
		close;
	}
		if(BaseLevel < 99 || JobLevel < 70) goto L_cantCh;
	switch(Class){
		case Job_Lord_Knight:
			set @target_job, 4060;
			getitem 5746,1;
			getitem 2795,1;
			break;
		case Job_Paladin:
			set @target_job, 4073;
			getitem 5757,1;
			getitem 2795,1;
			break;
		case Job_Champion:
			set @target_job, 4077;
			getitem 5754,1;
			getitem 2795,1;
			break;
		case Job_High_Priest:
			set @target_job, 4063;
			getitem 5747,1;
			getitem 2795,1;
			break;
		case Job_Creator:
			set @target_job, 4078;
			getitem 5752,1;
			getitem 2795,1;
			break;
		case Job_Whitesmith:
			set @target_job, 4064;
			getitem 5760,1;
			getitem 2795,1;
			break;
		case Job_Stalker:
			set @target_job, 4079;
			getitem 6121,1;
			getitem 6122,1;
			getitem 2795,1;
			break;
		case Job_Assassin_Cross:
			set @target_job, 4065;
			getitem 5755,1;
			getitem 2795,1;
			break;
		case Job_High_Wizard:
			set @target_job, 4061;
			getitem 5753,1;
			getitem 2795,1;
			break;
		case Job_Professor:
			set @target_job, 4074;
			getitem 5756,1;
			getitem 2795,1;
			break;
		case Job_Sniper:
			set @target_job, 4062;
			getitem 5748,1;
			getitem 2795,1;
			getitem 6124,1;
			break;
		case Job_Clown:
			set @target_job, 4075;
			getitem 5751,1;
			getitem 2795,1;
			break;
		case Job_Gypsy:
			set @target_job, 4076;
			break;
			}
		}

L_cantCh:
mes "I'm sorry, you do not meet the requirements to change";
mes "Please come again soon!";
close;

L_LvError:
mes "I'm sorry, you do not seem to have enough Job Levels";
mes "Please come again soon!";
close;

L_BvError:
mes "I'm sorry, you do not seem to have enough Base Levels";
mes "Please come again soon!";
close;

L_noReq:
mes "I'm sorry, you do not meet the requirements to change";
mes "Please come again soon!";
close;

L_Max:
mes "I'm sorry, there are no further classes for your job.";
close;

L_stats:
mes "I'm sorry, please use up all your skill points before changing jobs";
mes "Please come again soon!";
close;

L_remove:
mes "Please remove your cart,falcon or peco";
mes "Please come again soon!";
close;
}

Edited by Arcenciel
Codeboxed
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...