tools/server: shop-item-time patch — NPC shop items carry a new item's time sockets

40250 game zeroes alSockets for NPC (shop.cpp) and extended (shopEx.cpp) shop items, so
uitooltip shows 'remaining 0 min' for mounts and item-mall time items. MT_GetNewItemSockets
fills them with ITEM_MANAGER::CreateItem's rules (UNIQUE remain time, auto potions,
LIMIT_REAL_TIME, LIMIT_TIMER_BASED_ON_WEAR). Deployed on 203; mount shop 20368 verified.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-09-30 17:55:36 +09:00
co-authored by Claude Opus 5.5
parent f9be09d2c2
commit 3aa4c482e9
3 changed files with 112 additions and 2 deletions
+3 -2
View File
@@ -11,12 +11,13 @@
# Patches, in order (each is a patch -p1 against /usr/metin2/src, saved byte-exact):
# inventory-5-pages 5-page inventory; needs its DB migration once (inventory-5-pages/README.md)
# hunt-set quest item.set_attribute, free items in extended shops
# shop-item-time NPC shop items carry a new item's time sockets (tooltip shows the duration)
set -eu
SRC=${SRC:-/usr/metin2/src}
SERVER=${SERVER:-/usr/metin2/server}
HERE=$(cd "$(dirname "$0")" && pwd)
PATCHES="inventory-5-pages hunt-set"
PATCHES="inventory-5-pages hunt-set shop-item-time"
TS=$(date +%Y%m%d-%H%M%S)
patch_state() {
@@ -90,7 +91,7 @@ data)
start_server
;;
*)
sed -n '2,15p' "$0" >&2
sed -n '2,16p' "$0" >&2
exit 2
;;
esac