viewing paste Unknown #24551 | Text

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178
//= 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;
}
 
Viewed 842 times, submitted by Guest.