//= Idea Came From : ManiacSociety
//= Helper : Emistry & Kenpachi
//= ปรับแต่ง : Coldy.Hr
vk_town,93,149,5 script เปลี่ยนอาชีพ 588,{
// -- Configuration Option
set .npcname$,"[ ^0000FF Job Master ^000000 ]";
set .1stClassMenu,1; // First Job Class Option [ 0 - Disable / 1 - Enable ]
set .2ndClassMenu,1; // Second Job Class Option [ 0 - Disable / 1 - Enable ]
set .BabyClassMenu,1; // Baby Job Class Option [ 0 - Disable / 1 - Enable ]
set .Allskills,1; // Complete Skills Option [ 0 - Disable / 1 - Enable ]
if(class > 0) end;
Main_Menu:
mes .npcname$;
mes "ยินดีต้อนรับสู่การเปลี่ยนอาชีพ";
mes "กรุณาเลือกสายอาชีพที่คุณต้องการ";
cutin "job_ko01",2;
next;
switch(select(( .1stClassMenu == 0 )?"":"• First Job Class",
( .2ndClassMenu == 0 )?"":"• Second Job Class",
( .BabyClassMenu == 0 )?"":"• Baby Normal Job Class",
"• ^FF0000ยกเลิก^000000")) {
case 1: goto FirstJob_Classes;
case 2: goto SecondJob_Classes;
case 3: goto BabyJob_Classes;
case 4:
mes .npcname$;
mes "อยากเปลี่ยนเมื่อไหร่ค่อยมาหาข้า";
mes "Ok, Bye";
mes "See you Again!!";
cutin "",255;
close;
}
FirstJob_Classes:
mes .npcname$;
mes "โปรดเลือก...";
mes "อาชีพที่คุณต้องการ";
next;
switch(select("• Swordman",
"• Magician",
"• Archer",
"• Acolyte",
"• Merchant",
"• Thief",
"• กลับเมนูหลัก")) {
// --- callsub Job_Changing,<JOB>,<BaseLv>,<JobLv>,<Skill>,<Announce>;
case 1: callsub Job_Changing,1,99,50,58,"Self";
case 2: callsub Job_Changing,2,99,50,58,"Self";
case 3: callsub Job_Changing,3,99,50,58,"Self";
case 4: callsub Job_Changing,4,99,50,58,"Self";
case 5: callsub Job_Changing,5,99,50,58,"Self";
case 6: callsub Job_Changing,6,99,50,58,"Self";
case 7: goto Main_Menu;
}
SecondJob_Classes:
mes .npcname$;
mes "โปรดเลือก...";
mes "อาชีพที่คุณต้องการ";
next;
switch(select("• Knight",
"• Priest",
"• Wizard",
"• Blacksmith",
"• Hunter",
"• Assassin",
"• Crusader",
"• Monk",
"• Sage",
"• Rogue",
"• Alchemist",
( Sex == 1 )?"":"• Dancer",
( Sex == 0 )?"":"• Bard",
"• กลับเมนูหลัก")) {
// --- callsub Job_Changing,<JOB>,<BaseLv>,<JobLv>,<Skill>,<Announce>;
case 1: callsub Job_Changing,7,99,50,107,"Self";
case 2: callsub Job_Changing,8,99,50,107,"Self";
case 3: callsub Job_Changing,9,99,50,107,"Self";
case 4: callsub Job_Changing,10,99,50,107,"Self";
case 5: callsub Job_Changing,11,99,50,107,"Self";
case 6: callsub Job_Changing,12,99,50,107,"Self";
case 7: callsub Job_Changing,14,99,50,107,"Self";
case 8: callsub Job_Changing,15,99,50,107,"Self";
case 9: callsub Job_Changing,16,99,50,107,"Self";
case 10: callsub Job_Changing,17,99,50,107,"Self";
case 11: callsub Job_Changing,18,99,50,107,"Self";
case 12: callsub Job_Changing,20,99,50,107,"Self";
case 13: callsub Job_Changing,19,99,50,107,"Self";
case 14: goto Main_Menu;
}
BabyJob_Classes:
mes .npcname$;
mes "โปรดเลือก...";
mes "อาชีพที่คุณต้องการ";
next;
switch(select("• Baby Swordman",
"• Baby Magician",
"• Baby Archer",
"• Baby Acolyte",
"• Baby Merchant",
"• Baby Thief",
"• Baby Knight",
"• Baby Priest",
"• Baby Wizard",
"• Baby Blacksmith",
"• Baby Hunter",
"• Baby Assassin",
"• Baby Crusader",
"• Baby Monk",
"• Baby Sage",
"• Baby Rogue",
"• Baby Alchemist",
( Sex == 1 )?"":"• Baby Dancer",
( Sex == 0 )?"":"• Baby Bard",
"• Baby Super",
"• กลับเมนูหลัก")) {
// --- callsub Job_Changing,<JOB>,<BaseLv>,<JobLv>,<Skill>,<Announce>;
case 1: callsub Job_Changing,4024,99,50,58,"Self";
case 2: callsub Job_Changing,4025,99,50,58,"Self";
case 3: callsub Job_Changing,4026,99,50,58,"Self";
case 4: callsub Job_Changing,4027,99,50,58,"Self";
case 5: callsub Job_Changing,4028,99,50,58,"Self";
case 6: callsub Job_Changing,4029,99,50,58,"Self";
case 7: callsub Job_Changing,4030,99,50,107,"Self";
case 8: callsub Job_Changing,4031,99,50,107,"Self";
case 9: callsub Job_Changing,4032,99,50,107,"Self";
case 10: callsub Job_Changing,4033,99,50,107,"Self";
case 11: callsub Job_Changing,4034,99,50,107,"Self";
case 12: callsub Job_Changing,4035,99,50,107,"Self";
case 13: callsub Job_Changing,4037,99,50,107,"Self";
case 14: callsub Job_Changing,4038,99,50,107,"Self";
case 15: callsub Job_Changing,4039,99,50,107,"Self";
case 16: callsub Job_Changing,4040,99,50,107,"Self";
case 17: callsub Job_Changing,4041,99,50,107,"Self";
case 18: callsub Job_Changing,4043,99,50,107,"Self";
case 19: callsub Job_Changing,4042,99,50,107,"Self";
case 20: callsub Job_Changing,4045,99,50,107,"Self";
case 21: goto Main_Menu;
}
Job_Changing:
mes .npcname$;
mes "ตอนนี้คุณได้เปลี่ยนเป็น";
mes "^FF0000"+jobname(getarg(0))+"^000000.";
mes "เรียบร้อยแล้ว";
if (compare(getarg(4),"All")){ announce "[ "+strcharinfo(0)+" ] ได้เปลี่ยนอาชีพเป็น [ "+jobname(getarg(0))+" ].",bc_all,0x76EE00; }
if (compare(getarg(4),"Map")){ announce "[ "+strcharinfo(0)+" ] ได้เปลี่ยนอาชีพเป็น [ "+jobname(getarg(0))+" ].",bc_map,0x76EE00; }
if (compare(getarg(4),"Area")){ announce "[ "+strcharinfo(0)+" ] ได้เปลี่ยนอาชีพเป็น [ "+jobname(getarg(0))+" ].",bc_area,0x76EE00; }
if (compare(getarg(4),"Self")){ announce "[ "+strcharinfo(0)+" ] ได้เปลี่ยนอาชีพเป็น [ "+jobname(getarg(0))+" ].",bc_self,0x76EE00; }
jobchange getarg(0);
set BaseLevel,getarg(1);
set JobLevel,getarg(2);
ResetStatus;
ResetSkill;
set SkillPoint,getarg(3);
percentheal 100,100;
cutin "",255;
close;
OnInit:
waitingroom "[#] เปลี่ยนอาชีพ ",0;
end;
}