Age | Commit message (Collapse) | Author | Files | Lines |
|
- If a script function was running when the server is shut down, the
memory allocated by its local variables would not get freed.
- Special thanks to Ind.
Signed-off-by: Haru <haru@dotalux.com>
|
|
Noticed this improvement while working on the ultimate localization design. During my experiments I noticed an average 11% speed mod.
This patch makes script (item/pet/npc) parsing 11% faster, while dropping map server memory usage by 2.7MB (its faster and uses less memory, signature Hercules achievement).
Signed-off-by: shennetsind <ind@henn.et>
|
|
- Translations aren't used in script-checker mode, so there is no point
loading them.
- Fixes an error message caused by a missing default language when
starting in script-checker mode.
- Special thanks to Ind, jaBote.
Signed-off-by: Haru <haru@dotalux.com>
|
|
Servers can now run on any number of languages, without editing npc files.
Designed by Haruna and Ind
http://hercules.ws/board/topic/8687-hercules-ultimate-localization-design/
Signed-off-by: shennetsind <ind@henn.et>
|
|
- Fixes an undetected error in case a semicolon is missing after a
direct assignment line in a script.
- Special thanks to Dastgir.
Signed-off-by: Haru <haru@dotalux.com>
|
|
No longer returns any value. Either it will succeed, or it will stop the script (at which point having a return value has no purpose)
Signed-off-by: shennetsind <ind@henn.et>
|
|
delequip will now stop a script when attempting to delete a item in a position the player has no gear.
Special Thanks to Michieru, Haruna.
Signed-off-by: shennetsind <ind@henn.et>
|
|
- If a script was suspended, and then resumed (`sleep2`, but also
`getexp`), state tracking of dialog windows would get reset, and a
`close` or `close2` would trigger a warning even if a message box was
present.
- Special thanks to Dastgir.
Signed-off-by: Haru <haru@dotalux.com>
|
|
Special thanks to Dastgir
Signed-off-by: Haru <haru@dotalux.com>
|
|
- The command is deprecated and it will be removed in about a month.
Please use isnight() in your custom scripts instead.
Signed-off-by: Haru <haru@dotalux.com>
|
|
Existing custom scripts will need edits. In a nutshell:
- Existing calls to `petskillattack` should be changed to specify an
extra <number of attacks> argument (after <skill level>), set to 0.
- Existing calls to `petskillattack2` should be changed to
`petskillattack`, keeping the same arguments.
Signed-off-by: Haru <haru@dotalux.com>
|
|
- Variable scopes reduced
- Parenthesized ambiguous expressions
- Removed or added NULL checks where (un)necessary
- Corrected format strings
- Fixed typos potentially leading to bugs
Signed-off-by: Haru <haru@dotalux.com>
|
|
Addressing out of bounds read/write, pointless null checks on already deferenced variables, dead code.
Special Thanks to 4144 and Haruna!
Signed-off-by: shennetsind <ind@henn.et>
|
|
Addressing out of bounds read/write, pointless null checks on already deferenced variables.
Special Thanks to 4144 and Haruna!
Signed-off-by: shennetsind <ind@henn.et>
|
|
Addressing out of bounds read/write.
Special Thanks to 4144 and Haruna!
Signed-off-by: shennetsind <ind@henn.et>
|
|
|
|
|
|
- Follow-up to d22e937e62b3443b74051ecc47ccc3137f9ff5f5
Signed-off-by: Haru <haru@dotalux.com>
|
|
- Follow-up to 134a4bae206a9c14f7da86095b5555b91ace3035
Signed-off-by: Haru <haru@dotalux.com>
|
|
- Follow-up to e914ab9088250b64c81953aa4e35435aabb26055
Signed-off-by: Haru <haru@dotalux.com>
|
|
|
|
New script function: changecharsex
|
|
Follow-up to a852bdd
Signed-off-by: Haru <haru@dotalux.com>
|
|
Follow-up to b3aef69
Signed-off-by: Haru <haru@dotalux.com>
|
|
Follow-up to c6f102e
Signed-off-by: Haru <haru@dotalux.com>
|
|
Thanks to Ind, Michieru
Signed-off-by: Haru <haru@dotalux.com>
|
|
|
|
|
|
|
|
|
|
|
|
New script command: setnpcdistance N
Where N is distance in tiles from where npc can be clicked.
Add setnpcdistance into docs.
|
|
A few additional commands, with an edit to *getinventorylist;
|
|
|
|
through pc->changelook.
|
|
bound type as per suggested by Haruna.
|
|
Modified the corresponding documentation to match source code.
|
|
|
|
- Follow-up to 3ad4a9d
Signed-off-by: Haru <haru@dotalux.com>
|
|
- Follow-up to 8bb0078
Signed-off-by: Haru <haru@dotalux.com>
|
|
- Follow-up to bcf7a77
Signed-off-by: Haru <haru@dotalux.com>
|
|
unused int under equip2.
|
|
|
|
|
|
|
|
|
|
In some places was used direct methods.
|
|
- Note: The commands will be completely removed after about a month.
Custom, third party scripts will require updates, in case they were
using these commands. Please see the commands documentation.
Signed-off-by: Haru <haru@dotalux.com>
|
|
- Note: The command will be completely removed after about a month.
Custom, third party scripts will require updates, in case they were
using this command. Please see the 'cmdothernpc' documentation.
Signed-off-by: Haru <haru@dotalux.com>
|
|
- Note: The command will be completely removed after about a month.
Custom, third party scripts will require updates, in case they were
using this command. Please see the 'save' documentation.
Signed-off-by: Haru <haru@dotalux.com>
|