summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2020-06-09 06:59:48 +0300
committerAndrei Karas <akaras@inbox.ru>2020-06-16 05:10:55 +0300
commit318a9cd7c7d0ae20d4bfa0d6226380f4cf2f6cef (patch)
treeff1de50fb7baca931851be5d90bfbb9ff5479819 /npc
parent26b2f536b9e28744d993abad6785b19a6c3bbe64 (diff)
downloadhercules-318a9cd7c7d0ae20d4bfa0d6226380f4cf2f6cef.tar.gz
hercules-318a9cd7c7d0ae20d4bfa0d6226380f4cf2f6cef.tar.bz2
hercules-318a9cd7c7d0ae20d4bfa0d6226380f4cf2f6cef.tar.xz
hercules-318a9cd7c7d0ae20d4bfa0d6226380f4cf2f6cef.zip
Remove duplicated function time2str from bg_common.txt
Diffstat (limited to 'npc')
-rw-r--r--npc/custom/battleground/bg_common.txt36
1 files changed, 0 insertions, 36 deletions
diff --git a/npc/custom/battleground/bg_common.txt b/npc/custom/battleground/bg_common.txt
index 81ec22963..d997263e6 100644
--- a/npc/custom/battleground/bg_common.txt
+++ b/npc/custom/battleground/bg_common.txt
@@ -133,42 +133,6 @@ bat_room,160,140,3 script Prince Croix#custom 4_M_CRU_CRUA,{
end;
}
-// Time calculation Function
-// *********************************************************************
-function script Time2Str {
- set .@time_left, getarg(0) - gettimetick(2);
-
- set .@Days, .@time_left / 86400;
- set .@time_left, .@time_left - (.@Days * 86400);
- set .@Hours, .@time_left / 3600;
- set .@time_left, .@time_left - (.@Hours * 3600);
- set .@Minutes, .@time_left / 60;
- set .@time_left, .@time_left - (.@Minutes * 60);
-
- set .@Time$, "";
- if( .@Days > 1 )
- set .@Time$, .@Time$ + .@Days + " days, ";
- else if( .@Days > 0 )
- set .@Time$, .@Time$ + .@Days + " day, ";
-
- if( .@Hours > 1 )
- set .@Time$, .@Time$ + .@Hours + " hours, ";
- else if( .@Hours > 0 )
- set .@Time$, .@Time$ + .@Hours + " hour, ";
-
- if( .@Minutes > 1 )
- set .@Time$, .@Time$ + .@Minutes + " minutes, ";
- else if( .@Minutes > 0 )
- set .@Time$, .@Time$ + .@Minutes + " minute, ";
-
- if( .@time_left > 1 || .@time_left == 0 )
- set .@Time$, .@Time$ + .@time_left + " seconds.";
- else if( .@time_left == 1 )
- set .@Time$, .@Time$ + .@time_left + " second.";
-
- return .@Time$;
-}
-
// Guillaume Knight - Tierra Valley
// *********************************************************************
bat_room,159,178,5 script Guillaume Knight#1c 4_M_KY_SOLD,{