summaryrefslogtreecommitdiff
path: root/doc
AgeCommit message (Collapse)AuthorFilesLines
2016-08-21Syntax clean up in the script documentationHaru1-1652/+1680
- Changed all function calls to encourage parenthesized calls - Replaced numbers with constants where appropriate - Removed some incorrect remarks Signed-off-by: Haru <haru@dotalux.com>
2016-08-20Updated references to the old config in the documentationHaru6-48/+50
Signed-off-by: Haru <haru@dotalux.com>
2016-08-19Ported login-server.conf to libconfigHaru1-21/+3
Ported to modern Hercules and cleaned up from Panikon's commits: ceb8a486ac47c2ed9aae4baa1ec39a11f31e9368, c1049123a4ea6ae6f0992ffe766db8aed7435ab5, 6feb097046355610d2288670a569ccc175358580, 9f6e27a96d655f2b4555310786d9d10898754404, 21fa5d24255ba026f96b1dbedf74ac5ef831d3ae, e22a56ad4def8ca22e94d44377a5364b9db1a425, f753a754923140bfec02057c16e6e8429b863d0e, 25dde7e46524ace330b83cb4bf0255cc4d796792 Signed-off-by: Haru <haru@dotalux.com>
2016-08-19Ported char-server.conf to libconfigHaru1-0/+69
Fixed issue: 8115, now start items can be equipped as well Ported to modern Hercules and cleaned up from Panikon's commits: c6482e9870645ffe59a6a059b819574d4ac79fd9, 832fb27d4f767e4bc8b68c432d0da00b7cb7a4f9, f81b579899e3a15bd472ca8c6a6e0116c43bec92, e23723725499b617def03d05661eca637edaeabd, 0b783a83d82e588efd760f7f4baec0c8074a6fd1, 1b7de91308a57ea07b158ed95a2515a3c8cc36bd, 677d3430cbda0962b320a60cf499e9dadf637d00 Signed-off-by: Haru <haru@dotalux.com>
2016-08-17Constants Documentation SyncHercules.ws1-0/+8
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2016-08-02Constants Documentation SyncHercules.ws1-0/+5
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2016-08-01Constants Documentation SyncHercules.ws1-0/+1
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2016-07-21Remove duplicate entry for getnameditem function on script commands ↵Reid1-19/+0
documentation.
2016-07-20Constants Documentation SyncHercules.ws1-0/+18
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2016-07-09Constants Documentation SyncHercules.ws1-1/+1
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2016-07-02Constants Documentation SyncHercules.ws1-0/+2
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-06-25Added mesf() command (combination of mes() and sprintf())Haru1-0/+17
Signed-off-by: Haru <haru@dotalux.com>
2016-06-25Removed the uncommon (and useless) multi-argument variant of mes()Haru1-9/+1
Signed-off-by: Haru <haru@dotalux.com>
2016-06-25Re-implemented BUILDIN(sprintf)Haru1-4/+69
- 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>
2016-04-11Fix a typo in script_commands.txt,Reid1-1/+1
getskillv -> getskilllv.
2016-03-30Fixed typo on item_db documentationDastgir1-1/+1
2016-03-21Constants Documentation SyncHercules.ws1-1/+1
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-03-11Constants Documentation SyncHercules.ws1-32/+36
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-02-29Constants Documentation SyncHercules.ws1-0/+5
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-02-29Added gender-related constants SEX_MALE/SEX_FEMALEEmistry1-3/+6
2016-02-28Added NoKnockback Mode for monstersDastgir1-16/+19
Signed-off-by: Haru <haru@dotalux.com>
2016-02-27Constants Documentation SyncHercules.ws1-0/+25
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-02-21Updated DocumentationDastgir1-37/+74
2016-01-25Generated doc/constants.mdHaru1-0/+16572
Signed-off-by: Haru <haru@dotalux.com>
2016-01-16Remove VAR_ constantsAnnieRuru1-2/+2
- there are 2 same constants for setlook script command, remove the wrong one - VAR_ constant added by lone_wolf is invalid https://github.com/HerculesWS/Hercules/commit/f4278f36db32f35e535a0ea8feb1cf83ca95019e, so use the LOOK_ constant
2016-01-13Converted const.txt to libconfig formatHaru3-42/+45
- This is necessary for upcoming improvements Signed-off-by: Haru <haru@dotalux.com>
2016-01-05Add *swap script commandAnnieRuru1-0/+13
- extremely useful when writing algorithm functions Closes #1012 as merged Signed-off-by: Haru <haru@dotalux.com>
2015-12-31Replaced leftover -1 view IDs with FAKE_NPCHaru4-12/+12
Signed-off-by: Haru <haru@dotalux.com>
2015-12-26Add *setgroupid script commands.Emistry1-0/+8
Useful for scripts that temporary adjust the group id of players.
2015-12-25Merge pull request #1009 from Jedzkie/ItemDB_UpdatesDastgir1-0/+3
ItemDB Updates
2015-12-24Item Update:Jedzkie1-0/+3
- Fix items that uses SPVanishRate bonus are not working properly. - Fix Velum Katzbalger item effect. - Added HPVanishRate bonus.
2015-12-22Throw error when variable name length too longAnnieRuru1-1/+2
2015-12-22Update *dispbottom script command to allow 0xRRGGBB colorAnnieRuru1-3/+4
Closes #858 as merged Signed-off-by: Haru <haru@dotalux.com>
2015-12-22Update *message script command to allow to use account IDAnnieRuru1-2/+3
Signed-off-by: Haru <haru@dotalux.com>
2015-12-20*explode return array size.Emistry1-2/+4
http://herc.ws/board/topic/7489-explode-to-push-arraysize/ Closes #700 as merged Signed-off-by: Haru <haru@dotalux.com>
2015-12-20Add color constants for announcement and mesAnnieRuru1-6/+13
Added F_MesColor helper function Closes #897 as merged Signed-off-by: Haru <haru@dotalux.com>
2015-12-18Add *getunittype and update *getmapxyAnnieRuru1-20/+38
- unlike rathena, hercules' getunittype use the value from getmapxy - getmapxy now can search object position using GID Closes #871 as merged Signed-off-by: Haru <haru@dotalux.com>
2015-12-18*Fix the misleading label name lengthAnnieRuru1-6/+4
2015-12-18*Correct the wrong example for *queueoptAnnieRuru1-1/+1
2015-12-18Fix documentation error for autobonus trigger rateAnnieRuru1-1/+1
- closes #883 - closes #886 as merged
2015-12-17Add bAddMaxWeight bonus for increasing player's max weightAnnieRuru1-0/+1
2015-12-06Fix some documentations on doc/script_commands.txtAnnieRuru1-5/+10
- fix bg_monster_set_team example broken - fix bg_monster show twice - getpetinfo/gethominfo can return 0 or null if the player doesn't own them - summon command cannot summon dead branch style, since its using mob->spawn, not mob->once_spawn like *monster script command did
2015-11-20ItemDB Updates:Jedzkie1-5/+5
- Fixes http://herc.ws/board/tracker/issue-7330-halohalo/ where Item 'Halohalo' will not stack together w/ other Status Foods. - Change the Status Food Behavior based on Aegis: (NOTE: ID# 12202, 12203, 12204, 12205, 12206, 12207 and 12247) • Removed when the player dies. • Update its HP/SP percentheal based on Aegis script. - Follow up https://github.com/HerculesWS/Hercules/commit/e511dcf5940cee7a6e43744543a5ca96bc23cf84#commitcomment-14500629. Thanks to AnnieRuru. - Follow up https://github.com/HerculesWS/Hercules/commit/d9ad1cc97be0a90b3ef2f653ae2d2cdd77dddd83#commitcomment-14502822. Thanks also to AnnieRuru. - Change the sequence of our current Trade Restriction based on kRO's itemmoveinfov5.txt
2015-11-17Add some FAQ documentation that some script command can return valueAnnieRuru1-0/+3
- getitemname can return "null" - getmapusers can return -1 and fix the bad ... misleading global function example
2015-11-15Fixed too-generic constant names of gettime() typesHaru3-74/+67
- Follow-up to 3bd77ffc0daca508352834add828766490075aee - The names were too generic (not namespaced), and were easily clashing with custom (and potential future official) constants or variables. - Constants are now prefixed with a 'GETTIME_' namespace: - GETTIME_SECOND - GETTIME_MINUTE - GETTIME_HOUR - GETTIME_WEEKDAY - GETTIME_DAYOFMONTH - GETTIME_MONTH - GETTIME_YEAR - GETTIME_DAYOFYEAR - Fixed some excessive (and some times incorrect) parentheses in various scripts using gettime(). - Updated documentation. Signed-off-by: Haru <haru@dotalux.com>
2015-11-14Standardized script-queue related commandsHaru1-16/+24
- The commands queueadd, queueremove, queueopt, queuedel and qiclear now all return true (success) or false (failure). - Taken/extended from AnnieRuru's PR #847. - The constants HQO_OnDeath, HQO_OnLogOut, HQO_OnMapChange were renamed to QUEUEOPT_DEATH, QUEUEOPT_LOGOUT, QUEUEOPT_MAPCHANGE respectively. - The name of the variable @QMapChangeTo$ used during the QUEUEOPT_MAPCHANGE event has been renamed to @Queue_Destination_Map$. Signed-off-by: Haru <haru@dotalux.com>
2015-11-14Fix @QMapChangeTo$ not usable when HQO_OnMapChange triggeredAnnieRuru1-0/+3
- also add documentation for it
2015-11-14Corrected an issue causing queue iterators not to return their last valueHaru1-2/+4
- Follow-up to 918b1123963ac2f91a4d074b092ceef1db71b4e8, a9042bf0bee2d2453058b22973bea8f335c5a201 - Thanks to Dastgir Signed-off-by: Haru <haru@dotalux.com>
2015-10-27Replaced parameter type with constant.Emistry1-49/+52
constant for gettime( <type> ) constant for Weekday and Month.
2015-10-26Force Serial DocumentationDastgir1-0/+5