summaryrefslogtreecommitdiff
path: root/world
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2015-05-21 22:15:25 -0400
committermekolat <mekolat@users.noreply.github.com>2015-05-21 22:15:25 -0400
commit1dd5bf0c78991432af34f645b8274bef9630ec24 (patch)
tree62d1fb0192a44b7914d8f3d87cb95da99c1d57bc /world
parent3e7c8764379ea25a3fb49ded534115410c539e87 (diff)
downloadserverdata-1dd5bf0c78991432af34f645b8274bef9630ec24.tar.gz
serverdata-1dd5bf0c78991432af34f645b8274bef9630ec24.tar.bz2
serverdata-1dd5bf0c78991432af34f645b8274bef9630ec24.tar.xz
serverdata-1dd5bf0c78991432af34f645b8274bef9630ec24.zip
fix brodomir timer
Diffstat (limited to 'world')
-rw-r--r--world/map/npc/009-6/brodomir.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/world/map/npc/009-6/brodomir.txt b/world/map/npc/009-6/brodomir.txt
index 63bce759..02704447 100644
--- a/world/map/npc/009-6/brodomir.txt
+++ b/world/map/npc/009-6/brodomir.txt
@@ -26,7 +26,7 @@
if ($@BRODOMIR_PVP_STATUS == 2)
goto L_Alreadystarted;
- if ($@BRODOMIR_PVP_STATUS == 1)
+ if ($@BRODOMIR_PVP_STATUS == 1 && $@BRODOMIR_START_TIME > gettimetick(2))
goto L_Wait;
mes "[Brodomir]";
mes "\"Hi Warrior.\"";
@@ -132,6 +132,7 @@ L_Go:
set $@BRODOMIR_ITEM_AMOUNT, @brodomir_item_amount;
set $@BRODOMIR_MONEY, @brodomir_money;
set $@brodomir_delay_seconds, 600;
+ set $@BRODOMIR_START_TIME, gettimetick(2) + $@brodomir_delay_seconds;
set $@BRODOMIR_PVP_STATUS, 1;
announce "Brodomir : In "+$@brodomir_delay_seconds/60+" minutes, I will start a PvP tournament, if at least 3 fighters are present. Make your way in Hurnscald Underground Caves!", 0;
if ($@BRODOMIR_ITEM_AMOUNT > 0)
@@ -140,13 +141,12 @@ L_Go:
announce "Brodomir : The winner will receive " + $@BRODOMIR_MONEY + "GP and additionally 150GP per fighter.", 0;
mes "[Brodomir]";
mes "\"In "+$@brodomir_delay_seconds/60+" minutes I will bring you all to the PvP cave. If there are less than 3 players here the event will not start and your money will be lost.\"";
- set $@BRODOMIR_START_TIME, gettimetick(2) + $@brodomir_delay_seconds;
set $@brodomir_delay_seconds, 0;
initnpctimer;
goto L_Close;
L_Wait:
- set @ms, ($@BRODOMIR_START_TIME - gettimetick(2)) * 1000;
+ set @seconds, $@BRODOMIR_START_TIME - gettimetick(2);
callfunc "HumanTime";
mes "[Brodomir]";
mes "\"Just a little longer. I will bring you there in " + @time$ + ".\"";