summaryrefslogtreecommitdiff
path: root/npc/custom/quests/hunting_missions.txt
diff options
context:
space:
mode:
authorj-tkay <joseph.tk.ea@gmail.com>2013-07-04 05:15:48 +0800
committerj-tkay <joseph.tk.ea@gmail.com>2013-07-04 05:15:48 +0800
commit28a9fec0916db3d92629ae6e6cd62b5777b09e73 (patch)
tree4babff20dd0a68025a489f410ebf96b8c1cc09af /npc/custom/quests/hunting_missions.txt
parent8489dbf3b58d3bff70b27ea42884a14d5229430a (diff)
downloadhercules-28a9fec0916db3d92629ae6e6cd62b5777b09e73.tar.gz
hercules-28a9fec0916db3d92629ae6e6cd62b5777b09e73.tar.bz2
hercules-28a9fec0916db3d92629ae6e6cd62b5777b09e73.tar.xz
hercules-28a9fec0916db3d92629ae6e6cd62b5777b09e73.zip
Merged/Updated/Added scripts from rAthena.
- Fixed Bug #7400 Signed-off-by: j-tkay <joseph.tk.ea@gmail.com>
Diffstat (limited to 'npc/custom/quests/hunting_missions.txt')
-rw-r--r--npc/custom/quests/hunting_missions.txt30
1 files changed, 26 insertions, 4 deletions
diff --git a/npc/custom/quests/hunting_missions.txt b/npc/custom/quests/hunting_missions.txt
index fd07b8de6..8ce85bc7a 100644
--- a/npc/custom/quests/hunting_missions.txt
+++ b/npc/custom/quests/hunting_missions.txt
@@ -3,12 +3,19 @@
//===== By: ==================================================
//= Euphy
//===== Current Version: =====================================
-//= 1.3
+//= 1.3a
//===== Compatible With: =====================================
//= Hercules
//===== Description: =========================================
//= Random hunting missions.
//= Rewards are based on quest difficulty.
+//===== Additional Comments: =================================
+//= 1.0 Initial script.
+//= 1.1 Small improvements and fixes.
+//= 1.2 Added party support and replaced blacklists with an
+//= SQL query, both thanks to AnnieRuru.
+//= 1.3 Re-added a blacklist adapted for the SQL query.
+//= 1.3a Added mission reset options.
//============================================================
prontera,152,187,6 script Hunting Missions 951,{
@@ -72,10 +79,24 @@ function Chk; function Cm;
mes "[Hunting Missions]";
mes "Do you really want to";
mes "abandon your mission?";
- if (.Delay) mes "Your delay time will not be reset.";
+ if (.Reset < 0 && .Delay)
+ mes "Your delay time will not be reset.";
+ else if (.Reset > 0)
+ mes "It will cost "+Cm(.Reset)+" Zeny.";
next;
switch(select(" ~ Abandon...: ~ ^777777Cancel^000000")) {
case 1:
+ if (.Reset > 0) {
+ if (Zeny < .Reset) {
+ mes "[Hunting Missions]";
+ mes "You don't have enough";
+ mes "Zeny to drop this mission.";
+ emotion e_sry;
+ close;
+ }
+ set Zeny, Zeny-.Reset;
+ emotion e_cash;
+ }
mes "[Hunting Missions]";
mes "Alright, I've dropped";
mes "your current mission.";
@@ -85,7 +106,7 @@ function Chk; function Cm;
setd "Mission"+.@i+"_",0;
}
set #Mission_Count,0;
- if (.Delay) set #Mission_Delay, gettimetick(2)+(.Delay*3600);
+ if (.Reset < 0 && .Delay) set #Mission_Delay, gettimetick(2)+(.Delay*3600);
close;
case 2:
mes "[Hunting Missions]";
@@ -262,6 +283,7 @@ OnInit:
set .Delay,12; // Quest delay, in hours (0 to disable).
set .Quests,4; // Number of subquests per mission (increases rewards).
set .Party,3; // Party options: 0 (exclude party kills), 1 (include party kills), 2 (same map only), 3 (screen area only)
+ set .Reset,-1; // Reset options: -1 (abandoning mission sets delay time), 0 (no delay time), [Zeny] (cost to abandon mission, no delay time)
setarray .Count[0], // Min and max monsters per subquest (increases rewards).
40,70;
setarray .Modifier[0], // Multipliers for Base Exp, Job Exp, and Zeny rewards.
@@ -280,4 +302,4 @@ OnInit:
npcshopadditem "mission_shop", .Shop[.@i], .Shop[.@i+1];
end;
}
-- shop mission_shop -1,512:-1 \ No newline at end of file
+- shop mission_shop -1,512:-1