Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //===== eAthena Script =======================================
- //= Eternity RO Synthesis NPC
- //===== By: ==================================================
- //= Karei
- //===== Current Version: =====================================
- //= 1.0 - Wrote
- //= 3.0 - Rewrote for Eternity v3 [karei]
- //===== Compatible With: =====================================
- //= EterntiyRO v3
- //===== Description: =========================================
- //= Lets players trade a donation hat, regular hat, and card
- //= for a statted donation hat.
- //============================================================
- prt_in,46,97,1 script Synthesizer#ero 712,{
- mes "[Master Synthesizer]";
- mes "This is the land of Eternal Cold eh! Beware the penguins! Be AFRAID of the BEAVERS! AHHHH!!!";
- next;
- switch(select("Can you synthesize my hat?:Who are you?")){
- case 1:
- mes "[Master Synthesizer]";
- mes "Synthesize? What are you gibbering aboot? Whaa, you mean like put a hat and maybe a card into another hat eh?";
- next;
- mes "[Master Synthesizer]";
- mes "Maybe I can! Maybe I can't! Either way, it's none of your business!";
- next;
- mes "[Master Synthesizer]";
- mes "Oh... you wanted me to do it for you huh? Well, you'll have to do something for me first... Let's see...";
- next;
- mes "[Master Synthesizer]";
- mes "It's going to be terribly difficult, just to warn ya. I want you to go south and.... ... ... ZzzzZZZzz";
- next;
- switch(select("Wake him up!:Leave quietly")){
- case 1:
- mes "[Master Synthesizer]";
- mes "Ooh! What! Yes! Ok, first, are you slotting in a card, or just a headgear? Synthesis can only be performed ONCE.";
- next;
- mes "If you want a card in as well, you'll have to first put it into the headgear going into the special one. Refine rates are kept.";
- next;
- mes "You MUST BE WEARING the hat you want synthesized INTO the special donation headgear! Make sure there is only one of that item!";
- next;
- switch(select("Hat and a Card:Just a Headgear")){ // Are these breaks needed?
- case 1:
- set @synthcard,1; // synthcard is set to 1, which means both a hat and card are being synthesized.
- break;
- case 2:
- set @synthcard,2; // synthcard is set to 2, which means just a hat is being synthesized.
- break;
- }
- mes "Oooh! What! Yes! Ok, what do you want to synthesize?";
- next;
- switch(select("Jasper Crest:Dark Randgris:Neko Mimi:Tiraya Bonnet:Kawaii Ribbon")){
- case 1:
- callsub S_Top, "Jasper Crest", @synthcard, 5396;
- case 2:
- callsub S_Top, "Dark Randgris Helm", @synthcard, 5373;
- case 3:
- callsub S_Top, "Neko Mimi", @synthcard, 30512;
- case 4:
- callsub S_Top, "Tiraya Bonnet", @synthcard, 5395;
- case 5:
- callsub S_Top, "Kawaii Ribbon", @synthcard, 30509;
- }
- close;
- case 2:
- mes "zzZzzZZZ";
- close;
- }
- case 2:
- mes "I am the... I am the... ZzzZZZZZZzz";
- close;
- }
- //For Top Head slot only synthesis
- S_Top:
- mes "[Master Synthesizer]";
- mes "LISTEN CLOSELY!";
- next;
- mes "[Master Synthesizer]";
- if(getarg(1) == 1){ mes "Just to confirm you want to synthesize a " + getarg(0) + " with a slotted headgear and a card, right?";} // Card + Hat
- else{ mes "Just to confirm, you want to synthesize a " + getarg(0) + " with just a hat, and no card, right?";} // Just Hat
- next;
- switch(select("That's wrong!:That's correct!")){
- case 1:
- mes "[Master Synthesizer]";
- mes "I'm sorry to hear that! Maybe next... wait what?";
- close;
- case 2:
- if(getarg(1) == 1){ // Synthesizing with a hat and a card
- mes "[Master Synthesizer]";
- mes "Please note, in order to put a CARD into this headgear, it must FIRST be slotted into the non-donation headgear!";
- next;
- mes "[Master Synthesizer]";
- mes "Now then, which of the workable headgears do you wish to put in?";
- next;
- switch(select("Hat[1]:Bucket Hat[1]:Marionette Doll[1]")){ // Are these breaks needed?
- case 1:
- set @synththree,2221;
- set .@synthhat$, "Hat[1]";
- break;
- case 2:
- set @synththree,5120;
- set .@synthhat$, "Bucket Hat[1]";
- break;
- case 3:
- set @synththree,5141;
- set .@synthhat$, "Marionette Doll[1]";
- break;
- }
- if(getequipid(EQI_HEAD_TOP)==@synththree){
- mes "[Master Synthesizer]";
- mes "So, you want to synthesize a your " + .@synthhat$ + " into your " + getarg(0) + " with the card ID " + getequipcardid(EQI_HEAD_TOP,0) + " right?";
- switch(select("Actually no!:Yes, of course")){
- case 1:
- mes "[Master Synthesizer]";
- mes "Oh... that's unfortunate.";
- close;
- case 2:
- if(countitem(@synththree) == 1 && countitem(getarg(2)) >= 1){
- mes "[Master Synthesizer]";
- mes "By the power of the North! ... ... ";
- set @refine,getequiprefinerycnt(EQI_HEAD_TOP); // Sets the refine rate of the headgear
- set @synthone,getequipcardid(EQI_HEAD_TOP,0); // Sets @synthone as the card
- failedrefitem EQI_HEAD_TOP; // Deletes the equipped headgear
- delitem getarg(2),1;
- mes "Whoops... I broke it...";
- next;
- mes "[Master Synthesizer]";
- mes "Hahahaha! Joking! Come again.";
- getitem2 getarg(2),1,1,@refine,0,@synthone,0,@synththree,0;
- close;
- }
- else{
- mes "[Master Synthesizer]";
- mes "You're missing something, or have more than one of something. If you need a special headgear, please donate to keep EternityRO alive.";
- close;
- }
- }
- }
- else{ // If the player is not wearing the correct headgear
- mes "[Master Synthesizer]";
- mes "You must first equip the headgear that you're trying to synthesize INTO your special hat!";
- close;
- }
- }
- else{ // Synthesizing with just a hat
- mes "[Master Synthesizer]";
- mes "Please note, if you have more than one special headgear or one you do NOT want to synthesize, I might break it instead. So, store it first please!";
- next;
- mes "[Master Synthesizer]";
- mes "Now then, which of the workable headgears do you wish to put in?";
- next;
- switch(select("Beret:Feather Beret:Apple of Archer:Frigg's Circlet:Magni's Cap:Morrigane's Helm")){ // Are these breaks needed?
- case 1:
- set @synththree,5172;
- set .@synthhat$, "Beret";
- break;
- case 2:
- set @synththree,5170;
- set .@synthhat$, "Feather Beret";
- break;
- case 3:
- set @synththree,2285;
- set .@synthhat$, "Apple of Archer";
- break;
- case 4:
- set @synththree,5124;
- set .@synthhat$, "Frigg's Circlet";
- break;
- case 5:
- set @synththree,5122;
- set .@synthhat$, "Magni's Cap";
- break;
- case 6:
- set @synththree,5127;
- set .@synthhat$, "Morrigane's Helm";
- break;
- }
- if(getequipid(EQI_HEAD_TOP)==@synththree){
- mes "[Master Synthesizer]";
- mes "So you want to synthesize your " + .@synthhat$ + " into your " + getarg(0) + ", right?";
- next;
- switch(select("Actually no!:Yes, of course")){
- case 1:
- mes "[Master Synthesizer]";
- mes "I'm sorry to hear that.";
- close;
- case 2:
- if(countitem(@synththree) == 1 && countitem(getarg(2)) >= 1){
- mes "[Master Synthesizer]";
- mes "By the power of the North! ... ... ";
- set @refine,getequiprefinerycnt(EQI_HEAD_TOP); // Sets the refine rate of the headgear
- failedrefitem EQI_HEAD_TOP; // Deletes the equipped headgear
- delitem getarg(2),1;
- mes "Whoops... I broke it...";
- next;
- mes "[Master Synthesizer]";
- mes "Hahahaha! Joking! Come again.";
- getitem2 getarg(2),1,1,@refine,0,0,0,@synththree,0;
- close;
- }
- else{
- mes "[Master Synthesizer]";
- mes "You're missing something, or have more than one of something. If you need a special headgear, please donate to keep EternityRO alive.";
- close;
- }
- }
- }
- else{ // If the player is not wearing the correct headgear
- mes "[Master Synthesizer]";
- mes "You must first equip the headgear that you're trying to synthesize INTO your special hat!";
- close;
- }
- }
- }
- // Mid slot only synthesis
- S_Mid:
- mes "[Master Synthesizer]";
- mes "Sorry... scouters are currently unavailable. We're fixing some sprite issues, and will be here soon.";
- close;
- // Both Top and Mid combined synthesis
- S_TopMid:
- mes "[Master Synthesizer]";
- mes "LISTEN CLOSELY!";
- next;
- mes "[Master Synthesizer]";
- if(getarg(1) == 1){ mes "Just to confirm you want to synthesize a " + getarg(0) + " with a slotted headgear, mid-headgear and a card, right?";} // Card + Hat
- else{ mes "Just to confirm, you want to synthesize a " + getarg(0) + " with just a hat, and no card, and a mid-headgear right?";} // Just Hat
- next;
- switch(select("That's wrong!:That's correct!")){
- case 1:
- mes "[Master Synthesizer]";
- mes "I'm sorry to hear that! Maybe next... wait what?";
- close;
- case 2:
- mes "[Master Synthesizer]";
- mes "First, which mid-slot headgear would you like to add to the new hat? I'm sorry, but we can't do carded mid items.";
- next;
- switch(select("Masquerade:Binoculars:Welding Mask")){
- case 1:
- set @synthtwo,2291;
- set .@synthmid$, "Masquerade";
- break;
- case 2:
- set @synthtwo,2296;
- set .@synthmid$, "Binoculars";
- break;
- case 3:
- set @synthtwo,2292;
- set .@synthmid$, "Welding Mask";
- break;
- }
- if(getarg(1) == 1){ // Synthesizing with a hat and a card
- mes "[Master Synthesizer]";
- mes "Please note, in order to put a CARD into this headgear, it must FIRST be slotted into the non-donation headgear!";
- next;
- mes "[Master Synthesizer]";
- mes "Now then, which of the workable headgears do you wish to put in?";
- next;
- switch(select("Hat[1]:Bucket Hat[1]:Marionette Doll[1]")){ // Are these breaks needed?
- case 1:
- set @synththree,2221;
- set .@synthhat$, "Hat[1]";
- break;
- case 2:
- set @synththree,5120;
- set .@synthhat$, "Bucket Hat[1]";
- break;
- case 3:
- set @synththree,5141;
- set .@synthhat$, "Marionette Doll[1]";
- break;
- }
- if(getequipid(EQI_HEAD_TOP)==@synththree){
- mes "[Master Synthesizer]";
- mes "So, you want to synthesize a your " + .@synthhat$ + " and " + .@synthmid$ + " into your " + getarg(0) + " with the card ID " + getequipcardid(EQI_HEAD_TOP,0) + " right?";
- next;
- switch(select("Actually no!:Yes, of course")){
- case 1:
- mes "[Master Synthesizer]";
- mes "Oh... that's unfortunate.";
- close;
- case 2:
- if(countitem(@synththree) == 1 && countitem(@synthtwo) == 1 && countitem(getarg(2)) >= 1){
- mes "[Master Synthesizer]";
- mes "By the power of the North! ... ... ";
- set @refine,getequiprefinerycnt(EQI_HEAD_TOP); // Sets the refine rate of the headgear
- set @synthone,getequipcardid(EQI_HEAD_TOP,0); // Sets @synthone as the card
- failedrefitem EQI_HEAD_TOP; // Deletes the equipped headgear
- delitem getarg(2),1; // Deletes donation headgear
- delitem @synthtwo,1; // Deletes mid headgear
- mes "Whoops... I broke it...";
- next;
- mes "[Master Synthesizer]";
- mes "Hahahaha! Joking! Come again.";
- getitem2 getarg(2),1,1,@refine,0,@synthone,@synthtwo,@synththree,0;
- close;
- }
- else{
- mes "[Master Synthesizer]";
- mes "You're missing something, or have more than one of something. If you need a special headgear, please donate to keep EternityRO alive.";
- close;
- }
- }
- }
- else{ // If the player is not wearing the correct headgear
- mes "[Master Synthesizer]";
- mes "You must first equip the headgear that you're trying to synthesize INTO your special hat!";
- close;
- }
- }
- else{ // Synthesizing with just a hat
- mes "[Master Synthesizer]";
- mes "First, which mid-slot headgear would you like to add to the new hat? I'm sorry, but we can't do carded mid items.";
- next;
- switch(select("Masquerade:Binoculars:Welding Mask")){
- case 1:
- set @synthtwo,2291;
- set .@synthmid$, "Masquerade";
- break;
- case 2:
- set @synthtwo,2296;
- set .@synthmid$, "Binoculars";
- break;
- case 3:
- set @synthtwo,2292;
- set .@synthmid$, "Welding Mask";
- break;
- }
- mes "[Master Synthesizer]";
- mes "Please note, in order to put a CARD into this headgear, it must FIRST be slotted into the non-donation headgear!";
- next;
- mes "[Master Synthesizer]";
- mes "Now then, which of the workable headgears do you wish to put in?";
- next;
- switch(select("Beret:Feather Beret:Apple of Archer:Frigg's Circlet:Magni's Cap:Morrigane's Helm")){ // Are these breaks needed?
- case 1:
- set @synththree,5172;
- set .@synthhat$, "Beret";
- break;
- case 2:
- set @synththree,5170;
- set .@synthhat$, "Feather Beret";
- break;
- case 3:
- set @synththree,2285;
- set .@synthhat$, "Apple of Archer";
- break;
- case 4:
- set @synththree,5124;
- set .@synthhat$, "Frigg's Circlet";
- break;
- case 5:
- set @synththree,5122;
- set .@synthhat$, "Magni's Cap";
- break;
- case 6:
- set @synththree,5127;
- set .@synthhat$, "Morrigane's Helm";
- break;
- }
- if(getequipid(EQI_HEAD_TOP)==@synththree){
- mes "[Master Synthesizer]";
- mes "So you want to synthesize your " + .@synthhat$ + " and " + .@synthmid$ + " into your " + getarg(0) + ", right?";
- switch(select("Actually no!:Yes, of course")){
- case 1:
- mes "[Master Synthesizer]";
- mes "I'm sorry to hear that.";
- close;
- case 2:
- if(countitem(@synththree) == 1 && countitem(@synthtwo) == 1 && countitem(getarg(2)) >= 1){
- mes "[Master Synthesizer]";
- mes "By the power of the North! ... ... ";
- set @refine,getequiprefinerycnt(EQI_HEAD_TOP); // Sets the refine rate of the headgear
- failedrefitem EQI_HEAD_TOP; // Deletes the equipped headgear
- delitem getarg(2),1; // Deletes donation headgear
- delitem @synthtwo,1; // Deletes mid headgear
- mes "Whoops... I broke it...";
- next;
- mes "[Master Synthesizer]";
- mes "Hahahaha! Joking! Come again.";
- getitem2 getarg(2),1,1,@refine,0,0,@synthtwo,@synththree,0;
- close;
- }
- else{
- mes "[Master Synthesizer]";
- mes "You're missing something, or have more than one of something. If you need a special headgear, please donate to keep EternityRO alive.";
- close;
- }
- }
- }
- else{ // If the player is not wearing the correct headgear
- mes "[Master Synthesizer]";
- mes "You must first equip the headgear that you're trying to synthesize INTO your special hat!";
- close;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement