viewing paste Unknown #15603 | Athena

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
/*=========================================================
Lighthalzen Aura Quest
by Zephy
===========================================================
Description:
===========================================================
Simple quest NPC to obtain the Lighthalzen Aura item.
===========================================================
Additional Notes:
===========================================================
Changelog
        - Edited line 88. Switched the options.
        - Added more dialogue.
        - Changed dialogue a little.
=========================================================*/
 
amatsu,97,121,4 script  Maurizio Negrini        408,{
 
        mes .npc_name$;
 
        for(set .@i,0; .@i < getarraysize(.qitem); set .@i,.@i+1)
        {
                // Check if current item fails to meet prerequisite
                if(countitem(.qitem[.@i]) < .qamt)
                {
                       
                        mes "HUZZAH! It's celebration time! The Queen's dragons are now revived! And everything is back to normal! Hi! I am Maurizio Negrini, and I am the Pink Queen's Royal Baker. Don't ask why am I wearing these let's just say the Pink Queen is really happy and decided to dress up everyone in her kingdom.";
            next;
                       
                        mes .npc_name$;
                        mes "Everything is jolly and pink! And everyone is happy, smiling and giving out lots and lots of joy! But I was tasked to make the greatest and unforgettable banquet ever. Can you help me in gathering the necessary ingredients needed for the celebration.";
                next;
                                       
                        mes .npc_name$;
                        mes "But mind you, the ingredients needed for the celebration is really difficult to obtain. Are you still up for it?";
                next;
   
            if(select("For the Pink Queen! What do I need?:I'm here to party! Not to be your slave!") == 2)
            {
                mes .npc_name$;
                mes "WHAT?! FINE! I DON'T NEED YOU!";
                close;
            }
 
 
            mes .npc_name$;
            mes "Haha! That's the spirit! Here's the list of what I need.";
 
            // Loop to print out item requirements
            for(set .@j,0; .@j < getarraysize(.qitem); set .@j,.@j+1)
            {
                mes "^FF0000"+ .qamt[.@j] +"x - "+ getitemname(.qitem[.@j]) +"^000000";
            }
           
            close;
           
        }
    }
   
    // If player meets the required amount of items
    mes "This is wonderful! Thanks to you the Pink Queen's grand celebration is possible! ";
    next;
 
    mes .npc_name$;
    mes "Give me the ingredients!"; // change the dialogue
    next;
 
    if(select("No:Yes") == 1)
    {
        mes .npc_name$;
        mes "U-uhmm.. why?"; //change the dialogue LOL
        close;
    }
 
    mes .npc_name$;
    mes "Let us start preparing for this unforgettable banquet!"; //change the dialogue HAHAHA
 
    // Loop to delete all quest items
    for (set .@i,0; .@i < getarraysize(.qitem); set .@i,.@i+1)
    {
        delitem .qitem[.@i], .qamt[.@i];
    }
   
    next;
   
    mes .npc_name$;
    mes "......."; // change dialogue OFC LOL
    next;
    mes "*Chop* *Chop*";
    next;
    mes "......";
    next;
   
    specialeffect 100;
    mes .npc_name$;
    mes "Oh, I almost forgot! Here is your reward, come back if you still have some of those ingredients okay?.";
    getitem .pitem, .pamt; // Get prize item
    next;
    close;
       
OnInit:
    // Configuration
        // General
        set .npc_name$,"[^008800Maurizio Negrini^000000]"; // NPC's dialogue name
 
        // Items
        set .pitem,21605; // Prize item for completing the quest
        set .pamt,1; // Prize item amount
        setarray .qitem[0], 738, 22012, 22009, 22010; // Quest items (IDs)
        setarray .qamt[0], 10, 75, 75, 75; // Quest item amount
    end;
}
Viewed 324 times, submitted by rhenchu.