summaryrefslogblamecommitdiff
path: root/npc/020-1/serge.txt
blob: 09101a206a9e66165436d25c8bc414a1cb5ed2ab (plain) (tree)



















































                                                                                                       
// TMW2 scripts.
// Authors:
//    Jesusalva
// Description:
//    Hunt Fluffies, and Winter Quest, based on Luffyx. Disabled during Christmas.
//
//    SQuest_Winter
//    SergeQuest;

020-1,77,78,0	script	Serge	NPC_ELF_M,{
    if (season() != WINTER)
        goto L_OutOfSeason;
    if ($EVENT$ == "Christmas")
        goto L_QuestDisabled;

    .@q=getq(SQuest_Winter);
    mesn;
    mesq l("Brrrr... I'm freezing! The winter at Nivalis is so harsh!!");
    if (.@q < 1)
        goto L_WinterQuest;

L_Main:
    //if (GHQUEST)
    //    GHQ_Assign(Fluffy, "Nivalis", "150.000 GP, 60 "+getitemlink(StrangeCoin));
    close;

L_OutOfSeason:
    mesn;
    mesq l("Hmm, Nivalis is a wonderful place to live in! Although it is a tad too cold on Winter...");
    close;

L_QuestDisabled:
    mesn;
    mesq l("Merry Christmas!");
    mesc l("The @@ quest is disabled during Christmas event.", getitemlink(KnitHat));
    close;

OnInit:
    .@npcId = getnpcid(.name$);
    setunitdata(.@npcId, UDT_HEADTOP, CommunityShirt);
    setunitdata(.@npcId, UDT_HEADMIDDLE, JeansChaps);
    setunitdata(.@npcId, UDT_HEADBOTTOM, DeepBlackBoots);
    setunitdata(.@npcId, UDT_WEAPON, KnitHat);
    setunitdata(.@npcId, UDT_HAIRSTYLE, 13);
    setunitdata(.@npcId, UDT_HAIRCOLOR, 7);

    .distance=4;
    .sex=G_MALE;
    npcsit;
	end;

}