summaryrefslogblamecommitdiff
path: root/npc/012-2/GonzoDark.txt
blob: f5e65314faf366335a97eb787962028a572cf9bf (plain) (tree)
1
2
3
4
5
6
7
8
9








                             
                                                           






                                                       



                                    
















                                                                    
                                 
                                   



                                         
                                                                                       



           
                                                






                










                                                                                           






                                 
// TMW2 Script
// Author:
//  Jesusalva
// Description:
//      Monthly Sponsor Quest
// Variable:
//      SQuest_Sponsor
//      Quest ID: 2

012-2,50,81,0	script	GonzoDark Sponsor	NPC_LUCAS,{
    function resetSQS {
        setq SQuest_Sponsor, 0, gettime(GETTIME_MONTH);
    }
    // Check monthly quest
    .@d=getq2(SQuest_Sponsor);
    if (.@d != gettime(GETTIME_MONTH)) resetSQS();

    // Are you a sponsor or a guest?
    if (!getgmlevel())
        goto L_Guest;

    // Core
    .@q=getq(SQuest_Sponsor);
    mesn;
    mesq l("Ahh, I hate @@.", getmonsterlink(BlackScorpion));
    if (!(.@q & .questID)) goto L_Menu;
    close;

L_Menu:
    mesq l("I will reward you for 7 @@.", getitemlink(.itemID));
    mes "";
    menu
        rif(countitem(.itemID) >= 7, l("Here they are!")), L_Finish,
        l("Where can I find them?"),L_Where,
        l("No, thanks."),L_Close;

L_Finish:
    delitem .itemID, 7;
    Zeny=Zeny+700; // 100 GP each
    getitem StrangeCoin, rand(1,4);
    .@q=getq(SQuest_Sponsor);
    setq1 SQuest_Sponsor, .@q | .questID;
    mes "";
    mesn;
    mesq l("Many thanks! Come back later to bring me extra @@!", getitemlink(.itemID));
    close;

L_Where:
    mes "";
    mesq l("Ah, there are lots on dark mines.");
    next;

L_Close:
    closedialog;
    goodbye;
    close;

L_Guest:
    mesn;
    mesq lg("Yo, girl.", "Yo, man.");
    next;
    mesn;
    mesq l("I sponsor the alliance and all I got was a NPC and access to this ugly room.");
    next;
    mesn;
    mesq l("Well, I did got some other things more, but I don't want to be an snob.");
    close;

OnInit:
    .sex = G_MALE;
    .distance = 5;
    .questID=2;
    .itemID=BlackScorpionStinger;
    end;
}