//================= Hercules Script ======================================= //= _ _ _ //= | | | | | | //= | |_| | ___ _ __ ___ _ _| | ___ ___ //= | _ |/ _ \ '__/ __| | | | |/ _ \/ __| //= | | | | __/ | | (__| |_| | | __/\__ \ //= \_| |_/\___|_| \___|\__,_|_|\___||___/ //================= License =============================================== //= This file is part of Hercules. //= http://herc.ws - http://github.com/HerculesWS/Hercules //= //= Copyright (C) 2012-2015 Hercules Dev Team //= Copyright (C) Lemongrass //= Copyright (C) Joseph //= Copyright (C) Euphy //= Copyright (C) Muad_Dib //= Copyright (C) Gennosuke Kouga //= //= Hercules is free software: you can redistribute it and/or modify //= it under the terms of the GNU General Public License as published by //= the Free Software Foundation, either version 3 of the License, or //= (at your option) any later version. //= //= This program is distributed in the hope that it will be useful, //= but WITHOUT ANY WARRANTY; without even the implied warranty of //= MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //= GNU General Public License for more details. //= //= You should have received a copy of the GNU General Public License //= along with this program. If not, see . //========================================================================= //= Dewata Town //================= Description =========================================== //= Dewata Town Script //================= Current Version ======================================= //= 1.3 //========================================================================= //== Dewata Transportation ================================= alberta,212,202,4 script Dewata Sailor#alberta 4_M_DEWMAN,{ mes "[Dewata Sailor]"; mes "Do you want to visit ^8B4513Dewata Island^000000?"; mes "With it's dazzling waves and charming views it's a great place to relax."; mes "The transit fee is 10,000 Zeny."; next; switch(select("Yes!", "No.")) { case 1: if (Zeny >= 10000) { mes "[Dewata Sailor]"; mes "^8B4513Dewata^000000 is a beautiful and peaceful island country."; mes "Have a nice trip~"; close2; Zeny -= 10000; warp "dewata",232,53; end; } else { mes "[Dewata Sailor]"; mes "You don't have the dough, kid."; mes "Come back when you have a bigger wallet."; close; } case 2: mes "[Dewata Sailor]"; mes "Let me know"; mes "when you're ready to travel~"; close; } } dewata,229,49,6 script Alberta Sailor#dewata 4_M_DEWMAN,{ mes "[Alberta Sailor]"; mes "Do you want to go back to Alberta?"; next; switch(select("Yes.", "No.")) { case 1: mes "[Alberta Sailor]"; mes "I hope you had a lot of fun on"; mes "your trip to ^8B4513Dewata^000000 Island."; mes "Please come again!"; close2; warp "alberta",210,198; end; case 2: mes "[Alberta Sailor]"; mes "Have some more fun before you go."; mes "^8B4513Dewata^000000 Island still has more to offer."; close; } } //== Generic Dewata NPCs =================================== dewata,221,237,5 script Young Man#dew-1 4_M_DEWMAN,{ mes "[Fruit Fancier]"; mes "What's wrong with your faaaaaace? You must really be clueless!"; next; mes "[Fruit Fancier]"; mes "Let me drop some knowledge on ya."; next; mes "[Fruit Fancier]"; mes "I may be a youngling, but no one knows more than I do about ^777700Palm fruit^000000. All right! What do you want to know?"; next; switch(select("About the shell...", "About the pulp...", "About the palm kernel...", "No thanks.")) { case 1: mes "[Fruit Fancier]"; mes "So you want to know about Palm fruit's pulp? Let me explain."; next; mes "[Fruit Fancier]"; mes "Normally Palm fruit shell is used for making oil. Palm Oil is a useful ingredient for many dishes."; next; mes "[Fruit Fancier]"; if (dew_drink > 0) mes "Hmm... Have you met Memo already? Then it should be easy for you to understand."; else mes "If you want to know how to use Palm Oil, go find Memo on the north side of Dewata island. Everyday, he makes traditional drinks with Palm Oil."; next; mes "[Fruit Fancier]"; mes "Anyways, we refer to the oil that comes from the Palm fruit as Palm oil or Coconut oil, which is well known for it's quality."; next; mes "[Fruit Fancier]"; mes "The leftovers from oil production gets dried, and used for fuel in cooking or heating."; next; mes "[Fruit Fancier]"; mes "It burns well and has a good smell, can't get better than that."; next; mes "[Fruit Fancier]"; mes "Ok!! That is all about the pulp, it takes too long to explain all those useful effects for Palm fruit shells."; next; mes "[Fruit Fancier]"; mes "It's not like this is the extent of my knowledge. Don't get me wrong!"; close; case 2: mes "[Fruit Fancier]"; mes "So you want to know about the Palm interior? Let me explain."; next; mes "[Fruit Fancier]"; mes "Palm tree fruit has 2 layers of pulp. Outside is very rough, and the inside is smooth..."; next; mes "[Fruit Fancier]"; mes "Hmm... Yes! the pulp of Palm tree fruit is a little bit harder than a walnut shell, must be the water it contains inside."; next; mes "[Fruit Fancier]"; mes "Inside of the shell, there's about 300cc water which is useful in quenching people's thirst since Dewata island has very hot weather."; next; mes "[Fruit Fancier]"; mes "And it's not like we just throw it away once we drink the water inside!!"; next; mes "[Fruit Fancier]"; mes "We also can make a quality canteen out of it! Like I said, it has really thick outer shell enough and can act as a water bottle."; next; mes "[Fruit Fancier]"; mes "It is also great to make charcoal. Charcoal made out of palm fruit is well known for long lasting and quality fire,"; next; mes "[Fruit Fancier]"; mes "People love to cook seafoods and chicken with Palm fruit charcoal.."; next; mes "[Fruit Fancier]"; mes "It has the extra bonus of being burning with a pleasant palm smell"; next; mes "[Fruit Fancier]"; mes "Ok!! That is all for pulp information, it takes too long to explain all those useful effects."; next; mes "[Fruit Fancier]"; mes "It's not like this is all I know. Don't get me wrong!"; close; case 3: mes "[Fruit Fancier]"; mes "So, you want to know about tender kernel inside? Let me explain for you"; next; mes "[Fruit Fancier]"; mes "The kernel inside of the hard pulp is used as a natural digestive."; next; mes "[Fruit Fancier]"; mes "Not much to say about the kernel inside.."; next; mes "[Fruit Fancier]"; mes "but we do make sure to use every part of the palm fruit."; next; mes "[Fruit Fancier]"; mes "Wouldn't you agree?"; close; case 4: mes "[Fruit Fancier]"; mes "Arrgg! You have no interest in the world!"; close; } } dewata,114,243,6 script Lazy Young Man#dew 4_M_DEWMAN,1,1,{ if (checkweight(Knife,1) == 0 || MaxWeight - Weight < 500) { mes "[Lazy Young Man]"; mes "Why are you carrying so much? Isn't it heavy?"; close; } if (countitem(Coco_Juice)) { mes "[Lazy Young Man]"; mes "Wewt~!! Isn't that Palm Juice?"; mes "Can you give me that? I just woke"; mes "up, and my throat is parched!"; next; switch(select("Give", "Do not give")) { case 1: mes "[Lazy Young Man]"; mes "Really? For me?? I'll give you this in return... Thanks... Hehe~"; delitem Coco_Juice,1; getrandgroupitem(IG_GiftBox),1; close; case 2: mes "[Lazy Young Man]"; mes "So be it~ Ok..."; close; } } mes "[Lazy Young Man]"; mes "Ah~ Thristy~ Anyone have some Palm"; mes "juice for me?~"; close; OnTouch: if (countitem(Coco_Juice) == 0) { mes "[Lazy Young Man]"; mes "Arrgg~ I'm thirsty~~ so thirsty~~"; mes "Give me Palm juice... Palm Juuiice~~"; emotion e_an; next; emotion e_an; next; emotion e_an; next; emotion e_an; close; } end; } dewata,159,81,4 script Tourist#dew-1 4_M_SITDOWN,{ mes "[Nasolo]"; mes "Wow~ Pure ocean, a warm beach..."; mes "Perfect for a date with a girlfriend..."; next; mes "[Nasolo]"; mes "If only I had one..."; emotion e_sob; next; mes "[Nasolo]"; mes "I wonder when my princess will come..."; emotion e_sigh; close; } dewata,146,109,5 script Restauranteur#dew 4_COOK,{ if (checkweight(Nasi_Goreng,1) == 0 || checkweight(Satay,1) == 0 || MaxWeight - Weight < 500) { mes "[Restauranteur]"; mes "You came to taste my dish? It is always good to eat with an empty stomach."; close; } mes "[Restauranteur]"; mes "Welcome to the island of Dewata."; mes "I hope you behave like a noble"; mes "traveler, unlike some of these"; mes "teenage punks..."; next; switch(select("About Dewata dishes", "Today's menu?", "I'm okay.")) { case 1: mes "[Restauranteur]"; mes "Need info about our foods? Well... I don't have much to talk about, but feel free to listen if you want."; next; mes "[Restauranteur]"; mes "So much to cover, let me begin."; next; mes "[Restauranteur]"; mes "First, Dewata dishes have special names based on each cooking recipe,"; next; mes "[Restauranteur]"; mes "If dish name has 'Goreng' in it, then it is either stir or deep fried food."; next; mes "[Restauranteur]"; mes "If it is a type of 'Bakar', then it is a grilled food."; next; mes "[Restauranteur]"; mes "And if it's 'Satay', then you are eating a skewered dish."; next; mes "[Restauranteur]"; mes "Second, we have dishes named after basic ingredients,"; next; mes "[Restauranteur]"; mes "In Dewata island, we call rice as Nasi, noodle as Mie, bread as Roti, chicken as Ayam, fish as Ikan, and corn as Jagung."; next; mes "[Restauranteur]"; mes "So, if rice is fried we call it 'Nasi Goreng', and fried noodle is 'Mie Goreng'."; next; mes "[Restauranteur]"; mes "Well... This is enough to enjoy our foods in Dewata!! If you are hungry, we have our special set menu for only ^0000FF5000^000000 Zeny."; close; case 2: mes "[Restauranteur]"; mes "We have 2 items 'Nasi Goreng' and 'Satay'. Which one do you want?"; next; switch(select("Nasi Goreng", "Satay")) { case 1: mes "[Restauranteur]"; mes "This is Nasi Goreng fried with my special sauce plus egg fry on the top. It only costs ^0000FF5000^000000 Zeny."; .@food = 11532; break; case 2: mes "[Restauranteur]"; mes "This is the Satay, a slice of meat skewered and grilled over Palm fruit charcoal. It costs only ^0000FF5000^000000 Zeny."; .@food = 11533; break; } next; switch(select("Taste", "Walk away")) { case 1: if (Zeny < 5000) { mes "[Restauranteur]"; mes "Where's the money kid? Sheesh! No free food here! Ok?"; close; } mes "[Restauranteur]"; mes "Here's your "+getitemname(.@food)+", you won't regret it!"; Zeny -= 5000; getitem .@food,1; close; case 2: mes "[Restauranteur]"; mes "It's a shame you won't taste this great dish..."; close; } case 3: mes "[Restauranteur]"; mes "Are you serious? This is not even funny."; close; } } dewata,147,107,6 script Gourmet#dew 4_M_03,{ mes "[Gourmet]"; mes "Oh... it's like a party in my"; mes "mouth... and everyone's invited!"; emotion e_sob; next; mes "[Gourmet]"; mes "Master~ One more please~"; emotion e_no1; emotion e_ok,0,"Restauranteur#dew"; next; mes "[Gourmet]"; mes "You must try this! The Food here is succulent~"; close; } dewata,154,107,4 script Sightseer#dew 4_M_04,{ mes "[Tourist]"; mes "Wow..."; mes "How many has he already eaten?"; emotion e_hmm; next; mes "[Tourist]"; mes "He must be big eater, not the gourmet..."; next; mes "[Tourist]"; mes "Have you been to Prontera yet? I think I've seen him somewhere.."; close; } dewata,95,203,6 script Travel Guide#dew 4_M_DEWMAN,{ mes "[Guide]"; mes "This temple behind me is called Borobudur."; mes "Borobudur temple was built in the 9th century"; mes "to venerate the Great Buddha, an ancient religious figure."; emotion e_swt2; next; mes "[Guide]"; mes "This temple is made with 6 square platforms and 3 round platforms, and 2672 hand carved relief panels as well as 504 statue of various Buddhas."; emotion e_swt2; next; mes "[Guide]"; mes "The central stupa, or shrine is located at the center of high platform, which is surrounded by 72 more statues."; emotion e_swt2; next; mes "[Guide]"; mes "Even in modern times Borobudur temple is a pilgimage site for many monks worshiping the Buddha. It's also a major tourist attraction, as you can imagine."; emotion e_swt2; next; mes "[Guide]"; mes "That is all I have on Borobudur temple, are there any questions?"; mes "If not, we can move to the next spot."; close; } dewata,97,207,4 script Tourist#dew1 1_F_SIGNZISK,{ mes "[Tourist]"; mes "Oh, dag-nabbit... I've gone and"; mes "picked the wrong tour guide..."; next; mes "[Tourist]"; mes "This hombre is a real snooze..."; mes "Why make it longer.."; emotion e_spin; next; mes "[Tourist]"; mes "I need to change my travel agent..."; emotion e_sigh; close; } dewata,100,206,4 script Tourist#dew2 1_M_ORIENT01,{ mes "[Tourist]"; mes "Hey, let's go there! Hurry up,"; mes "while the tour guide is explaining~"; next; mes "[Tourist]"; mes "Come on... It doesn't sound like"; mes "he's going to stop talking anytime soon."; close; } dewata,101,206,4 script Tourist#dew3 4_F_01,{ mes "[Tourist]"; mes "Aren't we going to get lost without the guide?"; next; mes "[Tourist]"; mes "We got lost already last time..."; close; } dewata,99,203,4 script Tourist#dew4 4_M_SAGE_C,{ mes "[Tourist]"; mes "Oh~ This is very interesting. A"; mes "temple that worships the Buddha..."; emotion e_ok; next; mes "[Tourist]"; mes "But I don't really get all the"; mes "symbology here."; next; mes "[Tourist]"; mes "So beautiful... I wonder who built"; mes "this place?"; close; } dewata,67,186,0 script Monk#dew1 4_M_BUDDHIST,{ mes "[Monk]"; mes "I am a monk, content to spend my days in religious study."; next; mes "[Monk]"; mes "I've just returned from a pilgrimage to Borobudur temple with my fellow monks..."; next; mes "[Monk]"; mes "Borobudur temple has many pilgrims visiting, since it is one of few temples left for worshipping the Great Buddha."; close; } dewata,65,188,0 script Monk#dew2 4_M_BUDDHIST,{ mes "[Monk]"; mes "Borobudur temple is one of few temples left for worshiping the Great Buddha."; next; mes "[Monk]"; mes "I don't understand why there are only few temples left that follow our ways..."; close; } dewata,63,190,0 script Monk#dew3 4_M_BUDDHIST,{ mes "[Monk]"; mes "Are you a Tourist? You can make an offering and a wish to one of the shrines."; next; mes "[Monk]"; mes "Our great Buddha may grant your wish.."; close; } dewata,62,192,0 script Monk#dew4 4_M_BUDDHIST,{ mes "[Monk]"; mes "Our great Buddha is the king of souls and the leader of all good Gods."; next; mes "[Monk]"; mes "The Dewata tribes believes in Buddha, the strange thing is they all describe Buddha as different creatures."; next; mes "[Monk]"; mes "I'm not really sure about the reason for that. Maybe because there are many different tribes in Dewata with different characteristics."; close; } dewata,89,191,6 script Small Shrine#dew1 CLEAR_NPC,{ mes "There is a small shrine here. There are many people making wishes."; next; switch(select("Make a donation.", "Make a wish.", "Walk away.")) { case 1: mes "Donation case says:"; mes "^FF00001,000 ~ 100,000 Zeny^000000"; mes "How much do you want to donate?"; next; input .@input,0,100000; if (.@input < 1000) { mes "- Cancelled. -"; close; } else if (.@input <= 50000) .@good_luck = rand(1,10000); else .@good_luck = rand(1,5000); if (.@input > Zeny) { mes "- Not enough Zeny. -"; close; } mes "What is your wish?"; next; input(.@wish$); setarray .@wishes$[0], "Power","Strength", //1 "Faster","Speed","Quickness","Agility", //2 "Skillful Hands","Dex", //4 "Healthy","Fitness","Vital", //8 "Wisdom","Brain","Study","Int","1st place", //16 "Luck","Wealth","Items","Get Item","Goods","Lotto", //32 "Full Level","Level","LV", //64 "Lover","Girl friend","Boy friend"; //128 setarray .@index[0], 1,1,2,2,2,2,4,4,8,8,8,16,16,16,16,16,32,32,32,32,32,32,64,64,64,128,128,128; if (.@good_luck == 7 || .@good_luck == 77 || .@good_luck == 777 || .@good_luck == 7777) .@bonus = 1; for(.@i = 0; .@i