From d020d40f4332e17fc0b06634b5c8f90ee30f2aa4 Mon Sep 17 00:00:00 2001 From: AnnieRuru Date: Thu, 17 Dec 2015 09:11:51 +0800 Subject: Standardize the comments in Global_Functions.txt follow up https://github.com/HerculesWS/Hercules/commit/d4832df6929653561e6867149e4ecaa63a860cbe --- npc/other/Global_Functions.txt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'npc') diff --git a/npc/other/Global_Functions.txt b/npc/other/Global_Functions.txt index aef48a489..9fb4949fa 100644 --- a/npc/other/Global_Functions.txt +++ b/npc/other/Global_Functions.txt @@ -45,8 +45,8 @@ // callfunc "F_InsertComma",{,,} // Examples: // callfunc("F_InsertComma",7777777) // returns "7,777,777" -// callfunc("F_InsertComma",1000000000,3,","}) // returns "1,000,000,000" -// callfunc("F_InsertComma",1000000000,3,"_"}) // returns "1_000_000_000" +// callfunc("F_InsertComma",1000000000,3,",") // returns "1,000,000,000" +// callfunc("F_InsertComma",1000000000,3,"_") // returns "1_000_000_000" // callfunc("F_InsertComma",1000000000,4) // returns "10,0000,0000" function script F_InsertComma { .@value = getarg(0); @@ -327,16 +327,14 @@ function script Time2Str { return .@Time$; } -////////////////////////////////////////////////////////////////////////////////// -// *** Function "F_ShuffleNumbers": +//== Function F_ShuffleNumbers ============================= // Generate a set of numbers in random order that the numbers are not repeated -// --- callfunc "F_ShuffleNumbers",,,{,}; +// callfunc "F_ShuffleNumbers",,,{,}; // Examples: // callfunc("F_ShuffleNumbers", 0, 5, .@output) // possible output 4,1,3,2,0,5 // callfunc("F_ShuffleNumbers", -5, 1, .@output) // possible output -3,-5,-4,-2,-1,1,0 // callfunc("F_ShuffleNumbers", 0, 100, .@output, 5) // possible output 9,55,27,84,33 // Reminder: Use *freeloop command when appropriate ! -////////////////////////////////////////////////////////////////////////////////// function script F_ShuffleNumbers { deletearray getarg(2); .@static = getarg(0); -- cgit v1.2.3-70-g09d2