jTynne Posted June 6, 2012 Share Posted June 6, 2012 Simple script I wrote, if someone wants to optimize it, feel free. If there's errors, please feel free to point them out so that they can be fixed. Wrote this since the Arch Bishop job change script is terribly broken and don't have time to tend to it completely myself at this time. prt_in,42,114,5 script 3rd Job Items 91,{ set [email protected]$,"[3rd Job Items]"; if(thirdjobitem > 0) {mes [email protected]$,"You have already received your award. I can no longer provide assistance to you."; close; end;} mes [email protected]$,"Once you have changed to a Third Job, I will award you with the headgear and Green Apple Ring you would obtain through the official quests."; next; L_rune: if(Class == Job_Rune_Knight || Class == Job_Baby_Rune || Class == Job_Rune_Knight_T || Class == Job_Rune_Knight2 || Class == Job_Rune_Knight_T2 || Class == Job_Baby_Rune2) { set [email protected],5746; goto L_process; } L_warlock: if(Class == Job_Warlock || Class == Job_Baby_Warlock || Class == Job_Warlock_T) { set [email protected],5753; goto L_process; } L_ranger: if(Class == Job_Ranger || Class == Job_Baby_Ranger || Class == Job_Ranger_T || Class == Job_Baby_Ranger2 || Class == Job_Ranger_T2 || Class == Job_Ranger2) { set [email protected],5748; goto L_process; } L_arch: if(Class == Job_Arch_Bishop || Class == Job_Baby_Bishop || Class == Job_Arch_Bishop_T) { set [email protected],5747; goto L_process; } L_mech: if(Class == Job_Mechanic || Class == Job_Baby_Mechanic || Class == Job_Mechanic_T || Class == Job_Mechanic_T2 || Class == Job_Baby_Mechanic2 || Class == Job_Mechanic2) { set [email protected],5749; goto L_process; } L_cross: if(Class == Job_Guillotine_Cross || Class == Job_Baby_Cross || Class == Job_Guillotine_Cross_T) { set [email protected],5755; goto L_process; } L_guard: if(Class == Job_Royal_Guard || Class == Job_Baby_Guard || Class == Job_Royal_Guard_T || Class == Job_Royal_Guard_T2 || Class == Job_Royal_Guard2 || Class == Job_Baby_Guard2) { set [email protected],5757; goto L_process; } L_sorcerer: if(Class == Job_Sorcerer || Class == Job_Baby_Sorcerer || Class == Job_Sorcerer_T) { set [email protected],5756; goto L_process; } L_minstrel: if(Class == Job_Minstrel || Class == Job_Baby_Minstrel || Class == Job_Minstrel_T) { set [email protected],5751; goto L_process; } L_wanderer: if(Class == Job_Wanderer || Class == Job_Baby_Wanderer || Class == Job_Wanderer_T) { set [email protected],5758; goto L_process; } L_sura: if(Class == Job_Sura || Class == Job_Baby_Sura || Class == Job_Sura_T) { set [email protected],5754; goto L_process; } L_genetic: if(Class == Job_Genetic || Class == Job_Baby_Genetic || Class == Job_Genetic_T) { set [email protected],5752; goto L_process; } L_shadow: if(Class == Job_Shadow_Chaser || Class == Job_Baby_Chaser || Class == Job_Shadow_Chaser_T) { set [email protected],5750; goto L_process; } mes [email protected]$,"It does not appear as though you're a third job. Sorry, but I have nothing for you."; close; end; L_process: set thirdjobitem,1; getitem [email protected],1; getitem 2795,1; mes [email protected]$,"There you are! Enjoy and congratulations on reaching your respective 3rd Job Class."; close; end; } Quote Link to comment Share on other sites More sharing options...
7en Posted July 30, 2012 Share Posted July 30, 2012 looks like the npc wont appear Quote Link to comment Share on other sites More sharing options...
Emistry Posted July 30, 2012 Share Posted July 30, 2012 prontera,155,181,5 script Sample 757,{ if( Class < 4060 ){ mes "Only 3rd Job Class can take."; }else if( ThirdJobItem ){ mes "You have already take this ^FF0000"+getitemname(ThirdJobItem)+"^000000 before."; }else{ switch( BaseJob ){ Case Job_Knight: set [email protected],5746; break; Case Job_Wizard: set [email protected],5753; break; Case Job_Hunter: set [email protected],5748; break; Case Job_Priest: set [email protected],5747; break; Case Job_Blacksmith: set [email protected],5749; break; Case Job_Assassin: set [email protected],5755; break; Case Job_Crusader: set [email protected],5757; break; Case Job_Sage: set [email protected],5756; break; Case Job_Bard: set [email protected],5751; break; Case Job_Dancer: set [email protected],5758; break; Case Job_Monk: set [email protected],5754; break; Case Job_Alchemist: set [email protected],5752; break; Case Job_Rogue: set [email protected],5750; break; default: mes "Sorry, didnt have any for you."; close; } getitem [email protected],1; set ThirdJobItem,[email protected]; mes "You have gained 1 x ^FF0000"+getitemname([email protected])+"^000000"; } close; } 1 Quote Link to comment Share on other sites More sharing options...