diff options
author | tr0n93 <tr0n93@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-07-19 13:20:57 +0000 |
---|---|---|
committer | tr0n93 <tr0n93@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-07-19 13:20:57 +0000 |
commit | 0e29645ff50b8447fa610d46b79d3b517502cace (patch) | |
tree | 508fe0971f1c23c213325733d079f9c111d033a0 /npc/custom | |
parent | 4283c42c73604566aa7d89bd5f78251123a8c122 (diff) | |
download | hercules-0e29645ff50b8447fa610d46b79d3b517502cace.tar.gz hercules-0e29645ff50b8447fa610d46b79d3b517502cace.tar.bz2 hercules-0e29645ff50b8447fa610d46b79d3b517502cace.tar.xz hercules-0e29645ff50b8447fa610d46b79d3b517502cace.zip |
- Updated Questboard to 1.4.4 (Added Quest Delay)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16450 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/custom')
-rw-r--r-- | npc/custom/quests/questboard.txt | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/npc/custom/quests/questboard.txt b/npc/custom/quests/questboard.txt index 3bea4b71c..56357601a 100644 --- a/npc/custom/quests/questboard.txt +++ b/npc/custom/quests/questboard.txt @@ -3,7 +3,7 @@ //===== By: ==================================================
//= tr0n
//===== Current Version: =====================================
-//= 1.3.4
+//= 1.4.4
//===== Compatible With: =====================================
//= rAthena SVN
//===== Description: =========================================
@@ -14,6 +14,7 @@ // 1.2.0 Rewrote checkmob and killcounter
// 1.3.1 Added level restriction
// 1.3.4 Added Reward Item Amount
+// 1.4.4 Added Quest delay
//============================================================
prontera,129,215,5 script Questboard 857,{
@@ -42,7 +43,7 @@ prontera,129,215,5 script Questboard 857,{ goto L_checkitems;
}
- if(h_run==1) {
+ if(h_run==1){
mes "[^FF7700Questboard^000000]";
mes "^0000FF"+getd("." + currentquest$ + "_huntingname$")+"^000000";
mes "--------------------------------";
@@ -87,6 +88,14 @@ case 1: set .@collectmenu$, .@collectmenu$ + "[" + getd("." +(.@i+1)+"_collectionmin") + " - " + getd("." +(.@i+1)+"_collectionmax") + "] " + getd("." + (.@i+1) + "_collectionname$");
}
set .@selection,select(.@collectmenu$);
+ if(gettimetick(2) < getd(.@selection + "_collection_delay")){
+ set .@time_left, getd(.@selection + "_collection_delay")-gettimetick(2);
+ mes "[^FF7700Questboard^000000]";
+ if(.@time_left < 60) mes "You have to wait ^0000FF"+.@time_left+" seconds^000000 to do this quest again.";
+ if(.@time_left < 3600) mes "You have to wait ^0000FF"+.@time_left/60+" minutes^000000 to do this quest again.";
+ mes "You have to wait ^0000FF"+.@time_left/60/60+" hours^000000 to do this quest again.";
+ close;
+ }
mes "[^FF7700Questboard^000000]";
mes "^0000FF"+getd("." + .@selection + "_collectionname$")+"^000000";
mes "--------------------------------";
@@ -126,6 +135,14 @@ case 2: set .@huntmenu$, .@huntmenu$ + "[" + getd("." +(.@i+1)+"_huntingmin") + " - " + getd("." +(.@i+1)+"_huntingmax") + "] " + getd("." + (.@i+1) + "_huntingname$");
}
set .@selection,select(.@huntmenu$);
+ if(gettimetick(2) < getd(.@selection + "_hunting_delay")){
+ set .@time_left, getd(.@selection + "_hunting_delay")-gettimetick(2);
+ mes "[^FF7700Questboard^000000]";
+ if(.@time_left < 60) mes "You have to wait ^0000FF"+.@time_left+" seconds^000000 to do this quest again.";
+ if(.@time_left < 3600) mes "You have to wait ^0000FF"+.@time_left/60+" minutes^000000 to do this quest again.";
+ mes "You have to wait ^0000FF"+.@time_left/60/60+" hours^000000 to do this quest again.";
+ close;
+ }
mes "[^FF7700Questboard^000000]";
mes "^0000FF"+getd("." + .@selection + "_huntingname$")+"^000000";
mes "--------------------------------";
@@ -181,8 +198,9 @@ L_checkitems: if(getd("." +currentquest$+"_collectionprize")!=0) getitem(getd("." +currentquest$+"_collectionprize"),getd("." +currentquest$+"_collectionamount"));
set Zeny,Zeny+getd("." +currentquest$+"_collectionzeny");
getexp getd("." +currentquest$+"_collectionexp["+0+"]"),getd("." +currentquest$+"_collectionexp["+1+"]");
+ setd(currentquest$ + "_collection_delay"),gettimetick(2)+.quest_delay;
set currentquest$, "";
- set c_run, 0;
+ set c_run, 0;
close;
L_checkmobs:
@@ -214,6 +232,7 @@ L_checkmobs2: if(getd("." +currentquest$+"_huntingprize")!=0) getitem(getd("." +currentquest$+"_huntingprize"),getd("." +currentquest$+"_huntingamount"));
set Zeny, Zeny+getd("." +currentquest$+"_huntingzeny");
getexp getd("." +currentquest$+"_huntingexp["+0+"]"),getd("." +currentquest$+"_huntingexp["+1+"]");
+ setd(currentquest$ + "_hunting_delay"),gettimetick(2)+.quest_delay;
set currentquest$, "";
set h_run, 0;
close;
@@ -241,6 +260,10 @@ OnInit: set .collection, 1;
set .hunting, 1;
+ //Quest Delay (seconds)
+ //24 hours = 86400 seconds
+ set .quest_delay, 0;
+
//Checks if quests are loaded (prevents out of index)
if(.questsloaded==1) end;
set .questsloaded, 1;
@@ -248,6 +271,7 @@ OnInit: //Add Collection Quests here
//AddCollection("<Quest Name>",<Min Lvl>,<Max Lvl>,<Reward|Item ID>,<Reward|Item Amount>,<Zeny Reward>,<Base EXP>,<Job EXP>,<Item ID>,<Item Amount>,...);
+
//Add Hunting Quests here
//AddHunting("<Quest Name>",<Min Lvl>,<Max Lvl>,<Reward|Item ID>,<Reward|Item Amount>,<Zeny Reward>,<Base EXP>,<Job EXP>,<Monster ID>,<Monster Amount>,...);
|