summaryrefslogblamecommitdiff
path: root/npc/annuals/halloween/config.txt
blob: d86e3de756374ba74b93b0b33268ce030d68454f (plain) (tree)



























































































































































































































































                                                                                                                                                                                                                              































                                                                                                                                                                    
-	script	#HalloweenConfig	NPC32767,{
    end;

OnCommandRestartQuest:
    goto L_Main;

OnInit:
    goto L_Main;

L_Main:
    // Halloween Key Identifier Set through Botcheck Debug
    if(!($HALLOWEEN_TIME_KEY) || (getarraysize($HALLOWEEN_TIME_KEY) != 6))
        setarray $HALLOWEEN_TIME_KEY, 10,10,11,24,2,gettime(7);
    if(($HALLOWEEN_TIME_KEY[0] == 0) || ($HALLOWEEN_TIME_KEY[0] > 12))
        goto L_HalloweenError;
    if(($HALLOWEEN_TIME_KEY[1] == 0) || ($HALLOWEEN_TIME_KEY[1] > 12))
        goto L_HalloweenError;
    if(($HALLOWEEN_TIME_KEY[2] == 0) || ($HALLOWEEN_TIME_KEY[2] > 12))
        goto L_HalloweenError;
    if(($HALLOWEEN_TIME_KEY[3] == 0) || ($HALLOWEEN_TIME_KEY[3] > 31))
        goto L_HalloweenError;
    if(($HALLOWEEN_TIME_KEY[4] == 0) || ($HALLOWEEN_TIME_KEY[4] > 31))
        goto L_HalloweenError;
    if($HALLOWEEN_TIME_KEY[5] == 0)
        goto L_HalloweenError;

    // Event Runs until Reward Period.
    // Month Start/End
    $@halloween_start_month = $HALLOWEEN_TIME_KEY[0];
    $@halloween_reward_start_month = $HALLOWEEN_TIME_KEY[1];
    $@halloween_end_month = $HALLOWEEN_TIME_KEY[2];

    // Reward Day Start/End
    $@halloween_reward_start_day = $HALLOWEEN_TIME_KEY[3];
    $@halloween_reward_end_day = $HALLOWEEN_TIME_KEY[4];

    // Time Settings
    $@halloween_no_event_time = 0;
    $@halloween_event_time = 1;
    $@halloween_reward_time = 2;

    // How many, maximum is 8
    $@halloween_memory_count = 8;
    // Level to go trick-or-treating
    $@halloween_min_level = 10;

    // Number of trick and treats completed to get charm.
    $@halloween_charm_count = 10;
    $@halloween_got_charm_reward = (1 << 17);
    setarray $@halloween_big_reward, 905, 1175;
    $@halloween_got_big_reward = (1 << 16);
    setarray $@halloween_sweets,
        534,  // OrangeCupcake
        737,  // ChocolateCake
        510,  // Candy
        513,  // Cake
        509,  // ChocolateBar
        519,  // CherryCake
        736,  // WhiteCake
        738,  // OrangeCake
        739,  // AppleCake
        3006, // TonoriDelight
        3007, // Marshmallow
        3009, // JellySkull
        3010, // CandyPumpkin
        838,  // CranberryLollipop
        839,  // GrapeLollipop
        840;  // OrangeLollipop
    $@halloween_sweets_num = getarraysize($@halloween_sweets);

    setarray $@halloween_mask_IDs, 678, 679, 1221, 634, 615, 639, 769, 801, 1218, 1276, 1277, 1279, 4027;
    setarray $@halloween_scare_factors, 2, 4, 4, 4, 2, 3, 2, 2, 1, 3, 2, 4, 4;

    if (getarraysize($@halloween_mask_IDs) != getarraysize($@halloween_scare_factors))
        goto L_HalloweenError;
    // temporary counter
    $@n = 0;

    $@halloween_npc_caretaker = $@n;
    $@halloween_npc_names$[$@n] = "[Caretaker]";
    $@halloween_greetings$[$@n] = "\"Alright, come on then. Show me your trick.\"";
    $@halloween_trick_notscary$[$@n] = "Trick? You must have misheard me. I've come because the Government needs to build a road through your house.";
    $@halloween_react_notscary$[$@n] = "\"And?\"";
    $@halloween_trick_scary$[$@n] = "You look pretty deceased to me, old man. Undead must die! Yaah!";
    $@halloween_react_scary$[$@n] = "\"Now listen here, I'm as alive as you - oh. Say, that was a good trick!\"";
    $@halloween_trick_veryscary$[$@n] = "Your wife... she's - she's - she's DEAD!";
    $@halloween_react_veryscary$[$@n] = "\"But... I live here! My wife l... is dead here. You can't - oh. I DIDN'T mishear you. You really had me fooled!\"";

    $@n = $@n + 1;

    $@halloween_npc_eurni = $@n;
    $@halloween_npc_names$[$@n] = "[Eurni the Surgeon]";
    $@halloween_greetings$[$@n] = "\"Oh, right.\"";
    $@halloween_trick_notscary$[$@n] = "I paid good money for your services, and when I get home I find that now I'm not a man OR a woman...";
    $@halloween_react_notscary$[$@n] = "\"Heheh, sucks, buddy. But there's always a risk.\"";
    $@halloween_trick_scary$[$@n] = "Look out! A scorpion!";
    $@halloween_react_scary$[$@n] = "\"Where? Darn things, I think they're what keep scaring away my customers.\"";
    $@halloween_trick_veryscary$[$@n] = "I know about your hobby of performing numerous Sex changes on yourself.";
    $@halloween_react_veryscary$[$@n] = "\"Shut up! Look, will you hold your tongue if I give you more treats...?\"";

    $@n = $@n + 1;

    $@halloween_npc_george = $@n;
    $@halloween_npc_names$[$@n] = "[George the Pirate]";
    $@halloween_greetings$[$@n] = "\"Shiver me timbers! What do ye mean?\"";
    $@halloween_trick_notscary$[$@n] = "Well... I do a trick, and then... you give me a treat...";
    $@halloween_react_notscary$[$@n] = "\"Arrrrh, I knew what ye meant, to be sure! I were just kidding with ye, pretending to be a crazy old pirate! Arrrrh!\"";
    $@halloween_trick_scary$[$@n] = "Your eyepatch is on the wrong eye!";
    $@halloween_react_scary$[$@n] = "\"Arrrrh, so it is! Ta for pointing it out, mate - wait, no it isn't! Harhar, what a good trick!\"";
    $@halloween_trick_veryscary$[$@n] = "By the powers, ye're a daft landlubber to be sure, ye barnacle-ridden swab!";
    $@halloween_react_veryscary$[$@n] = "\"Arrrrh, ye scurvy dog! I'm sure my first mate will return with the ship eventually.\"";

    $@n = $@n + 1;

    $@halloween_npc_inac = $@n;
    $@halloween_npc_names$[$@n] = "[Inac]";
    $@halloween_greetings$[$@n] = "\"Oh, yes?\"";
    $@halloween_trick_notscary$[$@n] = "Yes, we monsters moved into the tunnels... and now we're coming out... for revenge!";
    $@halloween_react_notscary$[$@n] = "\"Haha! That's the worse trick I've seen today.\"";
    $@halloween_trick_scary$[$@n] = "One of those monsters you mentioned is crawling out of the well!";
    $@halloween_react_scary$[$@n] = "\"He IS? Where!? Aah! Oh. You were just tricking, right? Hahaha, that was good, I really believed you.\"";
    $@halloween_trick_veryscary$[$@n] = "Yeah, but it's all fossil water. One day it's gonna dry up!";
    $@halloween_react_veryscary$[$@n] = "\"Fossil water? You mean it's turned to STONE? But you can't drink - oh... you were just tricking, right? You WEREN'T? Aaaah!\"";

    $@n = $@n + 1;

    $@halloween_npc_kfahr = $@n;
    $@halloween_npc_names$[$@n] = "[Kfahr the Warrior]";
    $@halloween_greetings$[$@n] = "\"Ah, yes!\" He rubs his hands. \"Trick away, then!\"";
    $@halloween_trick_notscary$[$@n] = "Meh... I'm only trick-or-treating you to avoid listening to your BORING stories.";
    $@halloween_react_notscary$[$@n] = "\"Boring?\" He grins. \"You must be mistaking me for someone else.\"";
    $@halloween_trick_scary$[$@n] = "Did you hear the bad news already? They made up a law prohibiting to serve alcoholic drinks! That means no more beer!";
    $@halloween_react_scary$[$@n] = "\"What? But- but- why do they- oh, you tricked me. I was about to really get worried for a moment.\"";
    $@halloween_trick_veryscary$[$@n] = "Have you heard? Tulimshar was destroyed by a giant Desert Worm!";
    $@halloween_react_veryscary$[$@n] = "\"What!?\" Kfahr stares. \"And no one called for me? This is appalling! But - what? That was your trick? Hm, nice one. You almost had me fooled!\"";

    $@n = $@n + 1;

    $@halloween_npc_nurse = $@n;
    $@halloween_npc_names$[$@n] = "[Nurse]";
    $@halloween_greetings$[$@n] = "\"I don't know why I let the Mayor trick me into this... well, go on then.\"";
    $@halloween_trick_notscary$[$@n] = "I ate too much Hallowe'en candy, now I'm sick!";
    $@halloween_react_notscary$[$@n] = "\"Well, no one's to blame but yourself, you know. Just make sure you don't eat any more.\"";
    $@halloween_trick_scary$[$@n] = "Hurnscald has been struck by plague! You must come and tend to the dying!";
    $@halloween_react_scary$[$@n] = "\"But I don't know how to deal with plague! Oh no! You must get the Doctor! Unless... you were just tricking me! Whew, that's a relief!\"";
    $@halloween_trick_veryscary$[$@n] = "The Doctor asked me to tell you that he doesn't want to see you any more.";
    $@halloween_react_veryscary$[$@n] = "\"What? But we were getting it on so well. I mean, getting on so well! Oh... that was your trick! Dear me, I believed you!\"";

    $@n = $@n + 1;

    $@halloween_npc_pachua = $@n;
    $@halloween_npc_names$[$@n] = "[Chief Pachua]";
    $@halloween_greetings$[$@n] = "\"Ah, the strange custom the Government man told me about.\"";
    $@halloween_trick_notscary$[$@n] = "Look out! A scorpion!";
    $@halloween_react_notscary$[$@n] = "\"Don't mind him, he won't hurt you. Er... so I give you sweets now, or what?\"";
    $@halloween_trick_scary$[$@n] = "Yes, the ritual giving of treats... LOTS of treats... or else!";
    $@halloween_react_scary$[$@n] = "\"Alright, here you go.\"";
    $@halloween_trick_veryscary$[$@n] = "Yes, the ritual giving of treats followed by the sacrifice of the treat-giver...";
    $@halloween_react_veryscary$[$@n] = "\"I do like a good sacrifice, but less so if it's me! I'll give you extra sweets if you forget the sacrifice.\"";

    $@n = $@n + 1;

    $@halloween_npc_yanis = $@n;
    $@halloween_npc_names$[$@n] = "[Yanis]";
    $@halloween_greetings$[$@n] = "\"I am employed by the Tonori Government, make sure you abide the regulations we wrote down for Trick-or-Treaters this year...\"";
    $@halloween_trick_notscary$[$@n] = "Of course I will... not!";
    $@halloween_react_notscary$[$@n] = "\"Hm!\"";
    $@halloween_trick_scary$[$@n] = "Regulations, smegulations. The Tonori Government can go suck a lollipop for all I care!";
    $@halloween_react_scary$[$@n] = "\"!? How dare you - oh, that was your trick! You did have me worried for a moment...\"";
    $@halloween_trick_veryscary$[$@n] = "What regulations?";
    $@halloween_react_veryscary$[$@n] = "\"You mean you haven't even READ - I don't believe - this is ghastly - I - oh... that was your trick... gosh, I believed you for a minute! I thought you really hadn't read them!\"";

    $@n = $@n + 1;

    $@halloween_npc_vincent = $@n;
    $@halloween_npc_names$[$@n] = "[Vincent]";
    $@halloween_greetings$[$@n] = "\"Ooh, okay! Trick away!\"";
    $@halloween_trick_notscary$[$@n] = "Look out! A scorpion!";
    $@halloween_react_notscary$[$@n] = "\"They're everywhere in this desert! Don't worry about them.\"";
    $@halloween_trick_scary$[$@n] = "Hey, that action figure you're building just CAME TO LIFE!";
    $@halloween_react_scary$[$@n] = "\"Really? Cool! Where? What? You were tricking me? WAAAH!\"";
    $@halloween_trick_veryscary$[$@n] = "Wow, this is a neat action figure! Haha, check out its moves! Oops! Never mind, I'm sure it'll glue back on.";
    $@halloween_react_veryscary$[$@n] = "\"My Bug Leg action figure! You broke it!\"";

    $@n = $@n + 1;

    $@halloween_npc_weellos = $@n;
    $@halloween_npc_names$[$@n] = "[Weellos]";
    $@halloween_greetings$[$@n] = "\"Trick me, then!\"";
    $@halloween_trick_notscary$[$@n] = "Look out! A scorpion!";
    $@halloween_react_notscary$[$@n] = "\"Pesky things, I know, but they're everywhere around here...\"";
    $@halloween_trick_scary$[$@n] = "Actually, it's a fake. It was built just ten years ago.";
    $@halloween_react_scary$[$@n] = "\"No! But I've read all the accounts... oh, haha! Very funny!\"";
    $@halloween_trick_veryscary$[$@n] = "They say the earthquake ruined the foundations of this building, and that it's going to fall down.";
    $@halloween_react_veryscary$[$@n] = "\"B-but it's one of the oldest buildings around! And... wait, I just remembered that it was designed to be earthquake-proof. You were tricking me!\"";

    $@n = $@n + 1;

    $@halloween_npc_zack = $@n;
    $@halloween_npc_names$[$@n] = "[Zack]";
    $@halloween_greetings$[$@n] = "\"I thought no one would find me down here, but I'm glad I was wrong! Let's see your trick, then.\"";
    $@halloween_trick_notscary$[$@n] = "You think this is something to do with Hallowe'en? Hands up!";
    $@halloween_react_notscary$[$@n] = "\"Heh... That was ok.\"";
    $@halloween_trick_scary$[$@n] = "And now that I've found you, you die!";
    $@halloween_react_scary$[$@n] = "\"Aah! What did I do? Oh - wait - I see! That was a good one!\"";
    $@halloween_trick_veryscary$[$@n] = "Yes, I have found you. After all these years.";
    $@halloween_react_veryscary$[$@n] = "\"Uncle Henry? But how, I covered my tracks so well! I never told anyone that - wait... that was your trick! You had me worried for a minute!\"";

    $@n = $@n + 1;

    $@halloween_npc_kimarr = $@n;
    $@halloween_npc_names$[$@n] = "[Kimarr]";
    $@halloween_greetings$[$@n] = "\"Many have tried to scare me, all have failed. Try your best, but the frozen wastes contain all manner of horrors.\"";
    $@halloween_trick_notscary$[$@n] = "Look out Yetis!";
    $@halloween_react_notscary$[$@n] = "\"You will have to do better then that.\"";
    $@halloween_trick_scary$[$@n] = "Hrmm Is that your wife calling you?";
    $@halloween_react_scary$[$@n] = "\"What? You haven't se... wait a second. Ok that was good.\"";
    $@halloween_trick_veryscary$[$@n] = "The Kaizeian government declared fluffies an endangered species.";
    $@halloween_react_veryscary$[$@n] = "\"NOooOOOooo!!! The Hunt!!! ... wait a second, you city folk are slick.\"";

    $@n = $@n + 1;

    $@halloween_npc_nikolai = $@n;
    $@halloween_npc_names$[$@n] = "[Nikolai]";
    $@halloween_greetings$[$@n] = "\"Let us see if you are scarier then Kfahr's Fairy Tales.\"";
    $@halloween_trick_notscary$[$@n] = "Your going over their to the store.";
    $@halloween_react_notscary$[$@n] = "\"*You're* *there* Ugh, thats more annoying then scary.\"";
    $@halloween_trick_scary$[$@n] = "Whats White, Blue and slimey? I don't know either but it's right behind you.";
    $@halloween_react_scary$[$@n] = "\"More Slimes, Oh no the books again. O you tricked me, good one.\"";
    $@halloween_trick_veryscary$[$@n] = "I hope you don't mind I used some of this kindling you have on the shelves to start a fire.";
    $@halloween_react_veryscary$[$@n] = "\"AHHHHH!!!! You burned our books!!! *GAH* ... *Eye Twitch*\"";

    $@n = $@n + 1;

    $@halloween_npc_vellamo = $@n;
    $@halloween_npc_names$[$@n] = "[Vellamo]";
    $@halloween_greetings$[$@n] = "\"Ahh yes, more candy related ritual.\"";
    $@halloween_trick_notscary$[$@n] = "Candy? No, I want Parsley.";
    $@halloween_react_notscary$[$@n] = "\"Parsley? is this some kind of monster? I'm not getting this scare at all\"";
    $@halloween_trick_scary$[$@n] = "Chief Warrick says he needs the candy inventory by end of day.";
    $@halloween_react_scary$[$@n] = "\"Ahh, no! I forgot to put a cover sheet on my Candy Production and Storage report.\"";
    $@halloween_trick_veryscary$[$@n] = "I'm sorry, but your doctor says your diabetic.";
    $@halloween_react_veryscary$[$@n] = "\"Darkest day of my life, blacker then the darkest chocolate.\"";

    $@halloween_num_npcs = $@n + 1;

    $@n = 0;

    // Age to go trick-or-treating (1 week before the start)
    if ((gettime(6) >= $@halloween_start_month) || (gettime(6) <= $@halloween_end_month))
        $@halloween_min_age = ((gettime(5) + 7)*86400);
    if (gettime(6) == $@halloween_reward_start_month)
        $@halloween_min_age = ((gettime(5) + 38)*86400);

    $@start_month = $@halloween_start_month;
    $@end_month = $@halloween_end_month;
    $@start_day = 1;
    $@end_day = $@halloween_reward_end_day;
    $@reward_start_month = $@halloween_reward_start_month;
    $@reward_start_day = $@halloween_reward_start_day;

    callfunc "GetEventTime";
    $@halloween_time = $@event_time;

    if($@halloween_time == 0 && $HALLOWEEN_TIME_KEY[5] < gettime(7))
        setarray $HALLOWEEN_TIME_KEY, $HALLOWEEN_TIME_KEY[0],$HALLOWEEN_TIME_KEY[1],$HALLOWEEN_TIME_KEY[2],$HALLOWEEN_TIME_KEY[3],$HALLOWEEN_TIME_KEY[4],gettime(7);
    goto L_Return;

L_Return:
    callfunc "SpawnMunro";
    callfunc "ReplaceTrees";
    end;

L_HalloweenError:
    debugmes "Halloween is Dead Jim.";
    mapexit;
}