t9540513

人人都能輕鬆針對單一玩家恢復身上與背包道具

發表於 2025-5-23 17:44:01
t9540513 發表於 2025-5-23 17:44:01 | 顯示全部樓層 |閱讀模式
image.png


如果有玩家想要還原某某時間點的道具這時該怎麼做 ?
現在伺服器都會有定時備份資料,有些玩家可能遇到特殊情況,
需要還原裝備跟背包到特定時間點,那麼這篇文章很適合參考!!!






請開啟你的資料庫 找到 characters 資料表


image.png




查看玩家角色編號 (ID) 這邊我們能看到編號是 23 號


image.png


再打開 inventoryitems 資料表


image.png


點選篩選


image.png


按加入


image.png




選擇第二個 characterid




image.png






輸入 23


image.png


點選套用


image.png
這時候就會列出這玩家身上、背包的所有道具


image.png




按下匯出


image.png


點選中間的按紐


image.png


點選 sql 指令碼檔案,然後一路下一步到底,找個地方存檔


image.png


獲得檔案


image.png




接下來點選查詢


image.png




點選新增查詢


image.png
貼上這一段


SELECT * FROM inventoryequipment
WHERE inventoryitemid in (
    SELECT inventoryitemid FROM inventoryitems
    WHERE characterid = XXX
)
複製代碼


image.png


將 XXX 改成他的角色編號


image.png


全選後點選 "執行已選擇的"


image.png


一樣點選右上角的匯出結果


image.png






一樣選擇 SQL指令碼檔案,然後下一步到底


image.png




將存好的 inventoryitems 打開


image.png




開頭加上 DELETE from inventoryitems where characterid = XXX;


image.png


把 XXX 改成角色編號


image.png


把另一份裝備資料也打開並全選


image.png


複製到 inventoryitems 底下


image.png


將 INSERT INTO `` 反白


image.png


按下鍵盤 Ctal + F 按鍵


image.png




選擇上方的取代,並在取代為加入 INSERT INTO `inventoryequipment`


image.png


點選全部取代


image.png




這樣就全部準備好了!!!!


將檔案儲存,然後如果玩家在線上請讓玩家下線,
直接將做好的檔案導入


image.png


這樣就能指定玩家恢復身上裝備跟背包道具囉!!!!








瀏覽 2289 回復 1

您需要登錄後才可以回帖 登錄 | 註冊會員

返回頂部