MWICore

mwicore已弃用,不再更新,请安装mooket

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Autor
IOMisaka
Installationen heute
0
Installationen gesamt
88
Bewertungen
0 0 0
Version
0.2.2
Erstellt am
12.04.2025
Letzte Aktualisierung
28.04.2025
Größe
678 Bytes
Lizenz
n/a
Wird angewandt auf

这是一个通过注入银河奶牛放置提供各种游戏内的数据和状态以及实时更新的市场数据API,意在统一部分接口和数据方便开发,同时支持强化物品的价格和实时数据
安装本插件之后就能直接通过mwi.coreMarket.getItemPrice(name,level)获取实时数据,其他插件都可以方便接入,用的人越多,实时性越强!

价格存储方式为dictionary:
key -> "itemHrid:enhancementLevel"
value -> {bid,ask,time}

目前提供的功能和API使用方法:
mwi.MWICoreInitialized //标记core插件初始化,循环检测这个值或者监听window.addEventListener("MWICoreInitialized")事件

mwi.game // mwi.game.state 游戏内各种状态,消息处理,角色装备物品状态buff,这里还有很多东西可以挖掘
mwi.lang // 语言表 mwi.lang.en.translation 和mwi.lang.zh.translation
mwi.buffCalculator //buff计算类
mwi.alchemyCalculator //炼金计算类

mwi.marketJson // 用于兼容MWITools的市场数据
mwi.coreMarket // 实时市场,价格含强化等级,通过玩家查看市场物品的时候会自动将收到的订单数据上报(不是发包
mwi.itemNameToHridDict//名称反查表
mwi.ensureItemHrid()//名称反查包装方法根据物品名称反查itemHrid
mwi.hookCallback()//回调钩子,用于hook游戏消息处理回调

还有更多可以挖掘的东东