From cf18ce071c79ae37e14ea38943e0b1d88da70a7b Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 9 Apr 2021 13:33:57 -0300 Subject: Override --- npc/019-1/_import.txt | 7 ++++ npc/019-1/_mobs.txt | 6 +++ npc/019-1/_warps.txt | 6 +++ npc/019-1/mapflags.txt | 1 + npc/019-1/santa_helper.txt | 92 ++++++++++++++++++++++++++++++++++++++++++++++ npc/019-1/snowman.txt | 84 ++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 196 insertions(+) create mode 100644 npc/019-1/_import.txt create mode 100644 npc/019-1/_mobs.txt create mode 100644 npc/019-1/_warps.txt create mode 100755 npc/019-1/mapflags.txt create mode 100755 npc/019-1/santa_helper.txt create mode 100755 npc/019-1/snowman.txt (limited to 'npc/019-1') diff --git a/npc/019-1/_import.txt b/npc/019-1/_import.txt new file mode 100644 index 00000000..b6018c04 --- /dev/null +++ b/npc/019-1/_import.txt @@ -0,0 +1,7 @@ +// Map 019-1: snow Field +// This file is generated automatically. All manually added changes will be removed when running the Converter. +"npc/019-1/_mobs.txt", +"npc/019-1/_warps.txt", +"npc/019-1/mapflags.txt", +"npc/019-1/santa_helper.txt", +"npc/019-1/snowman.txt", diff --git a/npc/019-1/_mobs.txt b/npc/019-1/_mobs.txt new file mode 100644 index 00000000..77b1dc7e --- /dev/null +++ b/npc/019-1/_mobs.txt @@ -0,0 +1,6 @@ +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 019-1: snow Field mobs +019-1,0,0,0,0 monster Cuco 1020,50,100000,30000 +019-1,0,0,0,0 monster Penguin 1094,4,100000,30000 +019-1,0,0,0,0 monster Reaper 1095,5,100000,30000 +019-1,0,0,0,0 monster Demonic Spirit 1112,4,100000,30000 diff --git a/npc/019-1/_warps.txt b/npc/019-1/_warps.txt new file mode 100644 index 00000000..944982d1 --- /dev/null +++ b/npc/019-1/_warps.txt @@ -0,0 +1,6 @@ +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 019-1: snow Field warps +019-1,70,21,0 warp #019-1_70_21 3,0,020-1,70,127 +019-1,96,40,0 warp #019-1_96_40 0,0,019-3,98,30 +019-1,38,75,0 warp #019-1_38_75 0,0,019-3,39,101 +019-1,21,70,0 warp #019-1_21_70 0,1,033-1,118,69 diff --git a/npc/019-1/mapflags.txt b/npc/019-1/mapflags.txt new file mode 100755 index 00000000..e6de9fb1 --- /dev/null +++ b/npc/019-1/mapflags.txt @@ -0,0 +1 @@ +//019-1 mapflag resave 020-1,52,118 diff --git a/npc/019-1/santa_helper.txt b/npc/019-1/santa_helper.txt new file mode 100755 index 00000000..4b120682 --- /dev/null +++ b/npc/019-1/santa_helper.txt @@ -0,0 +1,92 @@ + +019-1,74,75,0 script Santa's Helper NPC105,{ + callfunc "XmasStates"; + + if (($@xmas_time) && (@xmas_sh_done)) goto L_Done; + if ($@xmas_time) goto L_Quest; + + mes "[Santa's Helper]"; + mes "\"Ah, isn't it peaceful here? Around Christmas time we always have problems with some slimy monsters."; + mes "They steal the presents boxes. I think they feel attracted by the spiritual power of the Christmas presents.\""; + next; + mes "He smiles happily."; + mes "[Santa's Helper]"; + mes "\"But at this time of the year everything's calm and relaxing.\""; + goto L_close; + +L_Quest: + mes "[Santa's Helper]"; + mes "\"Hello my young friend."; + mes "Would you like to help me?\""; + next; + mes "[Santa's Helper]"; + mes "\"Those monsters stole Santa's presents."; + mes "If you help me, I'll give you something very nice\""; + next; + goto L_Menu; + +L_Menu: + menu + "I have some present boxes", L_Yes, + "Hmm, see you later", L_No, + "What you need exactly?", L_Help; + +L_Yes: + mes "[Santa's Helper]"; + mes "\"Hmm, let me check what you have.\""; + next; + if (countitem("PurplePresentBox") < $@xmas_sh_purple_amount) + goto L_NoItem; + if (countitem("BluePresentBox") < $@xmas_sh_blue_amount) + goto L_NoItem; + if (countitem("GreenPresentBox") < $@xmas_sh_green_amount) + goto L_NoItem; + getinventorylist; + @SantasHelper_Reward$ = $@SantasHelper_Annual_Reward$[ rand(getarraysize($@SantasHelper_Annual_Reward$)) ]; + if ((@inventorylist_count > 99) || (checkweight(@SantasHelper_Reward$, 1) == 0)) + goto L_TooMany; + mes "[Santa's Helper]"; + mes "\"Great! Here is something for you\""; + delitem "PurplePresentBox", $@xmas_sh_purple_amount; + delitem "BluePresentBox", $@xmas_sh_blue_amount; + delitem "GreenPresentBox", $@xmas_sh_green_amount; + getitem @SantasHelper_Reward$, 1; + @SantasHelper_Reward$ = ""; + XMASTIME = XMASTIME | $@xmas_sh_bit; + @karma_bonus = $@xmas_karma_bonus; + callfunc "XmasNice"; + goto L_close; + +L_Help: + mes "[Santa's Helper]"; + mes "\"I need:"; + mes $@xmas_sh_purple_amount + " Purple Present Boxes"; + mes $@xmas_sh_blue_amount + " Blue Present Boxes"; + mes $@xmas_sh_green_amount + " Green Present Boxes\""; + next; + goto L_Menu; + +L_No: + mes "[Santa's Helper]"; + mes "\"Enjoy your holidays and I wish you a happy Christmas!\""; + goto L_close; + +L_NoItem: + mes "[Santa's Helper]"; + mes "\"You dont seem to have enough presents.\""; + goto L_close; + +L_Done: + mes "[Santa's Helper]"; + mes "\"All the children got their Christmas presents."; + mes "Thank you for your help.\""; + goto L_close; + +L_TooMany: + mes "[Santa's Helper]"; + mes "\"It doesn't look like you have room for this. Come back later.\""; + goto L_close; + +L_close: + close; +} diff --git a/npc/019-1/snowman.txt b/npc/019-1/snowman.txt new file mode 100755 index 00000000..8fbdf683 --- /dev/null +++ b/npc/019-1/snowman.txt @@ -0,0 +1,84 @@ + +019-1,77,44,0 script Snowman NPC129,{ + if (FLAGS & FLAG_SNOWMAN) goto L_Done; + if (gettime(6) == 12 || gettime(6) == 1 || gettime(6) == 2) goto L_Quest; + + mes "A beautiful snowman. It looks almost alive."; + mes "Maybe the magic of Christmas time will breath life into it?"; + goto L_close; + +L_Quest: + @candy_amount = 15; + @chocolate_amount = 10; + @cactus_amount = 5; + + mes "[Snowman]"; + mes "\"Hello there."; + mes "Would you like a Christmas hat?\""; + next; + goto L_Menu; + +L_Menu: + menu + "Yes", L_Sure, + "No", L_Next, + "What do you need?", L_Need; + +L_Next: + mes "[Snowman]"; + mes "\"Well, thats too bad, but make sure to have the holiday spirit!\""; + goto L_close; + +L_Sure: + mes "[Snowman]"; + mes "\"Hmm, let me see what you have.\""; + next; + if(countitem("Candy") < @candy_amount) + goto L_NoItem; + if(countitem("ChocolateBar") < @chocolate_amount) + goto L_NoItem; + if(countitem("CactusPotion") < @cactus_amount) + goto L_NoItem; + getinventorylist; + if (@inventorylist_count > 99) + goto L_TooMany; + delitem "Candy", @candy_amount; + delitem "ChocolateBar", @chocolate_amount; + delitem "CactusPotion", @cactus_amount; + mes "[Snowman]"; + mes "\"Here you go, enjoy your new hat!\""; + getitem "SantaHat", 1; + FLAGS = FLAGS | FLAG_SNOWMAN; + goto L_close; + +L_Need: + mes "[Snowman]"; + mes "\"For this special hat, I need a pint of magic and a little help."; + mes "Just kidding. I would like to get some food:"; + mes @candy_amount + " pieces of Candy"; + mes @chocolate_amount + " Chocolate Bars"; + mes @cactus_amount + " Cactus Potions\""; + next; + goto L_Menu; + +L_NoItem: + mes "[Snowman]"; + mes "\"Well, I am interested in some food and you don't have enought to get a hat.\""; + goto L_close; + +L_Done: + mes "[Snowman]"; + mes "\"Thank you for your help!\""; + goto L_close; + +L_TooMany: + mes "[Snowman]"; + mes "\"It doesn't look like you have room for this. Come back later.\""; + goto L_close; + +L_close: + @candy_amount = 0; + @chocolate_amount = 0; + @cactus_amount = 0; + close; +} -- cgit v1.2.3-60-g2f50