diff options
author | Haru <haru@dotalux.com> | 2015-09-18 13:09:16 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-09-25 12:55:36 +0200 |
commit | 1aea178ef7cdb76eda5600540b5fbd29fd54ff88 (patch) | |
tree | 855d4feafba212d7f36872c1b46814c1f1a85e75 /npc/other/Global_Functions.txt | |
parent | e99bf73af31a8b1f09b9ce033c16832ee5cac51d (diff) | |
download | hercules-1aea178ef7cdb76eda5600540b5fbd29fd54ff88.tar.gz hercules-1aea178ef7cdb76eda5600540b5fbd29fd54ff88.tar.bz2 hercules-1aea178ef7cdb76eda5600540b5fbd29fd54ff88.tar.xz hercules-1aea178ef7cdb76eda5600540b5fbd29fd54ff88.zip |
More aggressive whitespace cleanup. Follow up to 51329e6
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'npc/other/Global_Functions.txt')
-rw-r--r-- | npc/other/Global_Functions.txt | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/npc/other/Global_Functions.txt b/npc/other/Global_Functions.txt index b88fa647a..ff5b78b2d 100644 --- a/npc/other/Global_Functions.txt +++ b/npc/other/Global_Functions.txt @@ -42,7 +42,6 @@ //= 2.19 Improved 'F_InsertComma' function. [Emistry] //============================================================ - ////////////////////////////////////////////////////////////////////////////////// // Returns a number with commas based on precision of digits and custom separator. // -- callfunc "F_InsertComma",<number>{,<precision>,<separator>} @@ -56,10 +55,10 @@ function script F_InsertComma { .@value = getarg(0); .@precision = getarg(1,3); .@separator$ = getarg( 2,"," ); - + .@str$ = ""+.@value; .@is_negative = ( .@value < 0 ); - + .@length = getstrlen( .@str$ ) - .@precision - .@is_negative; while ( .@length > 0 ) { .@str$ = insertchar( .@str$, .@separator$ , ( .@length + .@is_negative ) ); @@ -68,7 +67,6 @@ function script F_InsertComma { return .@str$; } - ////////////////////////////////////////////////////////////////////////////////// // Function that clears job quest variables ////////////////////////////////////////////////////////////////////////////////// @@ -125,10 +123,10 @@ function script F_ClearGarbage { RES_SKILL = 0; //Here you put outdated variables from your outdated EVENTS //e.g. Is XMAS done? Add the EVENT var clearing code here. - + //due to bugs in BS quest: wizard_m2 = 0; - + // Old Novice Ground Variables. NEW_MES_FLAG0 = 0; NEW_MES_FLAG1 = 0; @@ -139,11 +137,11 @@ function script F_ClearGarbage { NEW_LVUP0 = 0; NEW_LVUP1 = 0; NEW_JOBLVUP = 0; - + // Old DTS variables that are no longer used. dtseligible = 0; MISC_QUEST = MISC_QUEST & ~128; - + return; } @@ -160,7 +158,6 @@ function script Job_Change { return; } - ////////////////////////////////////////////////////////////////////////////////// // Functions used to spiff up dialoges [Lupus] ////////////////////////////////////////////////////////////////////////////////// @@ -177,7 +174,6 @@ function script F_Rand { return getarg(rand(getargcount())); } - ////////////////////////////////////////////////////////////////////////////////// // *** Function "F_Sex" ////////////////////////////////////////////////////////////////////////////////// @@ -188,7 +184,6 @@ function script F_SexMes { return getarg(Sex); } - ////////////////////////////////////////////////////////////////////////////////// // *** Function "F_Hi" ////////////////////////////////////////////////////////////////////////////////// @@ -198,7 +193,6 @@ function script F_Hi { return callfunc("F_Rand","Hi!","Hello!","Good day!","How are you?","Hello there."); } - ////////////////////////////////////////////////////////////////////////////////// // *** Function "F_Bye" ////////////////////////////////////////////////////////////////////////////////// @@ -208,7 +202,6 @@ function script F_Bye { return callfunc("F_Rand","Bye. See you again.","Later.","Goodbye.","Good luck!","Have a nice day!","Byebye!!!"); } - ////////////////////////////////////////////////////////////////////////////////// // *** Function "F_ItemName" ////////////////////////////////////////////////////////////////////////////////// @@ -337,14 +330,14 @@ function script F_GetArmorType { // ********************************************************************* function script Time2Str { .@time_left = getarg(0) - gettimetick(2); - + .@Days = .@time_left / 86400; .@time_left -= (.@Days * 86400); .@Hours = .@time_left / 3600; .@time_left -= (.@Hours * 3600); .@Minutes = .@time_left / 60; .@time_left -= (.@Minutes * 60); - + .@Time$ = ""; if( .@Days > 1 ) .@Time$ += .@Days + " days, "; @@ -365,6 +358,6 @@ function script Time2Str { .@Time$ += .@time_left + " seconds"; else if( .@time_left == 1 ) .@Time$ += .@time_left + " second"; - + return .@Time$; } |