jTynne Posted June 6, 2012 Group: Members Topic Count: 33 Topics Per Day: 0.01 Content Count: 399 Reputation: 199 Joined: 11/09/11 Last Seen: December 14, 2020 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 .@n$,"[3rd Job Items]"; if(thirdjobitem > 0) {mes .@n$,"You have already received your award. I can no longer provide assistance to you."; close; end;} mes .@n$,"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 .@item,5746; goto L_process; } L_warlock: if(Class == Job_Warlock || Class == Job_Baby_Warlock || Class == Job_Warlock_T) { set .@item,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 .@item,5748; goto L_process; } L_arch: if(Class == Job_Arch_Bishop || Class == Job_Baby_Bishop || Class == Job_Arch_Bishop_T) { set .@item,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 .@item,5749; goto L_process; } L_cross: if(Class == Job_Guillotine_Cross || Class == Job_Baby_Cross || Class == Job_Guillotine_Cross_T) { set .@item,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 .@item,5757; goto L_process; } L_sorcerer: if(Class == Job_Sorcerer || Class == Job_Baby_Sorcerer || Class == Job_Sorcerer_T) { set .@item,5756; goto L_process; } L_minstrel: if(Class == Job_Minstrel || Class == Job_Baby_Minstrel || Class == Job_Minstrel_T) { set .@item,5751; goto L_process; } L_wanderer: if(Class == Job_Wanderer || Class == Job_Baby_Wanderer || Class == Job_Wanderer_T) { set .@item,5758; goto L_process; } L_sura: if(Class == Job_Sura || Class == Job_Baby_Sura || Class == Job_Sura_T) { set .@item,5754; goto L_process; } L_genetic: if(Class == Job_Genetic || Class == Job_Baby_Genetic || Class == Job_Genetic_T) { set .@item,5752; goto L_process; } L_shadow: if(Class == Job_Shadow_Chaser || Class == Job_Baby_Chaser || Class == Job_Shadow_Chaser_T) { set .@item,5750; goto L_process; } mes .@n$,"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 .@item,1; getitem 2795,1; mes .@n$,"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 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 60 Reputation: 2 Joined: 07/24/12 Last Seen: August 12, 2016 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 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 11 hours ago 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 .@Item,5746; break; Case Job_Wizard: set .@Item,5753; break; Case Job_Hunter: set .@Item,5748; break; Case Job_Priest: set .@Item,5747; break; Case Job_Blacksmith: set .@Item,5749; break; Case Job_Assassin: set .@Item,5755; break; Case Job_Crusader: set .@Item,5757; break; Case Job_Sage: set .@Item,5756; break; Case Job_Bard: set .@Item,5751; break; Case Job_Dancer: set .@Item,5758; break; Case Job_Monk: set .@Item,5754; break; Case Job_Alchemist: set .@Item,5752; break; Case Job_Rogue: set .@Item,5750; break; default: mes "Sorry, didnt have any for you."; close; } getitem .@Item,1; set ThirdJobItem,.@Item; mes "You have gained 1 x ^FF0000"+getitemname(.@Item)+"^000000"; } close; } 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.