diff options
author | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-11-19 05:12:30 +0000 |
---|---|---|
committer | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-11-19 05:12:30 +0000 |
commit | 6de5cb578078dfafbf1da489712304f43144bd7d (patch) | |
tree | 0b311cd7242f2317fd771de21a52e066c449fc8c /npc/custom/jobs | |
parent | c116ea51790a6d42280cf599192614dc373cf91d (diff) | |
download | hercules-6de5cb578078dfafbf1da489712304f43144bd7d.tar.gz hercules-6de5cb578078dfafbf1da489712304f43144bd7d.tar.bz2 hercules-6de5cb578078dfafbf1da489712304f43144bd7d.tar.xz hercules-6de5cb578078dfafbf1da489712304f43144bd7d.zip |
Applied security patches. PLEASE CHECK THEM ALL.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9260 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/custom/jobs')
-rw-r--r-- | npc/custom/jobs/jobmaster.txt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/npc/custom/jobs/jobmaster.txt b/npc/custom/jobs/jobmaster.txt index c929d4894..e4c72d3f5 100644 --- a/npc/custom/jobs/jobmaster.txt +++ b/npc/custom/jobs/jobmaster.txt @@ -78,10 +78,17 @@ prontera.gat,153,193,6 script Job Master 123,{ if(Class == Job_Novice_High) goto L_noReq;
set @target_job, @menu + 15;
break;
- default:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
set @target_job, @menu;
if(Class == Job_Novice_High) set @target_job, @target_job + 4001;
break;
+ default:
+ end;
}
}
mes "Are you sure you want to change to " + callfunc("getJobName",@target_job) + "?";
@@ -149,6 +156,8 @@ prontera.gat,153,193,6 script Job Master 123,{ }
mes "Welcome, please select the job you wish to change into";
set @target_job, @job_opt[select(callfunc("getJobName",@job_opt[0]), callfunc("getJobName",@job_opt[1]))-1];
+ if(@menu < 1 || @menu > 2)
+ end;
if(Class > Job_Novice_High && Class < Job_Lord_Knight) set @target_job, @target_job + 4001;
}
mes "Are you sure you want to change to " + callfunc("getJobName",@target_job) + "?";
|