summaryrefslogtreecommitdiff
path: root/npc/dev
AgeCommit message (Collapse)AuthorFilesLines
2020-06-01Merge pull request #2671 from Helianthella/binliteralHaru1-0/+9
add support for binary and octal number literals
2020-05-07add unit tests for number separatorsgumi1-0/+2
2020-05-07add unit tests for octal and binary literalsgumi1-0/+7
2020-05-03add more unit tests for local functionsgumi1-0/+40
2020-01-13Update copyright headers for year 2020Haru2-4/+4
Signed-off-by: Haru <haru@dotalux.com>
2019-04-29Added *consolemes script commandEmistry Haoyan1-5/+5
- deprecated `*debugmes` script command. - added `*consolemes` script command which display the console message based on `type`. - allow map-server console to auto logging into text file depend on type of message.
2018-10-22add unit tests for data_to_stringgumi1-0/+10
2018-10-01add more unit tests for getdgumi1-0/+6
2018-07-30push constants as C_NAME in the script buffergumi1-1/+1
2018-06-14Fix pre-increment / pre-decrement operator errorAnnieRuru1-0/+14
eg: if (1) ++.@i;
2017-07-11Add tests for getdatatypeHaru1-2/+21
Signed-off-by: Haru <haru@dotalux.com>
2017-06-03Add tests for the exponentiation operatorHaru1-0/+13
Signed-off-by: Haru <haru@dotalux.com>
2016-11-20Replaced some unsupported symbols in AegisNames (step 2)Haru1-1/+1
This removes the remaining unsupported symbols (despite they being official names) in AegisNames: The apostrophe (`'`) sign is suppressed. The full replacement rules (cumulative with the step 1 commit) are thus: - Any apostrophe is suppressed. - Any non-`[A-Za-z0-9_]` character is replaced with an underscore (`_`). - If the replaced symbol is at a word boundary (beginning or end of the string, or next to another underscore), it is suppressed instead. - If the replacement causes an AegisName conflict, underscores are appended appropriately. Signed-off-by: Haru <haru@dotalux.com>
2016-06-25Re-implemented BUILDIN(sprintf)Haru1-0/+18
- The function now checks its arguments, rather than passing them to the system implementation (safer against arbitrary memory access or wrong variable type) - Implemented positional ('%1$d') specifiers (POSIX style) - See script_commands.txt for details about the supported format specifiers. Signed-off-by: Haru <haru@dotalux.com>
2015-12-31Replace -1,{ with FAKE_NPC,{AnnieRuru2-3/+3
replace using Notepad++
2015-12-15Standardized header in scripts (part 14)Haru2-21/+67
- Now including GPL-compliant license/copyright info - Restored some missing copyrights - Other scripts folders Signed-off-by: Haru <haru@dotalux.com>
2015-08-13Added script_mapquit plugin (moved from the StaffPlugins repository)Haru1-0/+22
The plugin is used by the Travis CI build, and it makes more sense to be present here, so that it can be kept up to date when the HPM is updated, to avoid build failures. Signed-off-by: Haru <haru@dotalux.com>
2015-04-25Added getvariableofnpc checks to the test suiteHaru1-1/+8
Signed-off-by: Haru <haru@dotalux.com>
2015-04-25Merge pull request #502 from k-py/bugfix-return-getvariableofnpcHaruna1-0/+18
Fix script function return always removing references from NPC variables.
2015-04-25Added set reference testcase to the script test suiteHaru1-0/+7
Signed-off-by: Haru <haru@dotalux.com>
2015-04-21Fix script function return always removing references from NPC variables.Kpy!1-0/+18
Bugreport:8642 http://hercules.ws/board/tracker/issue-8642-script-engine-issue-quo/
2014-11-02Added min() and max() script commandsHaru1-0/+4
- Special thanks to Streusel, Xgear Signed-off-by: Haru <haru@dotalux.com>
2014-05-10Travis improvementsHaru1-1/+1
- Parallelized pre-re and re tests - Added mapserver and script engine tests: this means that travis will detect parse errors in scripts as well as the source now) Signed-off-by: Haru <haru@dotalux.com>
2014-05-09Improved the self-test scriptHaru1-69/+82
- Moved tests into a function, so that they can be easily called by external scripts. Ensured that the tests are only executed once. Signed-off-by: Haru <haru@dotalux.com>
2014-03-18Created npc/dev/ folder for scripts with development or testing purposes.Haru1-0/+726
- Moved npc/custom/test.txt to npc/dev/test.txt - Special thanks to AnnieRuru for the idea. Signed-off-by: Haru <haru@dotalux.com>