📄 thqs_questnpc.txt
字号:
//===== eAthena Script =======================================
//= Treasure Hunter Script
//===== Converted By =========================================
//= Fredzilla
//= Original
//////////////////////////////////////////////////////////////
// Treasure Hunter Quests //
// By: Ezekial //
// for the use on nRO run by Newbe5 //
// revised By Warlock //
//////////////////////////////////////////////////////////////
//===== Version ==============================================
//= 1.2
//===== Compatible With ======================================
//= eAthena 1.0
//===== Description ==========================================
//= Start for Treasure hunter quests
//===== Comments =============================================
//= Event_THQS - Used to check if you have already registered
//= #Treasure_Token - used to keep track of tokens
//= 1.0 - Straight conversionof Aegis NPC file
//= 1.1 Added time penalty to prevent get quests to often [Lupus]
//= 1.2 Fixed not working penalty, added anti-cheat [Lupus]
//============================================================
yuno_in01,112,151,6 script Quest Manager 62,{
mes "[Guy]";
mes "Welcome to the Treasure Hunters Guild "+strcharinfo(0)+".";
next;
if (On_Quest == 0) goto N_NewQuest;
mes "[Guy]";
mes "Look " +strcharinfo(0)+ ", you can only 1 quest at a time, you should finish the quest unless you have given up.";
mes "Giving up will cost you ^FF00002500z^000000.";
next;
menu "No, never would I leave a quest!",-,"Yah I'm pathetic... Pay 2500z",N_PayZeny;
mes "[Guy]";
mes "Good well get back out there.";
close;
N_PayZeny:
if (zeny < 2500) goto N_ZenyFail;
set one_qset, 0;
set two_qset, 0;
set three_qset, 0;
set four_qset, 0;
set five_qset, 0;
set six_qset, 0;
set seven_qset, 0;
set eight_qset, 0;
set nine_qset, 0;
set ten_qset, 0;
set On_Quest, 0;
set Zeny,Zeny-2500;
//add time delay penalty. You can get another quest after 2 - 3 hours. [Lupus]
set #THQ_DELAY, (GetTime(7)*12*31*24+GetTime(6)*31*24+GetTime(5)*24+GetTime(3)+rand(2,3));
mes "[Guy]";
mes "Its sad to see someone give a quest up...";
mes "Shame on you.";
emotion 7;
close;
N_ZenyFail:
mes "[Guy]";
mes "Thats sad you don't even have ^FF00002500z^000000.";
close;
N_NewQuest:
if (Event_THQS == 0) goto N_Signup;
//checking if time penalty is over [Lupus]
if (#THQ_DELAY > (GetTime(7)*12*31*24 + GetTime(6)*31*24 + GetTime(5)*24 + GetTime(3)) ) goto L_NoQuestsForYet;
mes "[Guy]";
mes "Ahh welcome fellow Treasure Hunter.";
mes "You currently have ^FF0000"+#Treasure_Token+"^000000 treasure tokens!!!";
mes "Would you like me to asign you a Quest?";
next;
menu "Yes I would like a Quest Please.",-,"Sorry Guy no time today.",N_NoTime;
mes "[Guy]";
mes "Ok lets see what quest we can give you today.";
mes "The quest names in ^FF0000This Colour^000000 mean that they are more challanging then the rest, but have better rewards.";
next;
set #THQ_DELAY,(GetTime(7)*12*31*24+GetTime(6)*31*24+GetTime(5)*24+GetTime(3) + 1); //you can get another quest after 1 hour [Lupus]
emotion 21;
if(@treasure_job==0) set @treasure_job,rand(1,10); //doesn't allow cheaters to pick any quest they want
if(@treasure_job==2) goto N_JobList2;
if(@treasure_job==3) goto N_JobList3;
if(@treasure_job==4) goto N_JobList4;
if(@treasure_job==5) goto N_JobList5;
if(@treasure_job==6) goto N_JobList6;
if(@treasure_job==7) goto N_JobList7;
if(@treasure_job==8) goto N_JobList8;
if(@treasure_job==9) goto N_JobList9;
if(@treasure_job==10) goto N_JobList10;
goto N_JobList1; //if(@treasure_job==1)
N_NoTime:
mes "[Guy]";
mes "Alright maybe next time "+strcharinfo(0)+".";
emotion 20;
close;
N_Signup:
mes "[Guy]";
mes "I'm afraid you must sign up for the guild before you can go on a quest!";
emotion 17;
close;
L_NoQuestsForYet:
mes "[Guy]";
mes "I'm afraid there aren't any Quests for you yet.";
mes "Call in "+ (#THQ_DELAY - (GetTime(7)*12*31*24+GetTime(6)*31*24+GetTime(5)*24+GetTime(3)) )+" hours later.";
emotion 17;
close;
L_QuestGiven:
set On_Quest,1;
set @treasure_job,0; //next time u get random quest
close;
///////Job list 1///////
N_JobList1:
mes "[Guy]";
mes "Ok you have a couple quests that can be done here.";
next;
menu "Lost Old Man.",-,"Master needs his Bow.",N_MasterBow,"The Hit List.",N_HitList,"^FF0000The Sad Widow.^000000",N_SadWidow;
mes "[Guy]";
mes "^FF0000Lost Old Man^000000";
mes "^FF0000------------^000000";
mes "This is an easy and low payed quest.";
mes " ";
mes "A wife came in asking us to find his husband, she seems to come in alot asking us to find him over and over again.";
next;
mes "[Guy]";
mes "But he always seems to be around the same place so there isn't much looking involved,check the mountains 1 west and 1 north of prontera.";
set one_qset,1;
goto L_QuestGiven;
N_MasterBow:
mes "[Guy]";
mes "^FF0000Master needs his Bow^000000";
mes "^FF0000--------------------^000000";
mes "This is just a package delivery run, no big deal or anything.";
mes " ";
mes "Take this to an archer in the Archer Village outside of Payon.";
getitem 1072,1; //Delivery_Box
set one_qset,2;
goto L_QuestGiven;
N_HitList:
mes "[Guy]";
mes "^FF0000The Hit List^000000";
mes "^FF0000------------^000000";
mes "In this quest you get to see some action.";
mes " ";
mes "There has been a farmer that keeps having all his crops eaten by ^FF0000Thief Bugs, Porings, and Lunitics^000000 here is a lost of what I need you to do. He is nexting East of Prontera.";
next;
mes "[Guy]";
mes "Ok go to the east and bash those little bastards like there is no tommorow. When you are done with that list you have just discard it, but you will NOT get another one!.";
set one_qset,3;
goto L_QuestGiven;
N_SadWidow:
mes "^FF0000The Sad Widow^000000";
mes "^FF0000*************^000000";
mes "This is just another quest with possable well pay.";
mes " ";
mes "There is an old Widow in pontera, she recently lost her husband due to a monster attack.She has requested a Guild member to come talk to her at the Pontera Graveyard.";
set one_qset,4;
goto L_QuestGiven;
///////Job list 2///////
N_JobList2:
mes "[Guy]";
mes "Ok you have a couple quests that can be done here.";
next;
menu "The Strange Letter",-,"Jur for Jeramiah",N_JurJeramiah,"Bee Keepers Hunny",N_BeeHunny,"^FF0000The Wander Man^000000",N_WanderMan;
mes "^FF0000The Strange Letter^000000";
mes "^FF0000------------------^000000";
mes "I do not know much about this quest.";
mes " ";
mes "A strange man came in here yesterday and asked me to deliver this ^FF0000Strange Letter^000000 to some woman in Morroc. Knowing us we do not ask questions so you must take care of this delivery.";
mes "The Woman is in located in Morroc and her name is Erika.";
set two_qset, 1;
getitem 1072,1; //Delivery_Message
goto L_QuestGiven;
N_JurJeramiah:
mes "^FF0000Jur for Jeramiah^000000";
mes "^FF0000----------------^000000";
mes "Standard delivery quest.";
mes " ";
mes "Jeramiah ordered a Special Jur from our weapon shop.Your Job is to deliver it to him in the Assasin Temple.";
getitem 1998,1; //Jeramiah's_Jur
set two_qset,2;
goto L_QuestGiven;
N_BeeHunny:
mes "^FF0000Bee Keepers Hunny^000000";
mes "^FF0000-----------------^000000";
mes "Strange man in the marsh need your help.";
mes " ";
mes "There is a strange man in the forest in ^FF00001 south and 1 west^000000 of Prontera, he need your help with something.";
set two_qset,3;
goto L_QuestGiven;
N_WanderMan:
mes "^FF0000The Wander Man^000000";
mes "^FF0000**************^000000";
mes "There is a woman in Payon that is in desperate for aid.";
mes " ";
mes "There is a woman in Payon named Molly please get to her as soon as possable the letter she sent here sounded like someone was killing her.";
set two_qset,4;
goto L_QuestGiven;
///////Job list 3///////
N_JobList3:
mes "[Guy]";
mes "Ok you have a couple quests that can be done here.";
next;
menu "Damn Pixies!",-,"Package Delivery",N_Delivery1,"Prontera Culvert",N_ProntCulvert,"^FF0000Trouble at the Coal Mine^000000",N_CoalMine;
mes "^FF0000Damn Pixies!^000000";
mes "^FF0000------------^000000";
mes "Have you ever been to Hell?";
mes " ";
mes "A man outside of ^FF0000Ant Hell^000000 has requested your audiance, I suggest you hurry.";
set three_qset,1;
goto L_QuestGiven;
N_Delivery1:
mes "^FF0000Package Delivery^000000";
mes "^FF0000----------------^000000";
mes "Standard drop off quest.";
mes " ";
mes "In this quest you need to deliver a mystery box to someone names ^FF0000Flank at the bridge between Aldebaran and Juno^000000.";
getitem 1082,1; //Delivery_Box_
set three_qset,2;
goto L_QuestGiven;
N_ProntCulvert:
mes "^FF0000Prontera Culvert^000000";
mes "^FF0000----------------^000000";
mes "The bugs,They are everywere!.";
mes " ";
mes "The ^FF0000Prontera Culvert^000000 is out of control!Sign up as a volenteer to clean out some of the culvert.";
next;
mes "I know it seems like there is no stoping them but however many you kill does makes a differance. After you have signed up, inside the Culvert there will be a Knight that will give you a quest.";
set three_qset,3;
goto L_QuestGiven;
N_CoalMine:
mes "^FF0000Trouble at the Coal Mine^000000";
mes "^FF0000************************^000000";
mes "The fun...err...trouble never stops in Rune Midgar.";
mes " ";
mes "Recently there was an acident at the coal mines. There was a huge chasm that released some undead Evil Druids.";
next;
mes "The Evil Druids started to turn all the workers into the undead. We do not know why, but we do not want to find out, contact a man named Rudolfo outside the Coal Mines.";
set three_qset,4;
goto L_QuestGiven;
///////Job list 4///////
N_JobList4:
mes "[Guy]";
mes "Ok you have a couple quests that can be done here.";
next;
menu "Zombie Attack",-,"Mystic Wizard",N_MWizard,"Aww shoot!",N_Shoot,"^FF0000Emperium^000000",N_Emp;
mes "^FF0000Zombie Attack^000000";
mes "^FF0000-------------^000000";
mes "The undead have invaded Payon Cave!";
mes " ";
mes "I remember when Payon Cave used to be a safe place to visit, but now undead Zombies have infested the cave! Please contact ^FF0000Flora outside on Payon Cave^000000 and aid her.";
set four_qset,1;
goto L_QuestGiven;
N_MWizard:
mes "^FF0000Mystic Wizard^000000";
mes "^FF0000-------------^000000";
mes "Proto-type of a Staff must be delivered to Zed the Wizard.";
mes " ";
mes "Zed the Wizard has requested to try out a new un-named proto-type staff. It will be your job to deliver this to him. Zed tend to stay within the general area of Juno.";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -