DB/Creature: Restore repair service for Exile's Reach quartermasters

Đang mở Phù hợp với người mới
#32,176 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 10 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
68/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
sql
Lĩnh vực
database

Hướng nghiên cứu

Issue xác định các mục 156800 và 167213 của creature_template.npcflag và bao gồm thay đổi SQL. Trước tiên, hãy kiểm tra các flag hiện tại của bảng và quy ước cập nhật cơ sở dữ liệu world của dự án. Công việc hoàn tất khi cả hai người bán đều có bit sửa chữa và các flag khác được giữ nguyên; issue cho biết SQL có thể chạy lặp lại và các tùy chọn sửa chữa của Richter đã xuất hiện trong trò chơi.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Branch-master

Branch: master
Core revision: 2ce3ec2216f642850f1aa6c9a7a93c99f07666e9
Database: pristine TDB 1210.26091 plus all 104 subsequent master world updates.

Local gameplay client: build 70961.

Description

Quartermaster Richter (156800) and Provisioner Jin'hake (167213) have the supplies-and-repairs role, but their template flags omit UNIT_NPC_FLAG_REPAIR (0x1000). The merchant window exposes trading and buyback without repair controls.

The SQL adds the repair bit while preserving every other flag. On the audited database, Richter changes from 641 to 4737 and Jin'hake from 640 to 4736.

Reproduction

  1. Interact with Richter at the Alliance camp in Exile's Reach's ogre ruins.
  2. Open the merchant window and check the controls at the bottom. Repair buttons are absent with the baseline data.
  3. Apply the SQL, reload creature templates or restart worldserver, and reopen the merchant.
  4. Repeat with Jin'hake at the Horde camp to check the corresponding service.

Expected behavior

Both supplies-and-repairs vendors should offer the repair service alongside buying and selling.

Evidence and validation

  • The baseline flags were reproduced on the pristine database plus all 104 master updates described above.
  • In the isolated review database, only bit 0x1000 changed: Richter 641 → 4737, Jin'hake 640 → 4736.
  • Applying the SQL again left the values and table row count unchanged.
  • After the same flag correction on the development server, the player confirmed that Richter's repair buttons appeared.
  • Jin'hake's repair bit was verified in the database. The Horde merchant window was not independently replayed; its correction follows the corresponding vendor role. This is not a claim that complete Retail NPC flags were decoded from a capture.

Exact before/after and repeat-application results.

SQL fix

-- Restore UNIT_NPC_FLAG_REPAIR while preserving the existing vendor/gossip bits.
-- Quartermaster Richter (Alliance) and Provisioner Jin'hake (Horde).
UPDATE `creature_template` SET `npcflag`=`npcflag`|4096 WHERE `entry` IN (156800,167213);

Operating system used for validation: Linux aarch64 server containers; macOS arm64 gameplay client.

Ngôn ngữ chính
C++
Star
10.9k
Fork
6.5k
Merge trung bình
9 ngày 12 giờ
Pull request đã merge (30 ngày)
7

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TrinityCore/TrinityCore

Tất cả issue của TrinityCore/TrinityCore

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.