Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
Was broken in previous commits.
|
|
|
|
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
While this doesn't change anything in the way those assignments work,
it clarifies that they're intended to be side-effect assignments and
not typos (to both human readers and static analyzers)
Signed-off-by: Haru <haru@dotalux.com>
|
|
- Special thanks to Dastgir
Signed-off-by: Haru <haru@dotalux.com>
|
|
error: ‘for’ loop initial declarations are only allowed in C99 mode
|
|
This reverts commit c3ce0fb9b04d4c51d632c21f24f7a348c2681bf2.
|
|
This reverts commit 1bd8e9d50ed6de9433c3d6ccb842491cdafcd0a1.
|
|
type 0 - return number of users in the waiting room and account_id list
stored in $@chatmembers[]
type 34 - Minimum Base Level to enter waiting room.
type 35 - Maximum Base Level to enter waiting room.
type 36 - Minimum Zeny to enter waiting room.
|
|
The command will display the message on the NPC that name specified in
the parameter.
Useful in quest script that required a lot of different NPC to talk at
the same time.
Especially instances script.
|
|
- Fixes #652
- Follow-up to 918b1123963ac2f91a4d074b092ceef1db71b4e8
- Thanks to Dastgir, Andrei Karas
Signed-off-by: Haru <haru@dotalux.com>
|
|
Improved compatibility, portability and standards conformance.
- Since it is not possible to portably and reliably re-use the core's
symbols in plugins, symbols are no longer exported unless explicitly
required, in the UNIX builds. This mimics the Windows behavior and
adds HPM compatibility to OSes such as FreeBSD. Credits to Andrei Karas
for making this possible.
- For convenience, it is no longer necessary to call GET_SYMBOL, since
the plugin will automatically import all the available symbols when
it's loaded, depending on the included headers.
- Plugins are now supposed to include the "common/hercules.h" header
before including anything else. Incluing common/HPMi.h,
common/cbasetypes.h or conf/core.h is no longer necessary, as those
are guaranteed to be automatically included by hercules.h.
- HPM API version bumped to 1.1.
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
- Replaced some macro calls with the proper interface syntax
- Removed useless macros and workarounds
API changes summary:
- WFIFOSET() can now be safely used both inside and outside socket.c
- RFIFOSKIP() can now be safely used both inside and outside socket.c
- do_close() is now sockt->close()
- flush_fifo() is now sockt->flush()
- flush_fifos() is now sockt->flush_fifos()
- getips() is now sockt->getips()
- host2ip() is now sockt->host2ip()
- ip2str() is now sockt->ip2str()
- ntows() is now sockt->ntows()
- make_connection() is now sockt->make_connection()
- make_listen_bind() is now sockt->make_listen_bind()
- realloc_fifo() is now sockt->realloc_fifo()
- realloc_writefifo() is now sockt->realloc_writefifo()
- session_isActive() is now sockt->session_is_active()
- session_isValid() is now sockt->session_is_valid()
- set_defaultparse() is now sockt->set_defaultparse()
- set_eof() is now sockt->eof()
- set_noblocking() is now sockt->set_noblocking()
- str2ip() is now sockt->str2ip()
Signed-off-by: Haru <haru@dotalux.com>
|
|
|
|
|
|
script_run_item_unequip_script.
|
|
|
|
|
|
- Follow-up to ca877ecbef0d3fe8df1b69fcaa9e72693c104f02
Signed-off-by: Haru <haru@dotalux.com>
|
|
scripts after warp.
|
|
Signed-off-by: Angelmelody <Angelmelody@gmail.com>
|
|
include stackable ones.
Implement ForceSerial option in Package Item Database to force serial for
any item.
Implement ForceSerial option in item database to force serial for any item.
Implement Merge Client interface to merge stackable items with serial numbers ( check npc/other/item_merge.txt ).
|
|
missing character.
|
|
Makes attached player or GID says a message like shouting a skill name,
the message will be seen to everyone around but not in chat window.
|
|
- Include directives are now directory-independent.
- This will allow building plugins from other directories in future.
Signed-off-by: Haru <haru@dotalux.com>
|
|
|
|
- Replaced several hardcoded values with the appropriate enums.
- Added documentation for some hardcoded values that haven't been
replaced by enums (yet)
- Minor code legibility improvements.
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
- Removed clif->msgtable, and renamed clif->msg to clif->msgtable.
- Removed clif->msgtable_num, and renamed clif->msg_value to clif->msgtable_num
- Renamed clif->msg_skill to clif->msgtable_skill
- Removed clif_viewequip_fail
- Replaced hardcoded message IDs with constants (see enum clif_messages)
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
- Returns the account ID (RID) for the given character ID.
- As per Streusel's request.
Signed-off-by: Haru <haru@dotalux.com>
|
|
|
|
Removed floor() and ceil() as they don't make sense since everything is int to begin with.
|
|
|
|
- The command is deprecated and it will be removed in about a month.
Please use the constants RENEWAL, RENEWAL_CAST, RENEWAL_DROP,
RENEWAL_EXP, RENEWAL_LVDMG, RENEWAL_EDP, RENEWAL_ASPD instead.
Signed-off-by: Haru <haru@dotalux.com>
|
|
- Follow-up to b1b1b1aa8edc866a83029081e93d3e7d0f138189
Signed-off-by: Haru <haru@dotalux.com>
|
|
Supported constants:
- RENEWAL (globally enabled renewal mode)
- RENEWAL_CAST (renewal cast time)
- RENEWAL_DROP (renewal drop rate algorithms)
- RENEWAL_EXP (renewal exp rate algorithms)
- RENEWAL_LVDMG (renewal level modifier on damage)
- RENEWAL_EDP (renewal enchant deadly poison algorithm)
- RENEWAL_ASPD (renewal ASPD)
Signed-off-by: Haru <haru@dotalux.com>
|
|
Fix script function return always removing references from NPC variables.
|
|
- Fixes bugreport:8504
http://hercules.ws/board/tracker/issue-8504-changesex/
- Existing database entries with an incorrect per-character sex will be
fixed automatically when the character logs in to match the account's
sex, if the PACKETVER doesn't support per-character sex.
Signed-off-by: Haru <haru@dotalux.com>
|
|
|
|
function or subroutine.
|
|
Bugreport:8642 http://hercules.ws/board/tracker/issue-8642-script-engine-issue-quo/
|
|
Fixed an issue caused by unescaped characters being written and read out of the .pot unproperly.
This commit also causes map server to print the file it wrote to when terminating
Signed-off-by: shennetsind <ind@henn.et>
|
|
- 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>
|