Core/Vehicle: Need a way to override default despawn time of accessories after eject

オープン
#31,368 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 10 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
sql
領域
backend, game-dev

調査の方向性

まず、3.3.5 ブランチで aura 61424 に関連付けられた車両アクセサリの消滅処理を追跡し、次にクリーチャー 32638、32639、32641、32642 の smart_scripts エントリと比較します。アクセサリが排出後に異なる消滅時間を使用でき、提供された smart_scripts SQL が要求された動作を生成すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Branch-3.3.5a
Description

We need a way to override default despawn time of accessories after eject, currently all despawns after 2s. Some should despawn after more than 2s

After implementing this should be pushed:

--
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (32641,32642) AND `source_type` = 0;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (3264100,3264200) AND `source_type` = 9;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(32641,0,0,0,90,0,100,0,61424,0,0,0,0,80,3264100,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Drix Blackwrench - On Aura 'Traveler's Tundra Mammoth' Removed - Run Script"),

(3264100,9,0,0,0,0,100,0,1200,1200,0,0,0,66,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Drix Blackwrench - On Script - Set Orientation Owner"),
(3264100,9,1,0,0,0,100,0,1200,1200,0,0,0,1,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Drix Blackwrench - On Script - Say Line 0"),
(3264100,9,2,0,0,0,100,0,6000,6000,0,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Drix Blackwrench - On Script - Despawn"),

(32642,0,0,0,90,0,100,0,61424,0,0,0,0,80,3264200,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Mojodishu - On Aura 'Traveler's Tundra Mammoth' Removed - Run Script"),

(3264200,9,0,0,0,0,100,0,2400,2400,0,0,0,66,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Mojodishu - On Script - Set Orientation Owner"),
(3264200,9,1,0,0,0,100,0,1200,1200,0,0,0,1,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Mojodishu - On Script - Say Line 0"),
(3264200,9,2,0,0,0,100,0,6000,6000,0,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Mojodishu - On Script - Despawn");

DELETE FROM `smart_scripts` WHERE `entryorguid` IN (32638,32639) AND `source_type` = 0;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (3263800,3263900) AND `source_type` = 9;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(32638,0,0,0,90,0,100,0,61424,0,0,0,0,80,3263800,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Hakmud of Argus - On Aura 'Traveler's Tundra Mammoth' Removed - Run Script"),

(3263800,9,0,0,0,0,100,0,1200,1200,0,0,0,66,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Hakmud of Argus - On Script - Set Orientation Owner"),
(3263800,9,1,0,0,0,100,0,1200,1200,0,0,0,1,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Hakmud of Argus - On Script - Say Line 0"),
(3263800,9,2,0,0,0,100,0,6000,6000,0,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Hakmud of Argus - On Script - Despawn"),

(32639,0,0,0,90,0,100,0,61424,0,0,0,0,80,3263900,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Gnimo - On Aura 'Traveler's Tundra Mammoth' Removed - Run Script"),

(3263900,9,0,0,0,0,100,0,2400,2400,0,0,0,66,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Gnimo - On Script - Set Orientation Owner"),
(3263900,9,1,0,0,0,100,0,1200,1200,0,0,0,1,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Gnimo - On Script - Say Line 0"),
(3263900,9,2,0,0,0,100,0,6000,6000,0,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Gnimo - On Script - Despawn");
Expected behaviour

Above

Steps to reproduce the problem

None

Branch

3.3.5

TC rev. hash/commit

114fcfcc92bc

Operating system

Win 11

Custom changes

None

主要言語
C++
スター
10.9k
フォーク
6.5k
平均マージ
9日 12時間
マージ済み PR(30日)
7

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TrinityCore/TrinityCore のほかの issue

TrinityCore/TrinityCore の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。