diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..4c53d11 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +* text=auto +runtime/** -text +*.exe binary +*.dll binary +*.DLL binary diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8951bd2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +build/ +dist*/ +runtime/logs/ +runtime/temp/ +runtime/preview.png +*.pdb +*.log diff --git a/SHA256SUMS.txt b/SHA256SUMS.txt new file mode 100644 index 0000000..55e2cbe --- /dev/null +++ b/SHA256SUMS.txt @@ -0,0 +1,56 @@ +9732b336aa494898eda6e1f20740abd0236ba905653139b0f954b9776740261b runtime/FASM-LICENSE.txt +2e3ba7479e764206008e1dcd7754eca23e4f863ebef3f15d3e1df58bbee55497 runtime/FASMX64.DLL +3773a4900f3539c56aea9d6cd48d71c8751d495c4abc28472706bb9553d1493c runtime/Lua-README.html +5d5e382513090e189a634a5ebee89c3dd7808bf0265b8503f9e9ef102bf427cd runtime/lua54.dll +9870c1b32037c153cf43edc0c6d4f267bb7c0f522654432541636ae8426468c6 runtime/PhantomBladeZeroTrainer.exe +35e4207a351ac5edc187e7e566b39152bf503951a33147296adcefa6d1e159d2 runtime/resources/AccessoryNative.lua +350f07cf06bc48bdc258e508740a1b78a93b7dc3a0de23fff579ace571a92fce runtime/resources/AccessoryNativeDispatch.aa +0b33d8e14fdc0f3deb867816e93424912b74808c67c5cf72d606f2b76e2e5749 runtime/resources/AccessoryReadOnly.lua +23420f9f109ef00cd10846ad624d4a71ad93203f58fcd3caec2c760261fb8f4a runtime/resources/AccessorySelection.lua +b79ac4c65aa614f84730a8c4ac2add49a182b4a8f66ed9278e1738bba92aff78 runtime/resources/Assembler.lua +1d721853978c95517ff05edb590848cf7288f2218fc91535745e46eb84b27ab3 runtime/resources/AutoDodge.lua +7f4d607dc22cef7a79c0c1256db33a8a108e50ea486db03673a88f48736a85e2 runtime/resources/CombatParameters.lua +aa74f581e71f9ebc8067057d37dc9e6980e114a9dbfaf95394b4041aeddfab4d runtime/resources/DamageDemoDispatch.aa +2096590d035a777659439562e60e279c61684517d6f471465bfd2d1e85a083cd runtime/resources/DamageInitializeDispatch.aa +444f62c9e78482f767612c30a97f796549f5ca38ccf12c13eb470544ba9cb724 runtime/resources/DamageNumbers.lua +7abc2fbdf763c4c54b77c47e422c3be1a3959bbb723f6de025db81b334d55d75 runtime/resources/DamageSwitchDispatch.aa +8a22ab841aaa6fd7c742f0eae0514c2b6da2b618beedda813b3f07d1d266d901 runtime/resources/EspNativeProjection.lua +5168e202d4f83f399bb467311d2a3820e038e56b4fc90cd0521a470af7e53c7c runtime/resources/EspProjectionDispatch.aa +cc3b9f5f4a7e6428da5e0b8801d1627eaa754f2515af557db895d8d7785531a7 runtime/resources/EspSupport.lua +abbd50403596d3069b619fd17518f859c8af79d7d27e732fc47f01253197d79a runtime/resources/FlashStep.lua +da5101854dbb59d879ffcfd89d75d0264794b104800f4209c2d5bacfeed7e2db runtime/resources/HyperArmor.lua +9b740fe457539b66eb5cad91747f74453e32ba9ffd536c071456424d5e1b8a9b runtime/resources/ItemBrowser.lua +9fab36144503d2327d2e15b8f4af151c06fc9a7de6373f119d82463ba77ec008 runtime/resources/ItemNames.zh-CN.lua +fb11cae54c553852e148f1e7589739249473e867dfff74ce92a9aac493bc9440 runtime/resources/ModuleSignatures.tsv +b9b188bd330e574df4a772f5cc2bf1fed3b38a55de667a12cf6ad8e3e8aff138 runtime/resources/ObjectInventory.lua +ddb46c8974cd8c40b8702dc2468820414f77d4d6b2af13ab5e7da86abadd4d80 runtime/resources/PlayerSpeed.lua +b755a52f85bcd179f893fdda1a49f3a2b60628408eb8d175b9b41c45d08557d1 runtime/resources/Runtime.lua +212aa0193a85218ea04aa4d40fcb490d82844bcacdf3d1a96792e7e60d68fc43 runtime/resources/scripts/1337142241.aa +a7e5ba2e639bc187d897069dae2b58e3600eb66b7cd0c2aebc11d4c2e3daa543 runtime/resources/scripts/1337142242.aa +f9e11768b261733566aa90fb6b2dffe285ba3b61e34b1d662a5f407be21b0195 runtime/resources/scripts/1337142243.aa +78d8e3e033094a92ac7b65f933486e1075b022c84585f337b2d143f3ceaed488 runtime/resources/scripts/1337142244.aa +7415fa41ab124bd9e66b12b14305060621ab593f88bc0fd4c5842852a1e91aed runtime/resources/scripts/1337142245.aa +768d41d94c2d41f6373fbe7e2132ba3033355a3598efb405ae642171ec806564 runtime/resources/scripts/1337142246.aa +aa1f60b132f13fff3809a7d6b498384884e763f3108c6d96b0b53d82838cb838 runtime/resources/scripts/1337142247.aa +b8403dc8ad91574b39a7b3269f79a5b5cac034efdc46f99a538897a266a4968f runtime/resources/scripts/1337142248.aa +f380f289ce40bbbb28e4e7bd9ae999090efa09dbbb5ca4b6a58123346d6eb368 runtime/resources/scripts/1337142249.aa +e7a034826642ae362ed2035668c07e83abeb91fbd3e0035796b63c69119d67a7 runtime/resources/scripts/1337142250.aa +08805fd3d42f4a2b92ddf92e48139a9f1864576120f8d78de1184eb0518ca419 runtime/resources/scripts/1337142253.aa +07dfce39dbd87bcd86222d89fa8f90f3d751781f85df28235fc37841424caac3 runtime/resources/scripts/1337142254.aa +4fe544b9f79c3ee8e381433c29ab313ee400c5a941706f562c4ac7f5efa7d760 runtime/resources/scripts/1337142255.aa +a6f840ae43da69307e9158fe2ba14f24920126359983df31ff006dc651c6b7fb runtime/resources/scripts/1337142256.aa +9f49ddd91ee7676ea666db453eae622d42a4f7f7cc43a215535b0ab2ced12436 runtime/resources/scripts/1337142257.aa +70a28000f1737034c7fa130a977dd6e4837ee84fb1b96e91f352de1f5f724910 runtime/resources/scripts/1337142258.aa +e5c34b8492b203d6768c921b79e4235a106f6dde2e5112574b4598d0595ed8a1 runtime/resources/scripts/1337142260.aa +3f564d44adc7f6d1ec0a0607c1e9b81513c3d50964ff6ada0ffda79a5228f817 runtime/resources/scripts/1337142261.aa +f88b4bc1cc44a4173f80e95434576576015d96afb56efef2e513855ebc3a88bc runtime/resources/scripts/1337142262.aa +1f3d371d1501f13d107279e3df5d5401156620ff8e9d34cdefb7473241e1414a runtime/resources/scripts/1337142263.aa +9002d5ee2da560ecfbfe17f4a09443e001942f7ed14501b7edda0e0b1d0103ff runtime/resources/scripts/1337142264.aa +a32f75c602a031fe67d311092b45b8dd6db213a49c998f700bb6c322e0cba974 runtime/resources/scripts/1337142265.aa +2d9de7969b12226cd81ecf1735d0924ab3038835c4b47bc62ffd7bbfc745a94c runtime/resources/scripts/1337142267.aa +314cd79170f79ede4901033abc07327c52c76fd5b2e10593c54b9a9c2818fbc0 runtime/resources/scripts/1337142268.aa +856be7d3d0f98e2425f77b76eef5ce8692ca450d9ba5aa9253969eef7c83f795 runtime/resources/scripts/6.aa +be18b668279c991e674314a3b25aeac561150b3ae8d162b03a44a20f2ad3dc13 runtime/resources/scripts/7.aa +6bfb229817db556a9e3ec46fba90045b7999a4057b8ac9f03caed116c3c0283d runtime/resources/scripts/8.aa +bbf1d0b5fe1eb5aad61abcb9de8a185874796d3de2901f116df2cf4314edbce2 runtime/resources/Theme.xaml +76203095e3a67cbb168c733efa5d6f3d5aa5e0ccecf8ef193490517cde7ad132 runtime/resources/UI.lua diff --git a/app.manifest b/app.manifest new file mode 100644 index 0000000..cdb39f7 --- /dev/null +++ b/app.manifest @@ -0,0 +1,7 @@ + + + + + true/pmPerMonitorV2 + + diff --git a/build.ps1 b/build.ps1 new file mode 100644 index 0000000..5c19ddf --- /dev/null +++ b/build.ps1 @@ -0,0 +1,20 @@ +param([string]$OutputDirectory='dist-combat-next') +$ErrorActionPreference='Stop' +$projectRoot=$PSScriptRoot +$env:TEMP=Join-Path $projectRoot 'build' +New-Item -ItemType Directory -Force -Path $env:TEMP | Out-Null +$env:TMP=$env:TEMP +$output=Join-Path $projectRoot $OutputDirectory +New-Item -ItemType Directory -Path $output -Force | Out-Null +Copy-Item -LiteralPath (Join-Path $projectRoot 'runtime\resources') -Destination $output -Recurse -Force +Get-ChildItem -LiteralPath (Join-Path $projectRoot 'runtime') -File | Where-Object Extension -ne '.exe' | Copy-Item -Destination $output -Force +$fx=Join-Path $env:WINDIR 'Microsoft.NET\Framework64\v4.0.30319' +$wpf=Join-Path $fx 'WPF' +$references=@('System.dll','System.Core.dll','System.Xaml.dll',(Join-Path $wpf 'WindowsBase.dll'),(Join-Path $wpf 'PresentationCore.dll'),(Join-Path $wpf 'PresentationFramework.dll')) +$compiler=Join-Path $fx 'csc.exe' +$sources=Get-ChildItem -LiteralPath (Join-Path $projectRoot 'src') -Filter '*.cs' | ForEach-Object {$_.FullName} +$arguments=@('/nologo','/target:winexe','/platform:x64','/optimize+','/debug:pdbonly',('/win32manifest:'+(Join-Path $projectRoot 'app.manifest')),('/out:'+(Join-Path $output 'PhantomBladeZeroTrainer.exe'))) +foreach($reference in $references){$arguments+=('/reference:'+$reference)} +& $compiler $arguments $sources +if($LASTEXITCODE -ne 0){throw 'Trainer build failed'} +Write-Output ('Built '+(Join-Path $output 'PhantomBladeZeroTrainer.exe')) diff --git a/runtime/FASM-LICENSE.txt b/runtime/FASM-LICENSE.txt new file mode 100644 index 0000000..d8c075d --- /dev/null +++ b/runtime/FASM-LICENSE.txt @@ -0,0 +1,37 @@ + +flat assembler version 1.73 +Copyright (c) 1999-2014, Tomasz Grysztar. +All rights reserved. + +This program is free for commercial and non-commercial use as long as +the following conditions are adhered to. + +Copyright remains Tomasz Grysztar, and as such any Copyright notices +in the code are not to be removed. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED +TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A +PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR +CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +The licence and distribution terms for any publically available +version or derivative of this code cannot be changed. i.e. this code +cannot simply be copied and put under another distribution licence +(including the GNU Public Licence). diff --git a/runtime/FASMX64.DLL b/runtime/FASMX64.DLL new file mode 100644 index 0000000..0256c49 Binary files /dev/null and b/runtime/FASMX64.DLL differ diff --git a/runtime/Lua-README.html b/runtime/Lua-README.html new file mode 100644 index 0000000..a4eb59d --- /dev/null +++ b/runtime/Lua-README.html @@ -0,0 +1,339 @@ + + + +Lua 5.4 readme + + + + + + + +

+Lua +Welcome to Lua 5.4 +

+ + + +

About Lua

+

+Lua is a powerful, efficient, lightweight, embeddable scripting language +developed by a +team +at +PUC-Rio, +the Pontifical Catholic University of Rio de Janeiro in Brazil. +Lua is +free software +used in +many products and projects +around the world. + +

+Lua's +official website +provides complete information +about Lua, +including +an +executive summary, +tips on +getting started, +and +updated +documentation, +especially the +reference manual, +which may differ slightly from the +local copy +distributed in this package. + +

Installing Lua

+

+Lua is distributed in +source +form. +You need to build it before using it. +Building Lua should be straightforward +because +Lua is implemented in pure ANSI C and compiles unmodified in all known +platforms that have an ANSI C compiler. +Lua also compiles unmodified as C++. +The instructions given below for building Lua are for Unix-like platforms, +such as Linux and macOS. +See also +instructions for other systems +and +customization options. + +

+If you don't have the time or the inclination to compile Lua yourself, +get a binary from +LuaBinaries. + +

Building Lua

+

+In most common Unix-like platforms, simply do "make". +Here are the details. + +

    +
  1. +Open a terminal window and move to +the top-level directory, which is named lua-5.4.8. +The Makefile there controls both the build process and the installation process. +

    +

  2. + Do "make". The Makefile will guess your platform and build Lua for it. +

    +

  3. + If the guess failed, do "make help" and see if your platform is listed. + The platforms currently supported are: +

    +

    + guess aix bsd c89 freebsd generic ios linux linux-readline macosx mingw posix solaris +

    +

    + If your platform is listed, just do "make xxx", where xxx + is your platform name. +

    + If your platform is not listed, try the closest one or posix, generic, + c89, in this order. +

    +

  4. +The compilation takes only a few moments +and produces three files in the src directory: +lua (the interpreter), +luac (the compiler), +and liblua.a (the library). +

    +

  5. + To check that Lua has been built correctly, do "make test" + after building Lua. This will run the interpreter and print its version. +
+

+If you're running Linux, try "make linux-readline" to build the interactive Lua interpreter with handy line-editing and history capabilities. +If you get compilation errors, +make sure you have installed the readline development package +(which is probably named libreadline-dev or readline-devel). +If you get link errors after that, +then try "make linux-readline MYLIBS=-ltermcap". + +

Installing Lua

+

+ Once you have built Lua, you may want to install it in an official + place in your system. In this case, do "make install". The official + place and the way to install files are defined in the Makefile. You'll + probably need the right permissions to install files, and so may need to do "sudo make install". + +

+ To build and install Lua in one step, do "make all install", + or "make xxx install", + where xxx is your platform name. + +

+ To install Lua locally after building it, do "make local". + This will create a directory install with subdirectories + bin, include, lib, man, share, + and install Lua as listed below. + + To install Lua locally, but in some other directory, do + "make install INSTALL_TOP=xxx", where xxx is your chosen directory. + The installation starts in the src and doc directories, + so take care if INSTALL_TOP is not an absolute path. + +

+
+ bin: +
+ lua luac +
+ include: +
+ lua.h luaconf.h lualib.h lauxlib.h lua.hpp +
+ lib: +
+ liblua.a +
+ man/man1: +
+ lua.1 luac.1 +
+ +

+ These are the only directories you need for development. + If you only want to run Lua programs, + you only need the files in bin and man. + The files in include and lib are needed for + embedding Lua in C or C++ programs. + +

Customization

+

+ Three kinds of things can be customized by editing a file: +

+ +

+ You don't actually need to edit the Makefiles because you may set the + relevant variables in the command line when invoking make. + Nevertheless, it's probably best to edit and save the Makefiles to + record the changes you've made. + +

+ On the other hand, if you need to customize some Lua features, + edit src/luaconf.h before building and installing Lua. + The edited file will be the one installed, and + it will be used by any Lua clients that you build, to ensure consistency. + Further customization is available to experts by editing the Lua sources. + +

Building Lua on other systems

+

+ If you're not using the usual Unix tools, then the instructions for + building Lua depend on the compiler you use. You'll need to create + projects (or whatever your compiler uses) for building the library, + the interpreter, and the compiler, as follows: + +

+
+library: +
+lapi.c lcode.c lctype.c ldebug.c ldo.c ldump.c lfunc.c lgc.c llex.c lmem.c lobject.c lopcodes.c lparser.c lstate.c lstring.c ltable.c ltm.c lundump.c lvm.c lzio.c +lauxlib.c lbaselib.c lcorolib.c ldblib.c liolib.c lmathlib.c loadlib.c loslib.c lstrlib.c ltablib.c lutf8lib.c linit.c +
+interpreter: +
+ library, lua.c +
+compiler: +
+ library, luac.c +
+ +

+ To use Lua as a library in your own programs, you need to know how to + create and use libraries with your compiler. Moreover, to dynamically load + C libraries for Lua, you'll need to know how to create dynamic libraries + and you'll need to make sure that the Lua API functions are accessible to + those dynamic libraries — but don't link the Lua library + into each dynamic library. For Unix, we recommend that the Lua library + be linked statically into the host program and its symbols exported for + dynamic linking; src/Makefile does this for the Lua interpreter. + For Windows, we recommend that the Lua library be a DLL. + In all cases, the compiler luac should be linked statically. + +

+ As mentioned above, you may edit src/luaconf.h to customize + some features before building Lua. + +

Changes since Lua 5.3

+

+Here are the main changes introduced in Lua 5.4. +The +reference manual +lists the +incompatibilities that had to be introduced. + +

Main changes

+ + +

License

+

+ +[Open Source Initiative Approved License] + +Lua is free software distributed under the terms of the +MIT license +reproduced below; +it may be used for any purpose, including commercial purposes, +at absolutely no cost without having to ask us. + +The only requirement is that if you do use Lua, +then you should give us credit by including the appropriate copyright notice somewhere in your product or its documentation. + +For details, see the +license page. + +

+Copyright © 1994–2025 Lua.org, PUC-Rio. + +

+Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +

+The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +

+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +

+

+ +

+ + + + diff --git a/runtime/PhantomBladeZeroTrainer.exe b/runtime/PhantomBladeZeroTrainer.exe new file mode 100644 index 0000000..8fdba24 Binary files /dev/null and b/runtime/PhantomBladeZeroTrainer.exe differ diff --git a/runtime/lua54.dll b/runtime/lua54.dll new file mode 100644 index 0000000..df7f03c Binary files /dev/null and b/runtime/lua54.dll differ diff --git a/runtime/resources/AccessoryNative.lua b/runtime/resources/AccessoryNative.lua new file mode 100644 index 0000000..fe20c6b --- /dev/null +++ b/runtime/resources/AccessoryNative.lua @@ -0,0 +1,169 @@ +local nativeDefinitions={ + ['PBZ_AC_Apply']={rva=0x697fe40,bytes='48 85 d2 0f 84 d7 01 00 00 48 89 54 24 10 55 48 83 ec 40 48 8b e9 4c 89'}, + ['PBZ_AC_RemoveNative']={rva=0x69a84b0,bytes='48 85 d2 0f 84 9f 00 00 00 48 89 5c 24 20 57 48 83 ec 20 48 8b da 48 89'}, + ['PBZ_AC_FindEffects']={rva=0x1319690,bytes='48 89 5C 24 08 57 48 83 EC 20 48 8B F9 48 8B DA 8B CA E8 D9 9D 12 00 8B'}, + ['PBZ_AC_FindOwned']={rva=0x12ae020,bytes='48 89 5C 24 08 57 48 83 EC 20 48 8B F9 48 8B DA 8B CA E8 49 54 19 00 8B'}, +} +local owner='accessory_multiselect' +local function nativeChecks() + local definitions={} + for name,f in pairs(nativeDefinitions)do + local address=getAddress('PBZ.exe')+f.rva + assert(H('matches',assert(H('read',address,24)),f.bytes),'饰品原生入口与支持版本不符:'..name) + definitions[#definitions+1]=('define(%s,%X)\n'):format(name,address) + end + return table.concat(definitions) +end +local function makeUtil() + local u=NativeDamageNumberDependencies();u.prepareObjects();nativeChecks();return u +end +function AccessoryContextKey(pid,world,pawn,asc,sub) + local parts={tostring(pid)} + for _,id in ipairs({world,pawn,asc,sub})do + assert(id and id.address and id.class and id.name and id.index,'饰品上下文身份不完整') + parts[#parts+1]=('%X:%X:%X:%d'):format(id.address,id.class,id.name,id.index) + end + return table.concat(parts,'|') +end +-- Scan the actual game's full DataTable; row IDs are FNames stored in row+8. +function ScanAllAccessoryDefinitions(u) + local objects=u.objectInventory({DT_Accessory='DataTable'});local address=objects.DT_Accessory + local object=assert(u.identity(address),'饰品总表身份不可读');local f=u.field(object.class,'RowStruct',true) + assert(f.size==8 and f.offset==0x28,'饰品总表结构发生变化') + local rowStruct=assert(u.q(address+f.offset));assert(u.fname(rowStruct+0x18)=='AccessoryData','饰品总表行结构不符') + local catalogue={};local count=0 + for _,entry in ipairs(ReadAccessorySparseMap(function(a,n)return H('read',a,n)end,address+f.offset+8,24,4096))do + local row=u.q(entry.address+8);assert(u.ptr(row),'饰品总表行不可读') + local name=assert(u.q(row+8));local id=u.fname(row+8);assert(name~=0 and id~=''and id~='None','饰品总表ID不可读') + assert(not catalogue[id],'饰品总表ID重复:'..id);catalogue[id]={id=id,fname=name};count=count+1 + end + assert(count>0 and u.valid(object)and u.q(address+f.offset)==rowStruct,'饰品总表在扫描中发生变化') + return catalogue,object +end +function BuildAccessoryRows(catalogue,p,desired) + local rows={};local ids={};for id in pairs(catalogue)do ids[id]=true end;for id in pairs(p.owned)do ids[id]=true end + for id in pairs(ids)do rows[#rows+1]={id=id,name=id,source='DT_Accessory',description='',owned=p.owned[id]or false,equipped=p.equipped[id]or false,selected=desired[id]or false}end + table.sort(rows,function(a,b)return a.id=n and cap<=1024,'饰品效果数量超出安全范围') + local handles={};if n>0 then assert(u.ptr(data));local raw=assert(bytes(data,n*8));for i=0,n-1 do handles[#handles+1]=string.unpack('=1 and n<=32,'饰品回执超出范围');for i=0,n-1 do handles[#handles+1]=assert(readQword(mail+0xC0+i*8))end end + return {code=code,handles=handles} + end + request.callback=function(result) + if not result.success then done('failed',nil,result.error or '游戏线程拒绝饰品请求');return end + local payload=result.payload;local kind=({[1]='added',[2]='native',[3]='present',[4]='absent',[5]='failed',[6]='failed'})[payload.code] + done(kind,payload.handles,payload.code==5 and '饰品效果已被外部更改,保留恢复信息'or payload.code==6 and '该饰品未生成可确认效果,已撤销本次添加'or nil) + end + return request + end) + if not ok then done('failed',nil,tostring(r));return end + d.enqueue(r) + end}) + s.model=model;s.snapshot=snapshot + s.stats=function() + local p=snapshot();local c=p.context;local attrs=assert(u.identity(u.q(c.pawn+u.offset(u.classOf(c.pawn),'AttributeSetBase'))));local values={};local cl=attrs.class;local seen={} + for depth=1,32 do if not u.ptr(cl)then break end;for name,f in pairs(u.properties(cl))do + if not seen[name]and f.size==16 and u.ptr(f.type)and u.fname(f.type+0x18)=='GameplayAttributeData'then local value=assert(readFloat(attrs.address+f.offset+12));values[#values+1]=name..'='..('%.9g'):format(value);seen[name]=true end + end;cl=u.q(cl+0x40)end + table.sort(values);assert(u.valid(attrs),'玩家属性发生变化');return table.concat(values,';') + end + + s.tick=function()if s.stopping or not getAddressSafe('PBZ_UT_Mailbox')then return end;d.validateHooks();model.tick();s.lastError=model.lastError or d.lastError end + s.prepareStop=function() + s.stopping=true;model.stop();d.drain(owner);if model.lastError and not model.pending then model.retry()end + local attempts=0 + while not model.restored()do attempts=attempts+1;assert(attempts<=256,'饰品清理尚未完成');model.tick();d.drain(owner);assert(not model.lastError,model.lastError)end + s.lastError=nil + end + s.stop=function()assert(model.restored(),'饰品额外效果尚未清理');local restore=d.release(owner);if s.timer then s.timer.destroy();s.timer=nil end;PBZ_AccessorySelection=nil;return restore end + s.timer=createTimer(nil,false);s.timer.Interval=100;s.timer.OnTimer=function()local ok,e=pcall(s.tick);if not ok then s.lastError=tostring(e)end end + PBZ_AccessorySelection=s;s.timer.Enabled=true;return assembly +end +function SelectAccessoryIDs(text) + local s=assert(PBZ_AccessorySelection,'请先开启饰品多选');local ids={};for id in tostring(text):gmatch('[^\r\n]+')do ids[#ids+1]=id end;s.model.select(ids);return true +end +function AccessoryStatus() + local s=PBZ_AccessorySelection;if not s then return 'off'end + local p=s.snapshot();local ids={};for id,handles in pairs(p.effects)do ids[#ids+1]=id..'='..table.concat(handles,',')end;table.sort(ids) + return 'OWNED='..s.model.ownedCount()..' PENDING='..tostring(s.model.pending~=nil)..' ERROR='..tostring(s.lastError or s.model.lastError or '')..' EFFECTS '..table.concat(ids,';') +end +function PrepareNativeAccessoryDisable()local s=PBZ_AccessorySelection;if s then s.prepareStop()end end + + +function AccessoryStats()return assert(PBZ_AccessorySelection).stats()end + +function RefreshAccessoryRows() + local s=assert(PBZ_AccessorySelection,'请先开启饰品多选');local p=s.snapshot() + PBZ_AccessoryRows=BuildAccessoryRows(s.catalogue,p,s.model.desired);return true +end +function AccessoryPending()local s=PBZ_AccessorySelection;return s and s.model.pending~=nil or false end +function AccessoryUIMessage() + local s=PBZ_AccessorySelection;if not s then return '饰品多选已关闭'end + local n=0;for _ in pairs(s.model.desired)do n=n+1 end + local err=s.lastError or s.model.lastError or s.dispatcher.lastError + if err then return '已暂停:'..tostring(err)..';请关闭功能处理恢复'end + local removed=s.model.inventoryDeleted or 0 + return ('已提交 %d 件 · 已额外启用 %d 件 · %s;原本装备保留'):format(n,s.model.ownedCount(),s.model.pending and '正在应用'or '已处理当前选择')..(removed>0 and (';检测到游戏内删除 %d 件,已取消选择且不再补回'):format(removed)or '') +end diff --git a/runtime/resources/AccessoryNativeDispatch.aa b/runtime/resources/AccessoryNativeDispatch.aa new file mode 100644 index 0000000..59f6bf5 --- /dev/null +++ b/runtime/resources/AccessoryNativeDispatch.aa @@ -0,0 +1,155 @@ + test dword [rbx+0x7C],0x40 + je PBZ_AC_Normal + mov rsi,[rbx+0x20] + mov rax,[rbx+0x10] + cmp [rsi+0x20],rax + jne PBZ_UT_Reject + mov rax,[rbx+0x60] + cmp [rdi+PAWN_OFFSET],rax + jne PBZ_UT_Reject + mov rax,[rbx+0x90] + cmp rax,1 + je PBZ_AC_CheckEquipped + cmp rax,2 + jne PBZ_UT_Reject +PBZ_AC_CheckEquipped: + mov ecx,[rsi+0x568] + cmp ecx,6 + ja PBZ_UT_Reject + mov rdx,[rsi+0x560] + test ecx,ecx + je PBZ_AC_Find + test rdx,rdx + je PBZ_UT_Reject + mov r8,[rbx+0x88] +PBZ_AC_EquippedLoop: + dec ecx + cmp [rdx+rcx*8],r8 + je PBZ_AC_NativeEquipped + test ecx,ecx + jne PBZ_AC_EquippedLoop +PBZ_AC_Find: + cmp dword [rsi+0x9B0],0x1000 + ja PBZ_UT_Reject + lea rcx,[rsi+0x9A8] + mov rdx,[rbx+0x88] + mov rax,PBZ_AC_FindEffects + call rax + cmp qword [rbx+0x90],2 + je PBZ_AC_Remove + test rax,rax + jne PBZ_AC_Present + cmp dword [rsi+0x578],0x1000 + ja PBZ_UT_Reject + lea rcx,[rsi+0x570] + mov rdx,[rbx+0x88] + mov rax,PBZ_AC_FindOwned + call rax + test rax,rax + je PBZ_UT_Reject + mov rax,[rax+8] + cmp rax,[rbx+0xA0] + jne PBZ_UT_Reject + test rax,rax + je PBZ_UT_Reject + mov ecx,[rbx+0xB8] + call PBZ_UT_ValidateObject + test al,al + je PBZ_UT_Reject + mov rax,[rbx+0xA0] + mov rcx,[rbx+0xA8] + cmp [rax+0x10],rcx + jne PBZ_UT_Reject + mov rcx,[rbx+0xB0] + cmp [rax+0x18],rcx + jne PBZ_UT_Reject + mov ecx,[rbx+0xB8] + cmp [rax+0xC],ecx + jne PBZ_UT_Reject + mov rcx,rsi + mov rdx,[rbx+0x88] + mov rax,PBZ_AC_Apply + call rax + lea rcx,[rsi+0x9A8] + mov rdx,[rbx+0x88] + mov rax,PBZ_AC_FindEffects + call rax + test rax,rax + je PBZ_AC_ApplyFailed + mov ecx,[rax+8] + test ecx,ecx + jle PBZ_AC_Rollback + cmp ecx,32 + ja PBZ_AC_Rollback + cmp ecx,[rax+0xC] + ja PBZ_AC_Rollback + mov rdx,[rax] + test rdx,rdx + je PBZ_AC_Rollback + mov [rbx+0x98],rcx + xor r8d,r8d +PBZ_AC_Copy: + mov r9,[rdx+r8*8] + mov [rbx+r8*8+0xC0],r9 + inc r8d + cmp r8d,ecx + jb PBZ_AC_Copy + mov qword [rbx+0x80],1 + jmp PBZ_AC_Finished +PBZ_AC_Rollback: + mov rcx,rsi + mov rdx,[rbx+0x88] + mov rax,PBZ_AC_RemoveNative + call rax +PBZ_AC_ApplyFailed: + mov qword [rbx+0x80],6 + jmp PBZ_AC_Finished +PBZ_AC_Remove: + test rax,rax + je PBZ_AC_Absent + mov ecx,[rax+8] + cmp ecx,32 + ja PBZ_AC_Conflict + cmp ecx,[rax+0xC] + ja PBZ_AC_Conflict + cmp rcx,[rbx+0x98] + jne PBZ_AC_Conflict + mov rdx,[rax] + test ecx,ecx + je PBZ_AC_RemoveNow + test rdx,rdx + je PBZ_AC_Conflict + xor r8d,r8d +PBZ_AC_Compare: + mov r9,[rdx+r8*8] + cmp r9,[rbx+r8*8+0xC0] + jne PBZ_AC_Conflict + inc r8d + cmp r8d,ecx + jb PBZ_AC_Compare +PBZ_AC_RemoveNow: + mov rcx,rsi + mov rdx,[rbx+0x88] + mov rax,PBZ_AC_RemoveNative + call rax + lea rcx,[rsi+0x9A8] + mov rdx,[rbx+0x88] + mov rax,PBZ_AC_FindEffects + call rax + test rax,rax + jne PBZ_AC_Conflict +PBZ_AC_Absent: + mov qword [rbx+0x80],4 + jmp PBZ_AC_Finished +PBZ_AC_NativeEquipped: + mov qword [rbx+0x80],2 + jmp PBZ_AC_Finished +PBZ_AC_Present: + mov qword [rbx+0x80],3 + jmp PBZ_AC_Finished +PBZ_AC_Conflict: + mov qword [rbx+0x80],5 + jmp PBZ_AC_Finished +PBZ_AC_Normal: +__ORIGINAL__ +PBZ_AC_Finished: diff --git a/runtime/resources/AccessoryReadOnly.lua b/runtime/resources/AccessoryReadOnly.lua new file mode 100644 index 0000000..8b2f384 --- /dev/null +++ b/runtime/resources/AccessoryReadOnly.lua @@ -0,0 +1,23 @@ +-- Read-only TSparseArray traversal for the verified game's TMap layout. +-- It requires a read callback; it has no write or process-opening capability. +function ReadAccessorySparseMap(read,address,stride,limit) + assert(stride>=16 and stride<=128 and limit>=1 and limit<=4096,'饰品表读取范围无效') + local h=assert(read(address,0x38),'饰品表头不可读');assert(#h==0x38) + local data=string.unpack('=n and capacity<=limit*2+64 and free<=n,'饰品表容量异常') + assert(bits>=n and bits<=limit*2+64 and bitCapacity>=bits and bitCapacity<=limit*4+128,'饰品表分配标记异常') + if n==0 then assert(read(address,0x38)==h,'饰品表在读取中变化');return {}end + assert(data>=0x10000,'饰品表数据指针无效') + local flagsAt=heap~=0 and heap or address+0x10 + assert(flagsAt>=0x10000 and(heap~=0 or bits<=128),'饰品表内联标记容量异常') + local flagBytes=math.floor((bits+7)/8);local flags=assert(read(flagsAt,flagBytes),'饰品表分配标记不可读') + local bytes=assert(read(data,n*stride),'饰品表条目不可读');assert(#bytes==n*stride and #flags==flagBytes) + local rows={} + for i=0,n-1 do + if flags:byte(math.floor(i/8)+1)&(1<<(i%8))~=0 then rows[#rows+1]={index=i,address=data+i*stride,raw=bytes:sub(i*stride+1,(i+1)*stride)}end + end + assert(#rows==n-free,'饰品表稀疏计数不匹配') + assert(read(address,0x38)==h and read(flagsAt,flagBytes)==flags and read(data,n*stride)==bytes,'饰品表在读取中变化,请稍后重试') + return rows +end diff --git a/runtime/resources/AccessorySelection.lua b/runtime/resources/AccessorySelection.lua new file mode 100644 index 0000000..9aefc8b --- /dev/null +++ b/runtime/resources/AccessorySelection.lua @@ -0,0 +1,91 @@ +-- Game-independent selection/ownership logic. This file never reads or writes game memory. +-- The future transport must capture the complete engine receipt before acknowledging a request. +local function copy(handles) + assert(type(handles)=='table'and #handles<=32,'饰品效果记录不可读') + local count=0;for k in pairs(handles)do assert(math.type(k)=='integer'and k>=1 and k<=#handles,'饰品效果记录不连续');count=count+1 end;assert(count==#handles,'饰品效果记录不连续') + local out={};for i,v in ipairs(handles)do assert(math.type(v)=='integer','饰品效果句柄无效');out[i]=v end + return out +end +local function same(a,b) + if type(a)~='table'or type(b)~='table'or #a~=#b then return false end + for i=1,#a do if a[i]~=b[i]then return false end end;return true +end +local function keys(t)local out={};for k in pairs(t)do out[#out+1]=k end;table.sort(out);return out end +function CreateAccessorySelectionSession(transport) + assert(type(transport.snapshot)=='function'and type(transport.send)=='function','饰品接线未就绪') + local s={desired={},observedOwned={},inventoryDeleted=0,leases={},pending=nil,stopping=false} + local function snapshot() + local p=transport.snapshot() + assert(type(p)=='table'and type(p.key)=='string'and p.key~=''and type(p.owned)=='table'and type(p.equipped)=='table'and type(p.effects)=='table','饰品上下文不可读') + return p + end + local function request(p,id,operation,expected) + local add=operation=='add' + local command={key=p.key,id=id,operation=operation,add=add,expected=expected and copy(expected)or nil} + s.pending=command -- Own the in-flight intent before transport can publish or throw. + local function done(kind,handles,why) + if s.pending~=command then return end + if kind=='obtained'and operation=='obtain'then + -- Remember the confirmed acquisition before another snapshot can observe a user deletion. + if s.desired[id]then s.observedOwned[id]=command.key end + -- Acquisition changes inventory, but does not create a removable effect lease. + elseif kind=='added'and add then + local ok,receipt=pcall(copy,handles) + if not ok then s.lastError=tostring(receipt);return end -- Keep request until a usable receipt arrives. + s.leases[id]={key=command.key,handles=receipt} + elseif (not add and(kind=='removed'or kind=='native'or kind=='absent'))or(add and(kind=='native'or kind=='present'))then + if not add then s.leases[id]=nil end + elseif kind=='failed'then + s.pending=nil;s.lastError=why or '饰品效果请求失败,恢复信息已保留';return + else s.lastError='饰品请求结果未知,保留在途状态';return end + s.pending=nil;s.lastError=nil + end + local ok,e=pcall(transport.send,command,done) + if not ok and s.pending==command then s.lastError=tostring(e)..';请求结果未确认,不能丢弃在途状态'end + end + s.select=function(ids) + assert(not s.stopping,'请重新开启饰品多选后再选择');assert(type(ids)=='table','请选择饰品') + local p=snapshot();local desired={} + for _,id in ipairs(ids)do + assert(type(id)=='string'and(p.owned[id]or p.available and p.available[id]),'饰品不在当前完整目录:'..tostring(id));desired[id]=true + end + s.desired=desired;s.observedOwned={};s.inventoryDeleted=0 + for id in pairs(desired)do if p.owned[id]then s.observedOwned[id]=p.key end end + if not s.pending then s.lastError=nil end + end + s.tick=function() + if s.pending or s.lastError then return end + local ok,p=pcall(snapshot);if not ok then s.lastError=tostring(p);return end + -- A selected item that disappears after being owned was deleted externally. + -- Withdraw that intent before cleanup; acquisition is an explicit Apply action, + -- not a perpetual inventory replenisher. A new context is not proof of deletion. + for _,id in ipairs(keys(s.desired))do + if p.owned[id]then s.observedOwned[id]=p.key + elseif s.observedOwned[id]==p.key then + s.desired[id]=nil;s.observedOwned[id]=nil;s.inventoryDeleted=s.inventoryDeleted+1 + end + end + -- The adapter must prove a previous context ended before retiring its receipts. + -- Changing a pointer or world key is never sufficient permission to write there. + for _,id in ipairs(keys(s.leases))do + local lease=s.leases[id] + if lease.key~=p.key then s.lastError='玩家或世界已变化,暂停并保留原效果恢复记录';return end + if p.equipped[id]or not p.effects[id]then s.leases[id]=nil + elseif not same(p.effects[id],lease.handles)then s.lastError='饰品效果已被外部更改,暂停以免误移除:'..id;return + elseif not s.desired[id]or not p.owned[id]then request(p,id,'remove',lease.handles);return end + end + if s.stopping then return end + for _,id in ipairs(keys(s.desired))do + if not p.owned[id]then + if p.available and p.available[id]then request(p,id,'obtain');return end + s.lastError='所选饰品已不在当前背包:'..id;return + end + if not p.equipped[id]and not p.effects[id]and not s.leases[id]then request(p,id,'add');return end + end + end + s.stop=function()s.stopping=true;s.desired={}end + s.retry=function()assert(not s.pending,'饰品请求仍在执行,暂不能重试');s.lastError=nil end + s.ownedCount=function()local n=0;for _ in pairs(s.leases)do n=n+1 end;return n end + s.restored=function()return s.stopping and not s.pending and next(s.leases)==nil end + return s +end diff --git a/runtime/resources/Assembler.lua b/runtime/resources/Assembler.lua new file mode 100644 index 0000000..978c166 --- /dev/null +++ b/runtime/resources/Assembler.lua @@ -0,0 +1,150 @@ +-- Independent translator for the directives used by this bundled table. +-- Unknown directives and failed assertions are errors, never skipped. +Symbols, Allocations = {}, {} +local function trim(s) return s:match('^%s*(.-)%s*$') end +function resolveAddress(x,soft) + if type(x)=='number' then return x end + if type(x)~='string' then if soft then return nil end;error('Invalid address expression') end + x=trim(x) + if x:lower()=='pbz.exe' then return H('base') end + if Symbols[x:lower()] then return Symbols[x:lower()] end + local a,b=x:match('^(.-)%+([%da-fA-F]+)$') + if a then local v=resolveAddress(a,true);if v then return v+tonumber(b,16) end end + a,b=x:match('^(.-)%-([%da-fA-F]+)$') + if a then local v=resolveAddress(a,true);if v then return v-tonumber(b,16) end end + local n=tonumber(x:match('^0[xX](.+)$') or x,16) + if n then return n end + if soft then return nil end;error('Unresolved address: '..x) +end +local function hex(x) return ('0x%X'):format(x) end +local function args(s) local t={};for a in s:gmatch('[^,]+')do t[#t+1]=trim(a)end;return t end +local function bytesText(s) + local t={};for i=1,#s do t[#t+1]=('0x%02X'):format(s:byte(i))end + return 'db '..table.concat(t,',') +end +local function asmNumbers(line) + local function floatingLiteral(s,kind) + local value=assert(tonumber(s),'Invalid floating-point literal: '..s) + local packed=string.pack(kind=='float'and '0 then code[#code+1]='__end'..#blocks..':' end + local n=#blocks+1;blocks[n]={address=at};code[#code+1]='org '..hex(at);code[#code+1]='__begin'..n..':' + end + local ok,result=pcall(function() + for _,a in ipairs(allocspec)do local size=assert(tonumber(expand(a[2]):gsub('^%$',''),16),'Invalid allocation size');if Symbols[a[1]:lower()]then error('Allocation already owned: '..a[1])end;local near=a[3]and resolveAddress(expand(a[3]),true)or H('base');local p=H('alloc',size,near or 0);Symbols[a[1]:lower()]=p;Allocations[a[1]:lower()]={address=p,size=size};newalloc[#newalloc+1]=a[1]:lower()end + for name,value in pairs(Symbols)do if not labels[name]then code[#code+1]=name..' = '..hex(value)end end + for _,line in ipairs(input)do + local op,body=line:match('^([%w_]+)%s*%((.*)%)$');op=op and op:lower() + if op=='readmem' then local a=args(body);local at=resolveAddress(expand(a[1]));local n=assert(tonumber(expand(a[2]):gsub('^%$',''),16));local b=H('read',at,n);if not b then error('Unreadable source bytes: '..a[1])end;code[#code+1]=bytesText(b) + elseif op=='alloc' or op=='dealloc' or op=='label' or op=='define' or op=='aobscanmodule' or op=='assert' or op=='registersymbol' or op=='unregistersymbol' then + elseif op then error('Unsupported assembler directive: '..op) + else + local name=line:match('^([%w_%.+%-]+):$') + if name then local at=resolveAddress(expand(name),true) + if at then startBlock(at)else if #blocks==0 then error('Label has no allocation: '..name)end;code[#code+1]=name..':' end + else + if #blocks==0 then error('Instruction outside allocation: '..line)end + code[#code+1]=asmNumbers(expand(line)) + end + end + end + if #blocks>0 then + code[#code+1]='__end'..#blocks..':' + -- A symbol table is appended to the binary, never written into the game. + code[#code+1]='dq 0x314154454D5A4250' + for i=1,#blocks do code[#code+1]='dq __end'..i..'-__begin'..i end + for name in pairs(labels)do syms[#syms+1]=name end;table.sort(syms) + for _,name in ipairs(syms)do code[#code+1]='dq '..name end + local bin=H('assemble',table.concat(code,'\n'):lower()) + local tail=8+8*#blocks+8*#syms + local pos=#bin-tail+1;local marker=string.unpack('=0 and n<=#bin-tail,'Invalid assembled block');b.data=bin:sub(offset,offset+n-1);offset=offset+n end + assert(offset==#bin-tail+1,'Assembly block lengths do not match') + for _,name in ipairs(syms)do local address;address,pos=string.unpack('0 then local before=H('read',b.address,#b.data);assert(before,'Patch target is unreadable');snapshots[#snapshots+1]={address=b.address,before=before,after=b.data,new=false};for _,a in pairs(Allocations)do if b.address>=a.address and b.address+#b.data<=a.address+a.size then snapshots[#snapshots].new=true;break end end end end + -- Populate private code first, then install entry-point jumps. + table.sort(snapshots,function(a,b)return a.new and not b.new end) + local written={} + for _,b in ipairs(snapshots)do + local succeeded,value=pcall(H,'write',b.address,b.after,true) + if not succeeded or not value then + local rollbackOK,restored=pcall(H,'write',b.address,b.before,true);rollbackOK=rollbackOK and restored + for j=#written,1,-1 do local w=written[j];local ok,done=pcall(H,'write',w.address,w.before,true);if not ok or not done then rollbackOK=false end end + if not rollbackOK then error('CRITICAL: patch rollback failed; allocation preserved for recovery')end + error('Patch write failed; previous writes were rolled back') + end + written[#written+1]=b + end + end + for _,name in ipairs(registers)do local key=name:lower();if not Symbols[key]then Symbols[key]=resolveAddress(expand(name),true)end end + for _,name in ipairs(frees)do local key=name:lower();local a=Allocations[key];if a then assert(H('free',a.address),'Could not release owned allocation');Allocations[key]=nil end;Symbols[key]=nil;previousSymbols[key]=nil end + for _,name in ipairs(unregisters)do Symbols[name:lower()]=nil end + for _,name in ipairs(registers)do assert(Symbols[name:lower()],'Cannot register unresolved symbol '..name)end + local persistent={};for k,v in pairs(previousSymbols)do persistent[k]=v end + for _,name in ipairs(registers)do persistent[name:lower()]=Symbols[name:lower()]end + for _,name in ipairs(unregisters)do persistent[name:lower()]=nil end + Symbols=persistent + return true + end) + if not ok then + if not tostring(result):find('CRITICAL:',1,true)then + for _,name in ipairs(newalloc)do local a=Allocations[name];if a then H('free',a.address);Allocations[name]=nil;Symbols[name]=nil end end + end + if not tostring(result):find('CRITICAL:',1,true)then Symbols=previousSymbols end + error(result) + end + return true +end diff --git a/runtime/resources/AutoDodge.lua b/runtime/resources/AutoDodge.lua new file mode 100644 index 0000000..accfeb6 --- /dev/null +++ b/runtime/resources/AutoDodge.lua @@ -0,0 +1,164 @@ +-- The supported native BP_PerfectDodgePassive_C::Try Auto Dodge bytecode. +-- Pointer and FName relocations are resolved against current reflection metadata. +local autoDodgePattern='14 00 ?? ?? ?? ?? ?? ?? ?? ?? 19 20 ?? ?? ?? ?? ?? ?? ?? ?? 1C 00 00 00 ?? ?? ?? ?? ?? ?? ?? ?? 1C ?? ?? ?? ?? ?? ?? ?? ?? 01 ?? ?? ?? ?? ?? ?? ?? ?? 00 ?? ?? ?? ?? ?? ?? ?? ?? 16 07 4F 00 00 00 00 ?? ?? ?? ?? ?? ?? ?? ?? 06 74 02 00 00 0F ?? ?? ?? ?? ?? ?? ?? ?? 00 ?? ?? ?? ?? ?? ?? ?? ?? 68 ?? ?? ?? ?? ?? ?? ?? ?? 17 16 0F ?? ?? ?? ?? ?? ?? ?? ?? 00 ?? ?? ?? ?? ?? ?? ?? ?? 68 ?? ?? ?? ?? ?? ?? ?? ?? 00 ?? ?? ?? ?? ?? ?? ?? ?? 37 7B 14 AE 47 E1 7A A4 3F 16 14 00 ?? ?? ?? ?? ?? ?? ?? ?? 68 ?? ?? ?? ?? ?? ?? ?? ?? 42 ?? ?? ?? ?? ?? ?? ?? ?? 48 ?? ?? ?? ?? ?? ?? ?? ?? 00 ?? ?? ?? ?? ?? ?? ?? ?? 16 14 00 ?? ?? ?? ?? ?? ?? ?? ?? 68 ?? ?? ?? ?? ?? ?? ?? ?? 42 ?? ?? ?? ?? ?? ?? ?? ?? 48 ?? ?? ?? ?? ?? ?? ?? ?? 00 ?? ?? ?? ?? ?? ?? ?? ?? 16 07 74 02 00 00 00 ?? ?? ?? ?? ?? ?? ?? ?? 5F 00 ?? ?? ?? ?? ?? ?? ?? ?? 1C ?? ?? ?? ?? ?? ?? ?? ?? 16 14 00 ?? ?? ?? ?? ?? ?? ?? ?? 19 51 00 ?? ?? ?? ?? ?? ?? ?? ?? 29 00 00 00 ?? ?? ?? ?? ?? ?? ?? ?? 1B ?? ?? ?? ?? ?? ?? ?? ?? 00 00 00 00 2F ?? ?? ?? ?? ?? ?? ?? ?? 0C 00 00 00 21 ?? ?? ?? ?? ?? ?? ?? ?? 00 00 00 00 30 16 07 74 02 00 00 00 ?? ?? ?? ?? ?? ?? ?? ?? 0F ?? ?? ?? ?? ?? ?? ?? ?? 00 ?? ?? ?? ?? ?? ?? ?? ?? 19 20 ?? ?? ?? ?? ?? ?? ?? ?? 1C 00 00 00 ?? ?? ?? ?? ?? ?? ?? ?? 1C ?? ?? ?? ?? ?? ?? ?? ?? 01 ?? ?? ?? ?? ?? ?? ?? ?? 00 ?? ?? ?? ?? ?? ?? ?? ?? 16 0F ?? ?? ?? ?? ?? ?? ?? ?? 00 ?? ?? ?? ?? ?? ?? ?? ?? 68 ?? ?? ?? ?? ?? ?? ?? ?? 16 14 00 ?? ?? ?? ?? ?? ?? ?? ?? 68 ?? ?? ?? ?? ?? ?? ?? ?? 00 ?? ?? ?? ?? ?? ?? ?? ?? 37 00 00 00 00 00 00 E0 3F 16 07 74 02 00 00 00 ?? ?? ?? ?? ?? ?? ?? ?? 0F ?? ?? ?? ?? ?? ?? ?? ?? 00 ?? ?? ?? ?? ?? ?? ?? ?? 2F ?? ?? ?? ?? ?? ?? ?? ?? 0C 00 00 00 21 ?? ?? ?? ?? ?? ?? ?? ?? 00 00 00 00 30 14 00 ?? ?? ?? ?? ?? ?? ?? ?? 19 01 ?? ?? ?? ?? ?? ?? ?? ?? 21 00 00 00 ?? ?? ?? ?? ?? ?? ?? ?? 1C ?? ?? ?? ?? ?? ?? ?? ?? 00 ?? ?? ?? ?? ?? ?? ?? ?? 20 ?? ?? ?? ?? ?? ?? ?? ?? 1D FB FF FF FF 16 04 0B 53' +local autoDodgeReferences={{"virtual",315,"HasMatchingGameplayTag"},{"field",1,"CallFunc_Array_Contains_ReturnValue"},{"field",23,"CallFunc_Array_Contains_ReturnValue"},{"call",32,"Array_Contains"},{"field",41,"Noob Tested Handles"},{"field",50,"Handle"},{"field",65,"CallFunc_Array_Contains_ReturnValue"},{"field",88,"CallFunc_GetGameTimeInSeconds_ReturnValue"},{"call",97,"GetGameTimeInSeconds"},{"field",117,"CallFunc_Add_DoubleDouble_ReturnValue"},{"call",126,"Add_DoubleDouble"},{"field",135,"CallFunc_GetGameTimeInSeconds_ReturnValue"},{"field",155,"CallFunc_LessEqual_DoubleDouble_ReturnValue_1"},{"call",164,"LessEqual_DoubleDouble"},{"field",182,"Frame"},{"field",191,"CallFunc_Add_DoubleDouble_ReturnValue"},{"field",202,"CallFunc_BooleanOR_ReturnValue"},{"call",211,"BooleanOR"},{"field",229,"Frame"},{"field",238,"CallFunc_LessEqual_DoubleDouble_ReturnValue_1"},{"field",253,"CallFunc_BooleanOR_ReturnValue"},{"field",263,"CallFunc_GetAbilitySystemComponentFromActorInfo_ReturnValue"},{"call",272,"GetAbilitySystemComponentFromActorInfo"},{"field",283,"CallFunc_HasMatchingGameplayTag_ReturnValue"},{"field",294,"CallFunc_GetAbilitySystemComponentFromActorInfo_ReturnValue"},{"field",306,"CallFunc_HasMatchingGameplayTag_ReturnValue"},{"name",341,"CharacterState.Accessory.ACTNoob.Lv2"},{"field",361,"CallFunc_HasMatchingGameplayTag_ReturnValue"},{"field",379,"CallFunc_Array_Add_ReturnValue"},{"field",401,"CallFunc_Array_Add_ReturnValue"},{"call",410,"Array_Add"},{"field",419,"Noob Tested Handles"},{"field",428,"Handle"},{"field",447,"CallFunc_RandomFloat_ReturnValue"},{"call",456,"RandomFloat"},{"field",467,"CallFunc_LessEqual_DoubleDouble_ReturnValue"},{"call",476,"LessEqual_DoubleDouble"},{"field",485,"CallFunc_RandomFloat_ReturnValue"},{"field",509,"CallFunc_LessEqual_DoubleDouble_ReturnValue"},{"field",527,"Temp_struct_Variable"},{"name",549,"Ability.Action.Hun.PerfectDodge"},{"field",564,"CallFunc_TryActivateExternalActionAbilityInterruptLowerByTag_ReturnValue"},{"field",574,"Ability Input"},{"field",586,"CallFunc_TryActivateExternalActionAbilityInterruptLowerByTag_ReturnValue"},{"call",595,"TryActivateExternalActionAbilityInterruptLowerByTag"},{"field",604,"Temp_struct_Variable"}} +function BuildAutoDodgePlan(bytes,resolve) + assert(type(bytes)=='table' and #bytes==631,'自动闪避脚本长度不匹配,未修改游戏') + local i=0 + for token in autoDodgePattern:gmatch('%S+')do + i=i+1;assert(token=='??'or bytes[i]==tonumber(token,16),'自动闪避脚本结构不匹配,未修改游戏('..(i-1)..')') + end + assert(i==#bytes and type(resolve)=='function','自动闪避校验器缺失') + for _,ref in ipairs(autoDodgeReferences)do assert(resolve(ref[1],ref[2],ref[3]),'自动闪避引用不匹配:'..ref[3])end + -- Each EX_JumpIfNot still evaluates its original local bool. Its false target + -- becomes the next statement, leaving the expression length and stack intact. + -- Apply chance first, then accessory; restore in reverse order. + return {{offset=505,before=628,after=518},{offset=357,before=628,after=370}} +end +function CreateAutoDodgeLease(binding) + assert(binding and binding.address and binding.address%16==0 and binding.size==631 and binding.valid(),'自动闪避目标无效') + local original=assert(readBytes(binding.address,binding.size,true),'自动闪避脚本不可读') + local plan=BuildAutoDodgePlan(original,binding.resolve) + local patched={};for i,v in ipairs(original)do patched[i]=v end + local mutable={} + for _,p in ipairs(plan)do + for j=1,2 do mutable[p.offset+j]=true end + patched[p.offset+1]=p.after&255;patched[p.offset+2]=p.after>>8 + end + local s={pending=false} + local function inspect() + assert(binding.valid(),'自动闪避脚本身份已变化,保留恢复记录') + local bytes=assert(readBytes(binding.address,binding.size,true),'自动闪避脚本不可读,保留恢复记录') + assert(#bytes==#original,'自动闪避脚本读取不完整') + for i,v in ipairs(original)do assert(mutable[i]or bytes[i]==v,'自动闪避脚本被外部修改,已暂停并保留恢复记录')end + for _,p in ipairs(plan)do + local value=bytes[p.offset+1]|(bytes[p.offset+2]<<8) + assert(value==p.before or value==p.after,'自动闪避补丁被外部修改,保留恢复记录') + end + return bytes + end + local function write(p,value) + assert(binding.valid(),'自动闪避写入前目标身份已变化') + -- Two-byte operands are contained within a cache line for the aligned buffer. + -- No opcode, object reference, instruction length, or upper jump byte changes. + assert(writeSmallInteger(binding.address+p.offset,value),'自动闪避写入失败') + assert(readSmallInteger(binding.address+p.offset)==value,'自动闪避写入读回不一致') + end + s.apply=function() + assert(not s.pending,'自动闪避租约已有待恢复修改') + inspect() + for _,p in ipairs(plan)do + assert(readSmallInteger(binding.address+p.offset)==p.before,'自动闪避已被其他操作开启') + s.pending=true;write(p,p.after) + end + end + s.check=function() + local bytes=inspect() + for i,v in ipairs(patched)do assert(bytes[i]==v,'自动闪避补丁已变化,请关闭后重新开启')end + end + s.restore=function() + if not s.pending then return end + -- Validate the whole script before any restore; never overwrite a new asset. + inspect() + for i=#plan,1,-1 do + local p=plan[i];local current=assert(readSmallInteger(binding.address+p.offset),'自动闪避恢复目标不可读') + if current==p.after then write(p,p.before)else assert(current==p.before,'自动闪避恢复发生冲突')end + end + s.pending=false + end + return s +end +function StartAutoDodgeManager(binding) + assert(not PBZ_AutoDodge,'自动闪避已开启或仍有待恢复记录') + local s={lease=CreateAutoDodgeLease(binding)} + s.stop=function() + s.lease.restore() + if s.timer then s.timer.destroy();s.timer=nil end + PBZ_AutoDodge=nil + end + PBZ_AutoDodge=s + local ok,e=pcall(function() + s.lease.apply() + s.timer=createTimer(nil,false);s.timer.Interval=500 + s.timer.OnTimer=function() + local good,why=pcall(function() + if binding.localValid and not binding.localValid()then + s.lease.restore();s.paused=true;error('玩家场景已变化,自动闪避已恢复;进入场景后请重新开启') + end + s.lease.check() + end) + if not good then s.lastError=tostring(why);s.timer.Enabled=false end + end + s.timer.Enabled=true + end) + if not ok then + local restored,why=pcall(s.stop) + if not restored then s.lastError=tostring(e)..'; '..tostring(why)end + error(tostring(e)..(restored and ''or '; 恢复待重试:'..tostring(why))) + end + return s +end + +-- Loaded in the private player reflection scope; no OS key simulation and no +-- persistent file edits. Reflection is performed only when the feature starts. +local function autoDodgeClass(cl) + local seen={} + for i=1,32 do + if not ptr(cl)or seen[cl]then return end;seen[cl]=true + if fname(cl+0x18)=='BP_PerfectDodgePassive_C'then return cl end + cl=q(cl+0x40) + end +end +local function autoDodgeFunction(cl) + local f=q(cl+0x48);local seen={} + for i=1,2048 do + if not ptr(f)or seen[f]then return end;seen[f]=true + if fname(f+0x18)=='Try Auto Dodge'then return f end + f=q(f+0x28) + end +end +function EnableAutoDodge() + assert(not PBZ_AutoDodge,'自动闪避已开启') + local c=assert(context(),'请先进入可操作的单机场景');local pawnID=c.id + local asc=q(c.pawn+offset(pawnID.class,'AbilitySystemComponent'));local aid=identity(asc) + assert(aid and q(asc+0x20)==c.pawn,'玩家能力组件不可用') + local container=field(aid.class,'ActivatableAbilities',true) + local items=field(container.type,'Items',true);local inner=q(items.address+0x78) + local specType=ptr(inner)and q(inner+0x70);local stride=ptr(inner)and readInteger(inner+0x34) + assert(ptr(specType)and stride and stride>=0x40 and stride<=0x1000,'自动闪避能力列表结构不匹配') + local specs,count=array(asc+container.offset+items.offset,1024) + assert(specs and count and count>0,'玩家能力尚未加载') + local abilityField=field(specType,'Ability',true);assert(abilityField.size==8,'自动闪避能力引用结构不匹配') + local cl + for i=0,count-1 do + local ability=q(specs+i*stride+abilityField.offset) + local candidate=ptr(ability)and autoDodgeClass(classOf(ability)) + if candidate then assert(not cl or cl==candidate,'发现多个不兼容的自动闪避类');cl=candidate end + end + assert(cl,'当前玩家未加载原生自动闪避被动,未修改游戏') + local fn=assert(autoDodgeFunction(cl),'原生自动闪避入口缺失') + local id=identity(fn) + assert(id and fname(id.class+0x18)=='Function'and q(fn+0x20)==cl,'自动闪避函数归属不匹配') + local address,size=array(fn+0xB0,4096) + assert(address and size==631 and address%16==0,'自动闪避字节码布局不匹配') + local function bindingValid() + assert(state.pid==getOpenedProcessID(),'游戏进程已变化') + local clNow=assert(q(fn+0x10),'自动闪避函数身份不可读') + local nameNow=assert(q(fn+0x18),'自动闪避函数名称不可读') + local indexNow=assert(readInteger(fn+0xC),'自动闪避函数索引不可读') + local ownerNow=assert(q(fn+0x20),'自动闪避函数归属不可读') + assert(clNow==id.class and nameNow==id.name and indexNow==id.index and ownerNow==cl,'自动闪避函数已被替换') + local data,n=array(fn+0xB0,4096) + return data==address and n==size + end + local function resolve(kind,at,name) + if kind=='name'or kind=='virtual'then return fname(address+at+1)==name end + local p=q(address+at+1);if not ptr(p)then return false end + if kind=='call'then return fname(classOf(p)+0x18)=='Function'and fname(p+0x18)==name end + local prop=field(fn,name)or field(cl,name) + return prop and prop.address==p + end + assert(valid(pawnID)and valid(aid)and q(asc+0x20)==c.pawn,'自动闪避开启前玩家已变化') + return StartAutoDodgeManager({address=address,size=size,valid=bindingValid,resolve=resolve, + localValid=function()local now=context();return now and now.pawn==c.pawn and valid(pawnID)end}) +end diff --git a/runtime/resources/CombatParameters.lua b/runtime/resources/CombatParameters.lua new file mode 100644 index 0000000..e8cf602 --- /dev/null +++ b/runtime/resources/CombatParameters.lua @@ -0,0 +1,304 @@ +-- Appended in the same private reflection scope as PlayerSpeed.lua. +local function frameValue(value) + assert(finite(value)and value%1==0 and value>=1 and value<=120,'窗口帧数必须是 1 到 120 的整数');return value +end +local function frameLeaseValid(l) + if not l or state.pid~=getOpenedProcessID()then return false end + local id=l.object + local cl=q(id.address+0x10);local name=q(id.address+0x18);local index=readInteger(id.address+0xC) + assert(cl~=nil and name~=nil and index~=nil,'战斗参数对象身份不可读,保留恢复信息') + if cl~=id.class or name~=id.name or index~=id.index then return false end + local owner=q(id.address+0x20);assert(owner~=nil,'战斗参数归属不可读,保留恢复信息') + return owner==l.owner +end +local function readParameter(l)return (l.kind=='float'and readFloat or readInteger)(l.object.address+l.offset)end +local function writeParameter(l,v)return (l.kind=='float'and writeFloat or writeInteger)(l.object.address+l.offset,v)end +local function applyPair(leases,requested,additive) + local before,values={},{} + assert(#leases>=1 and #leases<=2,'战斗参数绑定缺失') + for i,l in ipairs(leases)do + assert(frameLeaseValid(l),'格挡配置对象身份发生变化') + local value=assert(readParameter(l),'战斗参数不可读') + assert(finite(value)and value>=0 and value<=(l.kind=='float'and 3 or 1200),'战斗参数原值异常') + before[i]={value=value,base=l.base,lastWritten=l.lastWritten} + local base=l.lastWritten~=nil and value==l.lastWritten and l.base or value + local target=additive and base+requested[i]/100 or requested[i] + values[i]=l.kind=='float'and quantize(target)or target + assert(finite(values[i])and values[i]<=(l.kind=='float'and 3 or 120),'战斗参数目标值异常') + end + local ok,e=pcall(function() + for i,l in ipairs(leases)do + assert(frameLeaseValid(l),'格挡配置对象身份发生变化') + local old=before[i] + if l.lastWritten==nil or old.value~=l.lastWritten then l.base=old.value end + l.lastWritten=values[i] + if old.value~=values[i]then assert(writeParameter(l,values[i]),'战斗参数写入失败')end + end + end) + if not ok then + local errors={} + for i=#leases,1,-1 do + local l=leases[i];local old=before[i] + local restored,why=pcall(function() + assert(frameLeaseValid(l),'恢复时配置对象身份发生变化') + local current=readParameter(l) + if current==values[i]then assert(writeParameter(l,old.value),'成对参数恢复失败') + else assert(current==old.value,'恢复目标已被游戏更改,已拒绝覆盖')end + l.base=old.base;l.lastWritten=old.lastWritten + end) + if not restored then errors[#errors+1]=tostring(why)end + end + error(tostring(e)..(#errors>0 and '; '..table.concat(errors,'; ')or '')) + end +end +function ApplyCombatFramePair(leases,normal,broken) + assert(#leases==2,'格挡窗口成对绑定缺失') + return applyPair(leases,{frameValue(normal),frameValue(broken)},false) +end +local function bonusValue(v) + assert(finite(v)and v>=0 and v<=100,'处决阈值加成必须在 0 到 100 个百分点之间');return v +end +function ApplyExecutionThresholdPair(leases,normal,broken) + assert(#leases==2,'处决阈值成对绑定缺失') + for _,l in ipairs(leases)do assert(l.kind=='float','处决属性绑定类型错误')end + return applyPair(leases,{bonusValue(normal),bonusValue(broken)},true) +end +function RestoreCombatFramePair(leases) + local errors={} + for _,l in ipairs(leases or {})do + local ok,e=pcall(function() + if frameLeaseValid(l)and l.lastWritten~=nil then + local current=assert(readParameter(l),'战斗参数不可读,保留恢复信息以便重试') + if current==l.lastWritten then assert(writeParameter(l,l.base),'战斗参数恢复失败')end + l.base=nil;l.lastWritten=nil + end + end) + if not ok then errors[#errors+1]=tostring(e)end + end + assert(#errors==0,table.concat(errors,'; ')) +end +local function guardBinding(c) + local weapons=q(c.pawn+offset(c.id.class,'Character Weapons Component'));local wid=identity(weapons) + assert(wid and q(weapons+0x20)==c.pawn,'玩家武器组件不可用') + local combined=q(weapons+offset(wid.class,'GlobalConfig'));local gid=identity(combined) + assert(gid and fname(gid.class+0x18)=='PDA_GlobalConfig_Combined_C','当前难度配置不可用') + local combat=q(combined+offset(gid.class,'Combat Config'));local id=identity(combat) + assert(id and fname(id.class+0x18)=='PDA_GlobalCombatConfig_C','战斗配置不可用') + local outer=q(combat+0x20);assert(ptr(outer),'战斗配置归属不可用') + local leases={} + for _,name in ipairs({'Deflect Perfect Window Frames','Deflect Perfect Window Frames On Break'})do + local p=field(id.class,name,true);assert(p.size==4,'格挡窗口字段结构发生变化') + local v=assert(readInteger(combat+p.offset),'格挡窗口不可读');assert(v>=1 and v<=120,'格挡窗口原值超出已验证范围') + leases[#leases+1]={object=id,owner=outer,offset=p.offset} + end + assert(valid(c.id)and valid(wid)and q(weapons+offset(wid.class,'GlobalConfig'))==combined,'玩家难度配置已变化') + return {object=id,leases=leases,name=fname(combat+0x18)} +end +function EnablePerfectGuardWindow() + assert(not PBZ_PerfectGuardWindow,'完美格挡窗口已经开启') + local s={pid=state.pid} + s.refresh=function() + local c=context() + if not c then RestoreCombatFramePair(s.binding and s.binding.leases);s.binding=nil;return end + local nextBinding=guardBinding(c) + if not s.binding or not valid(s.binding.object)or s.binding.object.address~=nextBinding.object.address then + RestoreCombatFramePair(s.binding and s.binding.leases);s.binding=nextBinding + end + if not s.normal then s.normal=readInteger(s.binding.object.address+s.binding.leases[1].offset);s.broken=readInteger(s.binding.object.address+s.binding.leases[2].offset)end + ApplyCombatFramePair(s.binding.leases,s.normal,s.broken);s.lastError=nil + end + s.stop=function()RestoreCombatFramePair(s.binding and s.binding.leases);if s.timer then s.timer.destroy();s.timer=nil end;PBZ_PerfectGuardWindow=nil end + s.refresh();s.timer=createTimer(nil,false);s.timer.Interval=250 + s.timer.OnTimer=function() + local ok,e=pcall(s.refresh) + if not ok then + local restored,why=pcall(RestoreCombatFramePair,s.binding and s.binding.leases) + if restored then s.binding=nil end + s.lastError=tostring(e)..(restored and ''or '; '..tostring(why)) + end + end + PBZ_PerfectGuardWindow=s;s.timer.Enabled=true +end +function PerfectGuardFrameValues() + local s=assert(PBZ_PerfectGuardWindow,'请先开启完美格挡窗口');return ('%d,%d'):format(s.normal,s.broken) +end +function SetPerfectGuardFrames(normal,broken) + normal=frameValue(normal);broken=frameValue(broken) + local s=assert(PBZ_PerfectGuardWindow,'请先开启完美格挡窗口');assert(s.pid==getOpenedProcessID(),'游戏进程已变化') + local c=assert(context(),'请先进入可操作的场景');local b=guardBinding(c) + assert(s.binding and valid(s.binding.object)and s.binding.object.address==b.object.address,'当前难度配置已变化,请稍后再应用') + local ok,e=pcall(ApplyCombatFramePair,s.binding.leases,normal,broken) + if not ok then s.lastError=tostring(e);error(e)end + s.normal=normal;s.broken=broken;s.lastError=nil;return true +end +function CombatParametersPreflight() + local c=assert(context(),'请先进入可操作的场景');local b=guardBinding(c) + return ('READ_ONLY_OK pid=%d combat=%s normal=%d on_break=%d shared_config=true'):format(state.pid,b.name,readInteger(b.object.address+b.leases[1].offset),readInteger(b.object.address+b.leases[2].offset)) +end +local function executionBinding(c) + local attrs=q(c.pawn+offset(c.id.class,'AttributeSetBase'));local id=identity(attrs) + assert(id and fname(id.class+0x18)=='BasicAttributeSet','玩家处决属性不可用') + local outer=q(attrs+0x20);assert(ptr(outer),'处决属性归属不可用') + local leases={} + for _,name in ipairs({'ExecutionExecutorNormalHealthThreshold','ExecutionExecutorBreakHealthThreshold'})do + local p=field(id.class,name,true) + assert(p.size==16 and fname(p.type+0x18)=='GameplayAttributeData','处决阈值属性结构发生变化') + local base=assert(readFloat(attrs+p.offset+8),'处决属性基值不可读') + local current=assert(readFloat(attrs+p.offset+12),'处决属性当前值不可读') + assert(finite(base)and finite(current)and base>=0 and base<=2 and current>=0 and current<=3,'处决属性原值异常') + leases[#leases+1]={object=id,owner=outer,offset=p.offset+12,kind='float'} + end + assert(valid(c.id)and valid(id)and q(c.pawn+offset(c.id.class,'AttributeSetBase'))==attrs,'玩家处决属性已变化') + return {object=id,leases=leases,pawn=c.pawn} +end +function EnableExecutionThreshold() + assert(not PBZ_ExecutionThreshold,'处决生命阈值已经开启') + local s={pid=state.pid,normal=0,broken=0} + local function restore() + RestoreCombatFramePair(s.binding and s.binding.leases);s.binding=nil + end + s.refresh=function() + local c=context();if not c then restore();return end + local nextBinding=executionBinding(c) + if not s.binding or s.binding.pawn~=c.pawn or not valid(s.binding.object)or s.binding.object.address~=nextBinding.object.address then + restore();s.binding=nextBinding + end + ApplyExecutionThresholdPair(s.binding.leases,s.normal,s.broken);s.lastError=nil + end + s.stop=function()restore();if s.timer then s.timer.destroy();s.timer=nil end;PBZ_ExecutionThreshold=nil end + s.refresh();s.timer=createTimer(nil,false);s.timer.Interval=100 + s.timer.OnTimer=function()local ok,e=pcall(s.refresh);if not ok then local restored,why=pcall(restore);s.lastError=tostring(e)..(restored and ''or '; '..tostring(why))end end + PBZ_ExecutionThreshold=s;s.timer.Enabled=true +end +function ExecutionThresholdValues() + local s=assert(PBZ_ExecutionThreshold,'请先开启处决生命阈值');return ('%.2f,%.2f'):format(s.normal,s.broken) +end +function SetExecutionThresholds(normal,broken) + normal=bonusValue(normal);broken=bonusValue(broken) + local s=assert(PBZ_ExecutionThreshold,'请先开启处决生命阈值');assert(s.pid==getOpenedProcessID(),'游戏进程已变化') + local c=assert(context(),'请先进入可操作的场景');local b=executionBinding(c) + assert(s.binding and s.binding.pawn==c.pawn and valid(s.binding.object)and s.binding.object.address==b.object.address,'玩家属性已变化,请稍后再应用') + local ok,e=pcall(ApplyExecutionThresholdPair,s.binding.leases,normal,broken) + if not ok then s.lastError=tostring(e);error(e)end + s.normal=normal;s.broken=broken;s.lastError=nil;return true +end +function ExecutionThresholdPreflight() + local c=assert(context(),'请先进入可操作的场景');local b=executionBinding(c) + return ('READ_ONLY_OK pid=%d pawn=%X attributes=%X executor_normal=%.5f executor_break=%.5f'):format(state.pid,c.pawn,b.object.address,readParameter(b.leases[1]),readParameter(b.leases[2])) +end +local function millisecondsValue(v) + assert(finite(v)and v>=50 and v<=1000,'完美闪避窗口必须在 50 到 1000 毫秒之间');return v +end +function ApplyPerfectDodgeWindow(lease,milliseconds) + assert(lease.kind=='float','闪避窗口绑定类型错误') + return applyPair({lease},{millisecondsValue(milliseconds)/1000},false) +end +local function propertyAddress(cl,name) + local classes={} + for depth=1,32 do + if not ptr(cl)or classes[cl]then break end;classes[cl]=true + local p=q(cl+0x50);local seen={} + for i=1,1024 do + if not ptr(p)or seen[p]then break end;seen[p]=true + if fname(p+0x20)==name then return p end;p=q(p+0x10) + end + cl=q(cl+0x40) + end + error('找不到属性描述符:'..name) +end +local function playerDodgeBase(c) + local asc=q(c.pawn+offset(c.id.class,'AbilitySystemComponent'));local aid=identity(asc) + assert(aid and q(asc+0x20)==c.pawn,'玩家能力组件不可用') + local container=field(aid.class,'ActivatableAbilities',true);local items=field(container.type,'Items',true) + local inner=q(propertyAddress(container.type,'Items')+0x78);local specType=ptr(inner)and q(inner+0x70) + local stride=ptr(inner)and readInteger(inner+0x34) + assert(ptr(specType)and fname(specType+0x18)=='GameplayAbilitySpec'and stride and stride>=64 and stride<=4096,'玩家能力列表结构发生变化') + local data,n=array(asc+container.offset+items.offset,1024);assert(data and n and n>0,'玩家能力列表不可用') + local abilityOffset=offset(specType,'Ability') + for i=0,n-1 do + local ability=q(data+i*stride+abilityOffset);local cl=ptr(ability)and classOf(ability);local seen={} + for depth=1,32 do + if not ptr(cl)or seen[cl]then break end;seen[cl]=true + if fname(cl+0x18)=='BP_PlayerDodge_Base_C'then + assert(valid(c.id)and valid(aid)and q(c.pawn+offset(c.id.class,'AbilitySystemComponent'))==asc,'玩家能力组件发生变化') + return cl + end + cl=q(cl+0x40) + end + end + error('当前玩家没有可识别的普通闪避能力') +end +local function dodgeEffectClass(base) + local fn=q(base+0x48);local seen={};local script + for i=1,1024 do + if not ptr(fn)or seen[fn]then break end;seen[fn]=true + if fname(fn+0x18)=='ExecuteUbergraph_BP_PlayerDodge_Base'then + local data,n=array(fn+0xB0,65536);assert(data and n and n>0,'普通闪避蓝图不可读') + script=assert(H('read',data,n),'普通闪避蓝图读取失败');break + end + fn=q(fn+0x28) + end + assert(script,'普通闪避蓝图入口缺失') + local found + for i=10,#script-8 do + if script:byte(i)==0x20 and(script:byte(i-9)==0x68 or script:byte(i-9)==0x1C or script:byte(i-9)==0x46)then + local cl=string.unpack('=0.01 and current<=2,'完美闪避窗口原值异常') + assert(valid(c.id)and valid(id)and q(cl+0x160)==object,'闪避效果对象发生变化') + return {object=id,pawn=c.pawn,leases={{object=id,owner=owner,offset=duration.offset+scalable.offset+value.offset,kind='float'}}} +end +function EnablePerfectDodgeWindow() + assert(not PBZ_PerfectDodgeWindow,'完美闪避窗口已经开启') + local s={pid=state.pid} + local function restore()RestoreCombatFramePair(s.binding and s.binding.leases);s.binding=nil end + s.refresh=function() + local c=context();if not c then restore();return end + if not s.binding or s.binding.pawn~=c.pawn or not frameLeaseValid(s.binding.leases[1])then restore();s.binding=dodgeBinding(c)end + if not s.milliseconds then s.milliseconds=readParameter(s.binding.leases[1])*1000 end + ApplyPerfectDodgeWindow(s.binding.leases[1],s.milliseconds);s.lastError=nil + end + s.stop=function()restore();if s.timer then s.timer.destroy();s.timer=nil end;PBZ_PerfectDodgeWindow=nil end + s.refresh();s.timer=createTimer(nil,false);s.timer.Interval=250 + s.timer.OnTimer=function()local ok,e=pcall(s.refresh);if not ok then local restored,why=pcall(restore);s.lastError=tostring(e)..(restored and ''or '; '..tostring(why))end end + PBZ_PerfectDodgeWindow=s;s.timer.Enabled=true +end +function PerfectDodgeMilliseconds() + local s=assert(PBZ_PerfectDodgeWindow,'请先开启完美闪避窗口');return ('%.2f'):format(s.milliseconds) +end +function SetPerfectDodgeMilliseconds(value) + value=millisecondsValue(value);local s=assert(PBZ_PerfectDodgeWindow,'请先开启完美闪避窗口') + assert(s.pid==getOpenedProcessID(),'游戏进程已变化');local c=assert(context(),'请先进入可操作的场景') + assert(s.binding and s.binding.pawn==c.pawn and frameLeaseValid(s.binding.leases[1]),'当前角色或效果身份已变化,请稍后再应用') + local ok,e=pcall(ApplyPerfectDodgeWindow,s.binding.leases[1],value) + if not ok then s.lastError=tostring(e);error(e)end + s.milliseconds=value;s.lastError=nil;return true +end +function PerfectDodgePreflight() + local c=assert(context(),'请先进入可操作的场景');local b=dodgeBinding(c) + return ('READ_ONLY_OK pid=%d pawn=%X effect=%X perfect_dodge_ms=%.3f shared_default=true'):format(state.pid,c.pawn,b.object.address,readParameter(b.leases[1])*1000) +end diff --git a/runtime/resources/DamageDemoDispatch.aa b/runtime/resources/DamageDemoDispatch.aa new file mode 100644 index 0000000..feba803 --- /dev/null +++ b/runtime/resources/DamageDemoDispatch.aa @@ -0,0 +1,23 @@ + test dword [rbx+0x7C],0x8 + je PBZ_DN_DemoNormalEvent + mov rcx,[rbx+0x20] + mov rax,[rbx+0x10] + cmp [rcx+0x20],rax + jne PBZ_UT_Reject + mov rdx,[rbx+0x60] + cmp rdx,[rdi+PAWN_OFFSET] + jne PBZ_UT_Reject + lea r8,[rbx+0x80] + movss xmm3,[rbx+0x98] + mov al,[rbx+0xA0] + mov [rsp+0x20],al + mov rax,PBZ_DN_DemoRender + call rax + jmp PBZ_DN_DemoFinished +PBZ_DN_DemoNormalEvent: + mov rcx,[rbx+0x20] + mov rdx,[rbx+0x40] + lea r8,[rbx+0x80] + mov rax,[rcx] + call qword [rax+0x260] +PBZ_DN_DemoFinished: diff --git a/runtime/resources/DamageInitializeDispatch.aa b/runtime/resources/DamageInitializeDispatch.aa new file mode 100644 index 0000000..201ae33 --- /dev/null +++ b/runtime/resources/DamageInitializeDispatch.aa @@ -0,0 +1,19 @@ + test dword [rbx+0x7C],0x20 + je PBZ_DN_InitializeNormalEvent + mov rcx,[rbx+0x20] + mov rax,[rbx+0x10] + cmp [rcx+0x20],rax + jne PBZ_UT_Reject + mov rax,[rbx+0x60] + cmp rax,[rdi+PAWN_OFFSET] + jne PBZ_UT_Reject + mov rax,PBZ_DN_InitializeNative + call rax + jmp PBZ_DN_InitializeFinished +PBZ_DN_InitializeNormalEvent: + mov rcx,[rbx+0x20] + mov rdx,[rbx+0x40] + lea r8,[rbx+0x80] + mov rax,[rcx] + call qword [rax+0x260] +PBZ_DN_InitializeFinished: diff --git a/runtime/resources/DamageNumbers.lua b/runtime/resources/DamageNumbers.lua new file mode 100644 index 0000000..bf46a49 --- /dev/null +++ b/runtime/resources/DamageNumbers.lua @@ -0,0 +1,260 @@ +-- Calls the registered native boolean setter on the game thread. +local damageOwner='damage_numbers' +local function booleanValue(value) + assert(value==0 or value==1,'伤害飘字开关必须是 0 或 1');return value +end +function DamageNumberSwitchWrites(object,value) + value=booleanValue(value) + assert(type(object)=='number'and object>=0x10000 and object<0x7FFFFFFFFFFF,'伤害飘字开关地址无效') + return {{0,object},{16,0x30+value}} +end +function CreateDamageNumberSession(binding,send) + local s={phase='idle',pending=false,generation=0} + local function read() + assert(binding.valid(),'伤害飘字原生开关身份已变化') + local value=assert(binding.read(),'伤害飘字状态不可读,保留恢复信息');return booleanValue(value) + end + local function request(value,kind) + assert(not s.pending,'伤害飘字的游戏线程请求仍在执行') + s.generation=s.generation+1;local generation=s.generation + s.pending=true;s.phase=kind=='enable'and 'enabling'or 'restoring';s.lastError=nil + local ok,e=pcall(send,value,function(success,why) + if not s.pending or generation~=s.generation then return end + s.pending=false + if not success then s.phase='error';s.lastError=why or '游戏拒绝了伤害飘字命令';return end + -- A completed engine command may already have changed the value even if the + -- readback fails. Keep ownership information so disabling can retry safely. + s.lastWritten=value + local verified,problem=pcall(function()assert(read()==value,'游戏没有接受伤害飘字开关,请关闭后重试')end) + if not verified then s.phase='error';s.lastError=tostring(problem);return end + s.phase=kind=='enable'and 'active'or 'restored';s.lastError=nil + if kind=='restore'then s.lastWritten=nil end + end) + if not ok then s.pending=false;s.phase='error';s.lastError=tostring(e);error(e)end + end + s.start=function() + assert(s.phase=='idle','伤害飘字会话已经启动');s.original=read() + if s.original==1 then s.phase='active'else request(1,'enable')end + end + s.observe=function() + if s.phase=='active'and not s.pending and read()~=1 then + s.phase='error';s.lastError='伤害飘字开关已被游戏或其他工具更改,请关闭后重试' + end + end + s.restore=function() + assert(not s.pending,'伤害飘字的游戏线程请求仍在执行') + if s.phase=='restored'then return end + if s.phase=='idle'or s.lastWritten==nil or not binding.valid()then s.phase='restored';s.lastError=nil;return end + if read()~=s.lastWritten then s.phase='restored';s.lastError=nil;return end + request(s.original,'restore') + end + return s +end + +-- Exact constructor bytes are tied to GameMemory.SupportedHash. RIP decoding +-- handles ASLR; the target name and all live pointer identities are rechecked. +local registration='48 83 EC 38 4C 8D 0D 95 78 56 0B C6 44 24 40 00 4C 8D 44 24 40 C7 44 24 20 00 00 00 00 48 8D 15 54 79 56 0B 48 8D 0D A5 16 ED 0C E8 E0 37 0A 00' +function FindNativeDamageNumberSwitch(util) + local ref=util.uniqueScan(registration) + local name=ref+36+assert(readInteger(ref+32,true),'伤害飘字开关名称不可读') + assert(util.exactString(name,24,true)=='pbz.DamageNumber.Enabled','伤害飘字开关名称不匹配') + local root=ref+43+assert(readInteger(ref+39,true),'伤害飘字注册位置不可读') + local base=getAddress('PBZ.exe');local limit=base+getModuleSize('PBZ.exe') + local function image(p)return util.ptr(p)and p>=base and p=base and root+24<=limit,'伤害飘字注册位置不在游戏模块内') + local vt=util.q(root);local object=util.q(root+8);local data=util.q(root+16) + assert(image(vt)and util.ptr(object)and util.ptr(data),'伤害飘字原生开关尚未初始化') + local objectVtable=util.q(object) + assert(root==base+0xE0CDEA0 and objectVtable==base+0xA6C61A8 and data==object+0x50 and util.q(objectVtable+0xB0)==base+0x12C0BF0,'伤害飘字原生对象结构发生变化') + local setter=base+0x12C0BF0 + assert(H('read',setter,5)==string.char(0xE9,0x5B,0x50,0x6A,0x0E) and + H('read',base+0xF965C50,31)==string.char(0x48,0x89,0x6C,0x24,0x10,0x48,0x89,0x74,0x24,0x18,0x57,0x48,0x83,0xEC,0x20,0x4D,0x8B,0x48,0x04,0x4C,0x89,0xC6,0x45,0x8B,0x00,0x48,0x89,0xD5,0x48,0x89,0xCF), + '伤害飘字原生设置入口已变化') + local b={pid=getOpenedProcessID(),object=object} + b.valid=function() + if b.pid~=getOpenedProcessID()then return false end + local currentVt=util.q(root);local currentObject=util.q(root+8);local currentData=util.q(root+16) + assert(currentVt~=nil and currentObject~=nil and currentData~=nil,'伤害飘字对象不可读,保留恢复信息') + if currentVt~=vt or currentObject~=object or currentData~=data then return false end + local currentObjectVt=util.q(object);assert(currentObjectVt~=nil,'伤害飘字对象身份不可读,保留恢复信息') + return currentObjectVt==objectVtable and util.q(objectVtable+0xB0)==setter + end + b.read=function()return readBytes(data,1)end + booleanValue(b.read());return b +end +function PreflightNativeDamageNumbers(util) + local binding=FindNativeDamageNumberSwitch(util) + return ('READ_ONLY_OK pid=%d native_damage_numbers=%d'):format(binding.pid,booleanValue(binding.read())) +end +function ProtectDamageNumberDispatcher(d,worldSlot) + if d.safeRequests then return end + local originalPump=assert(d.pump,'游戏线程调度器缺少 pump') + local function writeID(at,id) + assert(writeQword(at,id.address));assert(writeQword(at+8,id.class));assert(writeQword(at+16,id.name));assert(writeInteger(at+24,id.index)) + end + d.pump=function() + if d.closing or d.pid~=getOpenedProcessID()then return originalPump()end + assert(not FeatureTransactionActive(),'请等待游戏线程请求完成后重试关闭;功能事务不会执行或确认原生命令') + local m=getAddressSafe('PBZ_UT_Mailbox');if not m then return end + assert(readQword(m+8)==d.pid,'Utility mailbox PID mismatch') + local status=assert(readInteger(m),'游戏线程邮箱状态不可读') + if d.current then + if status==1 or status==2 then return end + local r=d.current + if status==3 or status==4 then r.engineStatus=status end + local completedStatus=r.engineStatus or status + local result + if completedStatus==3 then + if r.resultKind=='bool'then result=readBytes(m+0x80+r.resultOffset,1)else result=readQword(m+0x80+r.resultOffset)end + end + if completedStatus==3 and r.capture and not r.captured then r.payload=r.capture(m);r.captured=true end + -- Hold the request until acknowledgement succeeds. If the write committed + -- before throwing, engineStatus preserves the successful native result. + assert(writeInteger(m,0));d.current=nil + r.done=true;r.success=completedStatus==3;r.result=result + if r.callback then r.callback(r)end + elseif status~=0 then error('Utility mailbox has an unowned request')end + if #d.queue==0 then return end + local r=d.queue[1] + assert(not r.nativeEspProjection or d.nativeEspProjectionVersion==1,'ESP原生投影接口未安装'); + assert(not r.nativeAccessory or d.nativeAccessoryVersion==1,'饰品原生接口未安装'); + assert(not r.nativeDamageSwitch or d.nativeDamageSwitchVersion==1,'原生伤害飘字设置接口尚未安装') + assert(not r.nativeDamageInitialize or d.nativeDamageInitializationVersion==1,'原生伤害数字初始化接口尚未安装'); + assert(not r.nativeDamageDemo or d.nativeDamageDemoVersion==1,'原生渲染桥接尚未安装,拒绝作为普通反射命令执行') + if readQword(worldSlot)~=r.world or not d.valid(r.pcID)or not d.valid(r.receiver)or not d.valid(r.fn)or not d.valid(r.extra)or(r.validate and not r.validate())then + table.remove(d.queue,1);r.done=true;r.success=false;r.error='World or object identity changed' + if r.callback then r.callback(r)end;return + end + assert(writeQword(m+0x10,r.world));assert(writeQword(m+0x18,r.pcID.address)) + writeID(m+0x20,r.receiver);writeID(m+0x40,r.fn);writeID(m+0x60,r.extra) + assert(writeInteger(m+0x7C,r.nativeDamageSwitch and 256 or r.nativeEspProjection and 128 or r.nativeAccessory and 64 or r.nativeDamageInitialize and 32 or r.nativeDamageDemo and 8 or r.currentPawnOnly and 1 or 0)) + local zeros={};for i=1,512 do zeros[i]=0 end;assert(writeBytes(m+0x80,table.unpack(zeros))) + for _,w in ipairs(r.writes)do + local size=w[3]=='byte'and 1 or 8;assert(w[1]>=0 and w[1]+size<=0x200,'Parameter write outside mailbox') + if w[3]=='byte'then assert(writeBytes(m+0x80+w[1],w[2]))else assert(writeQword(m+0x80+w[1],w[2]))end + end + -- Parameters remain queued on failure; publication transfers ownership to + -- current before the game can consume them, including post-write exceptions. + d.current=r;table.remove(d.queue,1);assert(writeInteger(m,1)) + end + d.safeRequests=true +end +function StartNativeDamageNumbers(util) + assert(not PBZ_DamageNumbers,'伤害飘字已经开启') + local binding=FindNativeDamageNumberSwitch(util) + local objects=util.objectInventory({KismetSystemLibrary='Class'}) + local target=util.staticTarget(objects.KismetSystemLibrary,'ExecuteConsoleCommand',{ + WorldContextObject={0,8},Command={8,16},SpecificPlayer={24,8}}) + local dispatcher,assembly=util.acquireDispatch(damageOwner) + ProtectDamageNumberDispatcher(dispatcher,util.worldSlot) + local s={pid=getOpenedProcessID(),dispatcher=dispatcher,stopping=false,consoleTarget=target} + local session=CreateDamageNumberSession(binding,function(value,done) + local c=assert(util.context(),'请先进入可操作的游戏场景') + local pcID=assert(util.identity(c.pc),'玩家控制器不可用') + local request={owner=damageOwner,world=c.world,pcID=pcID,receiver=target.receiver,fn=target.fn, + extra=pcID,nativeDamageSwitch=true,currentPawnOnly=false,resultKind='object',resultOffset=0, + validate=binding.valid,writes=DamageNumberSwitchWrites(binding.object,value)} + request.callback=function(result)done(result.success,result.error)end + dispatcher.enqueue(request) + end) + s.session=session + s.tick=function() + if s.stopping then return end + if session.phase=='idle'then + if not getAddressSafe('PBZ_UT_Mailbox')then return end + dispatcher.validateHooks();session.start() + else session.observe()end + s.lastError=session.lastError + end + s.prepareStop=function() + s.stopping=true + if session.phase=='restored'and not session.pending then s.lastError=nil;return end + if s.pid==getOpenedProcessID()then + dispatcher.drain(damageOwner);session.restore();dispatcher.drain(damageOwner) + assert(not session.pending and session.phase=='restored',session.lastError or '伤害飘字原状态尚未恢复,请重试关闭') + end + s.lastError=nil + end + s.stop=function() + assert(s.pid~=getOpenedProcessID()or(not session.pending and session.phase=='restored'),'请先完成伤害飘字的游戏线程恢复') + local restore=dispatcher.release(damageOwner) + if s.timer then s.timer.destroy();s.timer=nil end + if PBZ_DamageNumbers==s then PBZ_DamageNumbers=nil end + return restore + end + s.timer=createTimer(nil,false);s.timer.Interval=100 + s.timer.OnTimer=function()local ok,e=pcall(s.tick);if not ok then s.lastError=tostring(e)end end + PBZ_DamageNumbers=s;s.timer.Enabled=true + return assembly +end +function PrepareNativeDamageNumberDisable() + local s=PBZ_DamageNumbers;if not s then return end + local ok,e=pcall(s.prepareStop) + if not ok then s.lastError=tostring(e);error(e)end +end + +-- Initialize the native container without emitting a fabricated damage event. +function NativeDamageNumberInitializationEntry() + local native=getAddress('PBZ.exe')+0x7e461c0 + local expected={0x40,0x57,0x48,0x83,0xEC,0x20,0x48,0x83,0xB9,0xB0,0,0,0,0,0x48,0x8B,0xF9} + local b=readBytes(native,#expected,true) + assert(b and table.concat(b,',')==table.concat(expected,','),'原生伤害数字初始化入口与支持版本不符') + return native +end +function StartInitializedNativeDamageNumbers(u) + NativeDamageNumberInitializationEntry() + local assembly=StartNativeDamageNumbers(u);local s=assert(PBZ_DamageNumbers) + assert(s.dispatcher.nativeDamageInitializationVersion==1,'共享调度器尚未支持伤害数字初始化') + s.initialization=CreateDamageNumberInitialization(u,s) + local originalTick=s.tick + s.tick=function() + originalTick();if s.stopping or s.session.phase~='active'then return end + s.initialization.tick();if s.initialization.error then s.lastError=s.initialization.error end + end + return assembly +end +function CreateDamageNumberInitialization(u,s) + local t={pending=false,completed=0} + t.tick=function() + if t.pending or t.error then return end + local c=u.context();if not c then t.world=nil;t.subsystem=nil;return end + if t.world==c.world and t.subsystem and u.valid(t.subsystem)and t.container and u.valid(t.container)and u.q(t.subsystem.address+0xB0)==t.container.address then return end + local data=u.q(c.world+0x9E0);local n=readInteger(c.world+0x9E8) + assert(u.ptr(data)and n and n>0 and n<2048,'当前场景伤害子系统映射不可读') + local sys + for i=0,n-1 do + local a=u.q(data+i*24+8);local cl=u.ptr(a)and u.classOf(a) + if u.ptr(cl)and u.fname(cl+0x18)=='PBZDamageNumberSubsystem'and u.q(a+0x20)==c.world then assert(not sys,'当前场景伤害子系统不唯一');sys=u.identity(a)end + end + assert(sys and u.valid(sys),'当前场景伤害子系统不可用') + local world=c.world + local r={nativeDamageInitialize=true,owner='damage_numbers',world=world,pcID=u.identity(c.pc),receiver=sys,fn=s.consoleTarget.fn,extra=u.identity(c.pawn),currentPawnOnly=false,resultKind='object',resultOffset=0,writes={}} + t.pending=true + r.callback=function(result) + t.pending=false + if s.stopping then return end + local now=u.context();if not now or now.world~=world or now.pc~=c.pc or now.pawn~=c.pawn then return end + if not result.success then t.error=result.error or '游戏拒绝初始化伤害数字界面';return end + if not u.valid(sys)or u.q(sys.address+0x20)~=world then return end + local container=u.q(sys.address+0xB0);local id=u.identity(container) + if not id or not u.valid(id)then t.error='游戏未能创建伤害数字界面';return end + t.world=world;t.subsystem=sys;t.container=id;t.completed=t.completed+1 + end + s.dispatcher.enqueue(r) + end + return t +end + +function PrepareSharedUtilityDisable(id) + local s=id==1337142254 and PBZ_StealthMode or PBZ_SaveMenuAnywhere + if s and s.prepareStop then s.prepareStop()end +end + +function PrepareSharedUtilityEnable() + local d=PBZ_UtilityDispatch + if d and d.closing then + assert(not FeatureTransactionActive(),'共享功能收尾应在开启事务前执行') + d.pump() + assert(PBZ_UtilityDispatch~=d,'上一功能尚未恢复完成,请稍后重试') + end +end diff --git a/runtime/resources/DamageSwitchDispatch.aa b/runtime/resources/DamageSwitchDispatch.aa new file mode 100644 index 0000000..dc514d7 --- /dev/null +++ b/runtime/resources/DamageSwitchDispatch.aa @@ -0,0 +1,37 @@ + test dword [rbx+0x7C],0x100 + je PBZ_DN_SwitchNormal + mov rax,PBZ_DN_SwitchRoot + mov rcx,[rax+8] + test rcx,rcx + je PBZ_UT_Reject + cmp rcx,[rbx+0x80] + jne PBZ_UT_Reject + lea rdx,[rcx+0x50] + cmp rdx,[rax+0x10] + jne PBZ_UT_Reject + mov rax,PBZ_DN_SwitchVtable + cmp [rcx],rax + jne PBZ_UT_Reject + mov rax,PBZ_DN_SwitchSetter + mov rdx,[rcx] + cmp [rdx+0xB0],rax + jne PBZ_UT_Reject + mov edx,[rcx+0x18] + test edx,0x00FF0000 + jne PBZ_UT_Reject + and edx,0xFF000000 + mov r8,[rbx+0x90] + sub r8,0x30 + cmp r8,1 + ja PBZ_UT_Reject + xor r8b,1 + cmp [rcx+0x50],r8b + jne PBZ_UT_Reject + mov [rbx+0xA0],rdx + lea rdx,[rbx+0x90] + lea r8,[rbx+0xA0] + call rax + jmp PBZ_DN_SwitchFinished +PBZ_DN_SwitchNormal: +__ORIGINAL__ +PBZ_DN_SwitchFinished: diff --git a/runtime/resources/EspNativeProjection.lua b/runtime/resources/EspNativeProjection.lua new file mode 100644 index 0000000..088b44a --- /dev/null +++ b/runtime/resources/EspNativeProjection.lua @@ -0,0 +1,201 @@ + +local owner='esp_projection' +local function geometryBytes(b) + if not b or #b<56 then return end + local g={string.unpack('0 then + local g=geometry(sw+0xD0) + if g and u.q(a+offset)==sw and u.q(a+offset+8)==ctrl and readInteger(ctrl+8)>0 then return g end + end + end + end + end + s.geometry=cached + local function stringAt(a,name) + local f=u.field(u.classOf(a),name,true);local data,n=u.array(a+f.offset,1024) + return data and n>1 and u.exactString(data,n-1,true)or '' + end + local function nameID(text) + local key=text:lower();if s.names[key]~=nil then return s.names[key]or nil end + local current=readInteger(u.namePool+8);local cursor=readInteger(u.namePool+12) + assert(current and current<8192 and cursor and cursor<=0x20000,'地图名称池不可读') + for block=0,current do + local address=u.q(u.namePool+0x10+block*8) + local data=address and H('read',address,block==current and cursor or 0x20000) + if data then local at=1 + while at+1<=#data do + local header=string.unpack('>6 + if n==0 then break end + local bytes=n*((header&1)==0 and 1 or 2) + if n>1023 or at+1+bytes>#data then break end + if header&1==0 and n==#text and data:sub(at+2,at+1+bytes):lower()==key then + local id=(block<<16)|((at-1)//2);s.names[key]=id;return id + end + at=at+2+bytes;if at%2==0 then at=at+1 end + end + end + end + s.names[key]=false + end + local function refresh(c) + if s.searchWorld~=c.world then s.searchWorld=c.world;s.lastSearch=-10000;s.roots={};s.system=nil end + if getTickCount()-s.lastSearch<2000 then return end + local found=H('espObjects',chunks,count,classes.WB_MapNew_C,classes.MapSubsystem) + s.lastSearch=getTickCount();s.roots={};s.system=nil + for _,a in ipairs(found)do + local cl=u.classOf(a) + if cl==classes.MapSubsystem then + if u.q(a+0x20)==c.gi or u.q(a+0x20)==c.world then assert(not s.system,'地图子系统不唯一');s.system=u.identity(a)end + elseif u.field(cl,'Gadget')then s.roots[#s.roots+1]={address=a,weak=weak(a)}end + end + end + local function mapState(c) + refresh(c) + local selected + for _,root in ipairs(s.roots)do local a=root.address + if root.weak and weak(a)==root.weak and visible(a)then + local cl=u.classOf(a);local canvas=u.q(a+u.offset(cl,'Gadget')) + local cg=cached(canvas) + if cg then + assert(not selected,'多个地图同时可见,请关闭后重新打开地图') + local mode=readBytes(a+u.offset(cl,'BigMapMode'),1) + local name=stringAt(a,'CurrentDisplayMapID');local layerID=readInteger(a+u.offset(cl,'CurrentLayer'),true) + local clip=u.q(a+u.offset(cl,'MapClickSurface')) + selected={root=a,canvas=canvas,geometry=cg,clip=cached(clip),id=nameID(name),name=name,layer=layerID,overview=mode~=0} + end + end + end + return selected + end + local d,assembly=u.acquireDispatch(owner);assert(d.nativeEspProjectionVersion==1,'缺少ESP批量查询接口') + ProtectDamageNumberDispatcher(d,u.worldSlot);s.dispatcher=d + local function stamp(p)return ('%s:%s:%.6f:%.6f:%.6f'):format(p.address,p.weak,p.position[1],p.position[2],p.position[3])end + s.project=function(points,w,h) + if s.stopping then return {},'正在关闭ESP'end + local c=u.context();if not c then s.results={};return {},'等待本地角色'end + local map=mapState(c);s.map=map + local key=('%s:%s:%s:%s'):format(c.world,c.pc,map and map.root or 0,map and((map.id or 0)..':'..tostring(map.layer))or 'screen') + if key~=s.key then s.key=key;s.results={};s.screenQueries={};s.viewport=nil;s.generation=s.generation+1 end + if map and(map.overview or not map.id or not map.clip or not s.system or not u.valid(s.system))then return {},'请选择已加载区域的分区地图'end + for _,p in ipairs(points)do p.tag=stamp(p)end + if not s.pending and getAddressSafe('PBZ_ESP_QueryBuffer')then + local batch={} + for i,p in ipairs(points)do + if not map or not s.results[p.tag] then + batch[#batch+1]=p + if map and #batch==300 then break end + p.projectionOrder=s.screenQueries[p.weak] or 0 + p.pointOrder=i + end + end + if #batch>300 then + -- Let unqueried and least recently queried points take the next screen batch. + table.sort(batch,function(a,b) + if a.projectionOrder==b.projectionOrder then return a.pointOrder0 then assert(H('write',buffer+64,EspSupport.packPoints(batch),false))end + local writes={{0,buffer},{8,#batch},{16,map and 1 or 2},{24,map and map.id or 0},{32,layer.address},{40,map and map.layer or 0},{48,viewportCDO.address},{56,viewport.address}} + local ids={u.identity(c.pc),screen,project,mapID,layer,viewport,viewportCDO,map and s.system or u.identity(c.pc)} + local weakIDs={};for i,id in ipairs(ids)do weakIDs[i]=u.weakReference(id)end + local generation=s.generation + local r={nativeEspProjection=true,owner=owner,world=c.world,pcID=ids[1],receiver=map and s.system or ids[1],fn=map and project or screen,extra=map and mapID or ids[1],resultKind='object',resultOffset=0,writes=writes} + r.validate=function()for i,id in ipairs(ids)do if not weakIDs[i]or u.weakReference(id)~=weakIDs[i]then return false end end;return true end + r.capture=function() + local raw=assert(H('read',buffer,64+#batch*48),'ESP查询结果不可读') + local result={viewport=map and geometryBytes(raw)or nil,points={}} + for i,p in ipairs(batch)do local at=65+(i-1)*48 + local x,y,flag=string.unpack('=0 and y>=0 and x<=w and y<=h then out[#out+1]={x=x,y=y,caption=p.caption,distance=p.distance,metres=p.metres,color=p.color}end + end + end + return out,s.error or(map and('大地图 · '..#out..' 个标记(当前已加载对象)')or('场景 · '..#out..' 个标记')) + end + s.prepareStop=function() + s.stopping=true + local ok,e=pcall(d.drain,owner) + if not ok then s.stopping=false;error(e,0) end + if s.pending then s.stopping=false;error('ESP原生查询仍在执行,请重试关闭',0) end + end + s.stop=function()assert(not s.pending,'请先完成ESP查询');local restore=d.release(owner);if PBZ_EspProjection==s then PBZ_EspProjection=nil end;return restore..'\nunregistersymbol(PBZ_ESP_QueryBuffer)\ndealloc(PBZ_ESP_QueryBuffer)'end + PBZ_EspProjection=s + return assembly..'\nalloc(PBZ_ESP_QueryBuffer,$4000)\nregistersymbol(PBZ_ESP_QueryBuffer)' +end +function PrepareEspProjectionDisable() + local s=PBZ_EspProjection;if s then s.prepareStop()end +end +function StopEspProjection() + local s=PBZ_EspProjection;return s and s.stop()or '' +end diff --git a/runtime/resources/EspProjectionDispatch.aa b/runtime/resources/EspProjectionDispatch.aa new file mode 100644 index 0000000..c3eac08 --- /dev/null +++ b/runtime/resources/EspProjectionDispatch.aa @@ -0,0 +1,109 @@ + + test dword [rbx+0x7C],0x80 + je PBZ_ESP_Normal + cmp qword [rbx+0x88],0x12C + ja PBZ_UT_Reject + mov rax,[rbx+0x80] + test rax,rax + je PBZ_UT_Reject + cmp qword [rbx+0x90],1 + je PBZ_ESP_Start + cmp qword [rbx+0x90],2 + jne PBZ_UT_Reject +PBZ_ESP_Start: + push r12 + push r13 + push r14 + push r15 + sub rsp,0x20 + mov r12,[rbx+0x80] + mov r13,[rbx+0x88] + xor r14d,r14d + cmp qword [rbx+0x90],1 + jne PBZ_ESP_Loop + mov rcx,[rbx+0xB0] + mov rdx,[rbx+0xB8] + lea r8,[rbx+0x100] + mov rax,[rbx+0x18] + mov [r8],rax + mov rax,[rcx] + call qword [rax+0x260] + xor esi,esi +PBZ_ESP_CopyGeometry: + mov rax,[rbx+rsi+0x108] + mov [r12+rsi],rax + add esi,8 + cmp esi,0x38 + jb PBZ_ESP_CopyGeometry +PBZ_ESP_Loop: + cmp r14,r13 + jae PBZ_ESP_Done + imul r15,r14,0x30 + lea r15,[r12+r15+0x40] + mov qword [r15+0x28],0 + mov rax,[r15] + mov [rbx+0x100],rax + mov rax,[r15+8] + mov [rbx+0x108],rax + mov rax,[r15+0x10] + mov [rbx+0x110],rax + cmp qword [rbx+0x90],2 + je PBZ_ESP_Screen + mov rcx,[rbx+0x20] + mov rdx,[rbx+0x60] + lea r8,[rbx+0x100] + mov rax,[rcx] + call qword [rax+0x260] + mov rax,[rbx+0x118] + cmp rax,[rbx+0x98] + jne PBZ_ESP_Next + mov rcx,[rbx+0x20] + mov rdx,[rbx+0xA0] + lea r8,[rbx+0x100] + mov rax,[rcx] + call qword [rax+0x260] + mov eax,[rbx+0x118] + cmp eax,[rbx+0xA8] + jne PBZ_ESP_Next + mov rax,[rbx+0x98] + mov [rbx+0x118],rax + mov rcx,[rbx+0x20] + mov rdx,[rbx+0x40] + lea r8,[rbx+0x100] + mov rax,[rcx] + call qword [rax+0x260] + mov rax,[rbx+0x120] + mov [r15+0x18],rax + mov rax,[rbx+0x128] + mov [r15+0x20],rax + mov qword [r15+0x28],1 + jmp PBZ_ESP_Next +PBZ_ESP_Screen: + mov qword [rbx+0x118],0 + mov qword [rbx+0x120],0 + mov word [rbx+0x128],0 + mov rcx,[rbx+0x20] + mov rdx,[rbx+0x40] + lea r8,[rbx+0x100] + mov rax,[rcx] + call qword [rax+0x260] + cmp byte [rbx+0x129],0 + je PBZ_ESP_Next + mov rax,[rbx+0x118] + mov [r15+0x18],rax + mov rax,[rbx+0x120] + mov [r15+0x20],rax + mov qword [r15+0x28],1 +PBZ_ESP_Next: + inc r14 + jmp PBZ_ESP_Loop +PBZ_ESP_Done: + add rsp,0x20 + pop r15 + pop r14 + pop r13 + pop r12 + jmp PBZ_ESP_Finished +PBZ_ESP_Normal: +__ORIGINAL__ +PBZ_ESP_Finished: diff --git a/runtime/resources/EspSupport.lua b/runtime/resources/EspSupport.lua new file mode 100644 index 0000000..a80ac69 --- /dev/null +++ b/runtime/resources/EspSupport.lua @@ -0,0 +1,73 @@ + +-- Pure helpers, deliberately independent of the game or WPF. +EspSupport={} +local function finite(v)return type(v)=='number'and v==v and math.abs(v)<1e12 end +EspSupport.finite=finite +EspSupport.maxRangePosition=800 +function EspSupport.rangeMetres(position) + local step=math.max(0,math.min(EspSupport.maxRangePosition,position)) + return math.floor(10^(step/100)+0.5) +end +function EspSupport.distanceText(a,b) + local x,y,z=(a[1]-b[1])/100,(a[2]-b[2])/100,(a[3]-b[3])/100 + local metres=math.sqrt(x*x+y*y+z*z) + return ('[%dm]'):format(math.floor(metres+0.5)),metres +end +function EspSupport.absolute(g,x,y) + if not g or not finite(x)or not finite(y)then return end + local a,b=x*g[8]+y*g[10]+g[12],x*g[9]+y*g[11]+g[13] + if finite(a)and finite(b)then return a,b end +end +function EspSupport.localPoint(g,x,y) + if not g then return end + local det=g[8]*g[11]-g[9]*g[10] + if not finite(det)or math.abs(det)<1e-12 then return end + local a,b=x-g[12],y-g[13] + local px,py=(a*g[11]-b*g[10])/det,(b*g[8]-a*g[9])/det + if finite(px)and finite(py)then return px,py end +end +function EspSupport.mapPixel(canvas,viewport,clip,u,v,w,h) + if not canvas or not viewport or viewport[1]<=0 or viewport[2]<=0 then return end + local ax,ay=EspSupport.absolute(canvas,u*canvas[1],v*canvas[2]);if not ax then return end + if clip then local x,y=EspSupport.localPoint(clip,ax,ay) + if not x or x<0 or y<0 or x>clip[1]or y>clip[2]then return end + end + local x,y=EspSupport.localPoint(viewport,ax,ay);if not x then return end + x,y=x*w/viewport[1],y*h/viewport[2] + if x>=0 and x<=w and y>=0 and y<=h then return x,y end +end +function EspSupport.localize(items,loot) + local reverse,ambiguous={},{} + local count,total=0,0 + for id,english in pairs(items)do + total=total+1;local chinese=GetLocalizedItemName(id) + if chinese then + if reverse[english]and reverse[english]~=chinese then ambiguous[english]=true end + reverse[english]=chinese;items[id]=chinese;count=count+1 + else items[id]=nil end + end + local lc,lt=0,0 + for id,english in pairs(loot)do + lt=lt+1;local chinese=not ambiguous[english]and reverse[english] + if not chinese then chinese=GetLocalizedItemName(id:match('([^.]+)$')or id)end + loot[id]=chinese;if chinese then lc=lc+1 end + end + return count,total,lc,lt +end + +function EspSupport.screenFresh(now,thenTime) + local age=now-thenTime;return age>=0 and age<350 +end +function EspSupport.validProjection(x,y,onMap) + return finite(x)and finite(y)and(not onMap or x~=0 or y~=0) +end + +function EspSupport.packPoints(points) + assert(#points<=300,'ESP批量查询超出300点') + local bytes={} + for _,p in ipairs(points)do local v=p.position + assert(finite(v[1])and finite(v[2])and finite(v[3]),'ESP世界坐标无效') + bytes[#bytes+1]=string.pack('=0 and n<=100000 and n%1==0,'霸体标签计数异常')end + return v + end + restore=function() + if s.pending or s.restored then return end + if not s.owned or not binding.valid()then s.owned=false;s.active=false;s.restored=true;return end + send('read',function(value) + local before=counts(value) + if not binding.valid()then s.owned=false;s.restored=true;return end + if before[1]==0 and before[2]==0 then s.owned=false;s.restored=true;return end + send('remove',function() + s.owned=false;s.active=false + send('read',function(after) + after=counts(after);s.restored=true + for i=1,2 do assert(after[i]==math.max(0,before[i]-1),'关闭期间标签计数被其他状态改变;本功能已撤销一次')end + s.error=nil + end) + end) + end) + end + s.start=function() + if s.started or s.stopping then return end;s.started=true + send('read',function(value) + s.before=counts(value) + if s.stopping then restore();return end + assert(binding.valid(),'角色在开启前已经变化') + send('add',function() + s.owned=true + if s.stopping then restore();return end + send('read',function(after) + after=counts(after) + for i=1,2 do assert(after[i]>=s.before[i]+1,'游戏没有保留霸体状态,请关闭后重试')end + s.active=true;s.error=nil + if s.stopping then restore()end + end) + end) + end) + end + s.stop=function()s.stopping=true;s.error=nil;restore()end + return s +end + +local armorOwner='hyper_armor' +local armorTags={'CharacterState.Hitreact.Endure.Stand.Ultimate','CharacterState.Hitreact.Endure.Break.Lv8'} +local function findArmorName(u,name) + local blocks=assert(readInteger(u.namePool+8));local cursor=assert(readInteger(u.namePool+12)) + assert(blocks<8192 and cursor<=0x20000,'霸体名称池布局变化') + local needle=name:lower() + for block=blocks,0,-1 do + local data=u.q(u.namePool+0x10+block*8);local bytes=data and H('read',data,block==blocks and cursor or 0x20000) + if bytes then local text=bytes:lower();local from=1 + while true do local at=text:find(needle,from,true);if not at then break end + if at>=3 and(at-3)%2==0 then + local h=string.unpack('>6==#name then return(block<<16)|((at-3)//2)end + end + from=at+1 + end + end + end + error('游戏未注册霸体状态:'..name) +end +function EnableHyperArmor() + assert(not PBZ_HyperArmor,'霸体已经开启') + local u=NativeDamageNumberDependencies();u.prepareObjects() + local initial=assert(u.context(),'请先载入可操作角色') + local classes=u.objectInventory({AbilitySystemBlueprintLibrary='Class',PBZHitreactUtils='Class'}) + local function api(cl,name,size,rva,fields) + local t=u.staticTarget(cl,name,fields);assert(readSmallInteger(t.fn.address+0x106)==size and t.native==getAddress('PBZ.exe')+rva,'霸体原生接口与当前版本不符:'..name);return t + end + local add=api(classes.AbilitySystemBlueprintLibrary,'AddLooseGameplayTags',42,0x4CAAFD0,{Actor={0,8},GameplayTags={8,32},bShouldReplicate={40,1},ReturnValue={41,1}}) + local remove=api(classes.AbilitySystemBlueprintLibrary,'RemoveLooseGameplayTags',42,0x4CBD7F0,{Actor={0,8},GameplayTags={8,32},bShouldReplicate={40,1},ReturnValue={41,1}}) + local level=api(classes.PBZHitreactUtils,'GetEndureLevel',12,0x7D6DB00,{AbilitySystem={0,8},ReturnValue={8,4}}) + local brokenLevel=api(classes.PBZHitreactUtils,'GetAbilitySystemBreakEndureLevel',12,0x7D6D6D0,{AbilitySystem={0,8},ReturnValue={8,4}}) + local tags={findArmorName(u,armorTags[1]),findArmorName(u,armorTags[2])} + local s={pid=getOpenedProcessID(),u=u,tags=tags,add=add,remove=remove,level=level,brokenLevel=brokenLevel} + local function snapshot(c) + local pawn=assert(u.identity(c.pawn));local asc=u.q(c.pawn+u.offset(pawn.class,'AbilitySystemComponent')) + local id=assert(u.identity(asc),'玩家技能系统不可用') + assert(u.q(asc+0x20)==c.pawn,'技能系统不属于当前角色,拒绝使用未验证的持久状态系统') + local fn=assert(u.functions(id.class,'GetGameplayTagCount')) + assert(readSmallInteger(fn+0x106)==12 and u.q(fn+0x128)==getAddress('PBZ.exe')+0x4CB6940,'标签计数接口变化') + for n,spec in pairs({GameplayTag={0,8},ReturnValue={8,4}})do local f=u.field(fn,n,true);assert(f.offset==spec[1]and f.size==spec[2],'标签计数参数变化')end + return {pawn=pawn,asc=id,pawnWeak=assert(u.weakReference(pawn)),ascWeak=assert(u.weakReference(id)),countFn=assert(u.identity(fn))} + end + local function valid(b) + return s.pid==getOpenedProcessID()and u.q(b.asc.address+0x20)==b.pawn.address and u.weakReference(b.pawn)==b.pawnWeak and u.weakReference(b.asc)==b.ascWeak + and u.q(b.pawn.address+u.offset(b.pawn.class,'AbilitySystemComponent'))==b.asc.address + end + local first=snapshot(initial) + local d,assembly=u.acquireDispatch(armorOwner);ProtectDamageNumberDispatcher(d,u.worldSlot);s.dispatcher=d + local function request(b,target,writes,kind,offset,done,currentPawnOnly) + local c=u.context() + if not c or not valid(b)then done(false,'当前角色或技能系统已改变');return end + local r={owner=armorOwner,world=c.world,pcID=u.identity(c.pc),receiver=target.receiver,fn=target.fn,extra=b.pawn,currentPawnOnly=currentPawnOnly==true, + resultKind=kind,resultOffset=offset,writes=writes,validate=function()return valid(b)end} + r.capture=kind=='object'and function(mail)return readInteger(mail+0x80+offset,true)end or nil + r.callback=function(result) + if not result.success then done(false,result.error or '游戏拒绝霸体请求') + elseif kind=='bool'then done(result.result~=0,result.result==0 and '游戏未接受霸体标签命令'or nil) + else done(true,result.payload)end + end + d.enqueue(r) + end + local function bind(b) + s.binding=b + local lease=CreateHyperArmorLease({valid=function()return valid(b)end,enqueue=function(op,done) + if op=='read'then + local result={};local target={receiver=b.asc,fn=b.countFn} + request(b,target,{{0,tags[1]}},'object',8,function(ok,value) + if not ok then done(false,value);return end;result[1]=value + request(b,target,{{0,tags[2]}},'object',8,function(ok,value) + if not ok then done(false,value);return end;result[2]=value;s.lastCounts={result[1],result[2]};done(true,result) + end) + end) + else + local mail=assert(getAddressSafe('PBZ_UT_Mailbox'),'霸体调度器尚未安装') + local writes={{0,b.pawn.address},{8,mail+0x180},{16,2|(2<<32)},{0x100,tags[1]},{0x108,tags[2]}} + request(b,op=='add'and add or remove,writes,'bool',41,done,op=='add') + end + end}) + s.lease=lease;lease.start() + end + s.tick=function() + if s.stopping then return end + if not getAddressSafe('PBZ_UT_Mailbox')then return end + local c=u.context() + if s.lease then + s.lastError=s.lease.error or d.lastError + if s.lease.pending then return end + if s.lease.stopping or not c or not valid(s.binding)or c.pawn~=s.binding.pawn.address then + s.lease.stop();if s.lease.restored and not s.lease.owned then s.lease=nil;s.binding=nil end + return + end + elseif c then bind(snapshot(c))end + end + s.prepareStop=function() + s.stopping=true + if s.lease then + d.drain(armorOwner);s.lease.stop();d.drain(armorOwner) + assert(s.lease.restored and not s.lease.pending and not s.lease.owned,s.lease.error or '霸体状态尚未撤销,请进入角色场景后重试') + end + end + s.stop=function() + assert(not s.lease or(s.lease.restored and not s.lease.pending and not s.lease.owned),'请先完成霸体状态恢复') + local restore=d.release(armorOwner);if s.timer then s.timer.destroy();s.timer=nil end + if PBZ_HyperArmor==s then PBZ_HyperArmor=nil end;return restore + end + s.timer=createTimer(nil,false);s.timer.Interval=100 + s.timer.OnTimer=function()local ok,e=pcall(s.tick);if not ok then s.lastError=tostring(e)end end + PBZ_HyperArmor=s;s.timer.Enabled=true + return assembly +end +function PrepareHyperArmorDisable() + local s=PBZ_HyperArmor;if s then s.prepareStop()end +end +function DisableHyperArmor() + local s=PBZ_HyperArmor;return s and s.stop()or '' +end diff --git a/runtime/resources/ItemBrowser.lua b/runtime/resources/ItemBrowser.lua new file mode 100644 index 0000000..99d1c48 --- /dev/null +++ b/runtime/resources/ItemBrowser.lua @@ -0,0 +1,69 @@ +-- Keep the original CT inventory calls and mailbox. Only add a serial batch +-- controller and expose status to the native searchable catalogue window. +local function current() + return assert(PBZ_ItemBrowser,'物品生成接口尚未开启') +end +local function finish(s,b,message) + s.standaloneLastBatch=b;s.standaloneBatch=nil + s.status.Caption=('已处理 %d / %d 个请求。%s'):format(b.completed,b.quantity,message or '请核对游戏背包;是否入包由游戏规则决定。') +end +local function submitOne(s,b) + if b.cancel or s.cleanupRequested or s.disabling or s.pid~=getOpenedProcessID()then finish(s,b,'已停止后续生成。');return end + if readQword(s.worldSlot)~=b.world then finish(s,b,'场景已变化,已停止后续生成。');return end + local ok,e=pcall(s.addItem,b.item) + if not ok or not s.pending then + finish(s,b,'提交未完成:'..tostring(e or s.status.Caption));return false + end + s.status.Caption=('正在处理 %d / %d;请保持游戏继续运行。'):format(b.completed+1,b.quantity) + return true +end +function AttachStandaloneItemBrowser(s) + assert(not s.standaloneAttached,'物品批次控制器已存在') + s.standaloneAttached=true;s.standaloneItems={} + for _,group in ipairs(s.catalog)do for _,item in ipairs(group.items)do s.standaloneItems[#s.standaloneItems+1]=item end end + local original=assert(s.timer.OnTimer,'物品状态定时器不可用') + s.timer.OnTimer=function() + local previous=s.pending;original() + if PBZ_ItemBrowser~=s then s.standaloneBatch=nil;return end + local b=s.standaloneBatch;if not b then return end + if s.lastError then b.cancel=true;return end + if previous and not s.pending then + if s.lastResult==3 then b.completed=b.completed+1 + else finish(s,b,'当前请求被游戏拒绝或失效,已停止后续生成。');return end + end + if s.pending then + if getTickCount()-(s.queuedAt or 0)>10000 then s.status.Caption=('等待游戏处理;已处理 %d / %d。暂停菜单中不会继续生成。'):format(b.completed,b.quantity)end + return + end + if b.completed>=b.quantity then finish(s,b);return end + submitOne(s,b) + end +end +function RequestStandaloneItems(ordinal,quantity) + local s=current() + assert(s.standaloneAttached and s.ready and not s.lastError and not s.cleanupRequested and not s.disabling,'物品生成接口尚未就绪') + assert(s.pid==getOpenedProcessID(),'游戏进程已变化,请重新开启物品生成') + assert(not s.pending and not s.standaloneBatch,'已有物品请求正在处理') + assert(type(ordinal)=='number'and ordinal%1==0,'无效的物品选择') + local item=assert(s.standaloneItems[ordinal],'物品选择已失效') + local maximum=item.kind==1 and 99 or 1 + assert(type(quantity)=='number'and quantity%1==0 and quantity>=1 and quantity<=maximum,'该类物品的请求数量超出范围') + local world=readQword(s.worldSlot);assert(world and world~=0,'请先进入可操作的游戏场景') + local b={item=item,quantity=quantity,completed=0,world=world};s.standaloneBatch=b + assert(submitOne(s,b),'物品请求未能提交') + return s.status.Caption +end +function CancelStandaloneItemBatch() + local s=PBZ_ItemBrowser;local b=s and s.standaloneBatch + if b then b.cancel=true;if not s.pending then finish(s,b,'已停止后续生成。')end end +end +function StandaloneItemReady() + local s=PBZ_ItemBrowser + return s and s.ready and s.pid==getOpenedProcessID()and not s.lastError and not s.cleanupRequested and not s.disabling or false +end +function StandaloneItemPending() + local s=PBZ_ItemBrowser;return s and (s.pending~=nil or s.standaloneBatch~=nil)or false +end +function StandaloneItemMessage() + local s=PBZ_ItemBrowser;return s and s.status and s.status.Caption or '物品生成已关闭' +end diff --git a/runtime/resources/ItemNames.zh-CN.lua b/runtime/resources/ItemNames.zh-CN.lua new file mode 100644 index 0000000..f77419a --- /dev/null +++ b/runtime/resources/ItemNames.zh-CN.lua @@ -0,0 +1,882 @@ +-- Generated from the game's DT_LocTable.lang_zh_Hans. IDs are unchanged. +local names = { +["DT_Accessory"]={ +["AC_ActHit"]={name="影动猎杀仪",description=""}, +["AC_ActHitShachi"]={name="未配置中文名称",description=""}, +["AC_AnimMovement"]={name="舞扇",description=""}, +["AC_Attack"]={name="筋力绑带",description=""}, +["AC_BigHit"]={name="绝望护符",description=""}, +["AC_Bleed"]={name="雪与血",description=""}, +["AC_BreakAttack"]={name="追杀令",description=""}, +["AC_BreakDrink"]={name="静心小葫芦",description=""}, +["AC_BreakRecover"]={name="沉香念珠",description=""}, +["AC_BreakRegen"]={name="慈母护符",description=""}, +["AC_BreakShield"]={name="破盾符",description=""}, +["AC_Chaos"]={name="混沌狂戒",description=""}, +["AC_Combo"]={name="碧血云天",description=""}, +["AC_Control"]={name="细线球",description=""}, +["AC_Counter"]={name="反击护腕",description=""}, +["AC_Deflect"]={name="神机指环",description=""}, +["AC_Double"]={name="妙手连环",description=""}, +["AC_Drink"]={name="香薰药盒",description=""}, +["AC_DrinkCost"]={name="深宅药罐",description=""}, +["AC_EasyExecution"]={name="未配置中文名称",description=""}, +["AC_Electrified"]={name="月雷华灯",description=""}, +["AC_ElementRegen"]={name="灭法拂尘丝",description=""}, +["AC_Elemental"]={name="羽扇残羽",description=""}, +["AC_ElementalResistance"]={name="未配置中文名称",description=""}, +["AC_EvadePhantom"]={name="影魅面具",description=""}, +["AC_Execution"]={name="万杀巧锁",description=""}, +["AC_ExecutionSwitchCool"]={name="刽子手头巾",description=""}, +["AC_Frost"]={name="灭法冰棱",description=""}, +["AC_Health"]={name="珍玩妖织",description=""}, +["AC_HealthResistance"]={name="古甲残片",description=""}, +["AC_HeavyAttackCost"]={name="正气凌然",description=""}, +["AC_HeavyAttackDamage"]={name="残破容器",description=""}, +["AC_HeavyAttackShachi"]={name="独孤绝印",description=""}, +["AC_Ignite"]={name="瑞狮火球",description=""}, +["AC_Long"]={name="妙手千钧",description=""}, +["AC_Loot"]={name="聚宝盆",description=""}, +["AC_LowHealth"]={name="绝地求生令",description=""}, +["AC_LowShachi"]={name="同心双鱼佩",description=""}, +["AC_MagicWeapon"]={name="百相傩面",description=""}, +["AC_MartialWeapon"]={name="粗糙煌心",description=""}, +["AC_PerfectFrame"]={name="浑源经脉仪",description=""}, +["AC_PhysicalResistance"]={name="未配置中文名称",description=""}, +["AC_Poison"]={name="猛毒袋",description=""}, +["AC_PoisonRegen"]={name="活木符",description=""}, +["AC_PowerWeapon"]={name="力士神像",description=""}, +["AC_RandomDrink"]={name="开光玉佩",description=""}, +["AC_Ranged"]={name="神射之眼",description=""}, +["AC_RangedWeapon"]={name="无相神镜",description=""}, +["AC_Regen"]={name="未配置中文名称",description=""}, +["AC_ResistBleed"]={name="凝血符",description=""}, +["AC_ResistFire"]={name="辟火符",description=""}, +["AC_ResistIce"]={name="防冰符",description=""}, +["AC_ResistNonBreak"]={name="坚岩护腕",description=""}, +["AC_ResistPoison"]={name="食物防腐罐",description=""}, +["AC_ResistRanged"]={name="避箭护符",description=""}, +["AC_ResistThunder"]={name="避雷符",description=""}, +["AC_Resistance"]={name="未配置中文名称",description=""}, +["AC_Rider"]={name="斩骑符",description=""}, +["AC_Shachi"]={name="弦音护符",description=""}, +["AC_ShachiAttack"]={name="白山密令",description=""}, +["AC_ShachiCool"]={name="胭脂盒",description=""}, +["AC_ShachiRegen"]={name="杀气头巾",description=""}, +["AC_ShachiWeapon"]={name="暗源方块",description=""}, +["AC_SpiritShadow"]={name="暗源小笼",description=""}, +["AC_Stance"]={name="机簧护心镜",description=""}, +["AC_Stealth"]={name="屏息绑带",description=""}, +["AC_Summon"]={name="未配置中文名称",description=""}, +["AC_SummonDuration"]={name="人偶木心",description=""}, +["AC_SwitchEndure"]={name="神奇刀鞘",description=""}, +["AC_Tang"]={name="妙手在握",description=""}, +["AC_TimerEndure"]={name="百战魔躯",description=""}, +["AC_UltimateBreak"]={name="绝技护符",description=""}, +["AC_UltimateCharge"]={name="无名大师的扳指",description=""}, +}, +["DT_BookData"]={ +["B_kunlunsanjie"]={name="《昆仑三杰遗事》",description=""}, +}, +["DT_InventoryData"]={ +["AC_DrinkCost_1"]={name="药罐残片·盖",description=""}, +["AC_DrinkCost_2"]={name="药罐残片·链",description=""}, +["AC_DrinkCost_3"]={name="药罐残片·柄",description=""}, +["AC_DrinkCost_4"]={name="药罐残片·腹",description=""}, +["AC_MagicWeapon_1"]={name="傩面碎片·喜",description=""}, +["AC_MagicWeapon_2"]={name="傩面碎片·怒",description=""}, +["AC_MagicWeapon_3"]={name="傩面碎片·哀",description=""}, +["AC_PowerWeapon_1"]={name="力士神像碎片·头",description=""}, +["AC_PowerWeapon_2"]={name="力士神像碎片·臂",description=""}, +["AC_PowerWeapon_3"]={name="力士神像碎片·躯",description=""}, +["AC_PowerWeapon_4"]={name="力士神像碎片·腿",description=""}, +["AC_ResistPoison_1"]={name="食物防腐护符残片·之一",description=""}, +["AC_ResistPoison_2"]={name="食物防腐护符残片·之二",description=""}, +["AC_ShachiWeapon_1"]={name="暗源方块·榫",description=""}, +["AC_ShachiWeapon_2"]={name="暗源方块·卯",description=""}, +["Ac_Material_1"]={name="污秽残晶",description=""}, +["Ac_Material_4"]={name="提纯靛晶",description=""}, +["Bell_Item_PlaceHolder"]={name="回到最近铃铛",description=""}, +["Book_03"]={name="江湖异闻线索",description=""}, +["Book_04"]={name="村民遗物调查",description=""}, +["Book_05"]={name="庞镇众生相",description=""}, +["Book_06"]={name="正道联盟拾遗",description=""}, +["Book_08"]={name="杀气改造之谜",description=""}, +["Book_09"]={name="新娘阿花",description=""}, +["Book_10"]={name="昆仑三杰",description=""}, +["Book_11"]={name="墨玑子的弟子们",description=""}, +["Book_12"]={name="荒行子的背叛",description=""}, +["Book_14"]={name="妙手小张珍宝清单",description=""}, +["Book_15"]={name="左殇棋局",description=""}, +["Book_16"]={name="囚命",description=""}, +["Book_17"]={name="梦差",description=""}, +["Book_19"]={name="圣母娘娘之谜",description=""}, +["Book_20"]={name="各式发愿文",description=""}, +["Book_21"]={name="戏梦山庄的过往",description=""}, +["Book_22"]={name="水行帮拾遗",description=""}, +["Book_CS_01"]={name="沉思杂记",description=""}, +["Book_MengChai"]={name="梦差实验手札",description=""}, +["Book_MoJiZi"]={name="墨玑子绝笔",description=""}, +["Book_XC_01"]={name="“组织”",description=""}, +["Book_XiongFu"]={name="“四凶斧”案卷",description=""}, +["FA_0201"]={name="白赤练的记忆之花",description=""}, +["FA_0202"]={name="有关“龙体之术”的记忆之花",description=""}, +["FA_0203"]={name="有关“同门”的记忆之花",description=""}, +["FA_0205"]={name="虚空的记忆之花",description=""}, +["FA_0206"]={name="拳痴铁狂的记忆之花",description=""}, +["FA_0300"]={name="七星弟子的记忆之花",description=""}, +["FA_0301"]={name="倩倩的记忆之花",description=""}, +["FA_0303"]={name="“龙体”反抗者的记忆之花",description=""}, +["FA_0304"]={name="寻觅·记忆之花",description=""}, +["FA_0310"]={name="双侠的记忆之花",description=""}, +["FA_0401"]={name="实验受害者的记忆之花",description=""}, +["FA_0501"]={name="萤火的记忆之花",description=""}, +["FA_0502"]={name="江湖人士的记忆之花",description=""}, +["FA_0503"]={name="陆家村村民的记忆之花",description=""}, +["FA_0505"]={name="正道大师们的记忆之花",description=""}, +["FA_0600"]={name="慈母心·记忆之花",description=""}, +["FA_0601"]={name="关于“山庄实验”的记忆之花",description=""}, +["FA_0602"]={name="白雪儿·记忆之花",description=""}, +["FA_0603"]={name="舞狮尊主的记忆之花",description=""}, +["FA_0604"]={name="众正道头领的记忆之花",description=""}, +["FA_0701"]={name="高员外的记忆之花",description=""}, +["FA_0702"]={name="囚命弟子的记忆之花",description=""}, +["FA_0704"]={name="玉儿的记忆之花",description=""}, +["FA_0801"]={name="烟儿的记忆之花",description=""}, +["FA_0804"]={name="三面魔偶的记忆之花",description=""}, +["FA_1100"]={name="相煎何急·记忆之花",description=""}, +["FA_1200"]={name="冷荼的记忆之花",description=""}, +["FA_1201"]={name="水行帮众的记忆之花",description=""}, +["FA_1300"]={name="再会兄长·记忆之花",description=""}, +["FA_1301"]={name="关于“怪物”的记忆之花",description=""}, +["FA_1800"]={name="玄礼的记忆之花",description=""}, +["FA_1802"]={name="风雪刀客的记忆之花",description=""}, +["FA_1803"]={name="有关“禁忌浊经”的记忆之花",description=""}, +["FA_1804"]={name="有关“闯入者”的记忆之花",description=""}, +["FA_7000"]={name="关于“荒行子”的记忆之花",description=""}, +["FS_12001"]={name="冷荼的记忆花瓣其一:紫色碎片",description="",aliases="左殇与冷荼:紫色碎片1\n冷荼的记忆之花瓣其一:紫色碎片\n冷荼的记忆之花其一:紫色碎片"}, +["FS_12002"]={name="冷荼的记忆花瓣其二:分享",description="",aliases="左殇与冷荼:紫色碎片2\n冷荼的记忆之花瓣其二:分享\n冷荼的记忆之花其二:分享"}, +["FS_12003"]={name="冷荼的记忆花瓣其三:无限煌心",description="",aliases="左殇与冷荼:紫色碎片3\n冷荼的记忆之花瓣其三:无限煌心\n冷荼的记忆之花其三:无限煌心"}, +["FS_12004"]={name="冷荼的记忆花瓣其四:装载煌心之躯",description="",aliases="左殇与冷荼:紫色碎片4\n冷荼的记忆之花瓣其四:装载煌心之躯\n冷荼的记忆之花其四:装载煌心之躯"}, +["FS_14001"]={name="冷荼的记忆花瓣其六:枯骨裂缝",description="",aliases="冷荼与至高者2:枯骨裂缝\n冷荼的记忆之花瓣其六:枯骨裂缝\n冷荼的记忆之花其六:枯骨裂缝"}, +["FS_18001"]={name="玄礼的记忆花瓣其一:玄家后人",description="",aliases="左殇与玄礼1\n玄礼的记忆之花瓣其一:玄家后人\n玄礼的记忆之花其一:玄家后人"}, +["FS_18002"]={name="玄礼的记忆花瓣其四:梦华",description="",aliases="左殇与玄礼4\n玄礼的记忆之花瓣其四:梦华\n玄礼的记忆之花其四:梦华"}, +["FS_18003"]={name="玄礼的记忆花瓣其二:天外之物",description="",aliases="左殇与玄礼2\n玄礼的记忆之花瓣其二:天外之物\n玄礼的记忆之花其二:天外之物"}, +["FS_18004"]={name="玄礼的记忆花瓣其三:“龙”与“浊”",description="",aliases="左殇与玄礼3\n玄礼的记忆之花瓣其三:“龙”与“浊”\n玄礼的记忆之花其三:“龙”与“浊”"}, +["FS_18005"]={name="玄礼的记忆花瓣其五:融于“浊”者",description="",aliases="左殇与玄礼5\n玄礼的记忆之花瓣其五:融于“浊”者\n玄礼的记忆之花其五:融于“浊”者"}, +["FS_18006"]={name="玄礼的记忆花瓣其六:掌控",description="",aliases="左殇与玄礼6\n玄礼的记忆之花瓣其六:掌控\n玄礼的记忆之花其六:掌控"}, +["F_02001"]={name="虚空留下的记忆之花",description=""}, +["F_02011"]={name="白赤练的记忆花瓣其一:唯一的救赎",description="",aliases="白赤练的残存记忆·其一\n白赤练的记忆之花瓣其一:唯一的救赎\n白赤练的记忆之花其一:唯一的救赎"}, +["F_02012"]={name="白赤练的记忆花瓣其二:圣母谶言",description="",aliases="白赤练的残存记忆·其二\n白赤练的记忆之花瓣其二:圣母谶言\n白赤练的记忆之花其二:圣母谶言"}, +["F_02021"]={name="有关“龙体之术”的记忆花瓣其一:手谕",description="",aliases="有关“龙体”的残存记忆·其一\n有关“龙体之术”的记忆之花瓣其一:手谕\n有关“龙体之术”的记忆之花其一:手谕"}, +["F_02022"]={name="有关“龙体之术”的记忆花瓣其二:同流合污还是贪生怕死?",description="",aliases="有关“龙体”的残存记忆·其二\n有关“龙体之术”的记忆之花瓣其二:同流合污还是贪生怕死?\n有关“龙体之术”的记忆之花其二:同流合污还是贪生怕死?"}, +["F_02023"]={name="有关“龙体之术”的记忆花瓣其三:崭新的力量",description="",aliases="有关“龙体”的残存记忆·其三\n有关“龙体之术”的记忆之花瓣其三:崭新的力量\n有关“龙体之术”的记忆之花其三:崭新的力量"}, +["F_02031"]={name="有关“同门”的记忆花瓣其一:同门之谊",description="",aliases="有关“同门”的残存记忆·其一\n有关“同门”的记忆之花瓣其一:同门之谊\n有关“同门”的记忆之花其一:同门之谊"}, +["F_02032"]={name="有关“同门”的记忆花瓣其二:三令五申",description="",aliases="有关“同门”的残存记忆·其二\n有关“同门”的记忆之花瓣其二:三令五申\n有关“同门”的记忆之花其二:三令五申"}, +["F_02033"]={name="有关“同门”的记忆花瓣其三:绝不姑息",description="",aliases="有关“同门”的残存记忆·其三\n有关“同门”的记忆之花瓣其三:绝不姑息\n有关“同门”的记忆之花其三:绝不姑息"}, +["F_02041"]={name="有关“龙体之术”的记忆花瓣其四:抗争之法",description="",aliases="有关“龙体”的残存记忆·其四\n有关“龙体之术”的记忆之花瓣其四:抗争之法\n有关“龙体之术”的记忆之花其四:抗争之法"}, +["F_02051"]={name="虚空的记忆花瓣其一:弹奏",description="",aliases="虚空的记忆之花1\n虚空的记忆之花瓣其一:弹奏\n虚空的记忆之花其一:弹奏"}, +["F_02052"]={name="虚空的记忆花瓣其二:病重",description="",aliases="虚空的记忆之花2\n虚空的记忆之花瓣其二:病重\n虚空的记忆之花其二:病重"}, +["F_02053"]={name="虚空的记忆花瓣其三:金玉阁",description="",aliases="虚空的记忆之花3\n虚空的记忆之花瓣其三:金玉阁\n虚空的记忆之花其三:金玉阁"}, +["F_02054"]={name="虚空的记忆花瓣其四:不速之客",description="",aliases="虚空的记忆之花4\n虚空的记忆之花瓣其四:不速之客\n虚空的记忆之花其四:不速之客"}, +["F_02055"]={name="虚空的记忆花瓣其五:移魂秘典",description="",aliases="虚空的记忆之花5\n虚空的记忆之花瓣其五:移魂秘典\n虚空的记忆之花其五:移魂秘典"}, +["F_02056"]={name="虚空的记忆花瓣其六:新生",description="",aliases="虚空的记忆之花6\n虚空的记忆之花瓣其六:新生\n虚空的记忆之花其六:新生"}, +["F_02063"]={name="拳痴铁狂的记忆花瓣其一:衣钵",description="",aliases="拳痴铁狂1\n拳痴铁狂的记忆之花瓣其一:衣钵\n拳痴铁狂的记忆之花其一:衣钵"}, +["F_02064"]={name="拳痴铁狂的记忆花瓣其二:不同的道路",description="",aliases="拳痴铁狂2\n拳痴铁狂的记忆之花瓣其二:不同的道路\n拳痴铁狂的记忆之花其二:不同的道路"}, +["F_03001"]={name="双侠的记忆花瓣其二:自己的决定",description="",aliases="大师兄的残存记忆\n双侠的记忆之花瓣其二:自己的决定\n双侠的记忆之花其二:自己的决定"}, +["F_03002"]={name="七星弟子的记忆花瓣其一:毒药还是解药?",description="",aliases="二师兄的残存记忆\n七星弟子的记忆之花瓣其一:毒药还是解药?\n七星弟子的记忆之花其一:毒药还是解药?"}, +["F_03003"]={name="七星弟子的记忆花瓣其二:空壳",description="",aliases="三师兄的残存记忆\n七星弟子的记忆之花瓣其二:空壳\n七星弟子的记忆之花其二:空壳"}, +["F_03004"]={name="七星弟子的记忆花瓣其三:谁会在意?",description="",aliases="四师兄的残存记忆\n七星弟子的记忆之花瓣其三:谁会在意?\n七星弟子的记忆之花其三:谁会在意?"}, +["F_03005"]={name="七星弟子的记忆花瓣其四:遥遥无期",description="",aliases="五师弟的残存记忆\n七星弟子的记忆之花瓣其四:遥遥无期\n七星弟子的记忆之花其四:遥遥无期"}, +["F_03006"]={name="七星弟子的记忆花瓣其五:百利无弊",description="",aliases="六师弟的残存记忆\n七星弟子的记忆之花瓣其五:百利无弊\n七星弟子的记忆之花其五:百利无弊"}, +["F_03007"]={name="七星弟子的记忆花瓣其六:“公子”",description="",aliases="七师弟的残存记忆\n七星弟子的记忆之花瓣其六:“公子”\n七星弟子的记忆之花其六:“公子”"}, +["F_03008"]={name="双侠的记忆花瓣其一:正道的决定",description="",aliases="红衣女剑客的残存记忆\n双侠的记忆之花瓣其一:正道的决定\n双侠的记忆之花其一:正道的决定"}, +["F_03011"]={name="倩倩的记忆花瓣其一:往事",description="",aliases="倩倩的残存记忆·其一\n倩倩的记忆之花瓣其一:往事\n倩倩的记忆之花其一:往事"}, +["F_03012"]={name="倩倩的记忆花瓣其二:外壳",description="",aliases="倩倩的残存记忆·其二\n倩倩的记忆之花瓣其二:外壳\n倩倩的记忆之花其二:外壳"}, +["F_03013"]={name="倩倩的记忆花瓣其三:师父",description="",aliases="倩倩的残存记忆·其三\n倩倩的记忆之花瓣其三:师父\n倩倩的记忆之花其三:师父"}, +["F_03031"]={name="“龙体”反抗者的记忆花瓣其一:追杀",description="",aliases="荒行子部下.追杀\n“龙体”反抗者的记忆之花瓣其一:追杀\n“龙体”反抗者的记忆之花其一:追杀"}, +["F_03041"]={name="“龙体”反抗者的记忆花瓣其二:分道扬镳",description="",aliases="赵笛·分道扬镳\n“龙体”反抗者的记忆之花瓣其二:分道扬镳\n“龙体”反抗者的记忆之花其二:分道扬镳"}, +["F_03042"]={name="寻觅的记忆花瓣其二:同赴",description="",aliases="魏三船·错误\n寻觅的记忆之花瓣其二:同赴\n寻觅·记忆之花其二:同赴"}, +["F_03043"]={name="寻觅的记忆花瓣其一:爱人的呼唤",description="",aliases="骨婉约的残存记忆\n寻觅的记忆之花瓣其一:爱人的呼唤\n寻觅·记忆之花其一:爱人的呼唤"}, +["F_04011"]={name="实验受害者的记忆花瓣其一:有谁来……救救我?",description="",aliases="村妇.绝望\n实验受害者的记忆之花瓣其一:有谁来……救救我?\n实验受害者的记忆之花其一:有谁来……救救我?"}, +["F_04012"]={name="实验受害者的记忆花瓣其二:杀……杀!",description="",aliases="女剑客.癫狂\n实验受害者的记忆之花瓣其二:杀……杀!\n实验受害者的记忆之花其二:杀……杀!"}, +["F_04013"]={name="实验受害者的记忆花瓣其三:求生?求死?",description="",aliases="女掌门.解脱\n实验受害者的记忆之花瓣其三:求生?求死?\n实验受害者的记忆之花其三:求生?求死?"}, +["F_05011"]={name="萤火的记忆花瓣其一:湖心",description="",aliases="幻术师萤火.湖心秘密一\n萤火的记忆之花瓣其一:湖心\n萤火的记忆之花其一:湖心"}, +["F_05012"]={name="萤火的记忆花瓣其二:幻术师聚落",description="",aliases="幻术师萤火.湖心秘密二\n萤火的记忆之花瓣其二:幻术师聚落\n萤火的记忆之花其二:幻术师聚落"}, +["F_05013"]={name="萤火的记忆花瓣其三:使者",description="",aliases="幻术师萤火.湖心秘密三\n萤火的记忆之花瓣其三:使者\n萤火的记忆之花其三:使者"}, +["F_05014"]={name="萤火的记忆花瓣其四:祸端",description="",aliases="幻术师萤火.湖心秘密四\n萤火的记忆之花瓣其四:祸端\n萤火的记忆之花其四:祸端"}, +["F_05015"]={name="萤火的记忆花瓣其五:杳无音信",description="",aliases="幻术师萤火.湖心秘密五\n萤火的记忆之花瓣其五:杳无音信\n萤火的记忆之花其五:杳无音信"}, +["F_05016"]={name="萤火的记忆花瓣其六:灭法之法",description="",aliases="幻术师萤火.湖心秘密六\n萤火的记忆之花瓣其六:灭法之法\n萤火的记忆之花其六:灭法之法"}, +["F_05021"]={name="江湖人士的记忆花瓣其一:希望何在?",description="",aliases="理性的武林人士\n江湖人士的记忆之花瓣其一:希望何在?\n江湖人士的记忆之花其一:希望何在?"}, +["F_05031"]={name="陆家村村民的记忆花瓣其一:爱人重逢",description="",aliases="陆家村民.爱人重逢\n陆家村村民的记忆之花瓣其一:爱人重逢\n陆家村村民的记忆之花其一:爱人重逢"}, +["F_05032"]={name="陆家村村民的记忆花瓣其二:是我儿吗?",description="",aliases="陆家村民.是我儿吗?\n陆家村村民的记忆之花瓣其二:是我儿吗?\n陆家村村民的记忆之花其二:是我儿吗?"}, +["F_05033"]={name="陆家村村民的记忆花瓣其三:孑然一身的解脱",description="",aliases="陆家村民.孑然一身的解脱\n陆家村村民的记忆之花瓣其三:孑然一身的解脱\n陆家村村民的记忆之花其三:孑然一身的解脱"}, +["F_05034"]={name="陆家村村民的记忆花瓣其四:那不是我爹!",description="",aliases="陆家村民.那不是我爹!\n陆家村村民的记忆之花瓣其四:那不是我爹!\n陆家村村民的记忆之花其四:那不是我爹!"}, +["F_05041"]={name="江湖人士的记忆花瓣其二:同生死!",description="",aliases="飞贼三兄弟.同生死!\n江湖人士的记忆之花瓣其二:同生死!\n江湖人士的记忆之花其二:同生死!"}, +["F_05051"]={name="正道大师们的记忆花瓣其一:正邪",description="",aliases="大师的记忆之花1\n正道大师们的记忆之花瓣其一:正邪\n正道大师们的记忆之花其一:正邪"}, +["F_05052"]={name="正道大师们的记忆花瓣其二:求愿",description="",aliases="大师的记忆之花2\n正道大师们的记忆之花瓣其二:求愿\n正道大师们的记忆之花其二:求愿"}, +["F_05053"]={name="正道大师们的记忆花瓣其三:阴谋",description="",aliases="大师的记忆之花3\n正道大师们的记忆之花瓣其三:阴谋\n正道大师们的记忆之花其三:阴谋"}, +["F_06001"]={name="慈母心的记忆花瓣其一:离家游子",description="",aliases="含辛茹苦的母亲:慈母心\n慈母心的记忆之花瓣其一:离家游子\n慈母心·记忆之花其一:离家游子"}, +["F_06002"]={name="相煎何急的记忆花瓣其一:辜负",description="",aliases="镇中农户:相煎何急\n相煎何急的记忆之花瓣其一:辜负\n相煎何急·记忆之花其一:辜负"}, +["F_06003"]={name="再会兄长的记忆花瓣其一:断指",description="",aliases="大家闺秀:再会兄长\n再会兄长的记忆之花瓣其一:断指\n再会兄长·记忆之花其一:断指"}, +["F_06004"]={name="白雪儿的记忆花瓣其一:儿时的老树",description="",aliases="白雪儿:青梅竹马\n白雪儿的记忆之花瓣其一:儿时的老树\n白雪儿·记忆之花其一:儿时的老树"}, +["F_06005"]={name="慈母心的记忆花瓣其二:大好前程",description="",aliases="离家游子:建功立业\n慈母心的记忆之花瓣其二:大好前程\n慈母心·记忆之花其二:大好前程"}, +["F_06011"]={name="关于“山庄实验”的记忆花瓣其一:失踪",description="",aliases="正道弟子.山庄实验一\n关于“山庄实验”的记忆之花瓣其一:失踪\n关于“山庄实验”的记忆之花其一:失踪"}, +["F_06012"]={name="关于“山庄实验”的记忆花瓣其二:暗道",description="",aliases="正道弟子.山庄实验二\n关于“山庄实验”的记忆之花瓣其二:暗道\n关于“山庄实验”的记忆之花其二:暗道"}, +["F_06013"]={name="关于“山庄实验”的记忆花瓣其三:消失的暗道",description="",aliases="正道弟子.山庄实验三\n关于“山庄实验”的记忆之花瓣其三:消失的暗道\n关于“山庄实验”的记忆之花其三:消失的暗道"}, +["F_06022"]={name="白雪儿的记忆花瓣其二:用心悔过",description="",aliases="陈柱:用心悔过\n白雪儿的记忆之花瓣其二:用心悔过\n白雪儿·记忆之花其二:用心悔过"}, +["F_06031"]={name="舞狮尊主的记忆花瓣其一:贺年",description="",aliases="舞狮尊主的记忆1\n舞狮尊主的记忆之花瓣其一:贺年\n舞狮尊主的记忆之花其一:贺年"}, +["F_06032"]={name="舞狮尊主的记忆花瓣其二:引荐",description="",aliases="舞狮尊主的记忆2\n舞狮尊主的记忆之花瓣其二:引荐\n舞狮尊主的记忆之花其二:引荐"}, +["F_06033"]={name="舞狮尊主的记忆花瓣其四:妙法",description="",aliases="舞狮尊主的记忆4\n舞狮尊主的记忆之花瓣其四:妙法\n舞狮尊主的记忆之花其四:妙法"}, +["F_06034"]={name="舞狮尊主的记忆花瓣其五:变故",description="",aliases="舞狮尊主的记忆5\n舞狮尊主的记忆之花瓣其五:变故\n舞狮尊主的记忆之花其五:变故"}, +["F_06035"]={name="舞狮尊主的记忆花瓣其六:木人",description="",aliases="舞狮尊主的记忆6\n舞狮尊主的记忆之花瓣其六:木人\n舞狮尊主的记忆之花其六:木人"}, +["F_06036"]={name="舞狮尊主的记忆花瓣其三:虚实",description="",aliases="舞狮尊主的记忆3\n舞狮尊主的记忆之花瓣其三:虚实\n舞狮尊主的记忆之花其三:虚实"}, +["F_06041"]={name="众正道头领的记忆花瓣其一:生离",description="",aliases="紫衣双剑1(后街)\n众正道头领的记忆之花瓣其一:生离\n众正道头领的记忆之花其一:生离"}, +["F_06042"]={name="众正道头领的记忆花瓣其二:非常之法",description="",aliases="紫衣双剑2(大营)\n众正道头领的记忆之花瓣其二:非常之法\n众正道头领的记忆之花其二:非常之法"}, +["F_06043"]={name="众正道头领的记忆花瓣其三:舍己",description="",aliases="紫衣刀卫1(大营)\n众正道头领的记忆之花瓣其三:舍己\n众正道头领的记忆之花其三:舍己"}, +["F_06044"]={name="众正道头领的记忆花瓣其四:绝境",description="",aliases="紫衣刀卫2(后街)\n众正道头领的记忆之花瓣其四:绝境\n众正道头领的记忆之花其四:绝境"}, +["F_06045"]={name="众正道头领的记忆花瓣其五:末路",description="",aliases="白山剑护法1(后街)\n众正道头领的记忆之花瓣其五:末路\n众正道头领的记忆之花其五:末路"}, +["F_06046"]={name="众正道头领的记忆花瓣其六:最好的时候",description="",aliases="白山剑护法2(大营)\n众正道头领的记忆之花瓣其六:最好的时候\n众正道头领的记忆之花其六:最好的时候"}, +["F_07011"]={name="高员外的记忆花瓣其一:囚命",description="",aliases="高员外:囚命\n高员外的记忆之花瓣其一:囚命\n高员外的记忆之花其一:囚命"}, +["F_07012"]={name="高员外的记忆花瓣其二:非议",description="",aliases="高员外:妙参造化\n高员外的记忆之花瓣其二:非议\n高员外的记忆之花其二:非议"}, +["F_07013"]={name="高员外的记忆花瓣其三:独占",description="",aliases="高员外:独占\n高员外的记忆之花瓣其三:独占\n高员外的记忆之花其三:独占"}, +["F_07021"]={name="囚命弟子的记忆花瓣其一:异常",description="",aliases="囚命弟子:冷荼?之一\n囚命弟子的记忆之花瓣其一:异常\n囚命弟子的记忆之花其一:异常"}, +["F_07022"]={name="囚命弟子的记忆花瓣其二:失踪",description="",aliases="囚命弟子:冷荼?之二\n囚命弟子的记忆之花瓣其二:失踪\n囚命弟子的记忆之花其二:失踪"}, +["F_07023"]={name="囚命弟子的记忆花瓣其三:梦差真身?",description="",aliases="囚命弟子:梦差真身?\n囚命弟子的记忆之花瓣其三:梦差真身?\n囚命弟子的记忆之花其三:梦差真身?"}, +["F_07024"]={name="囚命弟子的记忆花瓣其四:梦差真身!",description="",aliases="囚命弟子:梦差真身!\n囚命弟子的记忆之花瓣其四:梦差真身!\n囚命弟子的记忆之花其四:梦差真身!"}, +["F_07041"]={name="玉儿的记忆花瓣其一:挣扎",description="",aliases="其一:挣扎\n玉儿的记忆之花瓣其一:挣扎\n玉儿的记忆之花其一:挣扎"}, +["F_07042"]={name="玉儿的记忆花瓣其二:煌心实验",description="",aliases="其二:煌心实验\n玉儿的记忆之花瓣其二:煌心实验\n玉儿的记忆之花其二:煌心实验"}, +["F_07043"]={name="玉儿的记忆花瓣其三:圣躯",description="",aliases="其三:圣躯\n玉儿的记忆之花瓣其三:圣躯\n玉儿的记忆之花其三:圣躯"}, +["F_08011"]={name="烟儿的记忆花瓣其一:浮华引",description="",aliases="烟儿:浮华引\n烟儿的记忆之花瓣其一:浮华引\n烟儿的记忆之花其一:浮华引"}, +["F_08012"]={name="烟儿的记忆花瓣其二:血脉",description="",aliases="明大掌门:血脉\n烟儿的记忆之花瓣其二:血脉\n烟儿的记忆之花其二:血脉"}, +["F_08013"]={name="烟儿的记忆花瓣其三:投湖",description="",aliases="烟儿:投湖\n烟儿的记忆之花瓣其三:投湖\n烟儿的记忆之花其三:投湖"}, +["F_08014"]={name="烟儿的记忆花瓣其四:烟千岁",description="",aliases="烟儿:烟千岁\n烟儿的记忆之花瓣其四:烟千岁\n烟儿的记忆之花其四:烟千岁"}, +["F_08015"]={name="烟儿的记忆花瓣其五:供奉",description="",aliases="至高者:供奉\n烟儿的记忆之花瓣其五:供奉\n烟儿的记忆之花其五:供奉"}, +["F_08016"]={name="烟儿的记忆花瓣其六:物是人非",description="",aliases="烟儿:物是人非\n烟儿的记忆之花瓣其六:物是人非\n烟儿的记忆之花其六:物是人非"}, +["F_08041"]={name="三面魔偶的记忆花瓣其一:游医",description="",aliases="女性高手的记忆1\n三面魔偶的记忆之花瓣其一:游医\n三面魔偶的记忆之花其一:游医"}, +["F_08042"]={name="三面魔偶的记忆花瓣其二:寒冰与混沌",description="",aliases="女性高手的记忆2\n三面魔偶的记忆之花瓣其二:寒冰与混沌\n三面魔偶的记忆之花其二:寒冰与混沌"}, +["F_08043"]={name="三面魔偶的记忆花瓣其三:三魂合一",description="",aliases="女性高手的记忆3\n三面魔偶的记忆之花瓣其三:三魂合一\n三面魔偶的记忆之花其三:三魂合一"}, +["F_11001"]={name="相煎何急的记忆花瓣其二:歧途",description="",aliases="腐坏暴徒:歧途\n相煎何急的记忆之花瓣其二:歧途\n相煎何急·记忆之花其二:歧途"}, +["F_12001"]={name="冷荼的记忆花瓣其五:镜子和遗迹",description="",aliases="冷荼与至高者1:镜子和遗迹\n冷荼的记忆之花瓣其五:镜子和遗迹\n冷荼的记忆之花其五:镜子和遗迹"}, +["F_12011"]={name="水行帮众的记忆花瓣其一:捕鱼",description="",aliases="白河帮众:捕鱼\n水行帮众的记忆之花瓣其一:捕鱼\n水行帮众的记忆之花其一:捕鱼"}, +["F_12012"]={name="水行帮众的记忆花瓣其二:游龙帮主",description="",aliases="白河帮众:游龙帮主\n水行帮众的记忆之花瓣其二:游龙帮主\n水行帮众的记忆之花其二:游龙帮主"}, +["F_12013"]={name="水行帮众的记忆花瓣其三:自愿改造",description="",aliases="白河帮众:自愿改造\n水行帮众的记忆之花瓣其三:自愿改造\n水行帮众的记忆之花其三:自愿改造"}, +["F_12014"]={name="水行帮众的记忆花瓣其四:捕旱鱼",description="",aliases="白河帮众:捕旱鱼\n水行帮众的记忆之花瓣其四:捕旱鱼\n水行帮众的记忆之花其四:捕旱鱼"}, +["F_13001"]={name="再会兄长的记忆花瓣其二:连枝",description="",aliases="怪面:牵挂胞妹\n再会兄长的记忆之花瓣其二:连枝\n再会兄长·记忆之花其二:连枝"}, +["F_13011"]={name="关于“怪物”的记忆花瓣其一:细腿",description="",aliases="正道受害者:怪力之一\n关于“怪物”的记忆之花瓣其一:细腿\n关于“怪物”的记忆之花其一:细腿"}, +["F_13012"]={name="关于“怪物”的记忆花瓣其二:内讧",description="",aliases="正道受害者:怪力之二\n关于“怪物”的记忆之花瓣其二:内讧\n关于“怪物”的记忆之花其二:内讧"}, +["F_13013"]={name="关于“怪物”的记忆花瓣其三:主谋",description="",aliases="正道受害者:怪力之三\n关于“怪物”的记忆之花瓣其三:主谋\n关于“怪物”的记忆之花其三:主谋"}, +["F_13020"]={name="老根头的记忆之花",description=""}, +["F_18021"]={name="风雪刀客的记忆花瓣其一:危机",description="",aliases="囚命外围队长:白影\n风雪刀客的记忆之花瓣其一:危机\n风雪刀客的记忆之花其一:危机"}, +["F_18022"]={name="风雪刀客的记忆花瓣其二:追凶",description="",aliases="风雪刀客:探寻\n风雪刀客的记忆之花瓣其二:追凶\n风雪刀客的记忆之花其二:追凶"}, +["F_18023"]={name="风雪刀客的记忆花瓣其三:深入",description="",aliases="幸存幻术师:刀客\n风雪刀客的记忆之花瓣其三:深入\n风雪刀客的记忆之花其三:深入"}, +["F_18024"]={name="风雪刀客的记忆花瓣其四:中计",description="",aliases="风雪刀客:中计\n风雪刀客的记忆之花瓣其四:中计\n风雪刀客的记忆之花其四:中计"}, +["F_18025"]={name="风雪刀客的记忆花瓣其五:狂乱",description="",aliases="风雪刀客:最后的安排\n风雪刀客的记忆之花瓣其五:狂乱\n风雪刀客的记忆之花其五:狂乱"}, +["F_18026"]={name="风雪刀客的记忆花瓣其六:封印",description="",aliases="白影6:封印\n风雪刀客的记忆之花瓣其六:封印\n风雪刀客的记忆之花其六:封印"}, +["F_18031"]={name="有关“禁忌浊经”的记忆花瓣其一:开启之日",description="",aliases="禁忌浊经:之一\n有关“禁忌浊经”的记忆之花瓣其一:开启之日\n有关“禁忌浊经”的记忆之花其一:开启之日"}, +["F_18032"]={name="有关“禁忌浊经”的记忆花瓣其二:无上力量",description="",aliases="禁忌浊经:之二\n有关“禁忌浊经”的记忆之花瓣其二:无上力量\n有关“禁忌浊经”的记忆之花其二:无上力量"}, +["F_18033"]={name="有关“禁忌浊经”的记忆花瓣其三:归于覆没",description="",aliases="禁忌浊经:之三\n有关“禁忌浊经”的记忆之花瓣其三:归于覆没\n有关“禁忌浊经”的记忆之花其三:归于覆没"}, +["F_18041"]={name="有关“闯入者”的记忆花瓣其一:外围突破",description="",aliases="闯入者:外围突破\n有关“闯入者”的记忆之花瓣其一:外围突破\n有关“闯入者”的记忆之花其一:外围突破"}, +["F_18042"]={name="有关“闯入者”的记忆花瓣其二:探寻",description="",aliases="闯入者:探寻\n有关“闯入者”的记忆之花瓣其二:探寻\n有关“闯入者”的记忆之花其二:探寻"}, +["F_70001"]={name="关于“荒行子”的记忆花瓣其一:守,守,守",description="",aliases="荒行子1\n关于“荒行子”的记忆之花瓣其一:守,守,守\n关于“荒行子”的记忆之花其一:守,守,守"}, +["F_70002"]={name="关于“荒行子”的记忆花瓣其二:最后的支柱",description="",aliases="荒行子2\n关于“荒行子”的记忆之花瓣其二:最后的支柱\n关于“荒行子”的记忆之花其二:最后的支柱"}, +["F_70003"]={name="关于“荒行子”的记忆花瓣其三:同道殊途",description="",aliases="荒行子3\n关于“荒行子”的记忆之花瓣其三:同道殊途\n关于“荒行子”的记忆之花其三:同道殊途"}, +["F_70004"]={name="关于“荒行子”的记忆花瓣其四:何以歼敌?",description="",aliases="荒行子4\n关于“荒行子”的记忆之花瓣其四:何以歼敌?\n关于“荒行子”的记忆之花其四:何以歼敌?"}, +["F_70005"]={name="关于“荒行子”的记忆花瓣其五:诛邪",description="",aliases="荒行子5\n关于“荒行子”的记忆之花瓣其五:诛邪\n关于“荒行子”的记忆之花其五:诛邪"}, +["F_70006"]={name="关于“荒行子”的记忆花瓣其六:崭新的道路",description="",aliases="荒行子6\n关于“荒行子”的记忆之花瓣其六:崭新的道路\n关于“荒行子”的记忆之花其六:崭新的道路"}, +["I_000006"]={name="铸魂道具占位",description=""}, +["I_01001"]={name="双生血肉花",description=""}, +["I_01002"]={name="浑源石",description=""}, +["I_01003"]={name="一朵血肉花",description=""}, +["I_01004"]={name="一串念珠",description=""}, +["I_01005"]={name="彩色的风车",description=""}, +["I_01006"]={name="断弦的羽弓",description=""}, +["I_01007"]={name="金创草",description=""}, +["I_01008"]={name="凝脂叶",description=""}, +["I_01009"]={name="止血藤",description=""}, +["I_01010"]={name="三头小娃娃",description=""}, +["I_02001"]={name="破损的幻术琵琶",description=""}, +["I_02002"]={name="飞贼的秘籍",description=""}, +["I_02006"]={name="玉儿所制的保命丹",description=""}, +["I_03001"]={name="折断的铁剑",description=""}, +["I_03002"]={name="朴素的发钗",description=""}, +["I_03003"]={name="漆黑的刀鞘",description=""}, +["I_04001"]={name="幻术琵琶的背板",description=""}, +["I_05001"]={name="幻术琵琶的琴头",description=""}, +["I_05003"]={name="小翠的红头绳",description=""}, +["I_05004"]={name="催心琵琶",description=""}, +["I_05005"]={name="猎户的犬铃",description=""}, +["I_060001"]={name="白头客所需收集物1",description=""}, +["I_060002"]={name="榕树之心",description=""}, +["I_06001"]={name="鲜红的血肉花",description=""}, +["I_06002"]={name="开光玉佩",description=""}, +["I_06003"]={name="失去光彩的破损玉佩",description=""}, +["I_06004"]={name="熄火烈焰狮头",description=""}, +["I_06006"]={name="破碎的“侠胆”",description=""}, +["I_06007"]={name="头牌花旦的脂粉",description=""}, +["I_06008"]={name="无名大师的断指",description=""}, +["I_06009"]={name="残破的舞扇",description=""}, +["I_06010"]={name="落灰的老旧木梳子",description=""}, +["I_08002"]={name="幻术琵琶的琴弦",description=""}, +["I_10001"]={name="无根仙露",description=""}, +["I_10003"]={name="沾血的项链",description=""}, +["I_10006"]={name="墨玑子的染血剑",description=""}, +["I_17001"]={name="无限煌心",description=""}, +["Item_001"]={name="黑石",description=""}, +["Item_002"]={name="杀气琥珀",description=""}, +["Item_Piece_001"]={name="黑石碎片",description=""}, +["Item_Piece_002"]={name="杀气琥珀碎片",description=""}, +["Item_Traversing"]={name="穿行符",description=""}, +["K_01001"]={name="锈蚀的龙形钥匙",description=""}, +["K_01002"]={name="杀气炉探火孔开关",description=""}, +["K_01003"]={name="牢门钥匙",description=""}, +["K_01004"]={name="杀气塔底营地外门钥匙",description=""}, +["K_02001"]={name="血色森林山舍地窖开关",description=""}, +["K_02002"]={name="林中驿站院门钥匙",description=""}, +["K_02003"]={name="洞窟监牢牢房钥匙",description=""}, +["K_02004"]={name="血色森林山舍机关密室开关",description=""}, +["K_02005"]={name="血色森林坑道开关",description=""}, +["K_02006"]={name="飞贼营地地牢钥匙",description=""}, +["K_03001"]={name="营前山谷大门钥匙",description=""}, +["K_03002"]={name="正道大营外门钥匙",description=""}, +["K_03004"]={name="校场大门钥匙",description=""}, +["K_03005"]={name="墨玑子房门钥匙",description=""}, +["K_04901"]={name="水晶人偶眼珠【阴】",description=""}, +["K_04902"]={name="人偶舌头",description=""}, +["K_05001"]={name="陆家村村舍地窖钥匙",description=""}, +["K_05002"]={name="四十四号人偶的独眼",description=""}, +["K_05003"]={name="炎茹的炽焰面具",description=""}, +["K_05004"]={name="老根头家的黄铜钥匙",description=""}, +["K_05005"]={name="陆家村村舍地窖钥匙",description=""}, +["K_05006"]={name="坑道牢笼小钥匙",description=""}, +["K_05007"]={name="庞镇后街小院钥匙",description=""}, +["K_05008"]={name="八卦阁楼顶钥匙",description=""}, +["K_05009"]={name="厚重的狮门钥匙",description=""}, +["K_05010"]={name="天香阁钥匙",description=""}, +["K_05011"]={name="黄家大宅钥匙",description=""}, +["K_05012"]={name="庞镇染坊外院钥匙",description=""}, +["K_06002"]={name="兰家大宅大门钥匙",description=""}, +["K_06003"]={name="龙形令牌·阴",description=""}, +["K_06004"]={name="龙形令牌·阳",description=""}, +["K_06005"]={name="龙形令牌",description=""}, +["K_06006"]={name="后街秘密地窖开关",description=""}, +["K_07001"]={name="戏票",description=""}, +["K_07002"]={name="后山钥匙",description=""}, +["K_07003"]={name="吹火楼钥匙",description=""}, +["K_08001"]={name="蛊鹤的剧毒面具",description=""}, +["K_10001"]={name="升降机缺失的开关",description=""}, +["K_10002"]={name="通往宗祠的山门钥匙",description=""}, +["K_10003"]={name="脱落的牢笼拉杆",description=""}, +["K_12001"]={name="雷婷的霹雳面具",description=""}, +["K_12002"]={name="水晶人偶眼珠【阳】",description=""}, +["K_12003"]={name="红布木门的钥匙",description=""}, +["K_13001"]={name="血色森林杀气塔顶层钥匙",description=""}, +["K_14003"]={name="白色蛇眼",description=""}, +["K_14004"]={name="红色蛇信",description=""}, +["K_14005"]={name="黑色蛇牙",description=""}, +["K_16001"]={name="寒岁的坚冰面具",description=""}, +["K_17001"]={name="断魂山工具间钥匙",description=""}, +["Medi_Material_1"]={name="学徒药师记忆",description=""}, +["Medi_Material_2"]={name="熟练药师记忆",description=""}, +["Medi_Material_3"]={name="大师药师记忆",description=""}, +["Page_CS_01"]={name="影境武林",description=""}, +["Page_CS_02"]={name="杀气是什么?",description=""}, +["Page_CS_03"]={name="正道联盟",description=""}, +["Page_CS_04"]={name="白山派",description=""}, +["Page_CS_05"]={name="昆仑三杰是谁?",description=""}, +["Page_CS_06"]={name="杀气改造",description=""}, +["Page_CS_07"]={name="龙氏家族",description=""}, +["Page_CS_08"]={name="暗魔天堡",description=""}, +["Page_CS_10"]={name="机关术",description=""}, +["Page_CS_11"]={name="里武林",description=""}, +["Page_CS_12"]={name="庞镇",description=""}, +["Page_CS_13"]={name="驿站,难得的休憩之所",description=""}, +["Page_CS_14"]={name="杀气塔废墟",description=""}, +["Page_CS_15"]={name="龙柱封着何物?",description=""}, +["Page_CS_16"]={name="血色森林",description=""}, +["Page_CS_17"]={name="妙手小张是何许人?",description=""}, +["Page_CS_18"]={name="陆家村",description=""}, +["Page_CS_19"]={name="八卦阁",description=""}, +["Page_XC_01"]={name="“组织”就是“组织”",description=""}, +["Page_XC_02"]={name="冥主与冥使们",description=""}, +["Page_XC_03"]={name="组织高手",description=""}, +["Page_XC_04"]={name="鬼差和楔子",description=""}, +["Page_XC_05"]={name="秘密酒馆",description=""}, +["Page_XC_06"]={name="机关船和船坞",description=""}, +["Page_XC_07"]={name="灭龙魔",description=""}, +["Page_XC_08"]={name="十一人阁",description=""}, +["R_01001"]={name="绝望血书",description=""}, +["R_01002"]={name="《斧老大的绝笔信》",description=""}, +["R_01003"]={name="四凶斧之乱·惑乱",description=""}, +["R_01004"]={name="《武队长绝笔信》",description=""}, +["R_01005"]={name="谋士许丰的密信",description=""}, +["R_01006"]={name="明大掌门的回信",description=""}, +["R_01007"]={name="四凶斧之乱·祸乱",description=""}, +["R_01008"]={name="四凶斧之乱·混乱",description=""}, +["R_01009"]={name="《浑源石志·龙体改造篇》",description=""}, +["R_01010"]={name="队长陈柱的密信",description=""}, +["R_01011"]={name="山村布告",description=""}, +["R_01012"]={name="正道弟子伤病录簿",description=""}, +["R_01013"]={name="寻子启事",description=""}, +["R_01014"]={name="顾凌然上书明大掌门(文稿)",description=""}, +["R_01015"]={name="村民借据",description=""}, +["R_01016"]={name="废弃田契",description=""}, +["R_01017"]={name="龙氏大学士的立碑报告",description=""}, +["R_01018"]={name="媒婆的信",description=""}, +["R_01019"]={name="阿花父亲回信",description=""}, +["R_01020"]={name="阿辉的书信",description=""}, +["R_01021"]={name="轻佻的召集令",description=""}, +["R_01022"]={name="给相公黄妙的信",description=""}, +["R_01023"]={name="给相公柳上励的信",description=""}, +["R_01024"]={name="给相公贾千秋的信",description=""}, +["R_01025"]={name="战报",description=""}, +["R_01026"]={name="江湖客的投奔书信",description=""}, +["R_01027"]={name="弟子们对三杰的评价",description=""}, +["R_01028"]={name="杀气炉操作须知事项",description=""}, +["R_01029"]={name="驻守簿录",description=""}, +["R_01030"]={name="杀气塔勘探调查",description=""}, +["R_01031"]={name="物资清点记录",description=""}, +["R_01032"]={name="求援回信",description=""}, +["R_01033"]={name="给副官的手令",description=""}, +["R_01034"]={name="玉儿的药方",description=""}, +["R_02001"]={name="《白赤练的手记》",description=""}, +["R_02002"]={name="荒行子手谕",description=""}, +["R_02003"]={name="血色森林流失珍宝清单",description=""}, +["R_02004"]={name="正道榜文",description=""}, +["R_02005"]={name="阵亡名簿",description=""}, +["R_02006"]={name="镜林游记",description=""}, +["R_02007"]={name="与家人联络的信件(与伯父的联络信)",description=""}, +["R_02008"]={name="命令函",description=""}, +["R_02009"]={name="正道联盟军令状",description=""}, +["R_02010"]={name="保护小姐的嘱托",description=""}, +["R_02011"]={name="失散贼兄记录",description=""}, +["R_02012"]={name="“滑溜手”的血书",description=""}, +["R_03001"]={name="【墨玑子绝笔信】其一",description=""}, +["R_03002"]={name="【墨玑子绝笔信】其二",description=""}, +["R_03003"]={name="【墨玑子绝笔信】其三",description=""}, +["R_03004"]={name="【墨玑子绝笔信】其四",description=""}, +["R_03005"]={name="【墨玑子绝笔信】其五",description=""}, +["R_03006"]={name="【墨玑子绝笔信】潦草标记的地图",description=""}, +["R_03007"]={name="小雪的物品清单",description=""}, +["R_03008"]={name="正道联盟委任状",description=""}, +["R_03011"]={name="弟子家书",description=""}, +["R_03012"]={name="给倩倩的密信",description=""}, +["R_03013"]={name="“龙体之术”执行令",description=""}, +["R_03014"]={name="六宗门书",description=""}, +["R_03015"]={name="琴谱札记",description=""}, +["R_03016"]={name="女弟子文书",description=""}, +["R_03017"]={name="《龙体之术详解》的残页",description=""}, +["R_03018"]={name="正道大营工事图",description=""}, +["R_03019"]={name="公子来信",description=""}, +["R_03020"]={name="武学答疑",description=""}, +["R_03021"]={name="满月请帖",description=""}, +["R_03022"]={name="诗歌切磋函",description=""}, +["R_03023"]={name="未完成的论剑",description=""}, +["R_03025"]={name="爱管闲事弟子的遗书",description=""}, +["R_03026"]={name="赵笛的来信",description=""}, +["R_03027"]={name="医者的手记残页",description=""}, +["R_03028"]={name="赵笛三人的抵抗檄文",description=""}, +["R_03029"]={name="移魂人偶",description=""}, +["R_03030"]={name="废弃人偶的留书",description=""}, +["R_04001"]={name="【梦差实验手札】娘娘圣躯",description=""}, +["R_040018"]={name="《夹着鸟羽的急信》(鸡毛文书)",description=""}, +["R_040019"]={name="《升降梯开关遭劫》",description=""}, +["R_04002"]={name="【梦差实验手札】零号人偶",description=""}, +["R_04003"]={name="【梦差实验手札】煌心",description=""}, +["R_04004"]={name="【梦差实验手札】圣躯完成",description=""}, +["R_04005"]={name="未发出的信函",description=""}, +["R_04006"]={name="煌心工坊的规矩",description=""}, +["R_04007"]={name="陆家村流失珍宝清单",description=""}, +["R_04008"]={name="移魂散配方手稿",description=""}, +["R_04009"]={name="囚命移魂法",description=""}, +["R_04010"]={name="第七十九批废弃品清单",description=""}, +["R_04902"]={name="《哑巴人偶图纸》",description=""}, +["R_05001"]={name="人偶基地营造图释",description=""}, +["R_05002"]={name="梦差给至高者的信",description=""}, +["R_05003"]={name="《水井封锁告示》",description=""}, +["R_05005"]={name="【人偶基地簿书】空间拓展",description=""}, +["R_05006"]={name="尚未完成的《圣母经》",description=""}, +["R_05007"]={name="囚命者信函",description=""}, +["R_05008"]={name="“至高者”来信",description=""}, +["R_05009"]={name="关于“荡秽”的密报",description=""}, +["R_05010"]={name="七巧药典",description=""}, +["R_05011"]={name="圣母告谕",description=""}, +["R_05012"]={name="法事榜文:如何面见圣母娘娘?",description=""}, +["R_05013"]={name="治丧簿",description=""}, +["R_05014"]={name="【坚守村民的日志】中秋",description=""}, +["R_05015"]={name="【坚守村民的日志】霜降",description=""}, +["R_05016"]={name="【人偶基地簿书】第一处实验基地",description=""}, +["R_05017"]={name="歌女人偶的书信",description=""}, +["R_05018"]={name="联剿策论",description=""}, +["R_05019"]={name="联合讨贼盟誓",description=""}, +["R_05020"]={name="缉凶谱:四怪面头目",description=""}, +["R_05021"]={name="给圣母的祷文",description=""}, +["R_06001"]={name="船老大的制作笔录",description=""}, +["R_06003"]={name="庞镇流失珍宝清单",description=""}, +["R_06005"]={name="无人理会的诉状",description=""}, +["R_06006"]={name="画押的契据",description=""}, +["R_06007"]={name="心脉经注",description=""}, +["R_06008"]={name="仓促写就的血书",description=""}, +["R_06009"]={name="未能寄出的书信",description=""}, +["R_06014"]={name="致爹爹长青",description=""}, +["R_06015"]={name="故人的绝笔信",description=""}, +["R_06016"]={name="镇民的日记·残页",description=""}, +["R_06017"]={name="签字的契据",description=""}, +["R_06018"]={name="给弟弟的道歉信",description=""}, +["R_06019"]={name="【谢园往事】其一",description=""}, +["R_06020"]={name="【谢园往事】其二",description=""}, +["R_06021"]={name="问诊簿",description=""}, +["R_06022"]={name="关于“花”的手札",description=""}, +["R_06024"]={name="【圣母宝卷】其一:庞声遇圣",description=""}, +["R_06025"]={name="【圣母宝卷】其二:木人换心",description=""}, +["R_06028"]={name="酒馆账簿",description=""}, +["R_06029"]={name="武生词",description=""}, +["R_06030"]={name="青衣词",description=""}, +["R_06031"]={name="字迹潦草的信件",description=""}, +["R_06032"]={name="四大蛇屋",description=""}, +["R_06033"]={name="娘娘的嘱托",description=""}, +["R_06034"]={name="哥哥的来信(阿袖亲启)",description=""}, +["R_06035"]={name="一首未署名的诗",description=""}, +["R_070001"]={name="陆三迁绝笔:解元亲启",description=""}, +["R_070002"]={name="赎罪名单",description=""}, +["R_070003"]={name="周川发愿文",description=""}, +["R_070004"]={name="李幺妹发愿文",description=""}, +["R_070005"]={name="王益仁发愿文",description=""}, +["R_070006"]={name="不肖子孙三迁发愿文",description=""}, +["R_070007"]={name="被武当派涂抹的发愿文",description=""}, +["R_070008"]={name="无名的发愿文",description=""}, +["R_070009"]={name="血刀门发愿文",description=""}, +["R_07001"]={name="“无限煌心“的设计图样",description=""}, +["R_070010"]={name="霹雳堂陈虎头发愿",description=""}, +["R_070011"]={name="抗敌檄文",description=""}, +["R_070012"]={name="《沾血的日记》",description=""}, +["R_070013"]={name="不具名的字条",description=""}, +["R_070014"]={name="近卫队信神疏",description=""}, +["R_070015"]={name="缺损的《山道地图》",description=""}, +["R_070016"]={name="字迹纤细的日记",description=""}, +["R_070017"]={name="周平子的遗书(致雨玲书)",description=""}, +["R_070018"]={name="潦草的日记",description=""}, +["R_07002"]={name="冷荼亲信的回报",description=""}, +["R_07004"]={name="戏梦山庄图释",description=""}, +["R_07005"]={name="商会名录",description=""}, +["R_07007"]={name="废弃的武训",description=""}, +["R_07008"]={name="三杰赋",description=""}, +["R_07009"]={name="幻术要纪",description=""}, +["R_07010"]={name="关外草木图志",description=""}, +["R_07011"]={name="关外门派通考",description=""}, +["R_07013"]={name="记录:七巧玲珑与七巧星",description=""}, +["R_07014"]={name="记录:七巧解药",description=""}, +["R_07015"]={name="独眼弓客的留书",description=""}, +["R_07016"]={name="带有三种字迹的残页",description=""}, +["R_07017"]={name="关于“玉琮”的研究笔录",description=""}, +["R_07018"]={name="幻术师的手记残页",description=""}, +["R_07019"]={name="至高尊者法旨",description=""}, +["R_07020"]={name="凌乱的字条",description=""}, +["R_08001"]={name="梅谷湖域流失珍宝清单",description=""}, +["R_11001"]={name="一封未署名的信",description=""}, +["R_11002"]={name="紫色碎片手札",description=""}, +["R_11003"]={name="青蛇屋密道图",description=""}, +["R_12001"]={name="【梦差实验手札】装载煌心",description=""}, +["R_12003"]={name="【梦差实验手札】裂缝准备",description=""}, +["R_12004"]={name="邪主的来信",description=""}, +["R_12005"]={name="戏梦山庄流失珍宝清单",description=""}, +["R_12006"]={name="宠物",description=""}, +["R_12007"]={name="讨贼告示",description=""}, +["R_12009"]={name="水行帮武帖",description=""}, +["R_12010"]={name="水行帮簿册",description=""}, +["R_12011"]={name="琐碎的游记残页",description=""}, +["R_12012"]={name="满是勾画的地图",description=""}, +["R_12013"]={name="搁浅的纸船",description=""}, +["R_12014"]={name="【停水忆录】其一:比试",description=""}, +["R_12015"]={name="【停水忆录】其二:盼头",description=""}, +["R_12016"]={name="【停水忆录】其三:输赢",description=""}, +["R_12017"]={name="华美的请帖",description=""}, +["R_12019"]={name="给京城孟大人的信",description=""}, +["R_12020"]={name="梅谷六景",description=""}, +["R_13001"]={name="【梦差实验手札】备用圣躯",description=""}, +["R_14001"]={name="封山令",description=""}, +["R_14004"]={name="圣母娘娘真身图",description=""}, +["R_14005"]={name="断魂山地志",description=""}, +["R_14006"]={name="星表",description=""}, +["Return_ShaqiWeapon_1"]={name="影之消退符",description=""}, +["Return_Weapon_1"]={name="兵刃逆炼符",description=""}, +["ShaqiHexin"]={name="杀气核心",description=""}, +["TU_01001"]={name="鸽饲料",description=""}, +["TU_02001"]={name="离别悲歌",description=""}, +["TU_02002"]={name="拳心碎片·核",description=""}, +["TU_03001"]={name="戍边旗帜",description=""}, +["TU_03002"]={name="戍边诗集",description=""}, +["TU_03003"]={name="金色弹药",description=""}, +["TU_04001"]={name="鞋跟加固零件",description=""}, +["TU_04003"]={name="雷霆电核",description=""}, +["TU_05001"]={name="残存的执念·痴",description=""}, +["TU_05003"]={name="妙手心经",description=""}, +["TU_05004"]={name="烈焰的训练狮头",description=""}, +["TU_05005"]={name="蛇蜕·白",description=""}, +["TU_06001"]={name="义结金兰之歃血刀",description=""}, +["TU_06002"]={name="老旧的木制梳子",description=""}, +["TU_06004"]={name="锋锐乌金",description=""}, +["TU_06005"]={name="强韧弓弦",description=""}, +["TU_07001"]={name="舞者丝带",description=""}, +["TU_07002"]={name="残存的执念·执",description=""}, +["TU_0701"]={name="痴者执念",description=""}, +["TU_08001"]={name="朴素的剑穗",description=""}, +["TU_08002"]={name="强化电锯",description=""}, +["TU_09001"]={name="铁杀面具",description=""}, +["TU_09002"]={name="宝鼎碎片·之一",description=""}, +["TU_09003"]={name="宝鼎碎片·之二",description=""}, +["TU_09004"]={name="宝鼎碎片·之三",description=""}, +["TU_0901"]={name="复原的宝鼎",description=""}, +["TU_10001"]={name="超合金镰头",description=""}, +["TU_10002"]={name="水行帮规",description=""}, +["TU_10003"]={name="强力水泵",description=""}, +["TU_11001"]={name="夜明珠",description=""}, +["TU_11002"]={name="青铜精华",description=""}, +["TU_11003"]={name="六道门缉拿令",description=""}, +["TU_11004"]={name="烧焦的掌门头颅",description=""}, +["TU_11005"]={name="工匠的工具组",description=""}, +["TU_11006"]={name="绣花鞋",description=""}, +["TU_11007"]={name="白山派头带",description=""}, +["TU_11008"]={name="蛇的响尾·赤",description=""}, +["TU_11009"]={name="蛇胆·青",description=""}, +["TU_1101"]={name="蛇的记忆",description=""}, +["TU_11010"]={name="蛇的毒囊·黑",description=""}, +["TU_11011"]={name="养护机油",description=""}, +["TU_11012"]={name="长明灯火",description=""}, +["TU_11013"]={name="犬类的记忆",description=""}, +["TU_12001"]={name="合金钢片",description=""}, +["TU_12002"]={name="郎君的玉面",description=""}, +["TU_12003"]={name="残留的头颅记忆",description=""}, +["TU_13001"]={name="忠义英雄像",description=""}, +["TU_13004"]={name="拳心碎片·壳",description=""}, +["TU_13005"]={name="寒冰印",description=""}, +["TU_1302"]={name="灭世拳心",description=""}, +["TU_14001"]={name="梦差的丝线残余",description=""}, +["TU_15001"]={name="炎火之握",description=""}, +["TU_150011"]={name="冷却的炎火之握",description=""}, +["TU_150012"]={name="炽热炎火",description=""}, +["TU_15002"]={name="混沌双铁",description=""}, +["TU_150021"]={name="混沌残铁·之一",description=""}, +["TU_150022"]={name="混沌残铁·之二",description=""}, +["TU_17001"]={name="暗魔天堡面具",description=""}, +["TU_18001"]={name="最初的混沌容器",description=""}, +["TU_18008"]={name="破碎龙体",description=""}, +["TU_18009"]={name="男孩全套旧衣物",description=""}, +["TU_180091"]={name="男孩的衣服",description=""}, +["TU_180092"]={name="男孩的裤子",description=""}, +["TU_180093"]={name="男孩的鞋",description=""}, +["TU_180094"]={name="男孩的帽子",description=""}, +["TU_18010"]={name="魔杀令",description=""}, +["TU_18011"]={name="圣母头冠",description=""}, +["TU_18012"]={name="紫火缭绕的披风",description=""}, +["TU_18013"]={name="义体之核",description=""}, +["TU_19001"]={name="洞察之眼",description=""}, +["TU_19002"]={name="组织至高令牌",description=""}, +["TU_19003"]={name="少年回忆",description=""}, +["TU_19004"]={name="苦叶寺经卷",description=""}, +["TU_19005"]={name="紫金之花",description=""}, +["TU_19006"]={name="不灭侠胆",description=""}, +["T_02001"]={name="染血印章",description=""}, +["T_02002"]={name="掌门鼻烟壶",description=""}, +["T_02003"]={name="古代弩机",description=""}, +["T_05001"]={name="洞房花烛",description=""}, +["T_05002"]={name="双童玉佩",description=""}, +["T_05003"]={name="尚未蒙花的雕像",description=""}, +["T_06001"]={name="玉笔架",description=""}, +["T_06002"]={name="虎型镇纸",description=""}, +["T_06003"]={name="无常日晷",description=""}, +["T_06004"]={name="墨",description=""}, +["T_06005"]={name="雕花边砚",description=""}, +["T_08001"]={name="观浊星盘",description=""}, +["T_08003"]={name="蓝花司南",description=""}, +["T_12001"]={name="将军铜镜",description=""}, +["T_12002"]={name="金银香囊",description=""}, +["T_12003"]={name="云月金簪",description=""}, +["Weapon_Material_01"]={name="铸造金属",description=""}, +["Weapon_Material_02"]={name="抛光铸造金属",description=""}, +["Weapon_Material_03"]={name="无瑕铸造金属",description=""}, +["Weapon_Material_04"]={name="双生金属",description=""}, +["Weapon_Material_05"]={name="抛光双生金属",description=""}, +["Weapon_Material_06"]={name="无瑕双生金属",description=""}, +["Weapon_Material_07"]={name="长板金属",description=""}, +["Weapon_Material_08"]={name="抛光长板金属",description=""}, +["Weapon_Material_09"]={name="无瑕长板金属",description=""}, +["Weapon_Material_10"]={name="溶剂",description=""}, +["Weapon_Material_11"]={name="浓缩溶剂",description=""}, +["Weapon_Material_12"]={name="熔合万物之溶剂",description=""}, +["Weapon_Material_13"]={name="异铜锭",description=""}, +["Weapon_Material_14"]={name="天外异铜",description=""}, +["Weapon_Material_15"]={name="万锻天外异铜",description=""}, +["Weapon_Material_16"]={name="魔火炭",description=""}, +["Weapon_Material_17"]={name="热魔火炭",description=""}, +["Weapon_Material_18"]={name="极热魔火炭",description=""}, +["Weapon_Material_19"]={name="机关齿轮",description=""}, +["Weapon_Material_20"]={name="精密机关齿轮",description=""}, +["Weapon_Material_21"]={name="嬴式机关齿轮",description=""}, +["Weapon_Material_22"]={name="古木",description=""}, +["Weapon_Material_23"]={name="天樟古木",description=""}, +["Weapon_Material_24"]={name="禁忌天樟古木",description=""}, +["Weapon_Material_25"]={name="招魂香灰",description=""}, +["Weapon_Material_26"]={name="迷幻香灰",description=""}, +["Weapon_Material_27"]={name="供奉圣母的香灰",description=""}, +}, +["DT_MedicineTable"]={ +["FeiJiu"]={name="沸酒酿",description=""}, +["GuiShen"]={name="归神汤",description=""}, +["Hulu"]={name="药葫芦",description=""}, +["JinJiHeJi"]={name="禁忌合剂",description=""}, +["Kuye"]={name="苦叶露",description=""}, +["Medicine_AdditionalRecover"]={name="济生神药",description=""}, +["Medicine_Attack"]={name="悲鸣药",description=""}, +["Medicine_Duration"]={name="慈花甘露",description=""}, +["Medicine_Element"]={name="法事药酒",description=""}, +["Medicine_Ghost"]={name="幻体灵药",description=""}, +["Medicine_Interrupt"]={name="幽冥鬼药",description=""}, +["Medicine_Recover"]={name="不尽水",description=""}, +["Medicine_ResistanceElement"]={name="青蛇药剂",description=""}, +["Medicine_ShachiAttack"]={name="杀气溶血催化剂",description=""}, +["Medicine_UltimateCharge"]={name="长生饮",description=""}, +["NingFengDan"]={name="凝锋丹",description=""}, +["RongQi"]={name="容器维护液体",description=""}, +}, +["DT_PBZAppearanceTable"]={ +["BrowLashCard_Default"]={name="未配置中文名称",description=""}, +["BrowLashCard_JiGuanMoQu"]={name="未配置中文名称",description=""}, +["DefaultHairStyle"]={name="普通发型",description=""}, +["DefaultHairStyle_Seq"]={name="普通发型",description=""}, +["HairStyle_Climax"]={name="未配置中文名称",description=""}, +["HairStyle_Climax_Seq"]={name="普通发型",description=""}, +["HairStyle_FengXue"]={name="普通发型",description=""}, +["HairStyle_FengXue_Seq"]={name="普通发型",description=""}, +["HairStyle_GuYou"]={name="普通发型",description=""}, +["HairStyle_GuYou_Seq"]={name="普通发型",description=""}, +["HairStyle_JiGuanMoQu"]={name="普通发型",description=""}, +["HairStyle_JiGuanMoQu_Seq"]={name="普通发型",description=""}, +["HairStyle_MoTian"]={name="未配置中文名称",description=""}, +["HairStyle_MoTian_Seq"]={name="未配置中文名称",description=""}, +["HairStyle_YaYu"]={name="普通发型",description=""}, +["HairStyle_YaYu_Seq"]={name="普通发型",description=""}, +["HairStyle_ZhuiMing"]={name="普通发型",description=""}, +["HairStyle_ZhuiMing_Seq"]={name="普通发型",description=""}, +["Hat_Default"]={name="普通斗笠",description=""}, +["Hat_Default_Climax"]={name="普通斗笠",description=""}, +["Hat_Fengxue"]={name="未配置中文名称",description=""}, +["Hat_GuYou"]={name="普通斗笠",description=""}, +["Hat_MoTian"]={name="未配置中文名称",description=""}, +["Hat_YaYu"]={name="未配置中文名称",description=""}, +["Hat_ZhuiMing"]={name="普通斗笠",description=""}, +["HunBody"]={name="普通服装",description=""}, +["HunBodyClimax"]={name="10年前服装",description=""}, +["HunBodyFengXue"]={name="未配置中文名称",description=""}, +["HunBodyGuYou"]={name="未配置中文名称",description=""}, +["HunBodyJiGuanMoQu"]={name="未配置中文名称",description=""}, +["HunBodyMoTian"]={name="魔天套装",description=""}, +["HunBodyYaYu"]={name="未配置中文名称",description=""}, +["HunBodyZhuiMing"]={name="未配置中文名称",description=""}, +["Hun_OutFit_Climax"]={name="黑伤",description=""}, +["Hun_OutFit_Climax_Hat"]={name="未配置中文名称",description=""}, +["Hun_OutFit_Default"]={name="黑伤(逃亡)",description=""}, +["Hun_OutFit_FengXue"]={name="风雪",description=""}, +["Hun_OutFit_GuYou"]={name="故友",description=""}, +["Hun_OutFit_JiGuanMoQu"]={name="机械魔躯",description=""}, +["Hun_OutFit_MoTian"]={name="传承",description=""}, +["Hun_OutFit_YaYu"]={name="武林传说",description=""}, +["Hun_OutFit_ZhuiMing"]={name="追命",description=""}, +["MeshBand_Climax"]={name="未配置中文名称",description=""}, +["MeshBand_Default"]={name="未配置中文名称",description=""}, +["MeshBand_FengXue"]={name="未配置中文名称",description=""}, +["MeshBand_GuYou"]={name="未配置中文名称",description=""}, +["MeshBand_MoTian"]={name="未配置中文名称",description=""}, +["MeshBand_YaYu"]={name="未配置中文名称",description=""}, +["MeshBand_ZhuiMing"]={name="未配置中文名称",description=""}, +["Neck_Climax"]={name="未配置中文名称",description=""}, +["Neck_Default"]={name="未配置中文名称",description=""}, +["Neck_JiGuanMoQu"]={name="未配置中文名称",description=""}, +["Neck_MoTian"]={name="未配置中文名称",description=""}, +["Neck_YaYu"]={name="未配置中文名称",description=""}, +}, +["DT_ShaqiWeaponData"]={ +["BaWangLianQiu"]={name="霸王链球",description=""}, +["BrutalAxe"]={name="巨凶斧",description=""}, +["CaoOuSiXian"]={name="操偶铃铛",description=""}, +["CuiXinPiPa"]={name="催心琵琶",description=""}, +["DuYanGong"]={name="独眼弓",description=""}, +["HuangJinHuoChong"]={name="黄金火铳",description=""}, +["HuoLiuXing"]={name="火流星",description=""}, +["JianKeZhaoJiLing"]={name="剑客召集令",description=""}, +["JinGua"]={name="长柄金瓜",description=""}, +["KuYeSiZhuChuan"]={name="苦叶寺珠串",description=""}, +["LionHead"]={name="烈焰狮头",description=""}, +["MiaoShouFeiDao"]={name="妙手飞刀",description=""}, +["MoJian"]={name="墨血无痕",description=""}, +["MoShou"]={name="魔手",description=""}, +["NiTouche"]={name="泥头车",description=""}, +["ShachiHook"]={name="追命锁镰",description=""}, +["TanLang"]={name="贪狼",description=""}, +["ThunderSpear"]={name="雷霆枪",description=""}, +["TieGongZhuQuanTao"]={name="铁拳套",description=""}, +["TigerCannon"]={name="虎炮",description=""}, +["UnnamedBow"]={name="羽弓",description=""}, +["XuKongHuaShan"]={name="虚空华扇",description=""}, +["XueDiZi"]={name="血滴子",description=""}, +["XueSeLingDang"]={name="血色铃铛",description=""}, +["YouLongCha"]={name="游龙叉",description=""}, +["YouLongTou"]={name="游龙头",description=""}, +["ZhuoBiDun"]={name="拙壁盾",description=""}, +}, +["DT_WeaponData"]={ +["BaiShanShuangJian"]={name="白山风雷剑",description=""}, +["BaiYing"]={name="白影",description=""}, +["ChiZheCanJian"]={name="痴者残剑",description=""}, +["CiGuHunDun"]={name="刺骨混沌",description=""}, +["Double"]={name="黑伤双刃",description=""}, +["DualHook"]={name="别离残钩",description=""}, +["FangHuaXieShan"]={name="圣母邪扇",description=""}, +["GuiTouBlade"]={name="红妆鬼斩",description=""}, +["HeiMoShang"]={name="黑魔伤",description=""}, +["HeiMoShangPrologue"]={name="黑伤",description=""}, +["HorizontalBlade"]={name="荡寇凶刃",description=""}, +["IronBlade"]={name="残钢刃",description=""}, +["JadeDualChakram"]={name="玉双环",description=""}, +["Jigsaw"]={name="断肢锯",description=""}, +["Long"]={name="长形黑伤",description=""}, +["LuanYing"]={name="乱莺剑",description=""}, +["MoQie"]={name="魔切",description=""}, +["PoJun"]={name="破军",description=""}, +["RenOuQingTongJian"]={name="天玄青铜剑",description=""}, +["RenOuYanYueDao"]={name="偃月刀",description=""}, +["SlitheringSword"]={name="灵蛇软剑",description=""}, +["SnakeDual"]={name="白蟒赤练",description=""}, +["Tang"]={name="黑伤",description=""}, +["TangPrologue"]={name="黑伤",description=""}, +["Tang_HorseCartCombat"]={name="黑伤",description=""}, +["TianShaShuangYue"]={name="天煞双钺",description=""}, +["WoodenSword"]={name="木制黑伤",description=""}, +["WoodenSwordHun"]={name="木制黑伤",description=""}, +["XieHuo"]={name="炽刃",description=""}, +["YuuBlade"]={name="妖锯",description=""}, +["ZhanMaBlade"]={name="亡命斩马刀",description=""}, +["ZhuGuangBaoQi"]={name="珠光宝气",description=""}, +["ZiMingJian"]={name="紫冥剑",description=""}, +}, +} +function LocalizeItemCatalog(catalog) + local count=0 + for _,category in ipairs(catalog)do + for _,item in ipairs(category.items)do + local entry=names[item.source]and names[item.source][item.id] + if entry then item.name=entry.name;item.description=entry.description;item.aliases=entry.aliases;item.fallback=false;count=count+1 end + end + end + return count +end + +function GetLocalizedItemName(id,source) + if source then local e=names[source]and names[source][id];return e and e.name end + local result + for _,group in pairs(names)do local e=group[id];if e then + if result and result~=e.name then return end + result=e.name + end end + if result and not result:find('未配置',1,true)then return result end +end diff --git a/runtime/resources/ModuleSignatures.tsv b/runtime/resources/ModuleSignatures.tsv new file mode 100644 index 0000000..fc75f33 --- /dev/null +++ b/runtime/resources/ModuleSignatures.tsv @@ -0,0 +1,35 @@ +PBZ-STATIC-SIGNATURES 4415933CE33476F14C837ABB61A1B60AF8B78CD81783896501913A7AAC69E423 +40 55 56 57 41 54 41 55 41 56 41 57 48 8D AC 24 10 FD FF FF 48 81 EC F0 03 00 00 48 8B 05 ?? ?? ?? ?? 48 33 C4 48 89 85 C0 02 00 00 48 8B 85 50 03 00 00 4C 8B E9 48 8B BD 58 03 00 00 4D 8B E0 5DECB30 +40 57 48 81 EC F0 00 00 00 44 0F 29 84 24 A0 00 00 00 44 0F 28 C1 48 8B F9 41 83 F8 03 0F 85 D8 00 00 00 F6 81 20 06 00 00 04 0F 85 CB 00 00 00 48 8B 05 ?? ?? ?? ?? 43A8CD0 +41 8B 80 ?? ?? ?? ?? B9 00 00 00 00 2B C6 48 8B D3 0F 48 C1 48 8D 8F 68 01 00 00 41 89 80 ?? ?? ?? ?? 69A91DD +41 B9 01 00 00 00 4C 8D 05 ?? ?? ?? ?? BA 0E 00 00 00 48 8D 4D E7 E8 ?? ?? ?? ?? 48 8B 18 E8 ?? ?? ?? ?? 48 8B D3 48 8B C8 E8 ?? ?? ?? ?? 48 8D 0D ?? ?? ?? ?? 48 89 05 ?? ?? ?? ?? 5E1E2A8 +44 88 4C 24 20 4C 89 44 24 18 89 54 24 10 55 57 41 54 41 55 41 57 48 8D 6C 24 C9 48 81 EC D0 00 00 00 45 0F B6 F9 44 8B EA 48 8B F9 E8 ?? ?? ?? ?? 48 8B 55 77 48 8B C8 697DA70 +44 8B 49 04 45 85 C9 74 ?? 8B 01 85 C0 78 ?? 3B 05 ?? ?? ?? ?? 7D ?? 8B C8 0F B7 C0 48 C1 E9 10 48 8D 14 40 48 8B 05 ?? ?? ?? ?? 48 8B 0C C8 4C 8D 04 D1 1672710 +48 83 EC 38 4C 8D 0D 95 78 56 0B C6 44 24 40 00 4C 8D 44 24 40 C7 44 24 20 00 00 00 00 48 8D 15 54 79 56 0B 48 8D 0D A5 16 ED 0C E8 E0 37 0A 00 11FC7D0 +48 85 D2 0F 84 9F 00 00 00 48 89 5C 24 20 57 48 83 EC 20 48 8B DA 48 89 69A84B0 +48 85 D2 0F 84 D7 01 00 00 48 89 54 24 10 55 48 83 EC 40 48 8B E9 4C 89 697FE40 +48 89 54 24 10 55 56 41 57 48 8B EC 48 83 EC 40 48 8B C2 45 0F B6 F8 48 8B F1 48 8D 15 ?? ?? ?? ?? 48 8B C8 E8 ?? ?? ?? ?? 84 C0 0F 85 B1 03 00 00 48 8B 4D 28 48 8D 15 ?? ?? ?? ?? 69A3A80 +48 89 54 24 10 55 57 41 54 48 83 EC 50 48 8B C2 41 0F B6 E8 48 8B F9 48 8D 15 ?? ?? ?? ?? 48 8B C8 45 0F B6 E1 E8 ?? ?? ?? ?? 84 C0 0F 85 BB 03 00 00 48 8B 4C 24 78 69A40D0 +48 89 54 24 10 57 48 83 EC 30 48 8B C2 48 8B F9 48 8B C8 48 8D 15 ?? ?? ?? ?? E8 ?? ?? ?? ?? 84 C0 0F 85 ?? ?? ?? ?? 48 8B 4C 24 48 48 8D 15 ?? ?? ?? ?? E8 ?? ?? ?? ?? 69A44D0 +48 89 5C 24 08 44 88 44 24 18 48 89 54 24 10 55 56 57 41 54 41 55 41 56 41 57 48 8B EC 48 83 EC 70 45 0F B6 E9 48 8B F9 45 84 C0 0F 84 02 04 00 00 E8 5A 0E 01 00 48 8B 55 48 48 8B C8 E8 AE 1D 697EE50 +48 89 5C 24 08 48 89 6C 24 10 48 89 74 24 18 57 41 54 41 55 41 56 41 57 48 83 EC 40 8B 84 24 98 00 00 00 49 8B F1 44 0F B6 BC 24 A8 00 00 00 49 8B E8 4C 8B A4 24 A0 00 00 00 4C 8B F2 4C 8B AC 24 90 00 00 00 48 8B F9 44 88 7C 24 38 4C 89 64 24 30 89 44 24 28 4C 89 6C 24 20 E8 ?? ?? ?? ?? 48 8B 8F ?? ?? ?? ?? 8B D8 48 85 C9 74 37 E8 ?? ?? ?? ?? 3930020 +48 89 5C 24 08 57 48 83 EC 20 48 8B F9 48 8B DA 8B CA E8 49 54 19 00 8B 12AE020 +48 89 5C 24 08 57 48 83 EC 20 48 8B F9 48 8B DA 8B CA E8 D9 9D 12 00 8B 1319690 +48 89 5C 24 08 57 48 83 EC 30 48 8B 41 28 41 8B F8 0F 29 74 24 20 0F 28 F1 48 8B D9 48 85 C0 74 ?? 8B 40 08 0F BA E0 1E 72 ?? 41 83 F8 01 3AB5120 +48 89 5C 24 10 F3 0F 11 54 24 18 57 48 83 EC 20 48 8B D9 48 8B FA 48 8B CA 5DE6020 +48 89 5C 24 18 55 57 41 56 48 81 EC F0 02 00 00 48 8B 05 ?? ?? ?? ?? 48 33 C4 48 89 84 24 E0 02 00 00 69B2C70 +48 8B 05 ?? ?? ?? ?? 48 85 C0 75 ?? 80 3D ?? ?? ?? ?? 02 72 ?? 48 8D 15 ?? ?? ?? ?? 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? 33 C0 48 83 C4 20 5B C3 3552BA9 +48 8B 07 41 0F 28 C8 48 8B CF 44 0F 28 84 24 A0 00 00 00 48 81 C4 F0 00 00 00 5F 48 FF A0 18 05 00 00 43A8DA9 +48 8B 0F 4C 8D 44 24 38 48 8B D0 4C 8B 89 60 02 00 00 48 8B CF 41 FF D1 48 8B B4 24 E8 00 00 00 48 8B AC 24 08 01 00 00 48 8B 9C 24 00 01 00 00 4C 8B A4 24 E0 00 00 00 44 0F 28 84 24 A0 00 00 00 48 81 C4 F0 00 00 00 5F C3 43A9893 +48 8B 42 20 4D 8B C8 48 8B 08 48 83 C0 08 48 89 42 20 48 8B 82 80 00 00 00 48 89 4A 30 48 39 08 74 ?? 48 8B 40 10 48 39 08 75 ?? 4C 8B 40 08 4C 89 42 38 4D 85 C9 1635350 +48 8B 5C 24 38 48 8B 74 24 40 48 8B 7C 24 48 41 89 06 48 83 C4 20 41 5E C3 3B33472,3B38604,3D80F12,6518430 +48 8B 5C 24 40 88 06 48 83 C4 20 5F 5E 5D C3 CC CC CC CC CC CC CC CC 39B6F08,3B34FD7,3DD3769,4EA84C9,57AB597,5CEC812,5DBB8F9,5DBC6F9,651BD49,65259B9,65504D9,656EA06,6585ED7,658B129,65F7549,65F8338,6604DA8,66070F9,6619598,661E825,661FF99,66202D7,66203B6,6623B68,663AEC9,663B1C9,664B4A4,664BA59,664E0F9,6AB36A9,6AB5A09,78C93D9,7D546D9,7D547A9,7D54C89,7E86FD9 +48 8B C4 4C 89 40 18 55 53 56 48 8D 68 B1 48 81 EC D0 00 00 00 0F 29 70 B8 49 8B D9 0F 29 78 A8 48 89 78 10 48 8B 3D ?? ?? ?? ?? 4C 89 60 E0 4C 8B E1 4C 89 68 D8 8B CF 4C 89 70 D0 7DC4910 +48 8D 4D EF E8 ?? ?? ?? ?? F3 0F 10 1D ?? ?? ?? ?? 45 33 C0 48 8B D0 48 8B CB E8 ?? ?? ?? ?? 48 8B 4D 0F 48 85 C9 74 05 E8 ?? ?? ?? ?? 48 8B 4D EF 48 85 C9 74 05 E8 ?? ?? ?? ?? 48 8D 4D EF E8 ?? ?? ?? ?? 0F 2E 3D ?? ?? ?? ?? 5E1E143 +4C 03 C8 4C 89 4A 20 8B 81 38 02 00 00 41 89 00 C3 CC 48 89 5C 24 08 48 89 6C 24 18 6636A5E +4C 8D 9C 24 30 02 00 00 49 8B 5B 10 49 8B 73 28 49 8B E3 5F C3 6550791 +89 03 48 8B C3 89 7B 04 48 8B 5C 24 48 48 83 C4 30 5F C3 80 3D ?? ?? ?? ?? 00 74 09 48 8D 05 ?? ?? ?? ?? EB 13 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? C6 05 ?? ?? ?? ?? 01 0F 28 44 24 20 143976A +8B 81 ?? ?? ?? ?? 44 8B C7 2B C7 48 8B D3 41 0F 48 C4 89 81 ?? ?? ?? ?? 49 8D 8D 68 01 00 00 69A90F4 +C7 44 24 20 C0 0D 00 00 E8 ?? ?? ?? ?? 48 8B 05 ?? ?? ?? ?? 48 83 C4 78 C3 6612435 +F3 0F 11 49 08 C3 CC CC CC CC CC CC CC CC CC CC 48 89 5C 24 08 48 89 74 24 10 57 48 83 EC 30 48 8B F1 48 8B FA 48 8B CA E8 ?? ?? ?? ?? 48 81 C6 ?? ?? ?? ?? 4CA6C60 +F3 0F 11 49 0C C3 CC CC CC CC CC CC CC CC CC CC 40 56 48 83 EC 30 83 79 08 01 48 8B F1 7D ?? 80 3D ?? ?? ?? ?? 02 0F 82 ?? ?? ?? ?? 48 8D 15 4CA6D40 diff --git a/runtime/resources/ObjectInventory.lua b/runtime/resources/ObjectInventory.lua new file mode 100644 index 0000000..a05ebf6 --- /dev/null +++ b/runtime/resources/ObjectInventory.lua @@ -0,0 +1,14 @@ +local function objectInventory(wanted) + local ref=uniqueScan(signatures.objects) + state.objectChunksSlot=ref+0x2B+readInteger(ref+0x27,true) + state.objectCountSlot=ref+0x15+readInteger(ref+0x11,true) + local spec={};for name,kind in pairs(wanted)do spec[#spec+1]=name..'\t'..kind end;table.sort(spec) + local objects=H('ueNamedObjects',state.objectChunksSlot,state.objectCountSlot,state.namePool,table.concat(spec,'\n')) + local out={} + for _,a in ipairs(objects)do + local name=fname(a+0x18);local kind=wanted[name] + if kind and fname(classOf(a)+0x18)==kind then assert(not out[name],'Ambiguous loaded object: '..name);out[name]=a end + end + for name in pairs(wanted)do assert(out[name],'Required game object is not loaded: '..name)end + return out +end diff --git a/runtime/resources/PlayerSpeed.lua b/runtime/resources/PlayerSpeed.lua new file mode 100644 index 0000000..ca1591b --- /dev/null +++ b/runtime/resources/PlayerSpeed.lua @@ -0,0 +1,162 @@ +-- Runs inside a private scope after the existing read-only UE reflection helpers. +local movementID,animationID=1337142257,1337142258 +local function identity(a) + if not ptr(a)then return end + local cl=q(a+0x10);local name=q(a+0x18);local index=readInteger(a+0xC) + if not ptr(cl)or not name or not index then return end + return {address=a,class=cl,name=name,index=index} +end +local function valid(id) + return id and state.pid==getOpenedProcessID()and q(id.address+0x10)==id.class and q(id.address+0x18)==id.name and readInteger(id.address+0xC)==id.index +end +local function context() + if not state.worldSlot or not state.namePool then + local wr=uniqueScan(signatures.world);local worldSlot=wr+7+assert(readInteger(wr+3,true)) + local nr=uniqueScan(signatures.names)+0x1C;local namePool=nr+7+assert(readInteger(nr+3,true)) + state.worldSlot=worldSlot;state.namePool=namePool + end + if state.pid~=getOpenedProcessID()then return end + local world=q(state.worldSlot);if not ptr(world)then return end + local gi=q(world+offset(classOf(world),'OwningGameInstance'));if not ptr(gi)then return end + local list,n=array(gi+offset(classOf(gi),'LocalPlayers'),8);if not list or not n or n<1 then return end + local lp=q(list);if not ptr(lp)then return end + local pc=q(lp+offset(classOf(lp),'PlayerController'));if not ptr(pc)then return end + local pawn=q(pc+offset(classOf(pc),'Pawn'));local id=identity(pawn);if not id then return end + local dying=field(id.class,'bActorIsBeingDestroyed');if dying and flag(pawn,dying)then return end + return {pawn=pawn,id=id} +end +local function factorValue(value) + assert(finite(value)and value>=1 and value<=5,'速度倍率必须在 1 到 5 之间');return value +end +local function quantize(value)return (string.unpack('=0 and current<=maximum,'速度当前值异常') + if l.lastWritten==nil or current~=l.lastWritten then l.base=current end + local target=quantize(l.base*factor) + assert(finite(target)and target<=maximum,'速度目标值异常') + if target~=current then assert(writeFloat(address,target),'速度写入失败')end + l.lastWritten=target;return true +end +function RestorePlayerSpeedLease(l) + if l and valid(l.object)and q(l.object.address+0x20)==l.owner then + local address=l.object.address+l.offset;local current=readFloat(address) + if l.lastWritten~=nil and current==l.lastWritten then assert(writeFloat(address,l.base),'速度恢复失败')end + end +end +ApplyPlayerAnimationLease=ApplyPlayerSpeedLease +RestorePlayerAnimationLease=RestorePlayerSpeedLease +function ReleaseChangedPlayerAnimationLease(s,owner) + if s.binding and s.binding.owner~=owner then RestorePlayerAnimationLease(s.binding);s.binding=nil end +end +local function restoreMovement(s) + local errors={} + for _,l in ipairs(s.leases or {})do local ok,e=pcall(RestorePlayerSpeedLease,l);if not ok then errors[#errors+1]=tostring(e)end end + assert(#errors==0,table.concat(errors,'; ')) + s.leases=nil;s.pawn=nil;s.attributes=nil +end +local speedFields={'WalkSpeed','JogSpeed','SprintSpeed','CrouchSpeed'} +function PlayerMovementAttributeLease(id,outer,at) + local base=assert(readFloat(id.address+at+8),'移动属性基值不可读') + local current=assert(readFloat(id.address+at+12),'移动属性当前值不可读') + assert(finite(base)and base>=0 and base<=20000 and finite(current)and current>=0 and current<=20000,'移动属性原值异常') + -- Keep GAS BaseValue untouched. Re-aggregating CurrentValue from a scaled + -- BaseValue would feed our own multiplier back into the next refresh. + return {object=id,owner=outer,offset=at+12,maximum=100000} +end +local function movementLeases(c) + local attrs=q(c.pawn+offset(c.id.class,'AttributeSetBase'));local id=identity(attrs) + assert(id and fname(id.class+0x18)=='BasicAttributeSet','玩家移动属性不可用') + local outer=q(attrs+0x20);assert(ptr(outer),'移动属性归属不可用') + local leases={} + for _,name in ipairs(speedFields)do + local p=field(id.class,name,true) + assert(p.size==16 and fname(p.type+0x18)=='GameplayAttributeData','移动属性结构已改变:'..name) + -- Only scale the four source attributes. FinalWalkSpeed/MaxWalkSpeed are game + -- outputs; scaling those as well could apply the multiplier twice. + leases[#leases+1]=PlayerMovementAttributeLease(id,outer,p.offset) + end + return attrs,leases +end +function EnablePlayerMovementSpeed() + assert(not PBZ_PlayerMovementSpeed,'移动速度已经开启') + local s={pid=state.pid,factor=1} + s.refresh=function() + local c=context() + if not c then restoreMovement(s);return end + local attrs=q(c.pawn+offset(c.id.class,'AttributeSetBase')) + if s.pawn~=c.pawn or s.attributes~=attrs or not s.leases or not valid(s.leases[1].object)then + restoreMovement(s) + local address,leases=movementLeases(c);s.attributes=address;s.leases=leases;s.pawn=c.pawn + end + for _,l in ipairs(s.leases)do assert(ApplyPlayerSpeedLease(l,s.factor),'玩家移动属性身份发生变化')end + s.lastError=nil + end + s.stop=function()restoreMovement(s);if s.timer then s.timer.destroy();s.timer=nil end;PBZ_PlayerMovementSpeed=nil end + s.refresh();s.timer=createTimer(nil,false);s.timer.Interval=100 + s.timer.OnTimer=function() + local ok,e=pcall(s.refresh) + if not ok then local restored,why=pcall(restoreMovement,s);s.lastError=tostring(e)..(restored and ''or '; '..tostring(why))end + end + PBZ_PlayerMovementSpeed=s;s.timer.Enabled=true +end +local function enableAnimation() + local s={pid=state.pid,factor=1} + s.refresh=function() + local c=context() + if not c then RestorePlayerAnimationLease(s.binding);s.binding=nil;return end + ReleaseChangedPlayerAnimationLease(s,c.pawn) + local mesh=q(c.pawn+offset(c.id.class,'Mesh'));local id=identity(mesh) + if s.binding and s.binding.object.address~=mesh then RestorePlayerAnimationLease(s.binding);s.binding=nil end + assert(id and q(mesh+0x20)==c.pawn,'玩家角色模型不可用') + if not s.binding or not valid(s.binding.object)then + RestorePlayerAnimationLease(s.binding) + local p=field(id.class,'GlobalAnimRateScale',true);assert(p.size==4,'角色动作速度字段发生变化') + s.binding={object=id,owner=c.pawn,offset=p.offset} + end + assert(ApplyPlayerAnimationLease(s.binding,s.factor),'玩家模型身份发生变化') + s.lastError=nil + end + s.stop=function() + RestorePlayerAnimationLease(s.binding);if s.timer then s.timer.destroy();s.timer=nil end + PBZ_PlayerAnimationSpeed=nil + end + s.refresh();s.timer=createTimer(nil,false);s.timer.Interval=100 + s.timer.OnTimer=function() + local ok,e=pcall(s.refresh) + if not ok then local restored,why=pcall(RestorePlayerAnimationLease,s.binding);s.lastError=tostring(e)..(restored and ''or '; '..tostring(why))end + end + PBZ_PlayerAnimationSpeed=s + s.timer.Enabled=true +end +function EnablePlayerAnimationSpeed() + assert(not PBZ_PlayerAnimationSpeed,'行走动画速度已经开启');enableAnimation() +end +local function manager(id) + if id==movementID then return PBZ_PlayerMovementSpeed end + if id==animationID then return PBZ_PlayerAnimationSpeed end +end +function PlayerSpeedFactor(id) + local s=manager(id);return ('%.2f'):format(s and s.factor or 1) +end +function SetPlayerSpeedFactor(id,value) + value=factorValue(value) + local s=manager(id);assert(s and s.pid==getOpenedProcessID(),'请先开启对应速度功能') + local previous=s.factor;s.factor=value;local ok,e=pcall(s.refresh) + if not ok then + s.factor=previous + local restored,why=pcall(function()if id==movementID then restoreMovement(s)else RestorePlayerAnimationLease(s.binding)end end) + s.lastError=tostring(e)..(restored and ''or '; '..tostring(why));error(s.lastError) + end + return true +end +function PlayerSpeedPreflight() + local c=assert(context(),'请先进入可操作的场景');local attrs,leases=movementLeases(c) + local mesh=q(c.pawn+offset(c.id.class,'Mesh'));local id=identity(mesh) + assert(id and q(mesh+0x20)==c.pawn,'玩家模型校验失败') + local p=field(id.class,'GlobalAnimRateScale',true);assert(p.size==4,'动作速度字段类型已改变') + return ('READ_ONLY_OK pid=%d attributes=%X source_fields=%d animation_offset=%X animation_scale=%s'):format(state.pid,attrs,#leases,p.offset,tostring(readFloat(mesh+p.offset))) +end diff --git a/runtime/resources/Runtime.lua b/runtime/resources/Runtime.lua new file mode 100644 index 0000000..b9e0c33 --- /dev/null +++ b/runtime/resources/Runtime.lua @@ -0,0 +1,220 @@ +function H(op,...) + local ok,value=host(op,...) + if not ok then error(value,2)end + return value +end +syntaxcheck=false +vtSingle,vtByteArray,soExactValue,rtRounded,fsmNotAligned=4,8,0,0,0 +caNone=0 +process='PBZ.exe' +function getOpenedProcessID()return H('pid')end +function getModuleSize()return H('size')end +function getAddress(x)return resolveAddress(x,false)end +function getAddressSafe(x)return resolveAddress(x,true)end +function unregisterSymbol(x)Symbols[x:lower()]=nil end +unregistersymbol=unregisterSymbol +function registerSymbol(x,v)Symbols[x:lower()]=v end +function readBytes(p,n,asTable) + local bytes=H('read',resolveAddress(p),n or 1);if not bytes then return nil end + if asTable then return {bytes:byte(1,#bytes)}end + return bytes:byte(1,#bytes) +end +local function read(p,n,kind) local b=H('read',resolveAddress(p),n);if not b then return nil end;return (string.unpack(kind,b))end +function readQword(p)return read(p,8,'>10),0xDC00+(cp&1023))end + end + return H('write',resolveAddress(p),table.concat(chars),false) +end +function createMemScan() + local s={hits={}} + s.firstScan=function(_,_,_,pattern,_,first,last,protection)s.hits=H('scan',pattern,first,last,protection=='+X')end + s.waitTillDone=function()end;s.destroy=function()end + return s +end +function createFoundList(s) + local f={Count=0,Address={}} + f.initialize=function()f.Count=#s.hits;for i,p in ipairs(s.hits)do f.Address[i-1]=('%X'):format(p)end end + f.destroy=function()end;return f +end +function AOBScanModuleUnique(_,pattern,protection)local hits=H('scan',pattern,H('base'),H('base')+H('size')-1,protection=='+X');if #hits==1 then return hits[1]end end +function getTickCount()return H('ticks')end +function sleep(n)H('sleep',n)end +function print(...)local s={};for i,v in ipairs({...})do s[i]=tostring(v)end;H('log',table.concat(s,' '))end +function showMessage(s)H('message',tostring(s))end +function writeToClipboard(s)H('clipboard',s)end +function enumModules()return {{Name='PBZ.exe',PathToFile=H('path'),Address=H('base')}}end +function getForegroundProcess()return H('foregroundPid')end +function getForegroundWindow()return H('foregroundWindow')end +function getWindow(h,c)return H('window',h,c)end +function getWindowProcessID(h)return H('windowPid',h)end +function getWindowClassName(h)return H('windowClass',h)end +function isKeyPressed(k)return H('key',k)end +function getXBox360ControllerState(i)return H('controller',i or 0)end +function readIntegerLocal(p,signed)local b=H('localRead',p,4);return(string.unpack(signed and ' + + + + + + + + + + + + + diff --git a/runtime/resources/UI.lua b/runtime/resources/UI.lua new file mode 100644 index 0000000..dc3e39f --- /dev/null +++ b/runtime/resources/UI.lua @@ -0,0 +1,38 @@ +-- Independent WPF controls exposed as small Lua property objects. +local function proxy(kind,parent) + local id=H('uiCreate',kind,parent and parent._id or 0) + local props={_id=id,_kind=kind} + local function nested(prefix) + local store={};return setmetatable({}, {__index=function(_,k)return store[k]end,__newindex=function(_,k,v)store[k]=v;H('uiSet',id,prefix..'.'..k,v)end}) + end + props.Font=nested('Font');props.Brush=nested('Brush') + props.Lines=setmetatable({}, {__index=function(_,k)if k=='Text'then return H('uiGet',id,'Text')end end,__newindex=function(_,k,v)if k=='Text'then H('uiSet',id,'Text',v)else error('Unknown memo property '..k)end end}) + props.Items={add=function(s)H('uiItem',id,s)end,clear=function()H('uiItemsClear',id)end} + props.destroy=function()H('uiDestroy',id)end + props.show=function()H('uiShow',id)end + props.centerScreen=function()H('uiCenter',id)end + props.dragNow=function()H('uiDrag',id)end + props.setBorderStyle=function(s)H('uiSet',id,'BorderStyle',s)end + props.setLayeredAttributes=function()H('uiSet',id,'Overlay',true)end + props.repaint=function()H('uiPaint',id)end + local canvas={Font=nested('Canvas.Font'),Brush=nested('Canvas.Brush')} + canvas.fillRect=function(...)H('canvasClear',id)end + canvas.textOut=function(x,y,s)H('canvasText',id,x,y,s)end + canvas.getTextWidth=function(s)return H('canvasWidth',id,s)end + props.Canvas=canvas + return setmetatable({}, {__index=function(_,k) + if k=='Handle'or k=='Text'or k=='ItemIndex'or k=='Position'or k=='Width'or k=='Height'then return H('uiGet',id,k)end + return props[k] + end,__newindex=function(_,k,v) + props[k]=v + if k=='Parent'then H('uiSet',id,k,v and v._id or 0)else H('uiSet',id,k,v)end + end}) +end +function createForm()return proxy('form')end +function createLabel(p)return proxy('label',p)end +function createButton(p)return proxy('button',p)end +function createEdit(p)return proxy('edit',p)end +function createComboBox(p)return proxy('combo',p)end +function createMemo(p)return proxy('memo',p)end +function createPaintBox(p)return proxy('paint',p)end +function createTrackBar(p)return proxy('slider',p)end diff --git a/runtime/resources/scripts/1337142241.aa b/runtime/resources/scripts/1337142241.aa new file mode 100644 index 0000000..c11caca --- /dev/null +++ b/runtime/resources/scripts/1337142241.aa @@ -0,0 +1,91 @@ +{$LUA} +if syntaxcheck then return end + +[ENABLE] + + +local function safeMain() + -- 1. Executable of the attached process + local path = '' + local ok, mods = pcall(enumModules) + if ok and type(mods) == 'table' then + local target = string.lower(tostring(process or '')) + for i = 1, #mods do + local m = mods[i] + if type(m) == 'table' and m.PathToFile + and string.lower(tostring(m.Name or '')) == target then + path = m.PathToFile + break + end + end + if path == '' + and type(mods[1]) == 'table' and mods[1].PathToFile then + path = mods[1].PathToFile + end + end + + + -- 3. All active memory records + local names = {} + local al = getAddressList() + if al ~= nil then + local count = 0 + local okc, c = pcall(function() return al:getCount() end) + if okc and type(c) == 'number' then count = c end + for i = 0, count - 1 do + local rec = nil + local okr, r = pcall(function() return al:getMemoryRecord(i) end) + if okr then rec = r end + if rec ~= nil then + local isActive = false + local oka, a = pcall(function() return rec.Active end) + if oka and a then isActive = true end + if isActive then + local d = '' + local okd, dd = pcall(function() return rec.Description end) + if okd and type(dd) == 'string' then d = dd end + if d == '' then d = '' end + names[#names + 1] = d + end + end + end + end + + -- 4. Build and copy the report + local out = {} + out[#out + 1] = 'Executable: ' .. path + + + out[#out + 1] = 'Active Memory Records:' + if #names == 0 then + out[#out + 1] = '- ' + else + for i = 1, #names do + out[#out + 1] = '- ' .. names[i] + end + end + + local text = table.concat(out, '\r\n') + + if writeToClipboard ~= nil then + writeToClipboard(text) + showMessage('Your report has been copied to your clipboard.') + else + showMessage('Clipboard API not available.') + end + print(text) +end + +local ok, err = pcall(safeMain) +if not ok then + showMessage('Report error: ' .. tostring(err)) + print('Report error: ' .. tostring(err)) +end + +if memrec ~= nil then + createTimer(100, function() memrec.Active = false end) +end + +[DISABLE] +-- Read-only report; nothing to undo. + diff --git a/runtime/resources/scripts/1337142242.aa b/runtime/resources/scripts/1337142242.aa new file mode 100644 index 0000000..67b6c7e --- /dev/null +++ b/runtime/resources/scripts/1337142242.aa @@ -0,0 +1,86 @@ +[ENABLE] +// Send | https://fearlessrevolution.com Exlusive +aobscanmodule(GWorld_Load,PBZ.exe,48 8B 05 ?? ?? ?? ?? 48 85 C0 75 ?? 80 3D ?? ?? ?? ?? 02 72 ?? 48 8D 15 ?? ?? ?? ?? 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? 33 C0 48 83 C4 20 5B C3) +assert(GWorld_Load,48 8B 05) +aobscanmodule(TakeDamage_Hook,PBZ.exe,40 55 56 57 41 54 41 55 41 56 41 57 48 8D AC 24 10 FD FF FF 48 81 EC F0 03 00 00 48 8B 05 ?? ?? ?? ?? 48 33 C4 48 89 85 C0 02 00 00 48 8B 85 50 03 00 00 4C 8B E9 48 8B BD 58 03 00 00 4D 8B E0) +assert(TakeDamage_Hook,40 55 56 57 41 54 41 55 41 56 41 57 48 8D AC 24 10 FD FF FF) + +alloc(newmem,$1000) +alloc(originalbytes,$20) +label(originalcode) +label(skipDamage) +label(PBZ_NH_Calls) +label(PBZ_NH_Blocked) +registersymbol(TakeDamage_Hook) +registersymbol(originalbytes) +registersymbol(PBZ_NH_Calls) +registersymbol(PBZ_NH_Blocked) + +originalbytes: + readmem(TakeDamage_Hook,$14) +// Send | https://fearlessrevolution.com Exlusive +newmem: + inc qword ptr [PBZ_NH_Calls] + push r11 + mov rax,GWorld_Load + movsxd r11,dword ptr [rax+3] + lea rax,[rax+r11+7] + mov rax,[rax] + pop r11 + test rax,rax + je originalcode + mov rax,[rax+228] + test rax,rax + je originalcode + cmp dword ptr [rax+40],1 + jl originalcode + mov rax,[rax+38] + test rax,rax + je originalcode + mov rax,[rax] + test rax,rax + je originalcode + mov rax,[rax+30] + test rax,rax + je originalcode + mov rax,[rax+2F0] + test rax,rax + je originalcode + mov rax,[rax+F08] + test rax,rax + je originalcode + cmp rcx,rax + je skipDamage +// Send | https://fearlessrevolution.com Exlusive +originalcode: + readmem(TakeDamage_Hook,$14) + db FF 25 00 00 00 00 + dq TakeDamage_Hook+14 + +skipDamage: + inc qword ptr [PBZ_NH_Blocked] + xor eax,eax + xorps xmm0,xmm0 + ret + +align 8 +PBZ_NH_Calls: + dq 0 +PBZ_NH_Blocked: + dq 0 +// Send | https://fearlessrevolution.com Exlusive +TakeDamage_Hook: + db FF 25 00 00 00 00 + dq newmem + db 90 90 90 90 90 90 + +[DISABLE] +TakeDamage_Hook: + readmem(originalbytes,$14) +unregistersymbol(TakeDamage_Hook) +unregistersymbol(originalbytes) +unregistersymbol(PBZ_NH_Calls) +unregistersymbol(PBZ_NH_Blocked) +dealloc(newmem) +dealloc(originalbytes) +// Send | https://fearlessrevolution.com Exlusive diff --git a/runtime/resources/scripts/1337142243.aa b/runtime/resources/scripts/1337142243.aa new file mode 100644 index 0000000..f704d56 --- /dev/null +++ b/runtime/resources/scripts/1337142243.aa @@ -0,0 +1,137 @@ +[ENABLE] +aobscanmodule(PBZ_SC_GWorldLoad,PBZ.exe,48 8B 05 ?? ?? ?? ?? 48 85 C0 75 ?? 80 3D ?? ?? ?? ?? 02 72 ?? 48 8D 15 ?? ?? ?? ?? 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? 33 C0 48 83 C4 20 5B C3) +aobscanmodule(PBZ_SC_BaseWrite,PBZ.exe,F3 0F 11 49 08 C3 CC CC CC CC CC CC CC CC CC CC 48 89 5C 24 08 48 89 74 24 10 57 48 83 EC 30 48 8B F1 48 8B FA 48 8B CA E8 ?? ?? ?? ?? 48 81 C6 ?? ?? ?? ??) +aobscanmodule(PBZ_SC_CurrentWrite,PBZ.exe,F3 0F 11 49 0C C3 CC CC CC CC CC CC CC CC CC CC 40 56 48 83 EC 30 83 79 08 01 48 8B F1 7D ?? 80 3D ?? ?? ?? ?? 02 0F 82 ?? ?? ?? ?? 48 8D 15) +assert(PBZ_SC_GWorldLoad,48 8B 05) +assert(PBZ_SC_BaseWrite,F3 0F 11 49 08 C3 CC CC CC CC CC CC CC CC) +assert(PBZ_SC_CurrentWrite,F3 0F 11 49 0C C3 CC CC CC CC CC CC CC CC) +alloc(PBZ_SC_Code,$1000) +alloc(PBZ_SC_Original,$20) +label(PBZ_SC_BasePass) +label(PBZ_SC_BaseSkip) +label(PBZ_SC_CurrentCode) +label(PBZ_SC_CurrentPass) +label(PBZ_SC_CurrentSkip) +registersymbol(PBZ_SC_BaseWrite) +registersymbol(PBZ_SC_CurrentWrite) +registersymbol(PBZ_SC_Original) +// Send | https://fearlessrevolution.com Exlusive +PBZ_SC_Original: + readmem(PBZ_SC_BaseWrite,$0E) +PBZ_SC_Original+10: + readmem(PBZ_SC_CurrentWrite,$0E) + +PBZ_SC_Code: + pushfq + push rax + push r11 + mov rax,PBZ_SC_GWorldLoad + movsxd r11,dword ptr [rax+3] + lea rax,[rax+r11+7] + mov rax,[rax] + pop r11 // Send | https://fearlessrevolution.com Exlusive + test rax,rax + je PBZ_SC_BasePass + mov rax,[rax+228] + test rax,rax + je PBZ_SC_BasePass + cmp dword ptr [rax+40],1 + jl PBZ_SC_BasePass + mov rax,[rax+38] + test rax,rax + je PBZ_SC_BasePass + mov rax,[rax] // Send | https://fearlessrevolution.com Exlusive + test rax,rax + je PBZ_SC_BasePass + mov rax,[rax+30] + test rax,rax + je PBZ_SC_BasePass + mov rax,[rax+2F0] + test rax,rax + je PBZ_SC_BasePass + mov rax,[rax+758] + test rax,rax + je PBZ_SC_BasePass + lea rax,[rax+638] + cmp rcx,rax + jne PBZ_SC_BasePass + ucomiss xmm1,[rcx+08] + jp PBZ_SC_BasePass + jb PBZ_SC_BaseSkip + +PBZ_SC_BasePass: + pop rax + popfq // Send | https://fearlessrevolution.com Exlusive + readmem(PBZ_SC_BaseWrite,6) + +PBZ_SC_BaseSkip: + pop rax + popfq + ret + +PBZ_SC_CurrentCode: + pushfq + push rax + push r11 + mov rax,PBZ_SC_GWorldLoad + movsxd r11,dword ptr [rax+3] + lea rax,[rax+r11+7] + mov rax,[rax] + pop r11 + test rax,rax + je PBZ_SC_CurrentPass + mov rax,[rax+228] + test rax,rax + je PBZ_SC_CurrentPass + cmp dword ptr [rax+40],1 + jl PBZ_SC_CurrentPass + mov rax,[rax+38] + test rax,rax + je PBZ_SC_CurrentPass + mov rax,[rax] + test rax,rax + je PBZ_SC_CurrentPass + mov rax,[rax+30] + test rax,rax + je PBZ_SC_CurrentPass + mov rax,[rax+2F0] + test rax,rax + je PBZ_SC_CurrentPass + mov rax,[rax+758] + test rax,rax + je PBZ_SC_CurrentPass + lea rax,[rax+638] + cmp rcx,rax // Send | https://fearlessrevolution.com Exlusive + jne PBZ_SC_CurrentPass + ucomiss xmm1,[rcx+0C] + jp PBZ_SC_CurrentPass + jb PBZ_SC_CurrentSkip + +PBZ_SC_CurrentPass: + pop rax + popfq + readmem(PBZ_SC_CurrentWrite,6) + +PBZ_SC_CurrentSkip: + pop rax + popfq + ret + +PBZ_SC_BaseWrite: + db FF 25 00 00 00 00 + dq PBZ_SC_Code +PBZ_SC_CurrentWrite: + db FF 25 00 00 00 00 + dq PBZ_SC_CurrentCode +// Send | https://fearlessrevolution.com Exlusive +[DISABLE] +PBZ_SC_BaseWrite: + readmem(PBZ_SC_Original,$0E) +PBZ_SC_CurrentWrite: + readmem(PBZ_SC_Original+10,$0E) +unregistersymbol(PBZ_SC_BaseWrite) +unregistersymbol(PBZ_SC_CurrentWrite) +unregistersymbol(PBZ_SC_Original) +dealloc(PBZ_SC_Code) +dealloc(PBZ_SC_Original) + diff --git a/runtime/resources/scripts/1337142244.aa b/runtime/resources/scripts/1337142244.aa new file mode 100644 index 0000000..6f01007 --- /dev/null +++ b/runtime/resources/scripts/1337142244.aa @@ -0,0 +1,285 @@ +[ENABLE] +aobscanmodule(PBZ_SCEF_Tick,PBZ.exe,48 89 5C 24 08 57 48 83 EC 30 48 8B 41 28 41 8B F8 0F 29 74 24 20 0F 28 F1 48 8B D9 48 85 C0 74 ?? 8B 40 08 0F BA E0 1E 72 ?? 41 83 F8 01) +aobscanmodule(PBZ_SCEF_WorldLoad,PBZ.exe,48 8B 05 ?? ?? ?? ?? 48 85 C0 75 ?? 80 3D ?? ?? ?? ?? 02 72 ?? 48 8D 15 ?? ?? ?? ?? 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? 33 C0 48 83 C4 20 5B C3) +aobscanmodule(PBZ_SCEF_Convert,PBZ.exe,48 8D 4D EF E8 ?? ?? ?? ?? F3 0F 10 1D ?? ?? ?? ?? 45 33 C0 48 8B D0 48 8B CB E8 ?? ?? ?? ?? 48 8B 4D 0F 48 85 C9 74 05 E8 ?? ?? ?? ?? 48 8B 4D EF 48 85 C9 74 05 E8 ?? ?? ?? ?? 48 8D 4D EF E8 ?? ?? ?? ?? 0F 2E 3D ?? ?? ?? ??) +assert(PBZ_SCEF_Tick,48 89 5C 24 08 57 48 83 EC 30 48 8B 41 28) +alloc(PBZ_SCEF_Code,$3000) +alloc(PBZ_SCEF_Original,$10) +label(PBZ_SCEF_Pass) +label(PBZ_SCEF_HaveSet) +label(PBZ_SCEF_FindSet) +label(PBZ_SCEF_CleanupName) +label(PBZ_SCEF_CleanupDone) +label(PBZ_SCEF_NoGrant) +label(PBZ_SCEF_LocalTicks) +label(PBZ_SCEF_Refills) +label(PBZ_SCEF_Grants) +label(PBZ_SCEF_LastCount) +label(PBZ_SCEF_MaxCount) +label(PBZ_SCEF_LastMeter) +label(PBZ_SCEF_LastSet) +label(PBZ_SCEF_LastASC) +label(PBZ_SCEF_Thread) +label(PBZ_SCEF_Busy) +label(PBZ_SCEF_One) +label(PBZ_SCEF_Limit) +registersymbol(PBZ_SCEF_Tick) +registersymbol(PBZ_SCEF_LocalTicks) +registersymbol(PBZ_SCEF_Refills) +registersymbol(PBZ_SCEF_Grants) +registersymbol(PBZ_SCEF_LastCount) +registersymbol(PBZ_SCEF_MaxCount) +registersymbol(PBZ_SCEF_LastMeter) +registersymbol(PBZ_SCEF_LastSet) +registersymbol(PBZ_SCEF_LastASC) +registersymbol(PBZ_SCEF_Thread) +registersymbol(PBZ_SCEF_Code) +registersymbol(PBZ_SCEF_Original) +registersymbol(PBZ_SCEF_Busy) +PBZ_SCEF_Original: + readmem(PBZ_SCEF_Tick,$0E) +PBZ_SCEF_Code: + pushfq + push rax + push rcx + push rdx + push r8 + push r9 + push r10 + push r11 + push rbx + push rsi + push rdi + sub rsp,C0 + movdqu [rsp+20],xmm0 + movdqu [rsp+30],xmm1 + movdqu [rsp+40],xmm2 + movdqu [rsp+50],xmm3 + movdqu [rsp+60],xmm4 + movdqu [rsp+70],xmm5 + mov r10,rcx + mov r11,PBZ_SCEF_WorldLoad + movsxd rax,dword ptr [r11+3] + lea rax,[r11+rax+7] + mov rax,[rax] + test rax,rax + je PBZ_SCEF_Pass + mov rax,[rax+228] + test rax,rax + je PBZ_SCEF_Pass + cmp dword ptr [rax+40],1 + jl PBZ_SCEF_Pass + mov rax,[rax+38] + test rax,rax + je PBZ_SCEF_Pass + mov rax,[rax] + test rax,rax + je PBZ_SCEF_Pass + mov rax,[rax+30] + test rax,rax + je PBZ_SCEF_Pass + lea rdx,[rax+28] + cmp r10,rdx + jne PBZ_SCEF_Pass + cmp [r10+28],rax + jne PBZ_SCEF_Pass + mov edx,r9d + and edx,FF + mov [PBZ_SCEF_Thread],edx + cmp edx,1 + ja PBZ_SCEF_Pass + inc qword ptr [PBZ_SCEF_LocalTicks] + cmp dword ptr [PBZ_SCEF_Busy],0 + jne PBZ_SCEF_Pass + mov rdi,[rax+2F0] + test rdi,rdi + je PBZ_SCEF_Pass + mov rbx,[rdi+758] + test rbx,rbx + je PBZ_SCEF_Pass + cmp [rbx+20],rdi + jne PBZ_SCEF_Pass + mov rsi,[rdi+750] + test rsi,rsi + je PBZ_SCEF_Pass + cmp [rsi+20],rdi + jne PBZ_SCEF_Pass + mov r10,[rsi+1050] + test r10,r10 + je PBZ_SCEF_Pass + mov r11d,[rsi+1058] + cmp r11d,1 + jl PBZ_SCEF_Pass + cmp r11d,80 + ja PBZ_SCEF_Pass +PBZ_SCEF_FindSet: + cmp [r10],rbx + je PBZ_SCEF_HaveSet + add r10,8 + dec r11d + jne PBZ_SCEF_FindSet + jmp PBZ_SCEF_Pass +PBZ_SCEF_HaveSet: + mov [PBZ_SCEF_LastSet],rbx + mov [PBZ_SCEF_LastASC],rsi + movss xmm0,[rbx+8C4] + movss [PBZ_SCEF_LastCount],xmm0 + movss [rsp+B8],xmm0 + movss xmm1,[rbx+8D4] + movss [PBZ_SCEF_MaxCount],xmm1 + xorps xmm2,xmm2 + ucomiss xmm0,xmm2 + jp PBZ_SCEF_Pass + jb PBZ_SCEF_Pass + ucomiss xmm1,xmm2 + jp PBZ_SCEF_Pass + jbe PBZ_SCEF_Pass + ucomiss xmm1,[PBZ_SCEF_Limit] + ja PBZ_SCEF_Pass + ucomiss xmm0,xmm1 + jae PBZ_SCEF_Pass + movss xmm0,[rbx+8A4] + movss [PBZ_SCEF_LastMeter],xmm0 + movss xmm1,[rbx+8B4] + ucomiss xmm0,xmm0 + jp PBZ_SCEF_Pass + ucomiss xmm1,xmm2 + jp PBZ_SCEF_Pass + jbe PBZ_SCEF_Pass + ucomiss xmm1,[PBZ_SCEF_Limit] + ja PBZ_SCEF_Pass + mov dword ptr [PBZ_SCEF_Busy],1 + lea rcx,[rsp+80] + mov r11,PBZ_SCEF_Convert+3F + movsxd rax,dword ptr [r11+1] + lea rax,[r11+rax+5] + call rax + mov rdx,rax + mov rcx,rsi + mov r8d,3 + movss xmm3,[rbx+8B4] + addss xmm3,[PBZ_SCEF_One] + mov r11,PBZ_SCEF_Convert+1A + movsxd rax,dword ptr [r11+1] + lea rax,[r11+rax+5] + call rax + inc qword ptr [PBZ_SCEF_Refills] + movss xmm0,[rbx+8C4] + movss [PBZ_SCEF_LastCount],xmm0 + ucomiss xmm0,[rsp+B8] + jbe PBZ_SCEF_NoGrant + jp PBZ_SCEF_NoGrant + inc qword ptr [PBZ_SCEF_Grants] +PBZ_SCEF_NoGrant: + movss xmm0,[rbx+8A4] + movss [PBZ_SCEF_LastMeter],xmm0 + mov rcx,[rsp+A0] + test rcx,rcx + je PBZ_SCEF_CleanupName + mov r11,PBZ_SCEF_Convert+28 + movsxd rax,dword ptr [r11+1] + lea rax,[r11+rax+5] + call rax +PBZ_SCEF_CleanupName: + mov rcx,[rsp+80] + test rcx,rcx + je PBZ_SCEF_CleanupDone + mov r11,PBZ_SCEF_Convert+28 + movsxd rax,dword ptr [r11+1] + lea rax,[r11+rax+5] + call rax +PBZ_SCEF_CleanupDone: + mov dword ptr [PBZ_SCEF_Busy],0 +PBZ_SCEF_Pass: + movdqu xmm0,[rsp+20] + movdqu xmm1,[rsp+30] + movdqu xmm2,[rsp+40] + movdqu xmm3,[rsp+50] + movdqu xmm4,[rsp+60] + movdqu xmm5,[rsp+70] + add rsp,C0 + pop rdi + pop rsi + pop rbx + pop r11 + pop r10 + pop r9 + pop r8 + pop rdx + pop rcx + pop rax + popfq + readmem(PBZ_SCEF_Tick,$0E) + db FF 25 00 00 00 00 + dq PBZ_SCEF_Tick+E +align 10 +PBZ_SCEF_LocalTicks: + dq 0 +PBZ_SCEF_Refills: + dq 0 +PBZ_SCEF_Grants: + dq 0 +PBZ_SCEF_LastSet: + dq 0 +PBZ_SCEF_LastASC: + dq 0 +PBZ_SCEF_LastCount: + dd 0 +PBZ_SCEF_MaxCount: + dd 0 +PBZ_SCEF_LastMeter: + dd 0 +PBZ_SCEF_Thread: + dd FFFFFFFF +PBZ_SCEF_Busy: + dd 0 +PBZ_SCEF_One: + dd (float)1 +PBZ_SCEF_Limit: + dd (float)1000000 +PBZ_SCEF_Tick: + db FF 25 00 00 00 00 + dq PBZ_SCEF_Code +[DISABLE] +{$lua} +if syntaxcheck then return end +local hook=getAddressSafe('PBZ_SCEF_Tick') +local code=getAddressSafe('PBZ_SCEF_Code') +local original=getAddressSafe('PBZ_SCEF_Original') +local busy=getAddressSafe('PBZ_SCEF_Busy') +if not hook or hook==0 or not code or code==0 or not original or original==0 or not busy or busy==0 then + error('Full Essence restore symbols are missing. Keep the entry active and repair its symbols before retrying.') +end +local prefix=readBytes(hook,6,true) +if not prefix or prefix[1]~=0xFF or prefix[2]~=0x25 + or prefix[3]~=0 or prefix[4]~=0 or prefix[5]~=0 or prefix[6]~=0 or readQword(hook+6)~=code then + error('Full Essence hook ownership changed; refusing to overwrite another patch.') +end +local expected={0x48,0x89,0x5C,0x24,0x08,0x57,0x48,0x83,0xEC,0x30,0x48,0x8B,0x41,0x28} +local bytes=readBytes(original,14,true) +if not bytes or #bytes~=14 then error('Full Essence saved instruction buffer is unreadable; state retained.') end +for i=1,14 do + if bytes[i]~=expected[i] then error('Full Essence saved instruction bytes do not match; state retained.') end +end +if busy=code+0x3000 then error('Full Essence busy flag is outside its code allocation.') end +local inCall=readInteger(busy) +if inCall==nil then error('Full Essence native-call state is unreadable; state retained.') end +if inCall~=0 then error('A native Essence refill is in progress. Resume the game and retry disabling.') end +return ('%X:\n readmem(%X,$0E)\n'):format(hook,original)..[====[ +dealloc(PBZ_SCEF_Original) +dealloc(PBZ_SCEF_Code) +unregistersymbol(PBZ_SCEF_Tick) +unregistersymbol(PBZ_SCEF_LocalTicks) +unregistersymbol(PBZ_SCEF_Refills) +unregistersymbol(PBZ_SCEF_Grants) +unregistersymbol(PBZ_SCEF_LastCount) +unregistersymbol(PBZ_SCEF_MaxCount) +unregistersymbol(PBZ_SCEF_LastMeter) +unregistersymbol(PBZ_SCEF_LastSet) +unregistersymbol(PBZ_SCEF_LastASC) +unregistersymbol(PBZ_SCEF_Thread) +unregistersymbol(PBZ_SCEF_Busy) +unregistersymbol(PBZ_SCEF_Original) +unregistersymbol(PBZ_SCEF_Code) +]====] +{$asm} diff --git a/runtime/resources/scripts/1337142245.aa b/runtime/resources/scripts/1337142245.aa new file mode 100644 index 0000000..925ada7 --- /dev/null +++ b/runtime/resources/scripts/1337142245.aa @@ -0,0 +1,1422 @@ +[ENABLE] +{$lua} +local catalog = { +{name="Inventory",items={ +{id="AC_DrinkCost_1",name="Medicine Jar Fragment: Lid",kind=1,description="A coarse pottery medicine-jar lid shaped like a root nodule.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="AC_DrinkCost_2",name="Medicine Jar Fragment: Chain",kind=1,description="An almost intact iron chain used to suspend a medicine jar above a fire.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="AC_DrinkCost_3",name="Medicine Jar Fragment: Handle",kind=1,description="A root-shaped medicine-jar handle saturated with bitter medicinal fumes.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="AC_DrinkCost_4",name="Medicine Jar Fragment: Body",kind=1,description="A woman's fate likened to a medicine jar: suspended by a chain over fire, unable to escape.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="AC_MagicWeapon_1",name="Nuo Mask Fragment: Joy",kind=1,description="A verse about smiling guests who remove their masks and forget their own true faces.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="AC_MagicWeapon_2",name="Nuo Mask Fragment: Anger",kind=1,description="A verse about righteous anger burning through the avenger's own heart first.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="AC_MagicWeapon_3",name="Nuo Mask Fragment: Sorrow",kind=1,description="A verse about mourning others so long that one's own loss is forgotten.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Ac_Material_1",name="Tainted Crystal Remnant",kind=1,description="An impure natural crystal suitable for grinding into jewelry-polishing powder.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Ac_Material_4",name="Purified Indigo Crystal",kind=1,description="A pure indigo crystal whose fine powder brings out ornaments' natural beauty.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="AC_PowerWeapon_1",name="Guardian Statue Fragment: Head",kind=1,description="The guardian statue's angry head witnessed its worshipper turn against it with a stone.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="AC_PowerWeapon_2",name="Guardian Statue Fragment: Arm",kind=1,description="A statue arm broken by the same hands that once swore solemn vows upon it.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="AC_PowerWeapon_3",name="Guardian Statue Fragment: Torso",kind=1,description="A statue torso fragment worn smooth by countless hands picking it up and abandoning it.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="AC_PowerWeapon_4",name="Guardian Statue Fragment: Leg",kind=1,description="The statue's steadfast legs fell when people's courage collapsed before the Strange Masks.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="AC_ResistPoison_1",name="Food Preservation Charm Fragment: Part One",kind=1,description="The upper half of a charm, cleanly cut from a deceptive, greedy merchant by a butcher.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="AC_ResistPoison_2",name="Food Preservation Charm Fragment: Part Two",kind=1,description="The lower charm fragment; reuniting both halves reduces poison damage.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="AC_ShachiWeapon_1",name="Dark Source Cube: Tenon",kind=1,description="A battered tenon covered in distorted indentations, resembling something gnawed away.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="AC_ShachiWeapon_2",name="Dark Source Cube: Mortise",kind=1,description="An oddly angled metal fragment that seems to carry a distant hum.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Bell_Item_PlaceHolder",name="Return to the Nearest Bell",kind=1,description="Return to the nearest bell.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="F_02001",name="Memory Flower Left by Xukong",kind=1,description="Not every memory should be forgotten. Listen to the flowers; their voices may help the journey.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="F_02011",name="Bai Chilian's Lingering Memory: Part One",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_02012",name="Bai Chilian's Lingering Memory: Part Two",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_02021",name="Lingering Memory of the Dragon Body: Part One",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_02022",name="Lingering Memory of the Dragon Body: Part Two",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_02023",name="Lingering Memory of the Dragon Body: Part Three",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_02031",name="Lingering Memory of Fellow Disciples: Part One",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_02032",name="Lingering Memory of Fellow Disciples: Part Two",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_02033",name="Lingering Memory of Fellow Disciples: Part Three",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_02041",name="Lingering Memory of the Dragon Body: Part Four",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_02051",name="Xukong's Memory Flower 1",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_02052",name="Xukong's Memory Flower 2",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_02053",name="Xukong's Memory Flower 3",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_02054",name="Xukong's Memory Flower 4",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_02055",name="Xukong's Memory Flower 5",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_02056",name="Xukong's Memory Flower 6",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_02063",name="Fist Fanatic Tie Kuang 1",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_02064",name="Fist Fanatic Tie Kuang 2",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_03001",name="Eldest Senior Disciple's Lingering Memory",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_03002",name="Second Senior Disciple's Lingering Memory",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_03003",name="Third Senior Disciple's Lingering Memory",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_03004",name="Fourth Senior Disciple's Lingering Memory",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_03005",name="Fifth Junior Disciple's Lingering Memory",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_03006",name="Sixth Junior Disciple's Lingering Memory",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_03007",name="Seventh Junior Disciple's Lingering Memory",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_03008",name="Red-Clad Swordswoman's Lingering Memory",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_03011",name="Qianqian's Lingering Memory: Part One",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_03012",name="Qianqian's Lingering Memory: Part Two",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_03013",name="Qianqian's Lingering Memory: Part Three",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_03031",name="Huang Xingzi's Subordinate: Pursuit",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_03041",name="Zhao Di: Parting Ways",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_03042",name="Wei Sanchuan: Mistake",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_03043",name="Gu Wanyue's Lingering Memory",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_04011",name="Village Woman: Despair",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_04012",name="Swordswoman: Madness",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_04013",name="Female Sect Leader: Release",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_05011",name="Illusionist Yinghuo: Lake-Center Secret One",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_05012",name="Illusionist Yinghuo: Lake-Center Secret Two",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_05013",name="Illusionist Yinghuo: Lake-Center Secret Three",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_05014",name="Illusionist Yinghuo: Lake-Center Secret Four",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_05015",name="Illusionist Yinghuo: Lake-Center Secret Five",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_05016",name="Illusionist Yinghuo: Lake-Center Secret Six",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_05021",name="A Reasonable Martial Artist",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_05031",name="Lujia Villager: Lovers Reunited",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_05032",name="Lujia Villager: Is That My Son?",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_05033",name="Lujia Villager: Solitary Release",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_05034",name="Lujia Villager: That Is Not My Father!",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_05041",name="The Three Thief Brothers: Live and Die Together!",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_05051",name="Master's Memory Flower 1",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_05052",name="Master's Memory Flower 2",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_05053",name="Master's Memory Flower 3",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_06001",name="Long-Suffering Mother: A Mother's Love",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_06002",name="Town Farmer: Why Turn on Each Other?",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_06003",name="Well-Bred Young Lady: Reunion with Her Brother",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_06004",name="Bai Xue'er: Childhood Sweethearts",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_06005",name="Wanderer Far from Home: Winning Honor",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_06011",name="Righteous Disciple: Manor Experiment One",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_06012",name="Righteous Disciple: Manor Experiment Two",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_06013",name="Righteous Disciple: Manor Experiment Three",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_06022",name="Chen Zhu: Sincere Repentance",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_06031",name="Lion Dance Lord's Memory 1",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_06032",name="Lion Dance Lord's Memory 2",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_06033",name="Lion Dance Lord's Memory 4",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_06034",name="Lion Dance Lord's Memory 5",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_06035",name="Lion Dance Lord's Memory 6",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_06036",name="Lion Dance Lord's Memory 3",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_06041",name="Purple-Clad Dual Swordsman 1 (Backstreet)",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_06042",name="Purple-Clad Dual Swordsman 2 (Main Camp)",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_06043",name="Purple-Clad Saber Guard 1 (Main Camp)",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_06044",name="Purple-Clad Saber Guard 2 (Backstreet)",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_06045",name="Baishan Sword Protector 1 (Backstreet)",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_06046",name="Baishan Sword Protector 2 (Main Camp)",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_07011",name="Master Gao: Imprisoned Life",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_07012",name="Master Gao: Understanding Creation",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_07013",name="Master Gao: Sole Possession",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_07021",name="Life-Imprisoner Disciple: Leng Tu? Part One",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_07022",name="Life-Imprisoner Disciple: Leng Tu? Part Two",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_07023",name="Life-Imprisoner Disciple: Dream Bailiff's True Form?",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_07024",name="Life-Imprisoner Disciple: Dream Bailiff's True Form!",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_07041",name="Part One: Struggle",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_07042",name="Part Two: Radiant Heart Experiment",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_07043",name="Part Three: Sacred Body",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_08011",name="Yan'er: Lure of Splendor",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_08012",name="Grand Sect Leader Ming: Bloodline",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_08013",name="Yan'er: Into the Lake",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_08014",name="Yan'er: Yan Qiansui",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_08015",name="The Supreme One: Offerings",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_08016",name="Yan'er: Everything Has Changed",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_08041",name="Female Expert's Memory 1",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_08042",name="Female Expert's Memory 2",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_08043",name="Female Expert's Memory 3",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_11001",name="Corrupted Thug: A Wrong Turn",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_12001",name="Leng Tu and the Supreme One 1: Mirror and Ruins",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_12011",name="White River Gang Member: Fishing",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_12012",name="White River Gang Member: Wandering Dragon Gang Leader",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_12013",name="White River Gang Member: Voluntary Augmentation",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_12014",name="White River Gang Member: Catching Land Fish",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_13001",name="Strange Mask: Concern for His Younger Sister",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_13011",name="Victim of the Righteous: Strange Strength, Part One",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_13012",name="Victim of the Righteous: Strange Strength, Part Two",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_13013",name="Victim of the Righteous: Strange Strength, Part Three",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_13020",name="Old Gentou's Memory Flower",kind=1,description="A final entrustment.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="F_18021",name="Life-Imprisoner Outer Perimeter Captain: White Shadow",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_18022",name="Wind-and-Snow Swordsman: Searching",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_18023",name="Surviving Illusionist: The Swordsman",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_18024",name="Wind-and-Snow Swordsman: Trapped",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_18025",name="Wind-and-Snow Swordsman: Final Arrangements",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_18026",name="White Shadow 6: Seal",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_18031",name="Forbidden Scripture of Corruption: Part One",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_18032",name="Forbidden Scripture of Corruption: Part Two",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_18033",name="Forbidden Scripture of Corruption: Part Three",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_18041",name="Intruder: Breaking the Perimeter",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_18042",name="Intruder: Searching",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_70001",name="Huang Xingzi 1",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_70002",name="Huang Xingzi 2",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_70003",name="Huang Xingzi 3",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_70004",name="Huang Xingzi 4",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_70005",name="Huang Xingzi 5",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="F_70006",name="Huang Xingzi 6",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="FA_0201",name="Bai Chilian's Memory Flower",kind=1,description="A woman is trapped among endless mirrored forest reflections, unable to find an escape.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_0202",name="Memory Flower of the Dragon Body Technique",kind=1,description="Only Huang Xingzi still leads the camp, using Dragon Body augmentation to deepen fractures within the Righteous.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_0203",name="Memory Flower of Fellow Disciples",kind=1,description="Maintaining righteousness requires discipline, endurance, and sometimes opposing former friends or fellow disciples.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_0205",name="Xukong's Memory Flower",kind=1,description="The well-informed mistress of Jinyu Pavilion seeks only her daughter's safety despite her power over martial-world secrets.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_0206",name="Fist Fanatic Tie Kuang's Memory Flower",kind=1,description="Passing on a master's teachings should secure a sect's future and centuries of honor, though events have gone otherwise.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_0300",name="Seven Stars Disciple's Memory Flower",kind=1,description="Witnesses see alliance leaders destroy lovers and lives; augmentation becomes fuel for their revenge.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_0301",name="Qianqian's Memory Flower",kind=1,description="A disciple wonders how many people truly understand the master's loneliness and vision of the martial world.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_0303",name="Dragon Body Rebel's Memory Flower",kind=1,description="No one in camp dares ask where Mo Jizi is, while some still wait for him and others flee toward hope.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_0304",name="Searching: Memory Flower",kind=1,description="A grieving listener knows the voice from the well is an illusion but still treats it as a loved one's voice.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_0310",name="The Two Heroes' Memory Flower",kind=1,description="People told their suffering serves righteousness resolve instead to find a righteous path of their own.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_0401",name="Experiment Victim's Memory Flower",kind=1,description="Soul-transfer illusion inflicts unending pain, cold, and delirium for as long as consciousness survives.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_0501",name="Yinghuo's Memory Flower",kind=1,description="A catastrophe rooted in the Hidden Martial World's darkness now hides behind a rift above the lake center.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_0502",name="Wanderer's Memory Flower",kind=1,description="As evil consumes the village, some cling to the past while others abandon their weapons; resistance seems the only alternative to ruin.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_0503",name="Lujia Villager's Memory Flower",kind=1,description="Villagers cannot easily abandon their homeland, sleeping relatives, or wooden beings wearing their loved ones' forms.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_0505",name="Righteous Masters' Memory Flower",kind=1,description="A caring elder sacrifices his remaining strength so younger generations may find light beyond the darkness.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_0600",name="A Mother's Love: Memory Flower",kind=1,description="Ambition burns like a flame, yet those pursuing rapid advancement throw everything into it.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_0601",name="Memory Flower of the Manor Experiments",kind=1,description="Those unable to flee fall asleep and never wake; later even the sleeping people vanish from their empty homes.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_0602",name="Bai Xue'er: Memory Flower",kind=1,description="A woman recognizes her changed, bloodstained childhood friend and invokes old memories to reassure him that home remains unchanged.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_0603",name="Lion Dance Lord's Memory Flower",kind=1,description="A lion dance once drove out evil; now evil wears human faces and sits openly at the feast.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_0604",name="Righteous Leaders' Memory Flower",kind=1,description="Corruption overtakes the camp suddenly, with disciples finding blades raised against them by friends and kin.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_0701",name="Master Gao's Memory Flower",kind=1,description="A seeker glimpses the universe's hidden workings and worships even as their radiance consumes body and soul.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_0702",name="Life-Imprisoner Disciple's Memory Flower",kind=1,description="Changing names is like changing masks; over time the wearer may forget the face beneath.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_0704",name="Yu'er's Memory Flower",kind=1,description="A woman forces back her tears, refusing to let her tormentors see helplessness or erase her last hopes.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_0801",name="Yan'er's Memory Flower",kind=1,description="Rumors claim the Zhengming Sword Sect's leader fathered a child with a musician from the music house.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_0804",name="Three-Faced Demon Puppet's Memory Flower",kind=1,description="While imagining three souls united, a woman makes a three-headed doll reflecting three fellow disciples' divergent paths.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_1100",name="Why Turn on Each Other?: Memory Flower",kind=1,description="A reflection on family conflict and a single wrong thought leading to madness.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_1200",name="Leng Tu's Memory Flower",kind=1,description="Interlocking schemes surround a power that should not exist, hiding deception beneath sincerity while the martial world declines.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_1201",name="Waterway Gang Member's Memory Flower",kind=1,description="The Waterway Gang occupies three triangularly arranged islands northwest of Meigu Lake, once a haven for waterborne workers.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_1300",name="Reunion with Her Brother: Memory Flower",kind=1,description="After their mother's death, siblings find their father believes his new partner but no longer listens to them.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_1301",name="Memory Flower of the Monster",kind=1,description="Most witnesses watch the crushing flail and fail to notice the cunning little creature riding its wielder's shoulder.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_1800",name="Xuan Li's Memory Flower",kind=1,description="Conversations with Zuo Shang open Xuan Li's mind to a vast contest involving dragons and corruption.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_1802",name="Wind-and-Snow Swordsman's Memory Flower",kind=1,description="A father tirelessly searches among familiar-looking children and faint clues, refusing to submit to fate.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_1803",name="Memory Flower of the Forbidden Scripture of Corruption",kind=1,description="Passing forbidden thoughts gradually spread through a person's heart, dreams, and whispered voices.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_1804",name="Memory Flower of the Intruder",kind=1,description="With snow blocking the road and the forbidden place sealed, a swordsman cuts his own path forward.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FA_7000",name="Memory Flower of Huang Xingzi",kind=1,description="A celebrated hero, used as a political pawn, entrusts himself to a power capable of overturning the entire game.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="FS_12001",name="Zuo Shang and Leng Tu: Purple Fragment 1",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="FS_12002",name="Zuo Shang and Leng Tu: Purple Fragment 2",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="FS_12003",name="Zuo Shang and Leng Tu: Purple Fragment 3",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="FS_12004",name="Zuo Shang and Leng Tu: Purple Fragment 4",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="FS_14001",name="Leng Tu and the Supreme One 2: Skeletal Rift",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="FS_18001",name="Zuo Shang and Xuan Li 1",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="FS_18002",name="Zuo Shang and Xuan Li 4",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="FS_18003",name="Zuo Shang and Xuan Li 2",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="FS_18004",name="Zuo Shang and Xuan Li 3",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="FS_18005",name="Zuo Shang and Xuan Li 5",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="FS_18006",name="Zuo Shang and Xuan Li 6",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="I_000006",name="Soul-Forging Item Placeholder",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="I_01001",name="Twin Flesh Flower",kind=1,description="Twin white flowers with full, iridescent petals and a sweet scent resembling blood.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_01002",name="Primordial Stone",kind=1,description="An unbreakable, glowing cracked stone that powers augmentation towers and may free people from Wedge control.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_01003",name="A Flesh Flower",kind=1,description="A blooming white flower almost identical to the one given to Yu'er, with iridescent petals and a bloodlike scent.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_01004",name="String of Prayer Beads",kind=1,description="Plain prayer beads once held by a monk who has since become something inhuman.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_01005",name="Colorful Pinwheel",kind=1,description="A colorful pinwheel that spins cheerfully despite the world's suffering.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_01006",name="Feather Bow with a Broken String",kind=1,description="The Feather Bow Archer's treasured bow has snapped strings. The old archer at the waystation may repair it.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_01007",name="Woundwort",kind=1,description="One of the three herbs Yu'er needs, with narrow, curled leaves like dewy willow leaves.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_01008",name="Waxy Leaf",kind=1,description="One of Yu'er's three herbs, with thick leaves that release a faint fragrance when crushed.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_01009",name="Blood-Staunching Vine",kind=1,description="One of Yu'er's three herbs: a tough vine whose dark-red sap stops bleeding.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_01010",name="Three-Headed Little Doll",kind=1,description="A palm-sized doll with three heads: one asleep, one frightened, and one stern and watchful.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_02001",name="Damaged Illusion Pipa",kind=1,description="An incomplete illusion pipa, missing strings, pegbox, and backplate, still emitting an otherworldly hum.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_02002",name="Thief's Secret Manual",kind=1,description="A thief's crudely bound manual titled The Art of Picking Pockets.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_02006",name="Life-Saving Pill Made by Yu'er",kind=1,description="Yu'er's fragrant red pill quickly stops bleeding, heals wounds, soothes the meridians, and restores strength.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_03001",name="Broken Iron Sword",kind=1,description="A broken iron sword dug from a hero's grave by someone searching for something.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_03002",name="Plain Hairpin",kind=1,description="A plain, still-luminous hairpin engraved Wan, once wrapped carefully and offered at a grave.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_03003",name="Pitch-Black Scabbard",kind=1,description="A long black scabbard with vein-like patterns and unexplained parallel scratches; its fine blade is missing.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_04001",name="Illusion Pipa Backplate",kind=1,description="The illusion pipa's backplate. Gather its three parts and take them to Huan Gui at Pang Town's tavern.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_05001",name="Illusion Pipa Pegbox",kind=1,description="The illusion pipa's pegbox, sent by Dream Bailiff to the Supreme One and later seized by Dang Hui.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_05003",name="Xiaocui's Red Hair Cord",kind=1,description="Xiaocui's faded red hair cord recalls the family who once tied her hair.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_05004",name="Heart-Rending Pipa",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="I_05005",name="Hunter's Dog Bell",kind=1,description="A little bell belonging to the hunter's beloved dog Dahuang; its grieving owner now sleeps without waking.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_060001",name="Collectible Needed by the White-Haired Traveler 1",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="I_060002",name="Banyan Heart",kind=1,description="A dark-red, heart-shaped lump covered in root-like veins, with a faint, regular pulse.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_06001",name="Crimson Flesh Flower",kind=1,description="A flesh flower dropped by Yu'er, bloodred and smelling of decay.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_06002",name="Consecrated Jade Pendant",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="I_06003",name="Damaged Jade Pendant That Has Lost Its Luster",kind=1,description="A dim jade pendant dropped by Yu'er's deceased father, once holding his memory of his wife and hopes for fate.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_06004",name="Extinguished Blazing Lion Head",kind=1,description="An empty lion-head flamethrower. Refilling its fuel may let it burn away obstructing thorns.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_06006",name="Shattered Heroic Courage",kind=1,description="A stained fragment of Heroic Courage jade, believed to be purified by loyalty and virtue.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_06007",name="Leading Actress's Face Powder",kind=1,description="Rare, labor-intensive face powder reserved for the leading actress.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_06008",name="Nameless Master's Severed Finger",kind=1,description="An ice-preserved severed finger still wears a sect's treasured thumb ring.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_06009",name="Tattered Dance Fan",kind=1,description="A bright-red dance fan covered in miserable tears and gaps.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_06010",name="Dusty Old Wooden Comb",kind=1,description="An old woman's wooden comb, gathering dust where no hand holds it.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_08002",name="Illusion Pipa Strings",kind=1,description="Illusion pipa strings taken from Yan Qiansui's instrument. Huan Gui can restore the pipa after all three parts are gathered.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_10001",name="Rootless Immortal Dew",kind=1,description="A rare herb suppressing disease recurrence and transmission, used by the Cross-Saber Captain to delay madness.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_10003",name="Bloodstained Necklace",kind=1,description="An old, bloodstained necklace marked Chen, once carrying a mother's hopes.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_10006",name="Mo Jizi's Bloodstained Sword",kind=1,description="Mo Jizi's bloodstained, renowned sword from Lijian Manor; its owner's whereabouts remain unknown.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="I_17001",name="Infinite Radiant Heart",kind=1,description="A perpetual mechanical heart promising limitless stable Sha-Chi, embodying both ambition and the possibility of heroism.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Item_001",name="Blackstone",kind=1,description="A rare, mysterious stone that greatly increases strength by drawing power from the Hidden Martial World.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Item_002",name="Sha-Chi Amber",kind=1,description="Transparent, fragile amber seals sharp Sha-Chi that skilled warriors can wield.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Item_Piece_001",name="Blackstone Fragment",kind=1,description="A warm black fragment, neither metal nor jade. Four pieces fit together along their natural patterns.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Item_Piece_002",name="Sha-Chi Amber Fragment",kind=1,description="An amber fragment that absorbs stray Sha-Chi but also loses it through its cracks.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Item_Traversing",name="Passage Talisman",kind=1,description="Break this rainbow-cracked wooden talisman to open a passage through the Hidden Martial World.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_01001",name="Rusted Dragon-Shaped Key",kind=1,description="A once-luxurious dragon key, stripped of gems and gold, that opens a mysterious dragon-patterned door.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_01002",name="Sha-Chi Furnace Inspection-Port Switch",kind=1,description="An oily, heat-warped switch labeled for the Sha-Chi forging furnace's second lower inspection port.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_01003",name="Cell Door Key",kind=1,description="A prison key found on a Righteous disciple; its cell lies somewhere in the valley waystation.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_01004",name="Sha-Chi Tower Lower Camp Outer Gate Key",kind=1,description="A broken key crudely joined to a bearing, opening the camp fence leading to the base of the Sha-Chi Tower.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_02001",name="Blood Forest Mountain Lodge Cellar Switch",kind=1,description="A tiger-head switch found upstairs in a Blood Forest lodge, still carrying traces of poison.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_02002",name="Forest Waystation Courtyard Gate Key",kind=1,description="A key once worn by the waystation's welcoming hostess, from a time of children and passing travelers.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_02003",name="Cave Prison Cell Key",kind=1,description="A rusty brass key from a cave prison once used by the Righteous and now occupied by bandits.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_02004",name="Blood Forest Mountain Lodge Secret Mechanism Room Switch",kind=1,description="An iron switch clenched by a dead Baishan disciple, apparently opening a hidden door.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_02005",name="Blood Forest Tunnel Switch",kind=1,description="A tunnel switch found beside the butcher's chopping block, perhaps opening another horrific passage.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_02006",name="Thief Camp Dungeon Key",kind=1,description="A rough iron key with crooked teeth, barely able to open a prison door.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_03001",name="Valley Gate Key Before the Camp",kind=1,description="The Righteous Alliance fortified the valley and built a route through it to the main camp.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_03002",name="Righteous Main Camp Outer Gate Key",kind=1,description="A hastily forged iron spare key opening the mountain-trail gate toward the Righteous Main Camp.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_03004",name="Drill Ground Gate Key",kind=1,description="A key hanging from a yellow-jade ring that opens the main drill ground.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_03005",name="Mo Jizi's Room Key",kind=1,description="Mo Jizi's room key. Disciples locked his once-open home to protect it after his disappearance.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_04901",name="Crystal Puppet Eyeball: Yin",kind=1,description="A crystal puppet eye containing a black Yin-shaped fish, paired with a matching Yang eye.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_04902",name="Puppet Tongue",kind=1,description="A tongue-shaped key with three grooves corresponding to three doors in Dream Bailiff's illusion.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_05001",name="Lujia Village Cottage Cellar Key",kind=1,description="A makeshift lockpicking key marked Lu, apparently for an old Lujia Village cellar.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_05002",name="Puppet No. 44's Single Eye",kind=1,description="Puppet No. 44's eye unlocks the puppet lock blocking the depths of the thieves' secret passage.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_05003",name="Yan Ru's Blazing Mask",kind=1,description="A perpetually blazing mask. The Forbidden Ruins were sealed after the intruder incident, even against the four pursuing enforcers.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_05004",name="Brass Key to Old Gentou's Home",kind=1,description="An old key passed down for generations, older even than Old Gentou.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_05005",name="Lujia Village Cottage Cellar Key",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="K_05006",name="Small Key to the Tunnel Cage",kind=1,description="A key made from puppet finger bones, used where Dream Bailiff's followers imprison people as puppet-making material.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_05007",name="Pang Town Backstreet Courtyard Key",kind=1,description="A new-looking key left by Strange Mask Chen Zhu, opening a Pang Town backstreet courtyard.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_05008",name="Bagua Pavilion Rooftop Key",kind=1,description="A four-inch key with Qian-trigram teeth, opening Bagua Pavilion's top floor.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_05009",name="Heavy Lion Gate Key",kind=1,description="A silver lion-dance-ball key that opens the lion dance hall.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_05010",name="Tianxiang Pavilion Key",kind=1,description="A fragrant floral key that opens Tianxiang Pavilion's main entrance.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_05011",name="Huang Family Mansion Key",kind=1,description="The valuable Huang mansion gate key hangs from a golden cloud charm.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_05012",name="Pang Town Dyehouse Outer Courtyard Key",kind=1,description="A once-ordinary dyehouse whose work and happiness faded beneath a mysterious disease.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_06002",name="Lan Family Mansion Main Gate Key",kind=1,description="An ornate bronze orchid key that may help free the children imprisoned in the Lan mansion.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_06003",name="Dragon-Shaped Token: Yin",kind=1,description="A downward-facing dragon token with black-jade eyes and an edge shaped to fit another fragment.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_06004",name="Dragon-Shaped Token: Yang",kind=1,description="An upward-facing dragon token with agate eyes and an edge shaped to fit another fragment.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_06005",name="Dragon-Shaped Token",kind=1,description="A complete twin-dragon token, apparently able to open a dragon-shaped lock.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_06006",name="Backstreet Secret Cellar Switch",kind=1,description="A rough metal handle wrapped in red cloth, opening a secret backstreet cellar.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_07001",name="Theater Ticket",kind=1,description="A coveted Dreamplay Manor theater ticket, required to enter its theater garden.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_07002",name="Rear Mountain Key",kind=1,description="An ornate landscape-patterned key with red jade, opening Dreamplay Manor's rear mountain side gate.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_07003",name="Fire-Blowing Tower Key",kind=1,description="A key coated in white ash, resembling a burnt bone.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_08001",name="Gu He's Venomous Mask",kind=1,description="A purple mask covered in corrosive poison. The Forbidden Ruins were sealed after the intruder incident.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_10001",name="Missing Lift Switch",kind=1,description="The summit lift switch was taken by Huang Xingzi's guards and lost to the murderous madwoman Kui Yanyan.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_10002",name="Mountain Gate Key Leading to the Ancestral Hall",kind=1,description="A mountain gate key needed to reach the ancestral hall, hidden by Huang Xingzi's guards in the cage cavern.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_10003",name="Detached Cage Lever",kind=1,description="A fallen rusty lever that may operate a control mechanism.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_12001",name="Lei Ting's Thunderbolt Mask",kind=1,description="A gold-and-green mask charged with lightning. The Forbidden Ruins were sealed after the intruder incident.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_12002",name="Crystal Puppet Eyeball: Yang",kind=1,description="A crystal puppet eye containing a white Yang-shaped fish, paired with a matching Yin eye.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_12003",name="Red-Cloth Wooden Door Key",kind=1,description="A door key tied with faded red cloth, a remnant of celebrations and reunions.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_13001",name="Blood Forest Sha-Chi Tower Top-Floor Key",kind=1,description="A corroded key recast from damaged parts, opening the way to the Blood Forest Sha-Chi Tower's top floor.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_14003",name="White Snake Eye",kind=1,description="An amber snake-eye crystal with a shifting dark pupil that seems to watch its holder.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_14004",name="Red Snake Tongue",kind=1,description="A vivid red mechanical snake tongue, placed in the Red Snake House to open a hidden lock.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_14005",name="Black Snake Fang",kind=1,description="A razor-sharp crystal snake fang serving as a dangerous key to a hidden truth.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_16001",name="Han Sui's Frozen Mask",kind=1,description="An indestructible mask of ice and illusion that does not melt in fire. The Forbidden Ruins remain sealed.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="K_17001",name="Soul-Severing Mountain Tool Room Key",kind=1,description="A standard Righteous key, frost-cracked by Soul-Severing Mountain's storms except for its bright groove.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Medi_Material_1",name="Apprentice Apothecary's Memory",kind=1,description="The memory of an apprentice healer's vow to relieve countless people's suffering.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Medi_Material_2",name="Experienced Apothecary's Memory",kind=1,description="The memory of a healer's accumulated experience: saved faces fade, but the lost remain vivid.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Medi_Material_3",name="Master Apothecary's Memory",kind=1,description="The memory of a master healer's unbroken determination to defy death itself.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Page_CS_01",name="Martial World of the Shadow Realm",kind=1,description="A geographic and social account of the Shadow Realm's martial world, its conflicts, ordinary people, and enduring dignity.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="Page_CS_02",name="What Is Sha-Chi?",kind=1,description="Sha-Chi underlies all martial arts and grows from intent to defeat opponents; true masters control it without losing reason.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="Page_CS_03",name="Righteous Alliance",kind=1,description="The Long family founded the Righteous Alliance, which grew beyond 170 sects but weakened after the family's fall and the Strange Mask crisis.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="Page_CS_04",name="Baishan Sect",kind=1,description="Baishan Sect declined after Dugu Linghe's augmented massacre; Bi Taotao rebuilt it and joined the Three Heroes against the Strange Masks.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="Page_CS_05",name="Who Are the Three Heroes of Kunlun?",kind=1,description="A history of Kunlun's Three Heroes: stern Yu Yinzi, reserved Huang Xingzi, and gentle Mo Jizi, united against the Strange Masks.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="Page_CS_06",name="Sha-Chi Augmentation",kind=1,description="Implanted Sha-Chi generators and bodily alterations create immense strength but gradually destroy the user's mind.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="Page_CS_07",name="Long Family",kind=1,description="The Long family's wealth, golden sword energy, and authority founded a dominant alliance, despite constant internal rivalry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="Page_CS_08",name="Dark Demon Sky Fortress",kind=1,description="Dark Demon Sky Fortress sheltered outsiders with its unusual bloodline and independent beliefs until its destruction by fire.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="Page_CS_10",name="Mechanical Arts",kind=1,description="Mechanical arts use fuel and gears instead of Sha-Chi, allowing ingenious craftsmen to rival elite warriors.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="Page_CS_11",name="Hidden Martial World",kind=1,description="The Hidden Martial World follows different space-time rules; consciousness shapes it, and defeated minds may become trapped or controlled.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="Page_CS_12",name="Pang Town",kind=1,description="Pang Town prospered through chilled wine; twelve wealthy merchants founded the guild retreat that became Dreamplay Manor.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="Page_CS_13",name="The Waystation: A Rare Place of Rest",kind=1,description="The Righteous built waystations during the Strange Mask crisis; those still guarded offer rare places of rest.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="Page_CS_14",name="Sha-Chi Tower Ruins",kind=1,description="Ruined augmentation-tower furnaces still run and corrupt intruders. Adapted monks resist poison and fire but fear lightning.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="Page_CS_15",name="What Is Sealed in the Dragon Pillar?",kind=1,description="Dragon pillars seal rifts to the Hidden Martial World. The nearby pillar requires a cave route and now emanates dangerous Sha-Chi.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="Page_CS_16",name="Blood Forest",kind=1,description="The Blood Forest was stained red by slaughter during the Three Heroes' campaign; augmented bandits still roam it.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="Page_CS_17",name="Who Is Deft-Handed Xiao Zhang?",kind=1,description="Deft-Handed Xiao Zhang trades rare supplies through five doubles and now seeks lost treasures for an unusual employer.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="Page_CS_18",name="Lujia Village",kind=1,description="Lujia Village lost the Three Heroes' protection and increasingly embraced the Flower-Veiled Holy Mother after renewed turmoil.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="Page_CS_19",name="Bagua Pavilion",kind=1,description="Bagua Pavilion's fifty-plus branch managers collectively form the all-knowing figure called the Bagua Boy.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="Page_XC_01",name="The Organization Is the Organization",kind=1,description="Founded by Mu Tianmiao, the Organization enforces fairness beyond orthodox morality and handles tasks others cannot.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="Page_XC_02",name="The Nether Lord and His Emissaries",kind=1,description="An account of Nether Lord Mu Tianmiao and his emissaries: Xukong, Xiaosi, An Chan, Hun, and Zuo Shang; the sixth record is destroyed.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="Page_XC_03",name="Organization Experts",kind=1,description="Profiles of Organization experts Lei Dang, Chang Hong, Yu Yao, and Tie Gui, their loyalties, and distinctive weapons.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="Page_XC_04",name="Underworld Bailiffs and Wedges",kind=1,description="Wedge commands hypnotically replace thoughts to make loyal underworld bailiffs, but cannot ensure absolute control or overcome strong wills.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="Page_XC_05",name="Secret Tavern",kind=1,description="The Organization accepts selected commissions through taverns, often helping weaker people who cannot obtain justice elsewhere.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="Page_XC_06",name="Mechanical Ship and Dockyard",kind=1,description="Xiaosi's Sha-Chi-powered mechanical ships travel rapidly; dockmasters maintain them and gather extensive waterway intelligence.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="Page_XC_07",name="Dragon-Slaying Demon",kind=1,description="The Organization helped destroy Dark Demon Sky Fortress, then divided the Long family; reportedly it took an infant from each.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="Page_XC_08",name="Pavilion of Eleven",kind=1,description="Ten survivors and an orphan formed the Pavilion of Eleven after the heavenly-book massacre, spreading augmentation until the Organization defeated them.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01001",name="Desperate Letter Written in Blood",kind=1,description="A terrified writer finds the villagers worse than the Strange Masks and begs the Holy Mother's protection.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01002",name="Axe Boss's Final Letter",kind=1,description="Peng Meng accuses Sect Leader Ming of assault and murder and Gu Lingran of betrayal, swearing revenge after augmentation.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01003",name="Uprising of the Four Vicious Axes: Bewilderment",kind=1,description="A report describes Peng Meng's crude augmentation and questions whether the Righteous are facing punishment for their injustices.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01004",name="Captain Wu's Final Letter",kind=1,description="Wu Chao accuses Gu of abandoning the Strange Mask battle for personal advancement, leading to a deadly prisoner escape.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01005",name="Strategist Xu Feng's Secret Letter",kind=1,description="Xu Feng urges Gu to exploit the Three Heroes' division and deliver the Four Axes to Ming to seize power.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01006",name="Grand Sect Leader Ming's Reply",kind=1,description="Sect Leader Ming encourages Gu to resolve the Four Axes case decisively and orders him to burn the letter.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01007",name="Uprising of the Four Vicious Axes: Calamity",kind=1,description="An official complains that tortured Axe Brothers refuse to confess, ruining his fabricated charges and hopes of promotion.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01008",name="Uprising of the Four Vicious Axes: Chaos",kind=1,description="An interrogation account says the Four Axes exposed Ming's crime and were later betrayed and tortured by Gu Lingran.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01009",name="Record of Primordial Stone: Dragon Body Augmentation",kind=1,description="Research notes report limited effects from Primordial Stone devices and greater initial success when the stone is ingested.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01010",name="Captain Chen Zhu's Secret Letter",kind=1,description="Captain Chen Zhu orders a secret recovery of the bleeding-inflicting Broken Steel Blade from a Strange Mask in the valley.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01011",name="Mountain Village Notice",kind=1,description="Village head Wu Shouye urges defenses and night watches while awaiting Righteous Alliance reinforcements.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01012",name="Righteous Disciples' Injury and Illness Register",kind=1,description="An injury register records axe wounds, fractures, shock, and head trauma among Righteous disciples.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01013",name="Missing Child Notice",kind=1,description="A reward notice seeks six-year-old Wu Xiaoman, lost while evacuating north; contact Wu Qing and Alan at the northern farm.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01014",name="Gu Lingran's Petition to Grand Sect Leader Ming (Draft)",kind=1,description="Gu Lingran proposes a false execution notice to lure the Four Axes into an exhausting rescue and capture them.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01015",name="Villager's IOU",kind=1,description="Wu Tieshan borrows thirty taels to forge weapons against the Strange Masks, promising repayment after harvest.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01016",name="Abandoned Land Deed",kind=1,description="A valley farmer sells ancestral farmland after Strange Masks destroy his home and kill most of his family.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01017",name="Long Family Scholar's Monument Report",kind=1,description="A Long family scholar vows to engrave and guard the dragon pillars forever to atone for the family's wrongdoing.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01018",name="Matchmaker's Letter",kind=1,description="A matchmaker recommends Master Li's only son as a wealthy, strong, and unusually voracious husband.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01019",name="Ahua's Father's Reply",kind=1,description="Ahua's father welcomes the wealthy marriage and dismisses her relationship with a neighboring young man as gossip.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01020",name="Ahui's Letter",kind=1,description="Ahui begs Ahua not to marry the Li heir and arranges an elopement by the village stream at midnight.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01021",name="Frivolous Summons",kind=1,description="A lurid notice recruits people to seek the beautiful bride who disemboweled her groom and fled to Spider Lily Valley.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01022",name="Letter to Husband Huang Miao",kind=1,description="Ahua waits beneath the smoking tower, recalling a lover who made her a grass flower and promised to adorn her.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01023",name="Letter to Husband Liu Shangli",kind=1,description="Ahua waits beneath the smoking tower and asks whether her lover's moonlit vow remains true.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01024",name="Letter to Husband Jia Qianqiu",kind=1,description="Ahua waits beneath the smoking tower for the drunken lover who promised her a magnificent wedding.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01025",name="Battle Report",kind=1,description="A report celebrates the Three Heroes' victories and near-elimination of Strange Masks north of the forest.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01026",name="Wanderer's Letter Seeking Refuge",kind=1,description="Huzi offers to join his brother and the Three Heroes in fighting the Strange Masks.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01027",name="Disciples' Opinions of the Three Heroes",kind=1,description="Praise for Yu Yinzi's compassion, Huang Xingzi's fearless raids, and Mo Jizi's learning, swordsmanship, and peacemaking.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01028",name="Sha-Chi Furnace Operating Instructions",kind=1,description="Furnace safety notes warn of corrosive liquid and lung-damaging Sha-Chi, requiring iron masks and excluding injured workers.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01029",name="Garrison Register",kind=1,description="A garrison record describes comrades allowing the mutilated Dayong to undergo Sha-Chi augmentation and sharing responsibility.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01030",name="Sha-Chi Tower Survey",kind=1,description="With Primordial Stone gone and Sha-Chi outbursts increasing, a researcher considers swallowing furnace residue.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01031",name="Supply Inventory Record",kind=1,description="A supply report lists only three days of food, delayed provisions, a breached storeroom, and missing medicinal herbs.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01032",name="Reply to a Request for Aid",kind=1,description="Gu Lingran politely refuses Baishan's request for aid while claiming his own forces are too hard pressed.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01033",name="Handwritten Order for the Adjutant",kind=1,description="Captain Zheng Rong asks Adjutant Fu to help the bearer investigate previously avoided suspicions.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_01034",name="Yu'er's Prescription",kind=1,description="Yu'er's herb guide: Woundwort near streams, Waxy Leaf under falling-rock cliffs by yellow flowers, and Blood-Staunching Vine along wet banks.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_02001",name="Bai Chilian's Notes",kind=1,description="Pipa clues: pegbox in Lujia Village, backplate taken northeast to the Righteous camp, strings near water and singing, perhaps Meigu Lake.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_02002",name="Huang Xingzi's Written Order",kind=1,description="Huang Xingzi declares Yu Yinzi dead, brands Mo Jizi a deserter, and promises victory through the Dragon Body Technique.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_02003",name="Blood Forest Lost Treasure List",kind=1,description="A treasure list describes a heavy bloodstained stone seal, a gold-amber snuff bottle, and a precision bronze crossbow mechanism.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_02004",name="Righteous Proclamation",kind=1,description="The Righteous Alliance orders unified resistance and the killing of every Strange Mask without exception.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_02005",name="Register of the Fallen",kind=1,description="A register honors fallen heroes, but entries for those who became Strange Masks have been crossed out.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_02006",name="Mirror Forest Travelogue",kind=1,description="A travel note describes a human-faced ancient banyan, a sudden supernatural disturbance, and an urgent escape.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_02007",name="Letter to Family (Letter to an Uncle)",kind=1,description="Mingyuan asks his uncle for shelter outside Pang Town as a mysterious sleeping sickness affects his parents.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_02008",name="Letter of Command",kind=1,description="An order clears and seals the official road for Nether Lord Zuo Shang's arrival, threatening death to violators.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_02009",name="Righteous Alliance Military Pledge",kind=1,description="Righteous fighters pledge to protect the western road and accept death if they fail.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_02010",name="Instructions to Protect the Young Lady",kind=1,description="The Fan family orders Lin Feng and ten elite guards to protect a politically important bridal convoy.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_02011",name="Record of a Separated Thief Brother",kind=1,description="Notes track missing thieves: Lao Zhou near the butcher's cave by the long bridge, Li Haozi underground, and Agui near the camp's crossbow cave.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_02012",name="Slippery Hand's Letter Written in Blood",kind=1,description="A remorseful thief seeks a child whose family was destroyed after his accidental gift was mistaken for stolen property.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_03001",name="Mo Jizi's Final Letter: Part One",kind=1,description="Mo Jizi welcomes the Organization's three experts as desperately needed allies while lamenting corruption and absent reinforcements.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_03002",name="Mo Jizi's Final Letter: Part Two",kind=1,description="Mo Jizi records Xianzhe and Bai Chilian's mutual destruction and Yu Yinzi's unexplained, hurried departure.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_03003",name="Mo Jizi's Final Letter: Part Three",kind=1,description="Despite Zuo Shang saying Yu Yinzi seemed normal when leaving, her prolonged disappearance deeply troubles Mo Jizi.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_03004",name="Mo Jizi's Final Letter: Part Four",kind=1,description="After Yu Yinzi vanishes, Huang Xingzi's secret alliance and Dragon Body experiments divide the remaining heroes; Mo Jizi rejects fighting evil with evil.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_03005",name="Mo Jizi's Final Letter: Part Five",kind=1,description="Mo Jizi prepares a fatal confrontation and urges future investigators to seek Huang Xingzi and the Young Master at the mountaintop Holy Mother temple.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_03006",name="Mo Jizi's Final Letter: Hastily Marked Map",kind=1,description="A simple lake-centered map circles the summit mountain trail in red.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_03007",name="Xiaoxue's Belongings List",kind=1,description="A child's belongings list identifies Liu's broken sword, Wan's hairpin, and the Shadowless Traveler's scabbard, entrusted to Bagua Pavilion.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_03008",name="Righteous Alliance Letter of Appointment",kind=1,description="The Righteous Alliance appoints Yu Yinzi supreme commander of eastern martial forces against the Strange Masks.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_03011",name="Disciple's Letter Home",kind=1,description="A father praises his son's service under the Three Heroes and urges continued study under Huang Xingzi.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_03012",name="Secret Letter to Qianqian",kind=1,description="Zhao, Wei, and Zhuge urge Qianqian to flee, avoid reckless danger, and trust that Mo Jizi will return.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_03013",name="Dragon Body Technique Execution Order",kind=1,description="Huang Xingzi orders every disciple to undergo Dragon Body augmentation, threatening immediate execution for refusal.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_03014",name="Letter from the Six Sects",kind=1,description="The Three Heroes urge six sects to abandon rivalry and combine their skills and principles against evil.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_03015",name="Musical Score Notes",kind=1,description="A musician rewrites a sorrowful ancient score into a faster, more spirited piece for the freedom of the martial world.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_03016",name="Female Disciple's Document",kind=1,description="Disciples reassure their master that camp defenses are ready and wish him victory alongside the Organization.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_03017",name="Torn Page from the Detailed Explanation of the Dragon Body Technique",kind=1,description="A damaged explanation claims Dragon Body augmentation increases strength while preserving sanity; crucial details were deliberately destroyed.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_03018",name="Righteous Main Camp Fortification Plan",kind=1,description="A detailed main-camp defense plan depicts mountain fortifications, arrow towers, shield barricades, and traps.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_03019",name="Letter from the Young Master",kind=1,description="The Young Master tells Huang Xingzi he has a solution and will visit to discuss their plans.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_03020",name="Martial Arts Questions and Answers",kind=1,description="Disciple Yan Hua reflects on mistaking brute force for skill and requests further guidance from his master.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_03021",name="Baby's One-Month Celebration Invitation",kind=1,description="Disciple Huaizhou invites his master to his son's one-month celebration and asks him to bestow a name.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_03022",name="Poetry Exchange Letter",kind=1,description="Shao Hantan submits poetry inspired by Mo Jizi's work and requests his appraisal.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_03023",name="Unfinished Discussion of Swordsmanship",kind=1,description="An unfinished essay says swordsmanship should stop conflict; moral cultivation must precede skill and overcome pride and impatience.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_03025",name="Meddlesome Disciple's Last Letter",kind=1,description="A disciple investigates Huang Xingzi's secret dealings with the Young Master and Mo Jizi's opposition; the note ends in blood.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_03026",name="Letter from Zhao Di",kind=1,description="Zhao Di asks Brother Meng for immediate help investigating Mo Jizi's disappearance and suspicions against Huang Xingzi.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_03027",name="Torn Page from a Healer's Notes",kind=1,description="A healer's attempt to drain toxic Sha-Chi becomes an addiction to consuming disciples' energy, ultimately killing a patient.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_03028",name="Zhao Di and His Two Companions' Resistance Proclamation",kind=1,description="Zhao Di, Zhuge Feng, and Wei Sanchuan denounce Huang Xingzi's augmentation, persecution, and attack on their teacher Mo Jizi.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_03029",name="Soul-Transfer Puppet",kind=1,description="Soul transfer irreversibly binds human consciousness to obedient puppets. The original body and puppet remain fatally dependent on each other.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_03030",name="Abandoned Puppet's Letter",kind=1,description="Discarded puppets describe Dang Hui's red-eyed double being ordered by Dream Bailiff to dispose of them.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_04001",name="Dream Bailiff Experiment Notes: The Lady's Sacred Body",kind=1,description="Experiments seek a perfect vessel for the Holy Mother, using Lujia villagers despite their bodies' repeated failures.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_040018",name="Urgent Letter with a Bird Feather (Feather Dispatch)",kind=1,description="Wen Yao warns his senior that their captain rejected the immortal dew and embraced inhuman augmented strength.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_040019",name="The Lift Switch Was Stolen",kind=1,description="A report says Kui Yanyan seized the lift switch; bandits plan to make her fight Huang Xingzi's guards.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_04002",name="Dream Bailiff Experiment Notes: Puppet Zero",kind=1,description="The researcher praises female martial artists as better material and Puppet Zero's exceptional body, illusion talent, and resilient consciousness.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_04003",name="Dream Bailiff Experiment Notes: Radiant Heart",kind=1,description="The Infinite Radiant Heart experiment promises endless power for the Holy Mother's sacred body and freedom from the Hidden Martial World's restrictions.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_04004",name="Dream Bailiff Experiment Notes: Sacred Body Completed",kind=1,description="An experiment log lists repeated vessel failures before Subject Seven appears nearly perfect for the Holy Mother's consciousness.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_04005",name="Unsent Letter",kind=1,description="Dream Bailiff promises the Young Master a male sacred body and asks him to obey the Infinite Radiant Heart Workshop's safety rules.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_04006",name="Rules of the Radiant Heart Workshop",kind=1,description="Radiant Heart Workshop visitors must take Seven Stars, remain in assigned places, and obey restrictions; an antidote or time ends its effects.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_04007",name="Lujia Village Lost Treasure List",kind=1,description="A treasure list describes colorful wedding candles, a twin-child jade pendant, and an uncovered rosewood bodhisattva statue.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_04008",name="Soul-Transfer Powder Formula Manuscript",kind=1,description="A repeatedly revised medicinal formula seeks a colorless, odorless preparation that induces soul transfer in smaller doses.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_04009",name="Life-Imprisoner Soul-Transfer Method",kind=1,description="Soul-transfer instructions describe separating consciousness, guiding it through an unstable hidden passage, and sealing it into a matching puppet body.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_04010",name="Discarded Items List: Batch 79",kind=1,description="Numbered records track augmented female martial artists, their weakening identities, obedience, and improving combat or Sha-Chi abilities.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_04902",name="Mute Puppet Blueprint",kind=1,description="A blueprint depicts the tongueless puppet Mute. Its tongue is also a key, and the puppet must be placed in the Red House.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_05001",name="Illustrated Construction Plan of the Puppet Base",kind=1,description="Plans turn a thieves' passage into a guarded puppet workshop, moving its entrance beneath a well.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_05002",name="Dream Bailiff's Letter to the Supreme One",kind=1,description="Dream Bailiff tells the Supreme Venerable One that Puppet Ninety-Nine now opens a route to the lake center and its crystal eyes are hidden safely.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_05003",name="Well Closure Notice",kind=1,description="A village proclamation forbids disturbing the well, citing a woodcutter whose consciousness was transferred into a puppet.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_05005",name="Puppet Base Register: Spatial Expansion",kind=1,description="Growing experiments have turned Lujia villagers into puppets, leaving the base overcrowded and requiring expansion.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_05006",name="Unfinished Scripture of the Holy Mother",kind=1,description="A scripture promotes the Holy Mother's mercy while explaining away alarming soul-transfer and puppet phenomena.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_05007",name="Life-Imprisoner's Letter",kind=1,description="Life-Imprisoner Chi Shao reports that all puppet combat forces have been delivered to the Organization.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_05008",name="Letter from the Supreme One",kind=1,description="The Supreme Venerable One praises Puppet Zero and the sacred-body research but warns that a promised token is missing.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_05009",name="Secret Report on Purging Corruption",kind=1,description="A report says Lujia Village is sealed to capture Dang Hui and recover the missing object.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_05010",name="Seven Wonders Pharmacopoeia",kind=1,description="A reference lists Seven Wonders preparations, their appearances, and their links to illusion arts.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_05011",name="Holy Mother's Proclamation",kind=1,description="A proclamation promises that the Holy Mother will descend through sacred images and deliver suffering beings.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_05012",name="Ritual Notice: How to Meet the Holy Mother",kind=1,description="Ritual instructions call for tying a dense red-cloth flower, covering the face, and lying down to dream and pray.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_05013",name="Funeral Register",kind=1,description="Wooden children mourn a respected elder and leave a register naming children who had fallen into deep sleep.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_05014",name="Diary of a Villager Who Stayed: Mid-Autumn",kind=1,description="A villager records missing people, changed returnees, a new sleeping sickness, and suspicious well water.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_05015",name="Diary of a Villager Who Stayed: Frost's Descent",kind=1,description="A frightened child hears a hostile wooden puppet speaking in his mother's voice and suspects human souls inhabit puppets.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_05016",name="Puppet Base Register: The First Experimental Base",kind=1,description="A report records the capture of thieves, Lu Wuxiu's escape, and Dream Bailiff's punishment of subordinates by turning them into puppets.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_05017",name="Singing Girl Puppet's Letter",kind=1,description="Qingniang promises to wait forever at the place where she and Pei pledged their love.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_05018",name="Strategy for a Joint Suppression Campaign",kind=1,description="A plan recommends luring Strange Masks from occupied Lujia Village into the southwest woods to avoid civilian casualties.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_05019",name="Oath of Alliance to Defeat the Bandits",kind=1,description="The Organization's three representatives and Kunlun's Three Heroes swear mutual aid until the Strange Masks are destroyed.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_05020",name="Wanted Criminals: The Four Strange Mask Leaders",kind=1,description="Combat notes describe Hua Qianxiao, Jing Ye, Tie Kuang, and Bai Chilian, recommending approaches suited to their weapons and habits.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_05021",name="Prayer to the Holy Mother",kind=1,description="Xu Wei offers his damaged body in exchange for his sworn brother's escape from the wooden-puppet village.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_06001",name="Boat Captain's Crafting Notes",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_06003",name="Pang Town Lost Treasure List",kind=1,description="A treasure list describes jade writing tools, medicinal ink, a gold tiger paperweight, and a floral inkstone.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_06005",name="Ignored Petition",kind=1,description="A woman petitions after her husband disappears into a paid heart-transplant experiment and her son goes searching.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_06006",name="Deed Bearing a Fingerprint",kind=1,description="Pang Ping signs an agreement to undergo a heart transplant for twenty taels.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_06007",name="Annotations on the Heart-Meridian Scripture",kind=1,description="A researcher proposes replacing a heart with a Sha-Chi mechanism to provide limitless power and extend life.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_06008",name="Hastily Written Letter in Blood",kind=1,description="Pang Su asks for help after his father is taken to the manor.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_06009",name="Letter That Could Not Be Sent",kind=1,description="A warning describes a backstreet epidemic, a lockdown, and outsiders allegedly removing hearts; the recipient is urged to stay away.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_06014",name="To Father Changqing",kind=1,description="A child writes to Father Changqing, eagerly awaiting his return and fearing her grandmother will forget him.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_06015",name="Old Friend's Final Letter",kind=1,description="Pang Zhe's final letter entrusts his three daughters to Shunzi, who promises to care for them.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_06016",name="Town Resident's Diary: Torn Page",kind=1,description="A diary describes a night watchman singing in a girl's voice while crawling up a wall with a twisted neck.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_06017",name="Signed Deed",kind=1,description="A mother sells her house, fields, and dowry for 270 taels to fund her son Li Xiang's martial training.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_06018",name="Letter of Apology to a Younger Brother",kind=1,description="Pang Afu apologizes for angry words and asks his younger brother to return home for the new year.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_06019",name="Xie Garden's Past: Part One",kind=1,description="A disciple recounts healer Xie Huichun's selfless work and the villagers who mutilated his healing hands after a patient's death.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_06020",name="Xie Garden's Past: Part Two",kind=1,description="After a supposed rescue, the healer turns villagers into sources of power; his disciple questions the purpose of hands meant to save people.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_06021",name="Medical Consultation Register",kind=1,description="A medical register links drinking well water to confusion, failure to recognize family, rigid limbs, and prolonged sleep.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_06022",name="Notes on the Flower",kind=1,description="Only a flower sketch remains; every written section has been torn away.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_06024",name="Sacred Scroll of the Holy Mother: Part One, Pang Sheng Meets the Holy One",kind=1,description="A sacred tale claims the Holy Mother cured sickly Pang Sheng after his family covered his face with a cloth flower.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_06025",name="Sacred Scroll of the Holy Mother: Part Two, The Wooden Man's Heart Transplant",kind=1,description="A sacred tale credits the Holy Mother for Pang Sheng's revival as a masked wooden puppet carrying his heart.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_06028",name="Tavern Ledger",kind=1,description="A tavern ledger records steadily declining wine sales across three months.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_06029",name="Martial Actor's Lyrics",kind=1,description="A martial actor's song recalls helping a performer follow illusion arts, then warning her against a sinister master.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_06030",name="Qingyi Actress's Lyrics",kind=1,description="A performer's song expresses devotion to rare illusion arts despite their difficulty and the sacrifice they demand.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_06031",name="Letter in Hasty Handwriting",kind=1,description="An old lion dancer, struggling against the Dragon Body's bloodlust, entrusts the bearer with his hall key and a vital task.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_06032",name="The Four Great Snake Houses",kind=1,description="Snake House locations: Green in Pang Town's backstreet, Red north of Blood Forest's long bridge, Black west of Lujia Village, White on an eastern Meigu island.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_06033",name="The Lady's Instructions",kind=1,description="A fragmented divine command demands an object be brought before a manifestation west of Meigu Lake in exchange for relief.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_06034",name="Elder Brother's Letter (For Axiu)",kind=1,description="Ajin sends Axiu soul-transfer holy water and tells her to give it to a maid and cover the maid's face with the Holy Mother's flower.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_06035",name="Unsigned Poem",kind=1,description="A riddle says a hidden door behind a statue in the Green Snake House leads to Dreamplay Manor.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_070001",name="Lu Sanqian's Final Words: For Jieyuan",kind=1,description="A father accepts his clan's ancestral hall becoming the Holy Mother's temple and sets out to pray; his letter ends abruptly.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_070002",name="Atonement List",kind=1,description="A chilling register lists murdered villagers and their harmless final words, ending with Bai Xue'er.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_070003",name="Zhou Chuan's Written Vow",kind=1,description="Zhou Chuan prays for his bedridden, deeply sleeping mother after medicine fails.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_070004",name="Li Yaomei's Written Vow",kind=1,description="Fisherwoman Li Yaomei prays for predictable waters, peace, and safety for her family and Meigu Village.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_070005",name="Wang Yiren's Written Vow",kind=1,description="Wang Yiren asks the Holy Mother to bless marriage into Pang Jingru's wealthy family.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_070006",name="Unfilial Descendant Sanqian's Written Vow",kind=1,description="Lu Sanqian begs guidance through village sickness and wooden puppets, accepting his clan's supposed ancestral sins.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_070007",name="Written Vow Defaced by the Wudang Sect",kind=1,description="Wudang disciple Lu Chongyun refuses to worship an evil cult and threatens to break ties with anyone recruiting him.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_070008",name="Anonymous Written Vow",kind=1,description="An anonymous fugitive asks the Holy Mother to erase his guilt and let him grow old in peace.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_070009",name="Blood Saber Sect's Written Vow",kind=1,description="Blood Saber disciple Han Yidao asks the Holy Mother to punish the Organization and promises further red sacrifices.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_07001",name="Infinite Radiant Heart Design",kind=1,description="A diagram of a Radiant Heart encloses a purple fragment, claiming it generates stable, controllable Sha-Chi without madness.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_070010",name="Chen Hutou of Thunderbolt Hall's Vow",kind=1,description="Thunderbolt Hall's Chen Hutou promises a golden statue if the Holy Mother makes his faction invincible.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_070011",name="Proclamation to Resist the Enemy",kind=1,description="The Three Heroes swear to unite with allied sects and ordinary people until the Strange Masks are destroyed.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_070012",name="Bloodstained Diary",kind=1,description="A bloodstained letter says the cave needs reinforcements to rescue captives and mocks an enemy's talk of murder as atonement.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_070013",name="Unsigned Note",kind=1,description="Huang Xingzi transfers all bomb throwers and the mountain gate key to the cage cavern guards.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_070014",name="Guard Unit's Petition of Faith",kind=1,description="A proclamation promises cleansing and long life to faithful worshippers and eternal disaster to doubters.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_070015",name="Incomplete Mountain Trail Map",kind=1,description="A rough sketch marks the Holy Mother's temple about two incense-sticks' travel away.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_070016",name="Diary in Delicate Handwriting",kind=1,description="A girl kills her father while trying to protect her lover and interprets the act as the Holy Mother's intervention.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_070017",name="Zhou Pingzi's Last Letter (To Yuling)",kind=1,description="Zhou Pingzi apologizes to Yuling and wishes to become a fearless hero in another life to protect her.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_070018",name="Hastily Written Diary",kind=1,description="A predator's diary boasts of seducing women with martial-world stories and considers selling a trusting lover.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_07002",name="Report from Leng Tu's Confidant",kind=1,description="A servant reports that soul-transfer powder has been poured into wells and rivers throughout Lujia Village and Pang Town.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_07004",name="Illustrated Guide to Dreamplay Manor",kind=1,description="A construction proposal expands the former guild retreat toward Pang Town while securing its boundary beside the forbidden mountain.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_07005",name="Merchant Guild Directory",kind=1,description="A merchant guild directory records twelve prominent local founders and their businesses.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_07007",name="Discarded Martial Instructions",kind=1,description="Manor guards are invited to a friendly martial competition whose winner receives a premium theater ticket.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_07008",name="Ode to the Three Heroes",kind=1,description="A banquet account praises the Three Heroes' music, insight, poetry, and defense of the Righteous.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_07009",name="Essentials of Illusion Arts",kind=1,description="A physician discovers that poison destroys the body while illusion hides its suffering, leaving victims peacefully unaware of death.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_07010",name="Illustrated Flora Beyond the Pass",kind=1,description="A botanical record describes poisonous pearl grass, illusion-aiding ghost mushrooms, and a vanished flower rumored to revive the dead.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_07011",name="Comprehensive Survey of Sects Beyond the Pass",kind=1,description="A history of the Life-Imprisoners' cruel Evil Lord, puppet sorcery, and eventual submission to the Long family.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_07013",name="Record: Sevenfold Ingenuity and the Seven Stars",kind=1,description="Sevenfold Ingenuity is a lethal poison; Seven Stars induces temporary apparent death and wears off after two double-hours.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_07014",name="Record: Seven Wonders Antidote",kind=1,description="Leng Tu's Seven Wonders antidote treats both preparations; a similar-looking substitute only delays the lethal poison.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_07015",name="One-Eyed Archer's Letter",kind=1,description="A father's last letter warns his daughter against merciful-looking evils promising a shortcut to reunion with him.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_07016",name="Torn Page with Three Handwriting Styles",kind=1,description="Three fused minds argue over a failed cure and an escape plan, fearing Dream Bailiff will always find them.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_07017",name="Research Notes on the Jade Cong",kind=1,description="Heating Jade Cong with an extremely hot weapon disrupts the balance of ice, sinister fire, and steel, briefly separating and weakening its three souls.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_07018",name="Torn Page from an Illusionist's Notes",kind=1,description="The ruins are mirror-sealed; gathering the various spell-nullifying tokens is said to open them, but their straw-bodied holders roam the Hidden Martial World.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_07019",name="Decree of the Supreme Venerable One",kind=1,description="The Supreme One orders disciples to pool their illusions and rebuild a royal vessel to welcome the Holy Mother from the far shore.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_07020",name="Disordered Note",kind=1,description="A distressed writer condemns the slaughter of dissenters, then dissolves into frantic denial and demands for belief.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_08001",name="Meigu Lake Region Lost Treasure List",kind=1,description="A treasure list describes a corruption-observing astrolabe, a crystal-repaired sundial, and a blue-flower compass.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_11001",name="Unsigned Letter",kind=1,description="The Organization always keeps a contingency; snake fang, tongue, and eye tokens are entrusted to the recipient.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_11002",name="Purple Fragment Notes",kind=1,description="Ancient purple weapon fragments attract corruption in the Hidden Martial World and can draw limitless Sha-Chi from it.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_11003",name="Green Snake House Secret Passage Map",kind=1,description="Secret plans connect the Green Snake House to Dreamplay Manor; the passage's components are stored in the other three Snake Houses.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_12001",name="Dream Bailiff Experiment Notes: Installing the Radiant Heart",kind=1,description="Completed Subject Seven is named the Lady's Sacred Body and sent to Dreamplay Manor to merge with the Infinite Radiant Heart.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_12003",name="Dream Bailiff Experiment Notes: Rift Preparations",kind=1,description="An agreement with the Supreme Venerable One prepares the final rite; the Holy Infant has advanced the gate's opening by more than sixty years.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_12004",name="Letter from the Evil Lord",kind=1,description="Written in a western-region language that cannot presently be understood.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_12005",name="Dreamplay Manor Lost Treasure List",kind=1,description="A treasure list describes a turquoise-inlaid bronze mirror, a gold-and-silver scent pouch, and a cloud-and-moon hairpin.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_12006",name="Pet",kind=1,description="A researcher describes a pet that prefers martial artists to discarded experiments and grafts its victims onto itself.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_12007",name="Notice to Suppress the Bandits",kind=1,description="A rallying verse calls Meigu heroes to gather and drive out the Strange Masks.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_12009",name="Waterway Gang Martial Challenge",kind=1,description="Gang Leader You Long invites martial heroes to a water arena for his birthday and friendly competition.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_12010",name="Waterway Gang Register",kind=1,description="A humorous Waterway Gang register lists boats, fishing gear, weapons, wine, debts, and You Long's achievements.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_12011",name="Fragmentary Travel Notes",kind=1,description="Travel notes praise local swimming skill before an ominous night spent beneath a tree amid miasma.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_12012",name="Heavily Marked Map",kind=1,description="A marked map records no survivors among ruined huts and questions where the Waterway Gang has gone.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_12013",name="Stranded Paper Boat",kind=1,description="A child's paper-boat plea describes fish monsters, nighttime howling, and siblings hiding indoors with almost no food.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_12014",name="Stillwater Recollections: Part One, The Contest",kind=1,description="A swordsman loses effortlessly to an augmented fighter and is expelled by his master for being useless.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_12015",name="Stillwater Recollections: Part Two, Hope",kind=1,description="Fishermen rescue a drunken fallen swordsman; a dignified man stops their quarrel and offers him wine instead of questioning his past.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_12016",name="Stillwater Recollections: Part Three, Winning and Losing",kind=1,description="Life among the Waterway Gang teaches a former swordsman fishing, friendship, and freedom from obsession with winning.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_12017",name="Ornate Invitation",kind=1,description="An elegant invitation to Meigu's music house reserves the finest private pavilion.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_12019",name="Letter to Lord Meng in the Capital",kind=1,description="Li Zimao invites Lord Ming to the newly opened Meigu Lake music house and its renowned performers.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_12020",name="Six Sights of Meigu",kind=1,description="Meigu Lake grew over an ancient battlefield; plum groves and music hide the echo of fighting on rainy nights.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_13001",name="Dream Bailiff Experiment Notes: Spare Sacred Body",kind=1,description="Fearing the unpredictable Organization traitor, Dream Bailiff sends spare Sacred Body Six to Soul-Severing Mountain's summit.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_14001",name="Mountain Closure Order",kind=1,description="The Righteous Alliance forbids entry to Soul-Severing Mountain after its catastrophe, threatening confiscation and condemnation.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_14004",name="Illustration of the Holy Mother's True Form",kind=1,description="A cosmic verse imagines corruption consuming the universe and remaking it as an immortal realm.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_14005",name="Gazetteer of Soul-Severing Mountain",kind=1,description="Soul-Severing Mountain lies northwest of Meigu Lake. Its highest cliff has remained snowbound since a catastrophic manifestation.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="R_14006",name="Star Chart",kind=1,description="A star chart records unexplained cosmic disturbances under the name Corruption Incursion.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="Return_ShaqiWeapon_1",name="Shadow-Fading Talisman",kind=1,description="A dark-purple talisman that reverses the power contained in Shadow Armaments.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Return_Weapon_1",name="Weapon Reverse-Forging Talisman",kind=1,description="A yellow talisman whose blade patterns strip even exceptional weapons of their tempered edge.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="ShaqiHexin",name="Sha-Chi Core",kind=1,description="A Sha-Chi device replacing a powerful Strange Mask's heart. It may power a mechanism.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="T_02001",name="Bloodstained Seal",kind=1,description="A bloodstained stone sect-leader seal. A rare treasure exchangeable with Deft-Handed Xiao Zhang.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="T_02002",name="Sect Leader's Snuff Bottle",kind=1,description="A gold-amber snuff bottle confiscated by a hypocritical sect leader. Exchange it with Deft-Handed Xiao Zhang.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="T_02003",name="Ancient Crossbow Mechanism",kind=1,description="An ancient, precisely fitted bronze crossbow mechanism. Exchangeable with Deft-Handed Xiao Zhang.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="T_05001",name="Bridal Chamber Candles",kind=1,description="Long-unused wedding candles with a hardened wax tear. Exchangeable with Deft-Handed Xiao Zhang.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="T_05002",name="Twin-Child Jade Pendant",kind=1,description="A hereditary twin-child jade pendant whose last owner had no family. Exchangeable with Deft-Handed Xiao Zhang.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="T_05003",name="Statue Not Yet Covered in Flowers",kind=1,description="A wooden bodhisattva statue left uncovered in silent resistance to the Holy Mother cult. Exchangeable with Xiao Zhang.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="T_06001",name="Jade Brush Stand",kind=1,description="An ornate jade brush and stand acquired from a fallen scholar. Exchangeable with Deft-Handed Xiao Zhang.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="T_06002",name="Tiger-Shaped Paperweight",kind=1,description="A gold tiger paperweight given to an artist by Sect Leader Ming. Exchangeable with Deft-Handed Xiao Zhang.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="T_06003",name="Impermanence Sundial",kind=1,description="A crystal-repaired sundial that predicts destiny rather than time. Exchangeable with Deft-Handed Xiao Zhang.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="T_06004",name="Ink",kind=1,description="A medicinal inkstick gifted to General Wu Xuan, powerless against his soldiers' injuries. Exchangeable with Xiao Zhang.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="T_06005",name="Inkstone with Floral Border",kind=1,description="An unfinished inkstone linked to a sleeping craftsman and a carving wooden puppet. Exchangeable with Xiao Zhang.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="T_08001",name="Corruption-Observing Astrolabe",kind=1,description="An astrolabe whose owners obsess over predicting corruption. Exchangeable with Deft-Handed Xiao Zhang.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="T_08003",name="Blue-Flower Compass",kind=1,description="A blue-flower compass said to reveal good, evil, fortune, and desire. Exchangeable with Xiao Zhang.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="T_12001",name="General's Bronze Mirror",kind=1,description="A turquoise-inlaid bronze mirror said to expose evil, scarred by sinister power. Exchangeable with Xiao Zhang.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="T_12002",name="Gold-and-Silver Scent Pouch",kind=1,description="A gold-and-silver scent pouch gifted to an acrobat by Merchant Yao. Exchangeable with Xiao Zhang.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="T_12003",name="Cloud-and-Moon Gold Hairpin",kind=1,description="A cloud-and-moon gold hairpin once transformed by illusion at Dreamplay Manor. Exchangeable with Xiao Zhang.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_01001",name="Pigeon Feed",kind=1,description="Pigeon feed was hidden in a sealed box inside a remote house, whose bridge was destroyed for security.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_02001",name="Elegy of Parting",kind=1,description="A prisoner writes a final poem in blood on the wall; someone later preserves the unfinished verse on paper.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_02002",name="Fist Heart Fragment: Core",kind=1,description="A Fist Heart fragment from Tie Gui's gauntlets contains the resolve to strike strong enemies and protect others.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_03001",name="Border Garrison Banner",kind=1,description="A border war banner raises the question of why the lands it protected never found peace or prosperity.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_03002",name="Border Garrison Poetry Collection",kind=1,description="Border soldiers' poetry preserves homesickness and hope that the war would end before the pages were filled.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_03003",name="Golden Ammunition",kind=1,description="Lei Dang's golden ammunition fires the entire Tiger Cannon; if it misses, he fights with his remaining arm and fists alone.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_04001",name="Heel Reinforcement Parts",kind=1,description="Xiaokui first gave Yu Yao heel reinforcement parts, inspiring a habit she kept long after preserving the original gift.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_04003",name="Thunderbolt Electric Core",kind=1,description="A dangerous electric core glows green and leaks lightning when shaken; Hun's spear-wielding friend could harness it.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_05001",name="Lingering Obsession: Infatuation",kind=1,description="A fragment of hopeless waiting, with longing that survives even the destruction of the body.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_05003",name="Deft-Handed Heart Sutra",kind=1,description="The Deft-Handed lineage's rare heart method teaches forgetting appearances, targets, and self so throwing knives follow intent without missing.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_05004",name="Blazing Training Lion Head",kind=1,description="A heavy, undecorated training lion head tests whether its dancer can give cold machinery the majesty of a fiery lion.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_05005",name="Shed Snakeskin: White",kind=1,description="An almost intact shed snakeskin remembers the warmth of its once-gentle owner's hand.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_06001",name="Sworn Brotherhood Blood-Oath Knife",kind=1,description="The Four Axes' blood-oath knife recalls sworn brotherhood, false accusations, and Peng Meng's loss of faith after his brothers were killed.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_06002",name="Old Wooden Comb",kind=1,description="Old Gentou's handmade comb recalls a lifetime of arguments and affection with his wife, and the emptiness after her death.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_06004",name="Razor-Sharp Black Gold",kind=1,description="Sharp, curled black-metal fragments used to forge weapons combining beauty with exceptional cutting power.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_06005",name="Tough Bowstring",kind=1,description="A tough bowstring made by traditional methods from sinew and hemp, repeatedly waxed and dried.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_07001",name="Dancer's Ribbon",kind=1,description="An old dancer's ribbon recalls a teacher who recognized excellent footwork within the dance itself.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_07002",name="Lingering Obsession: Fixation",kind=1,description="A fragment of prosperous memories, clinging to old dreams through repeated playing of strings.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_0701",name="The Obsessed One's Obsession",kind=1,description="An embittered swordsman refuses to replace his broken sword, believing that concealment would break more than the blade.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_08001",name="Plain Sword Tassel",kind=1,description="A plain hemp tassel with a jade bead, left unburied in hope its owner will one day return.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_08002",name="Reinforced Chainsaw",kind=1,description="Huang Xingzi studies how to counter Mo Jizi's sword, imagining a saw's speed and clamping teeth as the perfect answer.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_09001",name="Iron-Slaughter Mask",kind=1,description="A criminal's follower receives an alteration beneath his mask and becomes intoxicated by independent, murderous power.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_09002",name="Treasure Cauldron Fragment: Part One",kind=1,description="A muddy treasure-cauldron fragment, smashed by someone who later knelt before a different object of worship.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_09003",name="Treasure Cauldron Fragment: Part Two",kind=1,description="A cannon-pierced treasure-cauldron fragment that sheltered a Righteous fighter during a battle with Strange Masks.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_09004",name="Treasure Cauldron Fragment: Part Three",kind=1,description="A carefully cleaned treasure-cauldron fragment, preserved by someone unwilling to abandon the old sacred traditions.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_0901",name="Restored Treasure Cauldron",kind=1,description="A restored ritual cauldron recalls those who resist forgetting the Righteous's past despite the Holy Mother cult's spread.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_10001",name="Superalloy Sickle Head",kind=1,description="A workshop dismembering tool became a Scavenger's implanted sickle; the flesh-assembled creature kills in hope of acquiring others' lives.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_10002",name="Waterway Gang Rules",kind=1,description="Waterway Gang rules demand sharing fish and hardship, keeping fishing grounds secret, helping the wronged, learning watercraft, and bringing food and wine to gatherings.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_10003",name="Powerful Water Pump",kind=1,description="Meigu fishermen improvised a powerful pump from anchor metal and harpoons; it works alone or inside the Wandering Dragon Head.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_11001",name="Luminous Pearl",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="TU_11002",name="Bronze Essence",kind=1,description="A blacksmith forced to build artificial hearts was rescued when a Taoist freed his children; he burned the unfinished work and fled.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_11003",name="Six Paths Sect Arrest Warrant",kind=1,description="Jing Ye killed an arrest officer corrupted through a singer's drugged wine, then shattered the warrant in contempt of the Righteous.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_11004",name="Sect Leader's Charred Head",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="TU_11005",name="Craftsman's Tool Set",kind=1,description="A deceased Righteous craftsman's tool set can restore even awkwardly shaped, stubbornly dirty weapons.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_11006",name="Embroidered Shoes",kind=1,description="Ajin saved a dowry for his sister, including these embroidered shoes, and still carries them after becoming a Strange Mask.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_11007",name="Baishan Sect Headband",kind=1,description="Lu Jieyuan kept his deceased wife's Baishan headband as they sought a righteous path amid the spreading flower cult.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_11008",name="Snake Rattle: Red",kind=1,description="A severed snake-tail segment still trembles and rattles urgently, as though begging on someone's behalf.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_11009",name="Snake Gallbladder: Green",kind=1,description="A bitter snake gallbladder recalls its owner's fear of loneliness and the search for missing parts to return to her.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_1101",name="Snake's Memory",kind=1,description="Snakes repeatedly search the Mirror Forest for pipa parts while their changing owner clings to illusory voices.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_11010",name="Snake Venom Sac: Black",kind=1,description="A swollen venom sac holds not only poison but the agony of being unable either to live or die.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_11011",name="Maintenance Oil",kind=1,description="Xiao Zhang's homemade oil is essential to his careful ritual of researching, cleaning, and preserving mechanical treasures.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_11012",name="Everlasting Lamp Flame",kind=1,description="A bronze lamp confines enough volatile fuel for a conflagration to a constant glow, though its wick may already be spent.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_11013",name="Dog's Memory",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="TU_12001",name="Alloy Steel Sheet",kind=1,description="Alloy steel from Tiger Guards Lei Huang and Lei Ming recalls Lei Dang treating his commanded bailiffs as brothers.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_12002",name="Husband's Jade Face",kind=1,description="An illusion mask hides one disguise beneath another, leaving its former wearer's true face uncertain.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_12003",name="Lingering Head Memory",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="TU_13001",name="Loyal and Righteous Hero Statue",kind=1,description="Ghostslayer forgot his sect, teacher, and own name but retained and fulfilled loyalty and righteousness.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_13004",name="Fist Heart Fragment: Shell",kind=1,description="A Fist Heart fragment from Tie Gui's gauntlets contains the resolve to strike strong enemies and protect others.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_13005",name="Frost Seal",kind=1,description="A verse links the pipa's frosted strings and Frost Seal to a heart-breaking tune that freezes ancient wounds.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="TU_1302",name="World-Destroying Fist Heart",kind=1,description="A renewed iron shell holds discipline, martial aspiration, and purpose: a Fist Heart with world-destroying strength.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_14001",name="Dream Bailiff's Thread Remnants",kind=1,description="A remnant of Dream Bailiff's puppet threads recalls suffering relieved by the Holy Mother's voice, perhaps only another illusion prison.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_15001",name="Fiery Grasp",kind=1,description="Reignited Fiery Grasp converts supplied Sha-Chi into flame, demanding control of power rather than surrender to it.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_150011",name="Cooled Fiery Grasp",kind=1,description="Fortress gauntlets once held flame without burning the hands, training bloodline control; long disuse has extinguished their fire.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_150012",name="Blazing Fire",kind=1,description="Zhu Yuan honed speed, steadiness, and variation against flames, forever seeking to grasp the power that continued to burn him.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_15002",name="Twin Chaos Irons",kind=1,description="Twin chaos daggers forged in the fortress were separated and altered over many years, yet still resonate when reunited.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_150021",name="Chaos Iron Remnant: Part One",kind=1,description="A fire-scarred crescent knife from the destroyed fortress was sealed in the Hidden Martial World; its mate is missing.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_150022",name="Chaos Iron Remnant: Part Two",kind=1,description="A blade fragment used to stabilize Jade Cong's puppet body bears wear and evidence of being reforged wider.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_17001",name="Dark Demon Sky Fortress Mask",kind=1,description="A golden fortress mask suppresses bloodline Sha-Chi and helps Hun wield the power of his origins.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_18001",name="Original Chaos Vessel",kind=1,description="A vessel retains three intertwined Sha-Chi powers and memories of three lively fellow disciples before their later estrangement.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_18008",name="Shattered Dragon Body",kind=1,description="A fragment of Zuo Shang's sacred Dragon Body reflects his control of every advantage and Hun's unpredictable place in his schemes.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_18009",name="Boy's Complete Set of Old Clothes",kind=1,description="A boy kept his old clothes while learning illusion in the ruins, still believing he would eventually return to his parents.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_180091",name="Boy's Shirt",kind=1,description="At the ruins, an illusionist demanded identical robes to erase individuality and make the boy part of the community's faith.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_180092",name="Boy's Trousers",kind=1,description="An illusionist demanded perfectly folded discarded clothes, claiming anyone who violated the rules was an error to be erased.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_180093",name="Boy's Shoes",kind=1,description="Disciples who erred were made to walk barefoot through snow as purification and a test of faith.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_180094",name="Boy's Hat",kind=1,description="An illusionist taught that masks, rather than hats, erased the past and qualified a disciple to pursue the great path.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_18010",name="Demon-Slaying Order",kind=1,description="A verse praises Demon Cutter's immense weight and its power to sever cycles and destroy spirits.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="TU_18011",name="Holy Mother's Crown",kind=1,description="The Holy Mother's fallen crown recalls her proud manipulation of worshippers, unaware she too was a pawn.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_18012",name="Cloak Wreathed in Purple Flame",kind=1,description="A verse describes Demon Hand reaching into the void and seizing souls with its five fingers.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="TU_18013",name="Prosthetic Body Core",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="TU_19001",name="Eye of Insight",kind=1,description="A father's protective charm is corrupted by the entity that followed his bloodline to his daughter, but his protection remains within it.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_19002",name="Organization's Supreme Token",kind=1,description="Mu Xiaokui gives Hun the Organization's supreme token, now stripped of authority after Zuo Shang's takeover, asserting her own independence.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_19003",name="Memories of Youth",kind=1,description="A memory of youthful innocence: holding wood as a sword and laughing toward the sky.",fallback=true,legacy=false,source="DT_InventoryData"}, +{id="TU_19004",name="Bitterleaf Temple Scripture",kind=1,description="Bitterleaf Temple scriptures annotated by Master Bihai and Taoist Bi Di teach the difficult practice of saving people and guiding them toward good.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_19005",name="Purple-Gold Flower",kind=1,description="Xukong preserved his daughter's beloved purple flower forever in bloom, but its roots can never grow again.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="TU_19006",name="Undying Heroic Courage",kind=1,description="Heroic Courage jade shines anew with memories of heroes who keep their principles despite corruption and augmentation.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Weapon_Material_01",name="Casting Metal",kind=1,description="Repeatedly smelted ore used as the foundation for many renowned single blades.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Weapon_Material_02",name="Polished Casting Metal",kind=1,description="Casting metal polished to remove impurities, making forged weapons sharper and stronger.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Weapon_Material_03",name="Flawless Casting Metal",kind=1,description="A flawless ingot embodying a smelter's lifetime of work, awaiting a worthy smith.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Weapon_Material_04",name="Twin Metal",kind=1,description="Two metal ingots identical in shape and weight, each with its own qualities.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Weapon_Material_05",name="Polished Twin Metal",kind=1,description="Precisely matched and polished ingots for swift, flowing twin blades.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Weapon_Material_06",name="Flawless Twin Metal",kind=1,description="A perfectly matched pair of flawless ingots, exceptional alone and extraordinary together.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Weapon_Material_07",name="Long-Plate Metal",kind=1,description="A material for heavy blades whose best use depends on a smith's discerning eye.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Weapon_Material_08",name="Polished Long-Plate Metal",kind=1,description="An unusually heavy, smooth, elongated ingot for powerful weapons.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Weapon_Material_09",name="Flawless Long-Plate Metal",kind=1,description="A rare, exceptionally pure ingot said to require an honest heart to produce.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Weapon_Material_10",name="Solvent",kind=1,description="An ancient solvent formula that removes rust, renews tools, and enables fine engraving.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Weapon_Material_11",name="Concentrated Solvent",kind=1,description="A highly corrosive concentrated solvent for treating stubborn metal and sharpening blades; handle carefully.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Weapon_Material_12",name="Universal Fusing Solvent",kind=1,description="A craftsman's solvent that fuses different materials and further sharpens forged weapons.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Weapon_Material_13",name="Exotic Copper Ingot",kind=1,description="A rare, tough copper alloy valued even as currency by some Righteous sects.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Weapon_Material_14",name="Otherworldly Copper",kind=1,description="Otherworldly copper purified through repeated acid washing and fierce heat.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Weapon_Material_15",name="Ten-Thousand-Forged Otherworldly Copper",kind=1,description="Repeatedly forged otherworldly copper reveals patterns resembling fist techniques and sword strokes.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Weapon_Material_16",name="Demonfire Charcoal",kind=1,description="Charred remains of a collapsed building, still glowing red with heat.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Weapon_Material_17",name="Hot Demonfire Charcoal",kind=1,description="Ever-burning charcoal said to preserve the resentment of an ancient family's fiery destruction.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Weapon_Material_18",name="Blazing Demonfire Charcoal",kind=1,description="Sha-Chi-rich charcoal whose flames resemble wounds pouring out hot blood.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Weapon_Material_19",name="Mechanical Gear",kind=1,description="A basic gear-and-bearing component enabling countless mechanical devices and unusual weapons.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Weapon_Material_20",name="Precision Mechanical Gear",kind=1,description="A precise gear refined through the combined knowledge of drivers, weavers, farmers, and merchants.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Weapon_Material_21",name="Ying-Style Mechanical Gear",kind=1,description="A sophisticated Ying-family gear that changes its operation to attack, defend, or redirect force.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Weapon_Material_22",name="Ancient Wood",kind=1,description="A branch from a long-lived ancient tree, brought down in troubled times.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Weapon_Material_23",name="Ancient Celestial Camphor Wood",kind=1,description="Dense celestial camphor wood: medicinal and illusion-enhancing when ground, strong and light when carved.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Weapon_Material_24",name="Forbidden Ancient Celestial Camphor Wood",kind=1,description="A branch from a forbidden tree linked to a malicious force in the Hidden Martial World.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Weapon_Material_25",name="Soul-Summoning Incense Ash",kind=1,description="Crude plant ash used in incense; folklore says a marked circle and three calls summon wandering souls.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Weapon_Material_26",name="Hallucinatory Incense Ash",kind=1,description="Incense ash once mixed with Seven Wonders leaves to induce visions, though its effect weakened over time.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Weapon_Material_27",name="Incense Ash Offered to the Holy Mother",kind=1,description="Incense ash mixed with puppet remains and red flowers, once believed to recall missing relatives.",fallback=false,legacy=false,source="DT_InventoryData"}, +}}, +{name="Melee Weapons",items={ +{id="BaiShanShuangJian",name="Baishan Wind-and-Thunder Sword",kind=2,description="Baishan Sect's treasured sword commands wind and thunder, with further effects when both are present.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="BaiYing",name="White Shadow",kind=2,description="An almost invisible blade with a cold, snowy gleam.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="ChiZheCanJian",name="The Obsessed One's Broken Sword",kind=2,description="A broken sword strengthened by drinking. It can float and attack distant enemies, with reduced damage at long range.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="CiGuHunDun",name="Bone-Piercing Chaos",kind=2,description="A blade of absolute cutting intent: bone-chilling ice when raised, black flames when it falls.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="Double",name="Black Wound Twin Blades",kind=2,description="Lian Xie's short twin blades, copied from Black Wound's material, strike with extraordinary speed.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="DualHook",name="Parting Broken Hook",kind=2,description="Crescent-like hooks with strong shield-breaking power. Their stance turns defense into offense.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="FangHuaXieShan",name="Holy Mother's Sinister Fan",kind=2,description="Meng Hua's bone fan, predating her role as the Holy Mother. It commands ice, fire, lightning, and chaos.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="GuiTouBlade",name="Red-Adornment Ghostslayer",kind=2,description="A demon-headed blade with strong shield-breaking power. It spreads spider lilies that erode enemy health and Sha-Chi.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="HeiMoShang",name="Black Demonic Wound",kind=2,description="A legendary Dark Demon Sky Fortress weapon tied to Hun's origins. It can trigger Bloodline Rebirth and Bloodline Awakening.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="HeiMoShangPrologue",name="Black Wound",kind=2,description="A legendary Dark Demon Sky Fortress weapon tied to Hun's origins. It can trigger Bloodline Rebirth and Bloodline Awakening.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="HorizontalBlade",name="Bandit-Quelling Savage Blade",kind=2,description="A savage shield-breaking blade that builds Red Blade energy for a powerful release.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="IronBlade",name="Broken Steel Blade",kind=2,description="A broken, rust-scarred blade that causes bleeding and can trigger severe bleeding.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="JadeDualChakram",name="Twin Jade Rings",kind=2,description="A pair of unusual ring blades that flow through attacks and can be thrown to kill at range.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="Jigsaw",name="Limb-Severing Saw",kind=2,description="A coarse-toothed saw with strong shield-breaking power, cruel toward enemies unable to resist.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="Long",name="Long Black Wound",kind=2,description="Lian Xie's long blade, copied from Black Wound's material, delivers sweeping, powerful attacks.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="LuanYing",name="Chaotic Oriole Sword",kind=2,description="The young lord's extraordinarily sharp, swift, and lightweight blade.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="MoQie",name="Demon Cutter",kind=2,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_WeaponData"}, +{id="PoJun",name="Army Breaker",kind=2,description="A formation-breaking long saber with strong shield-breaking power and charging attacks.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="RenOuQingTongJian",name="Celestial Mystery Bronze Sword",kind=2,description="A heavy bronze sword with strong shield-breaking attacks and rock-solid defense.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="RenOuYanYueDao",name="Crescent-Moon Glaive",kind=2,description="A blue-dragon-engraved blade whose sweeping and chopping attacks break through all resistance.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="SlitheringSword",name="Spirit Snake Flexible Sword",kind=2,description="A flexible snake-like blade that deflects attacks and lends serpentine mobility.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="SnakeDual",name="White Python and Red Viper",kind=2,description="A light short blade paired with a winding long blade; their changing movements resemble two dancing snakes.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="Tang",name="Black Wound",kind=2,description="A bloodred weapon between saber and sword that has accompanied Hun through countless trials.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="Tang_HorseCartCombat",name="Black Wound",kind=2,description="A bloodred weapon between saber and sword that has accompanied Hun through countless trials.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="TangPrologue",name="Black Wound",kind=2,description="A bloodred weapon between saber and sword that has accompanied Hun through countless trials.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="TianShaShuangYue",name="Heavenly Fiend Twin Battleaxes",kind=2,description="Short, dangerous blades whose normal combos build Fiendish Energy for varied finishing attacks.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="WoodenSword",name="Wooden Black Wound",kind=2,description="A wooden practice blade used in youth, proving exceptional skill and confidence.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="WoodenSwordHun",name="Wooden Black Wound",kind=2,description="A wooden practice blade used in youth, proving exceptional skill and confidence.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="XieHuo",name="Blazing Blade",kind=2,description="A long blade that turns Sha-Chi into flames, shatters shields, and burns enemies.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="YuuBlade",name="Demon Saw",kind=2,description="Two strange blades once controlled by Yu Yao's legs. Hun wields them by hand, but their demonic energy remains.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="ZhanMaBlade",name="Desperate Horse-Cleaving Saber",kind=2,description="A powerful shield-breaking, blood-drinking blade that heals by stealing enemy blood or spends your blood to kill.",fallback=false,legacy=false,source="DT_WeaponData"}, +{id="ZhuGuangBaoQi",name="Jeweled Splendor",kind=2,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_WeaponData"}, +{id="ZiMingJian",name="Violet Nether Sword",kind=2,description="A smooth, pure-gold sword that can imitate Zuo Shang's distinctive golden sword energy.",fallback=false,legacy=false,source="DT_WeaponData"}, +}}, +{name="Phantom Edges",items={ +{id="BaWangLianQiu",name="Overlord's Flail",kind=3,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_ShaqiWeaponData"}, +{id="BrutalAxe",name="Brutal Axe",kind=3,description="A thick-bladed great axe once wielded by Axe Boss Peng Meng.",fallback=false,legacy=false,source="DT_ShaqiWeaponData"}, +{id="CaoOuSiXian",name="Puppet-Control Bell",kind=3,description="An old ritual bell left by the puppeteer Dang Hui.",fallback=false,legacy=false,source="DT_ShaqiWeaponData"}, +{id="CuiXinPiPa",name="Heart-Rending Pipa",kind=3,description="A splendid pipa once carried by the musician puppet Yu Zan.",fallback=false,legacy=false,source="DT_ShaqiWeaponData"}, +{id="DuYanGong",name="One-Eyed Bow",kind=3,description="An elegant longbow once used by the One-Eyed Archer.",fallback=false,legacy=false,source="DT_ShaqiWeaponData"}, +{id="HuangJinHuoChong",name="Golden Musket",kind=3,description="A solid red-gold musket acquired from Deft-Handed Xiao Zhang.",fallback=false,legacy=false,source="DT_ShaqiWeaponData"}, +{id="HuoLiuXing",name="Fiery Meteor",kind=3,description="A meteor hammer once used by Fiery Meteor, leader of the underworld bailiffs.",fallback=false,legacy=false,source="DT_ShaqiWeaponData"}, +{id="HuoLiuXing",name="Fiery Meteor",kind=3,description="A meteor hammer once used by Fiery Meteor, leader of the underworld bailiffs.",fallback=false,legacy=false,source="DT_ShaqiWeaponData"}, +{id="JianKeZhaoJiLing",name="Swordsman's Summons",kind=3,description="The token with which the eldest Seven Stars swordsman rallied other heroes.",fallback=false,legacy=false,source="DT_ShaqiWeaponData"}, +{id="JinGua",name="Long-Handled Golden Melon Mace",kind=3,description="A long-handled heavy hammer once used by Wan Jun.",fallback=false,legacy=false,source="DT_ShaqiWeaponData"}, +{id="KuYeSiZhuChuan",name="Bitterleaf Temple Prayer Beads",kind=3,description="Plain prayer beads left by Master Bihai of Bitterleaf Temple.",fallback=false,legacy=false,source="DT_ShaqiWeaponData"}, +{id="LionHead",name="Blazing Lion Head",kind=3,description="The distinctive lion-head weapon once wielded by Lie Yan, Lord of the Lion Dance.",fallback=false,legacy=false,source="DT_ShaqiWeaponData"}, +{id="MiaoShouFeiDao",name="Deft-Handed Throwing Knives",kind=3,description="Ornate willow-leaf throwing knives obtained from Deft-Handed Xiao Zhang.",fallback=false,legacy=false,source="DT_ShaqiWeaponData"}, +{id="MoJian",name="Ink Blood Without a Trace",kind=3,description="The ink-colored sword once worn by Mo Jizi.",fallback=false,legacy=false,source="DT_ShaqiWeaponData"}, +{id="MoShou",name="Demon Hand",kind=3,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_ShaqiWeaponData"}, +{id="NiTouche",name="Dump Truck",kind=3,description="An armored war cart left by Old Gentou.",fallback=false,legacy=false,source="DT_ShaqiWeaponData"}, +{id="ShachiHook",name="Life-Reaping Chain Sickle",kind=3,description="Paired chain sickles once used by the hunter Life Reaper.",fallback=false,legacy=false,source="DT_ShaqiWeaponData"}, +{id="TanLang",name="Greedy Wolf",kind=3,description="A spiked mace once wielded by the fallen general Wu Xuan.",fallback=false,legacy=false,source="DT_ShaqiWeaponData"}, +{id="ThunderSpear",name="Thunder Spear",kind=3,description="A slender spear wreathed in lightning, once wielded by Chang Hong.",fallback=false,legacy=false,source="DT_ShaqiWeaponData"}, +{id="TieGongZhuQuanTao",name="Iron Gauntlets",kind=3,description="Steel gauntlets obtained from Tie Kuang.",fallback=false,legacy=false,source="DT_ShaqiWeaponData"}, +{id="TigerCannon",name="Tiger Cannon",kind=3,description="A distinctive cannon once used by Organization expert Lei Dang.",fallback=false,legacy=false,source="DT_ShaqiWeaponData"}, +{id="UnnamedBow",name="Feather Bow",kind=3,description="A powerful bow restrung and repaired by the old archer.",fallback=false,legacy=false,source="DT_ShaqiWeaponData"}, +{id="XueDiZi",name="Flying Guillotine",kind=3,description="An unconventional weapon once wielded by Huang Xingzi.",fallback=false,legacy=false,source="DT_ShaqiWeaponData"}, +{id="XueSeLingDang",name="Bloodred Bell",kind=3,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_ShaqiWeaponData"}, +{id="XuKongHuaShan",name="Void Ornate Fan",kind=3,description="A magnificent flying fan gifted by Xukong in the realm of mirrored flowers and reflected moonlight.",fallback=false,legacy=false,source="DT_ShaqiWeaponData"}, +{id="YouLongCha",name="Wandering Dragon Fork",kind=3,description="A dragon-toothed harpoon once used by You Long, leader of the Waterway Gang.",fallback=false,legacy=false,source="DT_ShaqiWeaponData"}, +{id="YouLongTou",name="Wandering Dragon Head",kind=3,description="A strange water-spouting dragon-head weapon forged by Gang Leader You Long.",fallback=false,legacy=false,source="DT_ShaqiWeaponData"}, +{id="ZhuoBiDun",name="Crude Wall Shield",kind=3,description="A broad, heavy shield once owned by the gatekeeper Crude Wall.",fallback=false,legacy=false,source="DT_ShaqiWeaponData"}, +}}, +{name="Accessories",items={ +{id="AC_ActHit",name="Shadow-Motion Hunting Device",kind=4,description="Damage and Sha-Chi depletion against enemies performing attacks +7%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_ActHitShachi",name="ActHitShachi",kind=4,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_Accessory"}, +{id="AC_AnimMovement",name="Dance Fan",kind=4,description="An attack's movement distance increases its damage, up to +40%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_Attack",name="Strength Wraps",kind=4,description="Damage dealt +5%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_BigHit",name="Despair Charm",kind=4,description="The next attack's damage bonus increases over time, reaching +25% after 4 seconds. Hitting an enemy resets it.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_Bleed",name="Snow and Blood",kind=4,description="When a bleeding enemy is nearby, damage dealt +10%. Enemies take 20% more bleeding damage while attacking.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_BreakAttack",name="Pursuit Order",kind=4,description="Damage against guard-broken enemies +7%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_BreakDrink",name="Small Calming Gourd",kind=4,description="Drinking medicine recovers a broken guard and prevents Sha-Chi consumption for 3 seconds.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_BreakRecover",name="Agarwood Prayer Beads",kind=4,description="Recovery time from being guard-broken -15%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_BreakRegen",name="Loving Mother's Charm",kind=4,description="Recover 10% of your health when your guard is broken.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_BreakShield",name="Shield-Breaking Talisman",kind=4,description="Shield durability depletion +50%; damage received from spiked shields -30%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_Chaos",name="Chaos Berserker Ring",kind=4,description="When chaos flames burn an enemy's Sha-Chi, recover 50% of the Sha-Chi that enemy loses.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_Combo",name="Righteous Blood Beneath the Clouds",kind=4,description="Landing more than two hits within 1 second grants +15% damage for the next 2 seconds. Cooldown: 5 seconds.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_Control",name="Fine Thread Ball",kind=4,description="Damage and Sha-Chi depletion inflicted by summons +50%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_Counter",name="Counterattack Bracers",kind=4,description="Damage dealt +20% for 2 seconds after a perfect block.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_Deflect",name="Ingenious Mechanism Ring",kind=4,description="Sha-Chi consumed when blocking while holding the stance input -20%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_Double",name="Deft-Handed Linked Rings",kind=4,description="Dual-wielded main-weapon damage +10%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_Drink",name="Aromatic Medicine Box",kind=4,description="Healing from medicine bottles +20%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_DrinkCost",name="Secluded Mansion Medicine Jar",kind=4,description="Drinking medicine has an 8% chance not to consume a use.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_EasyExecution",name="EasyExecution",kind=4,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_Accessory"}, +{id="AC_Electrified",name="Moon-Thunder Ornate Lantern",kind=4,description="Applying a lightning-attraction effect automatically strikes nearby enemies with lightning.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_Elemental",name="Feather Fan Remnant",kind=4,description="Ice, fire, and lightning damage dealt +20%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_ElementalResistance",name="ElementalResistance",kind=4,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_Accessory"}, +{id="AC_ElementRegen",name="Spell-Nullifying Whisk Threads",kind=4,description="Applying fire, ice, lightning, or poison builds elemental energy. Filling it restores 1 Dark Source.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_EvadePhantom",name="Shadow Phantom Mask",kind=4,description="A perfect block or dodge that triggers Ghost Step creates three Shadow Phantom Masks that attack nearby enemies automatically.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_Execution",name="Ten-Thousand-Kill Clever Lock",kind=4,description="Enemies can be executed at a 5% higher health threshold while guard-broken. Executions grant +5% damage for 10 seconds, stacking twice.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_ExecutionSwitchCool",name="Executioner's Headscarf",kind=4,description="Executing an enemy reduces the main-weapon switching cooldown by 1 second.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_Frost",name="Spell-Nullifying Icicle",kind=4,description="Strength and duration of the ice-slowing effect inflicted on enemies +30%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_Health",name="Exotic Woven Curio",kind=4,description="Maximum health +15%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_HealthResistance",name="Ancient Armor Fragment",kind=4,description="Higher health grants greater damage reduction, reaching 20% at full health.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_HeavyAttackCost",name="Overwhelming Righteousness",kind=4,description="Sha-Chi combo resource cost -15%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_HeavyAttackDamage",name="Broken Vessel",kind=4,description="Damage +15% when a Sha-Chi combo consumes Sha-Chi.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_HeavyAttackShachi",name="Dugu's Absolute Seal",kind=4,description="Sha-Chi depletion inflicted by Sha-Chi combos +8%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_Ignite",name="Auspicious Lion Fireball",kind=4,description="Fire damage +20%. Ignition caused by attacks spreads to other nearby enemies.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_Long",name="Deft Hand of Immense Strength",kind=4,description="Two-handed main-weapon damage +10%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_Loot",name="Treasure Basin",kind=4,description="Remnant Dust drops +10%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_LowHealth",name="Last-Stand Survival Token",kind=4,description="Deal more damage as your health falls, up to +25%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_LowShachi",name="United-Heart Twin-Fish Pendant",kind=4,description="Deal more damage as your Sha-Chi falls, up to +20%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_MagicWeapon",name="Hundred-Aspect Nuo Mask",kind=4,description="Summoning Shadow Armaments cost 1 less Dark Source. Their summons gain a berserk effect that slightly increases damage.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_MartialWeapon",name="Rough Radiant Heart",kind=4,description="Heavy attacks that hit enemies accumulate temporary Dark Source, which martial-arts Shadow Armaments spend first.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_PerfectFrame",name="Primordial Meridian Device",kind=4,description="Perfect block and perfect dodge timing windows +15%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_PhysicalResistance",name="PhysicalResistance",kind=4,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_Accessory"}, +{id="AC_Poison",name="Virulent Poison Pouch",kind=4,description="All main-weapon attacks have a 15% chance to poison enemies.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_PoisonRegen",name="Living Wood Talisman",kind=4,description="Bleeding and life steal work at 50% effectiveness against puppets, golden bodies, and phantom bodies.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_PowerWeapon",name="Guardian Statue",kind=4,description="Destruction Shadow Armaments cost 1 additional Dark Source and deal 75% more damage.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_RandomDrink",name="Consecrated Jade Pendant",kind=4,description="Drinking medicine randomly ignites you and nearby enemies, poisons both, creates an auto-attacking chaos fireball, or fully heals you and restores 50% Sha-Chi.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_Ranged",name="Sharpshooter's Eye",kind=4,description="Damage against distant enemies +15%. The lock-on dot flashes red while the effect is active.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_RangedWeapon",name="Formless Divine Mirror",kind=4,description="Heavy attacks that hit enemies accumulate temporary Dark Source, which ranged Shadow Armaments spend first.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_Regen",name="Regen",kind=4,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_Accessory"}, +{id="AC_Resistance",name="Resistance",kind=4,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_Accessory"}, +{id="AC_ResistBleed",name="Blood-Clotting Talisman",kind=4,description="Chance of bleeding and severe-bleeding accumulation rate -50%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_ResistFire",name="Fire-Warding Talisman",kind=4,description="Fire damage received and burn accumulation rate -50%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_ResistIce",name="Ice-Warding Talisman",kind=4,description="Ice-slowing effects received and freeze duration -50%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_ResistNonBreak",name="Solid Rock Bracers",kind=4,description="Damage received while your guard is intact -15%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_ResistPoison",name="Food Preservation Jar",kind=4,description="Poison damage received -50%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_ResistRanged",name="Arrow-Warding Charm",kind=4,description="Ranged damage and Sha-Chi depletion received -20%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_ResistThunder",name="Lightning-Warding Talisman",kind=4,description="Lightning damage received and paralysis accumulation rate -50%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_Rider",name="Cavalry-Slaying Talisman",kind=4,description="Damage against cavalry enemies +25%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_Shachi",name="String-Music Charm",kind=4,description="Maximum Sha-Chi +15%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_ShachiAttack",name="Baishan Secret Order",kind=4,description="Sha-Chi depletion inflicted on enemies +5%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_ShachiCool",name="Rouge Box",kind=4,description="Delay before Sha-Chi regeneration begins after spending it -50%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_ShachiRegen",name="Sha-Chi Headscarf",kind=4,description="Sha-Chi recovery speed +15%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_ShachiWeapon",name="Dark Source Cube",kind=4,description="Damage from all Shadow Armaments +12%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_SpiritShadow",name="Small Dark Source Cage",kind=4,description="Shadow Armament follow-up attacks have a 33% chance to restore 1 Dark Source.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_Stance",name="Spring-Mechanism Heart Mirror",kind=4,description="Natural Sha-Chi drain while holding the stance input -30%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_Stealth",name="Breath-Holding Wraps",kind=4,description="Noise from footsteps and assassinations -50%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_Summon",name="Summon",kind=4,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_Accessory"}, +{id="AC_SummonDuration",name="Puppet's Wooden Heart",kind=4,description="Summoned creatures remain present 25% longer.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_SwitchEndure",name="Wondrous Scabbard",kind=4,description="Switching main weapons grants hyper armor and 25% damage reduction for 2 seconds.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_Tang",name="Deft Skill in Hand",kind=4,description="One-handed main-weapon damage +10%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_TimerEndure",name="Hundred-Battle Demon Body",kind=4,description="After 10 seconds without taking damage, negate the next instance of damage.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_UltimateBreak",name="Ultimate Technique Charm",kind=4,description="Ultimate technique damage against guard-broken enemies +20%.",fallback=false,legacy=false,source="DT_Accessory"}, +{id="AC_UltimateCharge",name="Nameless Master's Thumb Ring",kind=4,description="Pure Sha-Chi accumulation rate +5%.",fallback=false,legacy=false,source="DT_Accessory"}, +}}, +{name="Medicine",items={ +{id="FeiJiu",name="Boiling Wine Brew",kind=5,description="Sword fanatic Hua Qianxiao's brewing bottle boils and mellows wine. Drinking it turns accumulated intoxication into Sha-Chi.",fallback=false,legacy=false,source="DT_MedicineTable"}, +{id="GuiShen",name="Spirit-Restoring Soup",kind=5,description="Desperate Lujia villagers devised this remedy to wake sleeping relatives, then offered it to the Holy Mother when ordinary medicine failed.",fallback=false,legacy=false,source="DT_MedicineTable"}, +{id="Hulu",name="Medicine Gourd",kind=5,description="The Organization's standard medicine gourd contains a Snake House remedy that heals wounds. Hun kept one after leaving the Organization.",fallback=false,legacy=false,source="DT_MedicineTable"}, +{id="JinJiHeJi",name="Forbidden Mixture",kind=5,description="An assassins' secret mixture of the dead's Sha-Chi and unstable illusion residue. It heals wounds and draws power from the Hidden Martial World.",fallback=false,legacy=false,source="DT_MedicineTable"}, +{id="Kuye",name="Bitterleaf Dew",kind=5,description="Bitterleaf Temple's prized elixir temporarily hardens the body against blades. Righteous disciples have fought each other to possess it.",fallback=false,legacy=false,source="DT_MedicineTable"}, +{id="Medicine_AdditionalRecover",name="Life-Saving Divine Medicine",kind=5,description="A researcher with a remaining conscience hid this medicine in the augmentation tower to give its victims a chance to survive.",fallback=false,legacy=false,source="DT_MedicineTable"}, +{id="Medicine_Attack",name="Lament Medicine",kind=5,description="A medicine bottle from the Organization's Snake House, containing fragments of sorrowful memories.",fallback=false,legacy=false,source="DT_MedicineTable"}, +{id="Medicine_Duration",name="Merciful Flower Nectar",kind=5,description="A mother spent the last of her dowry on a blessed prescription when her son joined the Righteous. She brewed this nectar for him every year.",fallback=false,legacy=false,source="DT_MedicineTable"}, +{id="Medicine_Element",name="Ritual Medicinal Wine",kind=5,description="Ritual wine offered before performances to bless the audience. Since the manor changed hands, the masked worshippers have driven away no spirits.",fallback=false,legacy=false,source="DT_MedicineTable"}, +{id="Medicine_Ghost",name="Phantom Body Elixir",kind=5,description="A rejected disciple developed this medicine while studying illusion and pharmacology, seeking to blur the boundary between reality and illusion.",fallback=false,legacy=false,source="DT_MedicineTable"}, +{id="Medicine_Interrupt",name="Nether Ghost Medicine",kind=5,description="An Organization physician combined illusion and medicine to heal a person's reflection in the Hidden Martial World and generate pure Sha-Chi.",fallback=false,legacy=false,source="DT_MedicineTable"}, +{id="Medicine_Recover",name="Endless Water",kind=5,description="Xie Qiudong brewed autumn maple leaves into a medicine that gathers the dead's lingering Sha-Chi and replenishes itself.",fallback=false,legacy=false,source="DT_MedicineTable"}, +{id="Medicine_ResistanceElement",name="Green Snake Potion",kind=5,description="Xie Huichun's unfinished search for a cure to Sha-Chi augmentation eventually became this revised Green Snake House formula.",fallback=false,legacy=false,source="DT_MedicineTable"}, +{id="Medicine_ShachiAttack",name="Sha-Chi Hemolysis Catalyst",kind=5,description="A potent, dangerous remedy traded by the Waterway Gang. It forces Sha-Chi into the blood, burning like fire, and helps boatmen survive deadly conditions.",fallback=false,legacy=false,source="DT_MedicineTable"}, +{id="Medicine_UltimateCharge",name="Longevity Drink",kind=5,description="Bandits stole this medicinal drink from merchants but lacked the mechanical knowledge needed to open its container.",fallback=false,legacy=false,source="DT_MedicineTable"}, +{id="NingFengDan",name="Edge-Concentrating Pill",kind=5,description="Originally intended to calm Sha-Chi, this medicine instead stirs fighting spirit and helps retain gathered power.",fallback=false,legacy=false,source="DT_MedicineTable"}, +{id="RongQi",name="Vessel Maintenance Fluid",kind=5,description="An angular metal container bears a note reporting excellent recovery in Subject Thirteen and recommending further augmentation research.",fallback=false,legacy=false,source="DT_MedicineTable"}, +}}, +{name="Books",items={ +{id="B_kunlunsanjie",name="Lost Tales of the Three Heroes of Kunlun",kind=1,description="No in-game description was recovered for this entry.",fallback=true,legacy=true,source="DT_BookData"}, +{id="Book_03",name="Clues to Strange Tales of the Martial World",kind=1,description="A collection of commissions, covert investigations, and unresolved martial-world secrets; rereading may reveal clues.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Book_04",name="Investigation of Villagers' Belongings",kind=1,description="Wrinkled diary pages preserve villagers' struggles and their determination to keep living.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Book_05",name="Lives of Pang Town's People",kind=1,description="Memories of Pang Town's lively streets and performances contrast with cries of suffering drowned out by celebration.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Book_06",name="Gleanings from the Righteous Alliance",kind=1,description="The Righteous Alliance's banners still fly, but its once-idealistic followers have scattered.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Book_08",name="The Mystery of Sha-Chi Augmentation",kind=1,description="Sha-Chi augmentation spread with the Pavilion of Eleven, increasing power but inevitably reducing people to murderous shells.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Book_09",name="Ahua the Bride",kind=1,description="A bride's lover dies and a foolish groom arrives instead; she turns to a rumored method of returning the dead.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Book_10",name="The Three Heroes of Kunlun",kind=1,description="People keep repeating the Three Heroes' glorious name as if it could preserve the collapsing Righteous cause.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Book_11",name="Mo Jizi's Disciples",kind=1,description="Disciples rescued, guided, or taught by their masters resolve to repay that kindness and uphold righteousness.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Book_12",name="Huang Xingzi's Betrayal",kind=1,description="A reflection asks what lies beneath accusations of betrayal and how righteousness can survive ruthless rule.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Book_14",name="Deft-Handed Xiao Zhang's Treasure List",kind=1,description="Xiao Zhang seeks objects carrying forgotten histories whose worth cannot be measured in gold or silver.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Book_15",name="Zuo Shang's Chess Game",kind=1,description="An ongoing chess battle hints at a far older, hidden game beneath the board.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Book_16",name="Imprisoned Life",kind=1,description="The long-vanished Life-Imprisoner sect returns from beyond the pass with its soul-transfer technique.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Book_17",name="Dream Bailiff",kind=1,description="The eastern Life-Imprisoners obey Dream Bailiff, a title apparently meaning the Flower-Veiled Holy Mother's envoy.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Book_19",name="The Mystery of the Holy Mother",kind=1,description="A reflection asks whether covering faces with flowers welcomes the Holy Mother or merely blinds worshippers.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Book_20",name="Assorted Written Vows",kind=1,description="Countless wishes address the Holy Mother, but the writer wonders whether anyone returned to give thanks for fulfillment.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Book_21",name="The Past of Dreamplay Manor",kind=1,description="A verse celebrates Dreamplay Manor's setting, performances, feasts, and martial exhibitions beside the forbidden mountain.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Book_22",name="Gleanings from the Waterway Gang",kind=1,description="The Waterway Gang judges people by swimming and fishing skill rather than their past, offering refuge to the dispossessed.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Book_CS_01",name="Notes on Contemplation",kind=1,description="The Thinker visits every martial sect without prejudice and records its secrets and history.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Book_MengChai",name="Dream Bailiff Experiment Notes",kind=1,description="The notes replace every human name with a number, recording a researcher's twisted zeal.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Book_MoJiZi",name="Mo Jizi's Final Words",kind=1,description="Mo Jizi compiled records of the Organization alliance and subsequent events, leaving readers to judge their merits and wrongs.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Book_XC_01",name="The Organization",kind=1,description="The Organization exists to enforce its rules, beyond good or evil; members who leave are hunted to death.",fallback=false,legacy=false,source="DT_InventoryData"}, +{id="Book_XiongFu",name="Case Files: The Four Vicious Axes",kind=1,description="A collection of letters and notes connects clues behind the Four Vicious Axes case to reveal their wrongful condemnation.",fallback=false,legacy=false,source="DT_InventoryData"}, +}}, +{name="Outfits",items={ +{id="BrowLashCard_Default",name="BrowLashCard_Default",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +{id="BrowLashCard_JiGuanMoQu",name="BrowLashCard_JiGuanMoQu",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +{id="DefaultHairStyle",name="Standard Hairstyle",kind=6,description="No in-game description was recovered for this entry.",fallback=false,legacy=false,source="DT_PBZAppearanceTable"}, +{id="DefaultHairStyle_Seq",name="Standard Hairstyle",kind=6,description="No in-game description was recovered for this entry.",fallback=false,legacy=false,source="DT_PBZAppearanceTable"}, +{id="HairStyle_Climax",name="HairStyle_Climax",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +{id="HairStyle_Climax_Seq",name="Standard Hairstyle",kind=6,description="No in-game description was recovered for this entry.",fallback=false,legacy=false,source="DT_PBZAppearanceTable"}, +{id="HairStyle_FengXue",name="Standard Hairstyle",kind=6,description="No in-game description was recovered for this entry.",fallback=false,legacy=false,source="DT_PBZAppearanceTable"}, +{id="HairStyle_FengXue_Seq",name="Standard Hairstyle",kind=6,description="No in-game description was recovered for this entry.",fallback=false,legacy=false,source="DT_PBZAppearanceTable"}, +{id="HairStyle_GuYou",name="Standard Hairstyle",kind=6,description="No in-game description was recovered for this entry.",fallback=false,legacy=false,source="DT_PBZAppearanceTable"}, +{id="HairStyle_GuYou_Seq",name="Standard Hairstyle",kind=6,description="No in-game description was recovered for this entry.",fallback=false,legacy=false,source="DT_PBZAppearanceTable"}, +{id="HairStyle_JiGuanMoQu",name="Standard Hairstyle",kind=6,description="No in-game description was recovered for this entry.",fallback=false,legacy=false,source="DT_PBZAppearanceTable"}, +{id="HairStyle_JiGuanMoQu_Seq",name="Standard Hairstyle",kind=6,description="No in-game description was recovered for this entry.",fallback=false,legacy=false,source="DT_PBZAppearanceTable"}, +{id="HairStyle_MoTian",name="HairStyle_MoTian",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +{id="HairStyle_MoTian_Seq",name="HairStyle_MoTian_Seq",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +{id="HairStyle_YaYu",name="Standard Hairstyle",kind=6,description="No in-game description was recovered for this entry.",fallback=false,legacy=false,source="DT_PBZAppearanceTable"}, +{id="HairStyle_YaYu_Seq",name="Standard Hairstyle",kind=6,description="No in-game description was recovered for this entry.",fallback=false,legacy=false,source="DT_PBZAppearanceTable"}, +{id="HairStyle_ZhuiMing",name="Standard Hairstyle",kind=6,description="No in-game description was recovered for this entry.",fallback=false,legacy=false,source="DT_PBZAppearanceTable"}, +{id="HairStyle_ZhuiMing_Seq",name="Standard Hairstyle",kind=6,description="No in-game description was recovered for this entry.",fallback=false,legacy=false,source="DT_PBZAppearanceTable"}, +{id="Hat_Default",name="Standard Bamboo Hat",kind=6,description="No in-game description was recovered for this entry.",fallback=false,legacy=false,source="DT_PBZAppearanceTable"}, +{id="Hat_Default_Climax",name="Standard Bamboo Hat",kind=6,description="No in-game description was recovered for this entry.",fallback=false,legacy=false,source="DT_PBZAppearanceTable"}, +{id="Hat_Fengxue",name="Hat_Fengxue",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +{id="Hat_GuYou",name="Standard Bamboo Hat",kind=6,description="No in-game description was recovered for this entry.",fallback=false,legacy=false,source="DT_PBZAppearanceTable"}, +{id="Hat_MoTian",name="Hat_MoTian",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +{id="Hat_YaYu",name="Hat_YaYu",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +{id="Hat_ZhuiMing",name="Standard Bamboo Hat",kind=6,description="No in-game description was recovered for this entry.",fallback=false,legacy=false,source="DT_PBZAppearanceTable"}, +{id="Hun_OutFit_Climax",name="Black Wound",kind=6,description="Light clothes balancing protection and agility. Their dark-red trail during Ghost Step confuses enemies.",fallback=false,legacy=false,source="DT_PBZAppearanceTable"}, +{id="Hun_OutFit_Climax_Hat",name="Hun_OutFit_Climax_Hat",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +{id="Hun_OutFit_Default",name="Black Wound (On the Run)",kind=6,description="Light traveling clothes, damaged in a tremendous unwitnessed duel, that still suit Hun's movements.",fallback=false,legacy=false,source="DT_PBZAppearanceTable"}, +{id="Hun_OutFit_FengXue",name="Wind and Snow",kind=6,description="Travel-worn martial clothing with a boy's portrait in its pocket, holding a father's unbroken resolve.",fallback=false,legacy=false,source="DT_PBZAppearanceTable"}, +{id="Hun_OutFit_GuYou",name="Old Friend",kind=6,description="Formal martial attire reinforced with fish-scale armor for prolonged combat, carrying hope of meeting an old friend again.",fallback=false,legacy=false,source="DT_PBZAppearanceTable"}, +{id="Hun_OutFit_JiGuanMoQu",name="Mechanical Demon Body",kind=6,description="Armor turned an uncanny crimson as Sha-Chi boils together with its wearer's bloodline.",fallback=false,legacy=false,source="DT_PBZAppearanceTable"}, +{id="Hun_OutFit_MoTian",name="Legacy",kind=6,description="A master's unarmored attire, worn after the questions of power, bloodline, and origin have been answered.",fallback=false,legacy=false,source="DT_PBZAppearanceTable"}, +{id="Hun_OutFit_YaYu",name="Martial World Legend",kind=6,description="Attire associated with a swordsman's legend: no one can catch his shadow or withstand his blade.",fallback=false,legacy=false,source="DT_PBZAppearanceTable"}, +{id="Hun_OutFit_ZhuiMing",name="Life Reaper",kind=6,description="Loose hunting clothes and a heavy hood protect Hun against the wind; little but time can claim him.",fallback=false,legacy=false,source="DT_PBZAppearanceTable"}, +{id="HunBody",name="Standard Outfit",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +{id="HunBodyClimax",name="Outfit from Ten Years Ago",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +{id="HunBodyFengXue",name="HunBodyFengXue",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +{id="HunBodyGuYou",name="HunBodyGuYou",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +{id="HunBodyJiGuanMoQu",name="HunBodyJiGuanMoQu",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +{id="HunBodyMoTian",name="Demon Sky Outfit",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +{id="HunBodyYaYu",name="HunBodyYaYu",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +{id="HunBodyZhuiMing",name="HunBodyZhuiMing",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +{id="MeshBand_Climax",name="MeshBand_Climax",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +{id="MeshBand_Default",name="MeshBand_Default",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +{id="MeshBand_FengXue",name="MeshBand_FengXue",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +{id="MeshBand_GuYou",name="MeshBand_GuYou",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +{id="MeshBand_MoTian",name="MeshBand_MoTian",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +{id="MeshBand_YaYu",name="MeshBand_YaYu",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +{id="MeshBand_ZhuiMing",name="MeshBand_ZhuiMing",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +{id="Neck_Climax",name="Neck_Climax",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +{id="Neck_Default",name="Neck_Default",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +{id="Neck_JiGuanMoQu",name="Neck_JiGuanMoQu",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +{id="Neck_MoTian",name="Neck_MoTian",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +{id="Neck_YaYu",name="Neck_YaYu",kind=6,description="No in-game description was recovered for this entry.",fallback=true,legacy=false,source="DT_PBZAppearanceTable"}, +}}, +} +local signatures = { +PBZ_IB_Tick="40 57 48 81 EC F0 00 00 00 44 0F 29 84 24 A0 00 00 00 44 0F 28 C1 48 8B F9 41 83 F8 03 0F 85 D8 00 00 00 F6 81 20 06 00 00 04 0F 85 CB 00 00 00 48 8B 05 ?? ?? ?? ??", +PBZ_IB_AddProps="44 88 4C 24 20 4C 89 44 24 18 89 54 24 10 55 57 41 54 41 55 41 57 48 8D 6C 24 C9 48 81 EC D0 00 00 00 45 0F B6 F9 44 8B EA 48 8B F9 E8 ?? ?? ?? ?? 48 8B 55 77 48 8B C8", +PBZ_IB_AddWeapon="48 89 5C 24 08 44 88 44 24 18 48 89 54 24 10 55 56 57 41 54 41 55 41 56 41 57 48 8B EC 48 83 EC 70 45 0F B6 E9 48 8B F9 45 84 C0 0F 84 02 04 00 00 E8 5A 0E 01 00 48 8B 55 48 48 8B C8 E8 AE 1D", +PBZ_IB_AddAccessory="48 89 54 24 10 55 56 41 57 48 8B EC 48 83 EC 40 48 8B C2 45 0F B6 F8 48 8B F1 48 8D 15 ?? ?? ?? ?? 48 8B C8 E8 ?? ?? ?? ?? 84 C0 0F 85 B1 03 00 00 48 8B 4D 28 48 8D 15 ?? ?? ?? ??", +PBZ_IB_AddMedicine="48 89 54 24 10 55 57 41 54 48 83 EC 50 48 8B C2 41 0F B6 E8 48 8B F9 48 8D 15 ?? ?? ?? ?? 48 8B C8 45 0F B6 E1 E8 ?? ?? ?? ?? 84 C0 0F 85 BB 03 00 00 48 8B 4C 24 78", +PBZ_IB_AddOutfit="48 89 54 24 10 57 48 83 EC 30 48 8B C2 48 8B F9 48 8B C8 48 8D 15 ?? ?? ?? ?? E8 ?? ?? ?? ?? 84 C0 0F 85 ?? ?? ?? ?? 48 8B 4C 24 48 48 8D 15 ?? ?? ?? ?? E8 ?? ?? ?? ??", +PBZ_IB_NameSite="41 B9 01 00 00 00 4C 8D 05 ?? ?? ?? ?? BA 0E 00 00 00 48 8D 4D E7 E8 ?? ?? ?? ?? 48 8B 18 E8 ?? ?? ?? ?? 48 8B D3 48 8B C8 E8 ?? ?? ?? ?? 48 8D 0D ?? ?? ?? ?? 48 89 05 ?? ?? ?? ??", +PBZ_IB_WorldLoad="48 8B 05 ?? ?? ?? ?? 48 85 C0 75 ?? 80 3D ?? ?? ?? ?? 02 72 ?? 48 8D 15 ?? ?? ?? ?? 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? 33 C0 48 83 C4 20 5B C3", +PBZ_IB_ClassRef="C7 44 24 20 C0 0D 00 00 E8 ?? ?? ?? ?? 48 8B 05 ?? ?? ?? ?? 48 83 C4 78 C3", +} +local definitions = {} +for symbol, pattern in pairs(signatures) do + local address = AOBScanModuleUnique('PBZ.exe', pattern, '+X') + if not address then error('Item Browser: missing or ambiguous signature: '..symbol) end + definitions[#definitions+1] = ('define(%s,%X)'):format(symbol, address) +end +if syntaxcheck then return table.concat(definitions, '\n') end +if rawget(_G, 'PBZ_ItemBrowser') then + error('Item Browser already exists. Disable its entry before enabling another copy.') +end +pcall(unregisterSymbol,'PBZ_IB_Original') +pcall(unregisterSymbol,'PBZ_IB_Code') +local state = { pid=getOpenedProcessID(), catalog=catalog, buttons={}, ready=false, started=getTickCount() } +local worldRef = AOBScanModuleUnique('PBZ.exe', signatures.PBZ_IB_WorldLoad, '+X') +state.worldSlot = worldRef + 7 + readInteger(worldRef+3, true) +local function buildUI() +local form = createForm(false) +state.form = form +form.Caption = 'Phantom Blade Zero - Item Browser' +form.Name = 'PBZItemBrowser' +form.DoNotSaveInTable = true +form.setBorderStyle('bsNone') +form.ClientWidth, form.ClientHeight = 900, 790 +form.Color = 0x211A16 +form.Font.Name, form.Font.Size, form.Font.Color = 'Segoe UI', 10, 0xEFE8E0 +form.centerScreen() +local function label(caption,x,y,w,h,size) + local l=createLabel(form) + l.Parent=form; l.Caption=caption; l.AutoSize=false + l.Left,l.Top,l.Width,l.Height=x,y,w,h + if size then l.Font.Size=size end + return l +end +local title=label('PHANTOM BLADE ZERO',24,18,650,28,16) +title.Font.Style='[fsBold]' +title.OnMouseDown=function() form.dragNow() end +label('ITEM BROWSER',24,52,600,22,10) +local status=label('Preparing inventory functions...',24,750,850,26,9) +state.status=status +local heading=label('Select an item to read its English description',24,551,850,26,11) +local description=createMemo(form) +description.Parent=form +description.Left,description.Top,description.Width,description.Height=24,584,852,151 +description.ReadOnly=true +description.WordWrap=true +description.ScrollBars='ssVertical' +description.Color=0x2D251F +description.Font.Color=0xEFE8E0 +description.Lines.Text='Choose a category dropdown, then click Add Item to request one copy.\r\n\r\nEnglish descriptions are unofficial translated summaries. Entries with no recovered description are marked explicitly.' +local function rounded(control, radius) + local region=executeCodeLocalEx('gdi32.CreateRoundRectRgn',0,0,control.Width+1,control.Height+1,radius,radius) + if not region or region==0 then error('Could not create the rounded window region') end + local ok=executeCodeLocalEx('user32.SetWindowRgn',control.Handle,region,1) + if not ok or ok==0 then + executeCodeLocalEx('gdi32.DeleteObject',region) + error('Could not apply the rounded window region') + end +end +local function button(caption,x,y,w,h,onClick) + local b=createButton(form) + b.Parent=form; b.Caption=caption + b.Left,b.Top,b.Width,b.Height=x,y,w,h + b.OnClick=onClick + rounded(b,18) + return b +end +local function buttonsEnabled(enabled) + for _,b in ipairs(state.buttons) do b.Enabled=enabled end +end +local function cleanupHost() + if state.timer then state.timer.Enabled=false;state.timer.destroy();state.timer=nil end + if state.form then state.form.OnClose=nil;state.form.destroy();state.form=nil end + if rawget(_G,'PBZ_ItemBrowser')==state then _G.PBZ_ItemBrowser=nil end +end +state.cleanupHost=cleanupHost +local function requestDisable() + if state.disabling then return end + local record=state.ownerRecord + if not record or not record.Active then + local list=getAddressList() + record=nil + for i=0,list.Count-1 do + local candidate=list.getMemoryRecord(i) + if candidate.Active and (candidate.Script or ''):find('PBZ_ITEM_BROWSER_V2',1,true) then + if record then status.Caption='Multiple active browser entries found. Disable the intended entry in CE.';return end + record=candidate + end + end + end + if not record then status.Caption='Could not find the active browser entry. Disable it in Cheat Engine.';return end + state.ownerRecord=record + state.disabling=true + buttonsEnabled(false) + local ok,err=pcall(function() record.Active=false end) + if not ok or record.Active then + state.disabling=false;state.cleanupRequested=false;buttonsEnabled(true) + status.Caption='Could not disable: '..tostring(err or 'see the Cheat Engine error') + end +end +local function showDescription(item) + if not item then return end + heading.Caption=item.name + local parts={item.description or 'No in-game description was recovered for this entry.'} + parts[#parts+1]='Item ID: '..item.id + if item.fallback then parts[#parts+1]='Name translated from an internal row label.' end + if item.legacy then parts[#parts+1]='Legacy collection definition. The current inventory registry may reject this ID.' end + description.Lines.Text=table.concat(parts,'\r\n\r\n') +end +local function addItem(item) + if not item or not state.ready or state.pending then return end + if getOpenedProcessID()~=state.pid then + buttonsEnabled(false) + status.Caption='Game process changed. Disable this entry and enable it again after attaching.' + return + end + local box=state.mailbox + local current=readInteger(box) + if current==1 or current==2 then status.Caption='An item request is still pending.';return end + local world=readQword(state.worldSlot) + if not world or world==0 then status.Caption='No active game world. Load into the game first.';return end + if #item.id<1 or #item.id>255 or item.id:find('[^%w_]') then + status.Caption='This entry does not have a valid inventory item ID.';return + end + local ok=writeString(box+0x40,item.id,true) + and writeSmallInteger(box+0x40+#item.id*2,0) + and writeInteger(box+4,item.kind) + and writeInteger(box+0x10,#item.id) + and writeQword(box+0x18,world) + if not ok then status.Caption='Could not prepare the item request.';return end + state.pending=item + state.queuedAt=getTickCount() + buttonsEnabled(false) + status.Caption='Queued: '..item.name + if not writeInteger(box,1) then + state.pending=nil;buttonsEnabled(true);status.Caption='Could not submit the item request.' + end +end +state.addItem=addItem +for categoryIndex,category in ipairs(catalog) do + local y=89+(categoryIndex-1)*65 + label(category.name..' ('..#category.items..')',24,y,850,20,10) + local combo=createComboBox(form) + combo.Parent=form + combo.Left,combo.Top,combo.Width,combo.Height=24,y+23,682,30 + combo.Style='csDropDownList' + table.sort(category.items,function(a,b) + if a.name==b.name then return a.id1000 then + state.cleanupRequested=false;state.disabling=false;buttonsEnabled(true) + status.Caption='Disable did not restore the hook. The form remains available; see the CE error.' + end + return + end + if getOpenedProcessID()~=state.pid then + buttonsEnabled(false) + status.Caption='Game process changed. Re-enable this entry after attaching.' + return + end + if not state.ready then + local box=getAddressSafe('PBZ_IB_Mailbox') + if box and box~=0 then + state.mailbox=box;state.ready=true + state.tickAddress=getAddressSafe('PBZ_IB_Tick') + buttonsEnabled(true);status.Caption='Ready. Adds one item through the game inventory functions.' + form.show() + elseif getTickCount()-state.started>15000 then + state.timer.Enabled=false + state.timer.destroy() + form.destroy() + _G.PBZ_ItemBrowser=nil + end + return + end + if not state.pending then return end + local result=readInteger(state.mailbox) + if result==3 then + status.Caption='Request completed: '..state.pending.name..'. Check the inventory or pickup notice.' + elseif result==4 then + status.Caption='The game has no grantable inventory definition for this ID: '..state.pending.id + elseif result==5 then + status.Caption='World changed before the request ran. Select the item again.' + elseif result==6 then + status.Caption='Local backpack unavailable. Load into gameplay and try again.' + elseif result==1 or result==2 then + if getTickCount()-state.queuedAt>10000 then + status.Caption='Waiting for the game to process the request. Resume gameplay if paused.' + end + return + else + status.Caption='Request status is unavailable. Disable and re-enable the entry.' + return + end + writeInteger(state.mailbox,0) + state.pending=nil;buttonsEnabled(true) + end) + if not ok then + buttonsEnabled(false) + state.lastError=tostring(err) + status.Caption='Item Browser error: '..state.lastError + end +end +_G.PBZ_ItemBrowser=state +state.timer.Enabled=true +end +local ok,err=pcall(buildUI) +if not ok then + if state.timer then pcall(function() state.timer.destroy() end) end + if state.form then pcall(function() state.form.destroy() end) end + _G.PBZ_ItemBrowser=nil + error('Item Browser setup failed: '..tostring(err)) +end +return table.concat(definitions,'\n') +{$asm} +assert(PBZ_IB_Tick,40 57 48 81 EC F0 00 00 00 44 0F 29 84 24 A0 00 00 00) +alloc(PBZ_IB_Code,$3000) +alloc(PBZ_IB_Original,$20) +label(PBZ_IB_Mailbox) +label(PBZ_IB_Pass) +label(PBZ_IB_FindBP) +label(PBZ_IB_NextBP) +label(PBZ_IB_HaveBP) +label(PBZ_IB_Invalid) +label(PBZ_IB_WorldChanged) +label(PBZ_IB_NoBP) +label(PBZ_IB_Props) +label(PBZ_IB_Weapon) +label(PBZ_IB_Accessory) +label(PBZ_IB_Medicine) +label(PBZ_IB_Outfit) +label(PBZ_IB_Completed) +label(PBZ_IB_Status) +label(PBZ_IB_LocalTicks) +registersymbol(PBZ_IB_Tick) +registersymbol(PBZ_IB_Mailbox) +registersymbol(PBZ_IB_LocalTicks) +registersymbol(PBZ_IB_Original) +registersymbol(PBZ_IB_Code) +PBZ_IB_Original: + readmem(PBZ_IB_Tick,$12) +PBZ_IB_Code: + pushfq + push rax + push rcx + push rdx + push r8 + push r9 + push r10 + push r11 + push rbx + push rsi + push rdi + sub rsp,C0 + movdqu [rsp+30],xmm0 + movdqu [rsp+40],xmm1 + movdqu [rsp+50],xmm2 + movdqu [rsp+60],xmm3 + movdqu [rsp+70],xmm4 + movdqu [rsp+80],xmm5 + mov rdi,rcx + mov r11,PBZ_IB_WorldLoad + movsxd rax,dword ptr [r11+3] + lea rax,[r11+rax+7] + mov rsi,[rax] + test rsi,rsi + je PBZ_IB_Pass + mov rax,[rsi+228] + test rax,rax + je PBZ_IB_Pass + cmp dword ptr [rax+40],1 + jl PBZ_IB_Pass + mov rax,[rax+38] + test rax,rax + je PBZ_IB_Pass + mov rax,[rax] + test rax,rax + je PBZ_IB_Pass + mov rax,[rax+30] + cmp rax,rdi + jne PBZ_IB_Pass + lea rax,[rdi+28] + cmp r9,rax + jne PBZ_IB_Pass + inc qword ptr [PBZ_IB_LocalTicks] + cmp dword ptr [PBZ_IB_Mailbox],1 + jne PBZ_IB_Pass + mov dword ptr [PBZ_IB_Mailbox],2 + cmp [PBZ_IB_Mailbox+18],rsi + jne PBZ_IB_WorldChanged + cmp qword ptr [rdi+2F0],0 + je PBZ_IB_NoBP + mov r11,PBZ_IB_ClassRef + movsxd rax,dword ptr [r11+10] + lea rax,[r11+rax+14] + mov r11,[rax] + test r11,r11 + je PBZ_IB_NoBP + mov r10,[rsi+9E0] + mov edx,[rsi+9E8] + test r10,r10 + je PBZ_IB_NoBP + test edx,edx + jle PBZ_IB_NoBP + cmp edx,800 + ja PBZ_IB_NoBP + cmp [rsi+A08],edx + jl PBZ_IB_NoBP + mov r8,[rsi+A00] + test r8,r8 + jne @f + lea r8,[rsi+9F0] + cmp edx,80 + ja PBZ_IB_NoBP +@@: + xor r9d,r9d +PBZ_IB_FindBP: + bt dword ptr [r8],r9d + jnc PBZ_IB_NextBP + cmp [r10],r11 + jne PBZ_IB_NextBP + mov rbx,[r10+8] + test rbx,rbx + je PBZ_IB_NextBP + cmp [rbx+10],r11 + jne PBZ_IB_NextBP + cmp [rbx+20],rsi + je PBZ_IB_HaveBP +PBZ_IB_NextBP: + add r10,18 + inc r9d + cmp r9d,edx + jb PBZ_IB_FindBP + jmp PBZ_IB_NoBP +PBZ_IB_HaveBP: + mov [PBZ_IB_Mailbox+20],rbx + mov edx,[PBZ_IB_Mailbox+10] + cmp edx,1 + jl PBZ_IB_Invalid + cmp edx,FF + ja PBZ_IB_Invalid + lea rcx,[PBZ_IB_Mailbox+8] + lea r8,[PBZ_IB_Mailbox+40] + mov r9d,1 + mov r11,PBZ_IB_NameSite+16 + movsxd rax,dword ptr [r11+1] + lea rax,[r11+rax+5] + call rax + cmp dword ptr [PBZ_IB_Mailbox+8],0 + je PBZ_IB_Invalid + mov eax,[PBZ_IB_Mailbox+4] + cmp eax,1 + je PBZ_IB_Props + cmp eax,2 + je PBZ_IB_Weapon + cmp eax,3 + je PBZ_IB_Weapon + cmp eax,4 + je PBZ_IB_Accessory + cmp eax,5 + je PBZ_IB_Medicine + cmp eax,6 + je PBZ_IB_Outfit + jmp PBZ_IB_Invalid +PBZ_IB_Props: + mov r11,PBZ_IB_AddProps+2C + movsxd rax,dword ptr [r11+1] + lea rax,[r11+rax+5] + call rax + mov rcx,rax + mov rdx,[PBZ_IB_Mailbox+8] + mov r11,PBZ_IB_AddProps+38 + movsxd rax,dword ptr [r11+1] + lea rax,[r11+rax+5] + call rax + test rax,rax + je PBZ_IB_Invalid + mov rcx,rbx + mov edx,1 + mov r8,[PBZ_IB_Mailbox+8] + mov r9d,1 + mov rax,PBZ_IB_AddProps + call rax + jmp PBZ_IB_Completed +PBZ_IB_Weapon: + mov rcx,rbx + mov rdx,[PBZ_IB_Mailbox+8] + xor r8d,r8d + cmp dword ptr [PBZ_IB_Mailbox+4],2 + sete r8b + mov r9d,1 + mov qword ptr [rsp+20],0 + mov qword ptr [rsp+28],0 + mov rax,PBZ_IB_AddWeapon + call rax + jmp PBZ_IB_Completed +PBZ_IB_Accessory: + mov rcx,rbx + mov rdx,[PBZ_IB_Mailbox+8] + xor r8d,r8d + mov rax,PBZ_IB_AddAccessory + call rax + jmp PBZ_IB_Completed +PBZ_IB_Medicine: + mov rcx,rbx + mov rdx,[PBZ_IB_Mailbox+8] + xor r8d,r8d + mov r9d,1 + mov rax,PBZ_IB_AddMedicine + call rax + jmp PBZ_IB_Completed +PBZ_IB_Outfit: + mov rcx,rbx + mov rdx,[PBZ_IB_Mailbox+8] + mov rax,PBZ_IB_AddOutfit + call rax +PBZ_IB_Completed: + mov eax,3 + jmp PBZ_IB_Status +PBZ_IB_Invalid: + mov eax,4 + jmp PBZ_IB_Status +PBZ_IB_WorldChanged: + mov eax,5 + jmp PBZ_IB_Status +PBZ_IB_NoBP: + mov eax,6 +PBZ_IB_Status: + mov [PBZ_IB_Mailbox],eax +PBZ_IB_Pass: + movdqu xmm0,[rsp+30] + movdqu xmm1,[rsp+40] + movdqu xmm2,[rsp+50] + movdqu xmm3,[rsp+60] + movdqu xmm4,[rsp+70] + movdqu xmm5,[rsp+80] + add rsp,C0 + pop rdi + pop rsi + pop rbx + pop r11 + pop r10 + pop r9 + pop r8 + pop rdx + pop rcx + pop rax + popfq + readmem(PBZ_IB_Tick,$12) + db FF 25 00 00 00 00 + dq PBZ_IB_Tick+12 +align 10 +PBZ_IB_LocalTicks: + dq 0 +align 10 +PBZ_IB_Mailbox: + dd 0 + dd 0 + dq 0 + dd 0 + dd 0 + dq 0 + dq 0 + dq 0 + dq 0 + dq 0 +PBZ_IB_Tick: + db FF 25 00 00 00 00 + dq PBZ_IB_Code + nop 4 +[DISABLE] +{$lua} +if syntaxcheck then return end +local state=rawget(_G,'PBZ_ItemBrowser') +local sameProcess=state and state.pid==getOpenedProcessID() +if not sameProcess then + if not state then error('Browser state is missing; refusing an unverified hook restore.') end + state.cleanupRequested=true;state.cleanupDifferentProcess=true + return 'unregistersymbol(PBZ_IB_Tick)\nunregistersymbol(PBZ_IB_Mailbox)\nunregistersymbol(PBZ_IB_LocalTicks)\nunregistersymbol(PBZ_IB_Original)\nunregistersymbol(PBZ_IB_Code)' +end +if state.mailbox then + local request=readInteger(state.mailbox) + if request==1 or request==2 then + error('An item grant is pending. Resume gameplay and wait for it to finish, then disable again.') + end +end +local hook=getAddressSafe('PBZ_IB_Tick') +local original=getAddressSafe('PBZ_IB_Original') +local code=getAddressSafe('PBZ_IB_Code') +if not hook or not original or not code or hook==0 or original==0 or code==0 then + error('Browser restore symbols are missing; form and state have been retained.') +end +local prefix=readBytes(hook,6,true) +if not prefix or prefix[1]~=0xFF or prefix[2]~=0x25 or readQword(hook+6)~=code then + error('Browser hook ownership check failed; refusing to overwrite another patch.') +end +local bytes=readBytes(original,0x12,true) +if not bytes or #bytes~=0x12 then error('Browser saved bytes are unreadable; state retained.') end +state.cleanupOriginal=bytes;state.cleanupHook=hook +state.cleanupStarted=getTickCount();state.cleanupRequested=true +return ('%X:\n readmem(%X,$12)\n'):format(hook,original)..[====[dealloc(PBZ_IB_Original) +dealloc(PBZ_IB_Code) +unregistersymbol(PBZ_IB_Tick) +unregistersymbol(PBZ_IB_Mailbox) +unregistersymbol(PBZ_IB_LocalTicks) +unregistersymbol(PBZ_IB_Original) +unregistersymbol(PBZ_IB_Code)]====] +{$asm} diff --git a/runtime/resources/scripts/1337142246.aa b/runtime/resources/scripts/1337142246.aa new file mode 100644 index 0000000..b411d06 --- /dev/null +++ b/runtime/resources/scripts/1337142246.aa @@ -0,0 +1,3367 @@ +[ENABLE] +{$lua} +if syntaxcheck then return end +local signatures={world="48 8B 05 ?? ?? ?? ?? 48 85 C0 75 ?? 80 3D ?? ?? ?? ?? 02 72 ?? 48 8D 15 ?? ?? ?? ?? 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? 33 C0 48 83 C4 20 5B C3",names="89 03 48 8B C3 89 7B 04 48 8B 5C 24 48 48 83 C4 30 5F C3 80 3D ?? ?? ?? ?? 00 74 09 48 8D 05 ?? ?? ?? ?? EB 13 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? C6 05 ?? ?? ?? ?? 01 0F 28 44 24 20"} +local itemNames={ +["AC_ActHit"]="Shadow-Motion Hunting Device", +["AC_ActHitShachi"]="ActHitShachi", +["AC_AnimMovement"]="Dance Fan", +["AC_Attack"]="Strength Wraps", +["AC_BigHit"]="Despair Charm", +["AC_Bleed"]="Snow and Blood", +["AC_BreakAttack"]="Pursuit Order", +["AC_BreakDrink"]="Small Calming Gourd", +["AC_BreakRecover"]="Agarwood Prayer Beads", +["AC_BreakRegen"]="Loving Mother's Charm", +["AC_BreakShield"]="Shield-Breaking Talisman", +["AC_Chaos"]="Chaos Berserker Ring", +["AC_Combo"]="Righteous Blood Beneath the Clouds", +["AC_Control"]="Fine Thread Ball", +["AC_Counter"]="Counterattack Bracers", +["AC_Deflect"]="Ingenious Mechanism Ring", +["AC_Double"]="Deft-Handed Linked Rings", +["AC_Drink"]="Aromatic Medicine Box", +["AC_DrinkCost"]="Secluded Mansion Medicine Jar", +["AC_DrinkCost_1"]="Medicine Jar Fragment: Lid", +["AC_DrinkCost_2"]="Medicine Jar Fragment: Chain", +["AC_DrinkCost_3"]="Medicine Jar Fragment: Handle", +["AC_DrinkCost_4"]="Medicine Jar Fragment: Body", +["AC_EasyExecution"]="EasyExecution", +["AC_Electrified"]="Moon-Thunder Ornate Lantern", +["AC_ElementRegen"]="Spell-Nullifying Whisk Threads", +["AC_Elemental"]="Feather Fan Remnant", +["AC_ElementalResistance"]="ElementalResistance", +["AC_EvadePhantom"]="Shadow Phantom Mask", +["AC_Execution"]="Ten-Thousand-Kill Clever Lock", +["AC_ExecutionSwitchCool"]="Executioner's Headscarf", +["AC_Frost"]="Spell-Nullifying Icicle", +["AC_Health"]="Exotic Woven Curio", +["AC_HealthResistance"]="Ancient Armor Fragment", +["AC_HeavyAttackCost"]="Overwhelming Righteousness", +["AC_HeavyAttackDamage"]="Broken Vessel", +["AC_HeavyAttackShachi"]="Dugu's Absolute Seal", +["AC_Ignite"]="Auspicious Lion Fireball", +["AC_Long"]="Deft Hand of Immense Strength", +["AC_Loot"]="Treasure Basin", +["AC_LowHealth"]="Last-Stand Survival Token", +["AC_LowShachi"]="United-Heart Twin-Fish Pendant", +["AC_MagicWeapon"]="Hundred-Aspect Nuo Mask", +["AC_MagicWeapon_1"]="Nuo Mask Fragment: Joy", +["AC_MagicWeapon_2"]="Nuo Mask Fragment: Anger", +["AC_MagicWeapon_3"]="Nuo Mask Fragment: Sorrow", +["AC_MartialWeapon"]="Rough Radiant Heart", +["AC_PerfectFrame"]="Primordial Meridian Device", +["AC_PhysicalResistance"]="PhysicalResistance", +["AC_Poison"]="Virulent Poison Pouch", +["AC_PoisonRegen"]="Living Wood Talisman", +["AC_PowerWeapon"]="Guardian Statue", +["AC_PowerWeapon_1"]="Guardian Statue Fragment: Head", +["AC_PowerWeapon_2"]="Guardian Statue Fragment: Arm", +["AC_PowerWeapon_3"]="Guardian Statue Fragment: Torso", +["AC_PowerWeapon_4"]="Guardian Statue Fragment: Leg", +["AC_RandomDrink"]="Consecrated Jade Pendant", +["AC_Ranged"]="Sharpshooter's Eye", +["AC_RangedWeapon"]="Formless Divine Mirror", +["AC_Regen"]="Regen", +["AC_ResistBleed"]="Blood-Clotting Talisman", +["AC_ResistFire"]="Fire-Warding Talisman", +["AC_ResistIce"]="Ice-Warding Talisman", +["AC_ResistNonBreak"]="Solid Rock Bracers", +["AC_ResistPoison"]="Food Preservation Jar", +["AC_ResistPoison_1"]="Food Preservation Charm Fragment: Part One", +["AC_ResistPoison_2"]="Food Preservation Charm Fragment: Part Two", +["AC_ResistRanged"]="Arrow-Warding Charm", +["AC_ResistThunder"]="Lightning-Warding Talisman", +["AC_Resistance"]="Resistance", +["AC_Rider"]="Cavalry-Slaying Talisman", +["AC_Shachi"]="String-Music Charm", +["AC_ShachiAttack"]="Baishan Secret Order", +["AC_ShachiCool"]="Rouge Box", +["AC_ShachiRegen"]="Sha-Chi Headscarf", +["AC_ShachiWeapon"]="Dark Source Cube", +["AC_ShachiWeapon_1"]="Dark Source Cube: Tenon", +["AC_ShachiWeapon_2"]="Dark Source Cube: Mortise", +["AC_SpiritShadow"]="Small Dark Source Cage", +["AC_Stance"]="Spring-Mechanism Heart Mirror", +["AC_Stealth"]="Breath-Holding Wraps", +["AC_Summon"]="Summon", +["AC_SummonDuration"]="Puppet's Wooden Heart", +["AC_SwitchEndure"]="Wondrous Scabbard", +["AC_Tang"]="Deft Skill in Hand", +["AC_TimerEndure"]="Hundred-Battle Demon Body", +["AC_UltimateBreak"]="Ultimate Technique Charm", +["AC_UltimateCharge"]="Nameless Master's Thumb Ring", +["Ac_Material_1"]="Tainted Crystal Remnant", +["Ac_Material_4"]="Purified Indigo Crystal", +["B_kunlunsanjie"]="Lost Tales of the Three Heroes of Kunlun", +["BaWangLianQiu"]="Overlord's Flail", +["BaiShanShuangJian"]="Baishan Wind-and-Thunder Sword", +["BaiYing"]="White Shadow", +["Bell_Item_PlaceHolder"]="Return to the Nearest Bell", +["Book_03"]="Clues to Strange Tales of the Martial World", +["Book_04"]="Investigation of Villagers' Belongings", +["Book_05"]="Lives of Pang Town's People", +["Book_06"]="Gleanings from the Righteous Alliance", +["Book_08"]="The Mystery of Sha-Chi Augmentation", +["Book_09"]="Ahua the Bride", +["Book_10"]="The Three Heroes of Kunlun", +["Book_11"]="Mo Jizi's Disciples", +["Book_12"]="Huang Xingzi's Betrayal", +["Book_14"]="Deft-Handed Xiao Zhang's Treasure List", +["Book_15"]="Zuo Shang's Chess Game", +["Book_16"]="Imprisoned Life", +["Book_17"]="Dream Bailiff", +["Book_19"]="The Mystery of the Holy Mother", +["Book_20"]="Assorted Written Vows", +["Book_21"]="The Past of Dreamplay Manor", +["Book_22"]="Gleanings from the Waterway Gang", +["Book_CS_01"]="Notes on Contemplation", +["Book_MengChai"]="Dream Bailiff Experiment Notes", +["Book_MoJiZi"]="Mo Jizi's Final Words", +["Book_XC_01"]="The Organization", +["Book_XiongFu"]="Case Files: The Four Vicious Axes", +["BrowLashCard_Default"]="BrowLashCard_Default", +["BrowLashCard_JiGuanMoQu"]="BrowLashCard_JiGuanMoQu", +["BrutalAxe"]="Brutal Axe", +["CaoOuSiXian"]="Puppet-Control Bell", +["ChiZheCanJian"]="The Obsessed One's Broken Sword", +["CiGuHunDun"]="Bone-Piercing Chaos", +["CuiXinPiPa"]="Heart-Rending Pipa", +["DefaultHairStyle"]="Standard Hairstyle", +["DefaultHairStyle_Seq"]="Standard Hairstyle", +["Double"]="Black Wound Twin Blades", +["DuYanGong"]="One-Eyed Bow", +["DualHook"]="Parting Broken Hook", +["FA_0201"]="Bai Chilian's Memory Flower", +["FA_0202"]="Memory Flower of the Dragon Body Technique", +["FA_0203"]="Memory Flower of Fellow Disciples", +["FA_0205"]="Xukong's Memory Flower", +["FA_0206"]="Fist Fanatic Tie Kuang's Memory Flower", +["FA_0300"]="Seven Stars Disciple's Memory Flower", +["FA_0301"]="Qianqian's Memory Flower", +["FA_0303"]="Dragon Body Rebel's Memory Flower", +["FA_0304"]="Searching: Memory Flower", +["FA_0310"]="The Two Heroes' Memory Flower", +["FA_0401"]="Experiment Victim's Memory Flower", +["FA_0501"]="Yinghuo's Memory Flower", +["FA_0502"]="Wanderer's Memory Flower", +["FA_0503"]="Lujia Villager's Memory Flower", +["FA_0505"]="Righteous Masters' Memory Flower", +["FA_0600"]="A Mother's Love: Memory Flower", +["FA_0601"]="Memory Flower of the Manor Experiments", +["FA_0602"]="Bai Xue'er: Memory Flower", +["FA_0603"]="Lion Dance Lord's Memory Flower", +["FA_0604"]="Righteous Leaders' Memory Flower", +["FA_0701"]="Master Gao's Memory Flower", +["FA_0702"]="Life-Imprisoner Disciple's Memory Flower", +["FA_0704"]="Yu'er's Memory Flower", +["FA_0801"]="Yan'er's Memory Flower", +["FA_0804"]="Three-Faced Demon Puppet's Memory Flower", +["FA_1100"]="Why Turn on Each Other?: Memory Flower", +["FA_1200"]="Leng Tu's Memory Flower", +["FA_1201"]="Waterway Gang Member's Memory Flower", +["FA_1300"]="Reunion with Her Brother: Memory Flower", +["FA_1301"]="Memory Flower of the Monster", +["FA_1800"]="Xuan Li's Memory Flower", +["FA_1802"]="Wind-and-Snow Swordsman's Memory Flower", +["FA_1803"]="Memory Flower of the Forbidden Scripture of Corruption", +["FA_1804"]="Memory Flower of the Intruder", +["FA_7000"]="Memory Flower of Huang Xingzi", +["FS_12001"]="Zuo Shang and Leng Tu: Purple Fragment 1", +["FS_12002"]="Zuo Shang and Leng Tu: Purple Fragment 2", +["FS_12003"]="Zuo Shang and Leng Tu: Purple Fragment 3", +["FS_12004"]="Zuo Shang and Leng Tu: Purple Fragment 4", +["FS_14001"]="Leng Tu and the Supreme One 2: Skeletal Rift", +["FS_18001"]="Zuo Shang and Xuan Li 1", +["FS_18002"]="Zuo Shang and Xuan Li 4", +["FS_18003"]="Zuo Shang and Xuan Li 2", +["FS_18004"]="Zuo Shang and Xuan Li 3", +["FS_18005"]="Zuo Shang and Xuan Li 5", +["FS_18006"]="Zuo Shang and Xuan Li 6", +["F_02001"]="Memory Flower Left by Xukong", +["F_02011"]="Bai Chilian's Lingering Memory: Part One", +["F_02012"]="Bai Chilian's Lingering Memory: Part Two", +["F_02021"]="Lingering Memory of the Dragon Body: Part One", +["F_02022"]="Lingering Memory of the Dragon Body: Part Two", +["F_02023"]="Lingering Memory of the Dragon Body: Part Three", +["F_02031"]="Lingering Memory of Fellow Disciples: Part One", +["F_02032"]="Lingering Memory of Fellow Disciples: Part Two", +["F_02033"]="Lingering Memory of Fellow Disciples: Part Three", +["F_02041"]="Lingering Memory of the Dragon Body: Part Four", +["F_02051"]="Xukong's Memory Flower 1", +["F_02052"]="Xukong's Memory Flower 2", +["F_02053"]="Xukong's Memory Flower 3", +["F_02054"]="Xukong's Memory Flower 4", +["F_02055"]="Xukong's Memory Flower 5", +["F_02056"]="Xukong's Memory Flower 6", +["F_02063"]="Fist Fanatic Tie Kuang 1", +["F_02064"]="Fist Fanatic Tie Kuang 2", +["F_03001"]="Eldest Senior Disciple's Lingering Memory", +["F_03002"]="Second Senior Disciple's Lingering Memory", +["F_03003"]="Third Senior Disciple's Lingering Memory", +["F_03004"]="Fourth Senior Disciple's Lingering Memory", +["F_03005"]="Fifth Junior Disciple's Lingering Memory", +["F_03006"]="Sixth Junior Disciple's Lingering Memory", +["F_03007"]="Seventh Junior Disciple's Lingering Memory", +["F_03008"]="Red-Clad Swordswoman's Lingering Memory", +["F_03011"]="Qianqian's Lingering Memory: Part One", +["F_03012"]="Qianqian's Lingering Memory: Part Two", +["F_03013"]="Qianqian's Lingering Memory: Part Three", +["F_03031"]="Huang Xingzi's Subordinate: Pursuit", +["F_03041"]="Zhao Di: Parting Ways", +["F_03042"]="Wei Sanchuan: Mistake", +["F_03043"]="Gu Wanyue's Lingering Memory", +["F_04011"]="Village Woman: Despair", +["F_04012"]="Swordswoman: Madness", +["F_04013"]="Female Sect Leader: Release", +["F_05011"]="Illusionist Yinghuo: Lake-Center Secret One", +["F_05012"]="Illusionist Yinghuo: Lake-Center Secret Two", +["F_05013"]="Illusionist Yinghuo: Lake-Center Secret Three", +["F_05014"]="Illusionist Yinghuo: Lake-Center Secret Four", +["F_05015"]="Illusionist Yinghuo: Lake-Center Secret Five", +["F_05016"]="Illusionist Yinghuo: Lake-Center Secret Six", +["F_05021"]="A Reasonable Martial Artist", +["F_05031"]="Lujia Villager: Lovers Reunited", +["F_05032"]="Lujia Villager: Is That My Son?", +["F_05033"]="Lujia Villager: Solitary Release", +["F_05034"]="Lujia Villager: That Is Not My Father!", +["F_05041"]="The Three Thief Brothers: Live and Die Together!", +["F_05051"]="Master's Memory Flower 1", +["F_05052"]="Master's Memory Flower 2", +["F_05053"]="Master's Memory Flower 3", +["F_06001"]="Long-Suffering Mother: A Mother's Love", +["F_06002"]="Town Farmer: Why Turn on Each Other?", +["F_06003"]="Well-Bred Young Lady: Reunion with Her Brother", +["F_06004"]="Bai Xue'er: Childhood Sweethearts", +["F_06005"]="Wanderer Far from Home: Winning Honor", +["F_06011"]="Righteous Disciple: Manor Experiment One", +["F_06012"]="Righteous Disciple: Manor Experiment Two", +["F_06013"]="Righteous Disciple: Manor Experiment Three", +["F_06022"]="Chen Zhu: Sincere Repentance", +["F_06031"]="Lion Dance Lord's Memory 1", +["F_06032"]="Lion Dance Lord's Memory 2", +["F_06033"]="Lion Dance Lord's Memory 4", +["F_06034"]="Lion Dance Lord's Memory 5", +["F_06035"]="Lion Dance Lord's Memory 6", +["F_06036"]="Lion Dance Lord's Memory 3", +["F_06041"]="Purple-Clad Dual Swordsman 1 (Backstreet)", +["F_06042"]="Purple-Clad Dual Swordsman 2 (Main Camp)", +["F_06043"]="Purple-Clad Saber Guard 1 (Main Camp)", +["F_06044"]="Purple-Clad Saber Guard 2 (Backstreet)", +["F_06045"]="Baishan Sword Protector 1 (Backstreet)", +["F_06046"]="Baishan Sword Protector 2 (Main Camp)", +["F_07011"]="Master Gao: Imprisoned Life", +["F_07012"]="Master Gao: Understanding Creation", +["F_07013"]="Master Gao: Sole Possession", +["F_07021"]="Life-Imprisoner Disciple: Leng Tu? Part One", +["F_07022"]="Life-Imprisoner Disciple: Leng Tu? Part Two", +["F_07023"]="Life-Imprisoner Disciple: Dream Bailiff's True Form?", +["F_07024"]="Life-Imprisoner Disciple: Dream Bailiff's True Form!", +["F_07041"]="Part One: Struggle", +["F_07042"]="Part Two: Radiant Heart Experiment", +["F_07043"]="Part Three: Sacred Body", +["F_08011"]="Yan'er: Lure of Splendor", +["F_08012"]="Grand Sect Leader Ming: Bloodline", +["F_08013"]="Yan'er: Into the Lake", +["F_08014"]="Yan'er: Yan Qiansui", +["F_08015"]="The Supreme One: Offerings", +["F_08016"]="Yan'er: Everything Has Changed", +["F_08041"]="Female Expert's Memory 1", +["F_08042"]="Female Expert's Memory 2", +["F_08043"]="Female Expert's Memory 3", +["F_11001"]="Corrupted Thug: A Wrong Turn", +["F_12001"]="Leng Tu and the Supreme One 1: Mirror and Ruins", +["F_12011"]="White River Gang Member: Fishing", +["F_12012"]="White River Gang Member: Wandering Dragon Gang Leader", +["F_12013"]="White River Gang Member: Voluntary Augmentation", +["F_12014"]="White River Gang Member: Catching Land Fish", +["F_13001"]="Strange Mask: Concern for His Younger Sister", +["F_13011"]="Victim of the Righteous: Strange Strength, Part One", +["F_13012"]="Victim of the Righteous: Strange Strength, Part Two", +["F_13013"]="Victim of the Righteous: Strange Strength, Part Three", +["F_13020"]="Old Gentou's Memory Flower", +["F_18021"]="Life-Imprisoner Outer Perimeter Captain: White Shadow", +["F_18022"]="Wind-and-Snow Swordsman: Searching", +["F_18023"]="Surviving Illusionist: The Swordsman", +["F_18024"]="Wind-and-Snow Swordsman: Trapped", +["F_18025"]="Wind-and-Snow Swordsman: Final Arrangements", +["F_18026"]="White Shadow 6: Seal", +["F_18031"]="Forbidden Scripture of Corruption: Part One", +["F_18032"]="Forbidden Scripture of Corruption: Part Two", +["F_18033"]="Forbidden Scripture of Corruption: Part Three", +["F_18041"]="Intruder: Breaking the Perimeter", +["F_18042"]="Intruder: Searching", +["F_70001"]="Huang Xingzi 1", +["F_70002"]="Huang Xingzi 2", +["F_70003"]="Huang Xingzi 3", +["F_70004"]="Huang Xingzi 4", +["F_70005"]="Huang Xingzi 5", +["F_70006"]="Huang Xingzi 6", +["FangHuaXieShan"]="Holy Mother's Sinister Fan", +["FeiJiu"]="Boiling Wine Brew", +["GuiShen"]="Spirit-Restoring Soup", +["GuiTouBlade"]="Red-Adornment Ghostslayer", +["HairStyle_Climax"]="HairStyle_Climax", +["HairStyle_Climax_Seq"]="Standard Hairstyle", +["HairStyle_FengXue"]="Standard Hairstyle", +["HairStyle_FengXue_Seq"]="Standard Hairstyle", +["HairStyle_GuYou"]="Standard Hairstyle", +["HairStyle_GuYou_Seq"]="Standard Hairstyle", +["HairStyle_JiGuanMoQu"]="Standard Hairstyle", +["HairStyle_JiGuanMoQu_Seq"]="Standard Hairstyle", +["HairStyle_MoTian"]="HairStyle_MoTian", +["HairStyle_MoTian_Seq"]="HairStyle_MoTian_Seq", +["HairStyle_YaYu"]="Standard Hairstyle", +["HairStyle_YaYu_Seq"]="Standard Hairstyle", +["HairStyle_ZhuiMing"]="Standard Hairstyle", +["HairStyle_ZhuiMing_Seq"]="Standard Hairstyle", +["Hat_Default"]="Standard Bamboo Hat", +["Hat_Default_Climax"]="Standard Bamboo Hat", +["Hat_Fengxue"]="Hat_Fengxue", +["Hat_GuYou"]="Standard Bamboo Hat", +["Hat_MoTian"]="Hat_MoTian", +["Hat_YaYu"]="Hat_YaYu", +["Hat_ZhuiMing"]="Standard Bamboo Hat", +["HeiMoShang"]="Black Demonic Wound", +["HeiMoShangPrologue"]="Black Wound", +["HorizontalBlade"]="Bandit-Quelling Savage Blade", +["HuangJinHuoChong"]="Golden Musket", +["Hulu"]="Medicine Gourd", +["HunBody"]="Standard Outfit", +["HunBodyClimax"]="Outfit from Ten Years Ago", +["HunBodyFengXue"]="HunBodyFengXue", +["HunBodyGuYou"]="HunBodyGuYou", +["HunBodyJiGuanMoQu"]="HunBodyJiGuanMoQu", +["HunBodyMoTian"]="Demon Sky Outfit", +["HunBodyYaYu"]="HunBodyYaYu", +["HunBodyZhuiMing"]="HunBodyZhuiMing", +["Hun_OutFit_Climax"]="Black Wound", +["Hun_OutFit_Climax_Hat"]="Hun_OutFit_Climax_Hat", +["Hun_OutFit_Default"]="Black Wound (On the Run)", +["Hun_OutFit_FengXue"]="Wind and Snow", +["Hun_OutFit_GuYou"]="Old Friend", +["Hun_OutFit_JiGuanMoQu"]="Mechanical Demon Body", +["Hun_OutFit_MoTian"]="Legacy", +["Hun_OutFit_YaYu"]="Martial World Legend", +["Hun_OutFit_ZhuiMing"]="Life Reaper", +["HuoLiuXing"]="Fiery Meteor", +["I_000006"]="Soul-Forging Item Placeholder", +["I_01001"]="Twin Flesh Flower", +["I_01002"]="Primordial Stone", +["I_01003"]="A Flesh Flower", +["I_01004"]="String of Prayer Beads", +["I_01005"]="Colorful Pinwheel", +["I_01006"]="Feather Bow with a Broken String", +["I_01007"]="Woundwort", +["I_01008"]="Waxy Leaf", +["I_01009"]="Blood-Staunching Vine", +["I_01010"]="Three-Headed Little Doll", +["I_02001"]="Damaged Illusion Pipa", +["I_02002"]="Thief's Secret Manual", +["I_02006"]="Life-Saving Pill Made by Yu'er", +["I_03001"]="Broken Iron Sword", +["I_03002"]="Plain Hairpin", +["I_03003"]="Pitch-Black Scabbard", +["I_04001"]="Illusion Pipa Backplate", +["I_05001"]="Illusion Pipa Pegbox", +["I_05003"]="Xiaocui's Red Hair Cord", +["I_05004"]="Heart-Rending Pipa", +["I_05005"]="Hunter's Dog Bell", +["I_060001"]="Collectible Needed by the White-Haired Traveler 1", +["I_060002"]="Banyan Heart", +["I_06001"]="Crimson Flesh Flower", +["I_06002"]="Consecrated Jade Pendant", +["I_06003"]="Damaged Jade Pendant That Has Lost Its Luster", +["I_06004"]="Extinguished Blazing Lion Head", +["I_06006"]="Shattered Heroic Courage", +["I_06007"]="Leading Actress's Face Powder", +["I_06008"]="Nameless Master's Severed Finger", +["I_06009"]="Tattered Dance Fan", +["I_06010"]="Dusty Old Wooden Comb", +["I_08002"]="Illusion Pipa Strings", +["I_10001"]="Rootless Immortal Dew", +["I_10003"]="Bloodstained Necklace", +["I_10006"]="Mo Jizi's Bloodstained Sword", +["I_17001"]="Infinite Radiant Heart", +["IronBlade"]="Broken Steel Blade", +["Item_001"]="Blackstone", +["Item_002"]="Sha-Chi Amber", +["Item_Piece_001"]="Blackstone Fragment", +["Item_Piece_002"]="Sha-Chi Amber Fragment", +["Item_Traversing"]="Passage Talisman", +["JadeDualChakram"]="Twin Jade Rings", +["JianKeZhaoJiLing"]="Swordsman's Summons", +["Jigsaw"]="Limb-Severing Saw", +["JinGua"]="Long-Handled Golden Melon Mace", +["JinJiHeJi"]="Forbidden Mixture", +["K_01001"]="Rusted Dragon-Shaped Key", +["K_01002"]="Sha-Chi Furnace Inspection-Port Switch", +["K_01003"]="Cell Door Key", +["K_01004"]="Sha-Chi Tower Lower Camp Outer Gate Key", +["K_02001"]="Blood Forest Mountain Lodge Cellar Switch", +["K_02002"]="Forest Waystation Courtyard Gate Key", +["K_02003"]="Cave Prison Cell Key", +["K_02004"]="Blood Forest Mountain Lodge Secret Mechanism Room Switch", +["K_02005"]="Blood Forest Tunnel Switch", +["K_02006"]="Thief Camp Dungeon Key", +["K_03001"]="Valley Gate Key Before the Camp", +["K_03002"]="Righteous Main Camp Outer Gate Key", +["K_03004"]="Drill Ground Gate Key", +["K_03005"]="Mo Jizi's Room Key", +["K_04901"]="Crystal Puppet Eyeball: Yin", +["K_04902"]="Puppet Tongue", +["K_05001"]="Lujia Village Cottage Cellar Key", +["K_05002"]="Puppet No. 44's Single Eye", +["K_05003"]="Yan Ru's Blazing Mask", +["K_05004"]="Brass Key to Old Gentou's Home", +["K_05005"]="Lujia Village Cottage Cellar Key", +["K_05006"]="Small Key to the Tunnel Cage", +["K_05007"]="Pang Town Backstreet Courtyard Key", +["K_05008"]="Bagua Pavilion Rooftop Key", +["K_05009"]="Heavy Lion Gate Key", +["K_05010"]="Tianxiang Pavilion Key", +["K_05011"]="Huang Family Mansion Key", +["K_05012"]="Pang Town Dyehouse Outer Courtyard Key", +["K_06002"]="Lan Family Mansion Main Gate Key", +["K_06003"]="Dragon-Shaped Token: Yin", +["K_06004"]="Dragon-Shaped Token: Yang", +["K_06005"]="Dragon-Shaped Token", +["K_06006"]="Backstreet Secret Cellar Switch", +["K_07001"]="Theater Ticket", +["K_07002"]="Rear Mountain Key", +["K_07003"]="Fire-Blowing Tower Key", +["K_08001"]="Gu He's Venomous Mask", +["K_10001"]="Missing Lift Switch", +["K_10002"]="Mountain Gate Key Leading to the Ancestral Hall", +["K_10003"]="Detached Cage Lever", +["K_12001"]="Lei Ting's Thunderbolt Mask", +["K_12002"]="Crystal Puppet Eyeball: Yang", +["K_12003"]="Red-Cloth Wooden Door Key", +["K_13001"]="Blood Forest Sha-Chi Tower Top-Floor Key", +["K_14003"]="White Snake Eye", +["K_14004"]="Red Snake Tongue", +["K_14005"]="Black Snake Fang", +["K_16001"]="Han Sui's Frozen Mask", +["K_17001"]="Soul-Severing Mountain Tool Room Key", +["KuYeSiZhuChuan"]="Bitterleaf Temple Prayer Beads", +["Kuye"]="Bitterleaf Dew", +["LionHead"]="Blazing Lion Head", +["Long"]="Long Black Wound", +["LuanYing"]="Chaotic Oriole Sword", +["Medi_Material_1"]="Apprentice Apothecary's Memory", +["Medi_Material_2"]="Experienced Apothecary's Memory", +["Medi_Material_3"]="Master Apothecary's Memory", +["Medicine_AdditionalRecover"]="Life-Saving Divine Medicine", +["Medicine_Attack"]="Lament Medicine", +["Medicine_Duration"]="Merciful Flower Nectar", +["Medicine_Element"]="Ritual Medicinal Wine", +["Medicine_Ghost"]="Phantom Body Elixir", +["Medicine_Interrupt"]="Nether Ghost Medicine", +["Medicine_Recover"]="Endless Water", +["Medicine_ResistanceElement"]="Green Snake Potion", +["Medicine_ShachiAttack"]="Sha-Chi Hemolysis Catalyst", +["Medicine_UltimateCharge"]="Longevity Drink", +["MeshBand_Climax"]="MeshBand_Climax", +["MeshBand_Default"]="MeshBand_Default", +["MeshBand_FengXue"]="MeshBand_FengXue", +["MeshBand_GuYou"]="MeshBand_GuYou", +["MeshBand_MoTian"]="MeshBand_MoTian", +["MeshBand_YaYu"]="MeshBand_YaYu", +["MeshBand_ZhuiMing"]="MeshBand_ZhuiMing", +["MiaoShouFeiDao"]="Deft-Handed Throwing Knives", +["MoJian"]="Ink Blood Without a Trace", +["MoQie"]="Demon Cutter", +["MoShou"]="Demon Hand", +["Neck_Climax"]="Neck_Climax", +["Neck_Default"]="Neck_Default", +["Neck_JiGuanMoQu"]="Neck_JiGuanMoQu", +["Neck_MoTian"]="Neck_MoTian", +["Neck_YaYu"]="Neck_YaYu", +["NiTouche"]="Dump Truck", +["NingFengDan"]="Edge-Concentrating Pill", +["Page_CS_01"]="Martial World of the Shadow Realm", +["Page_CS_02"]="What Is Sha-Chi?", +["Page_CS_03"]="Righteous Alliance", +["Page_CS_04"]="Baishan Sect", +["Page_CS_05"]="Who Are the Three Heroes of Kunlun?", +["Page_CS_06"]="Sha-Chi Augmentation", +["Page_CS_07"]="Long Family", +["Page_CS_08"]="Dark Demon Sky Fortress", +["Page_CS_10"]="Mechanical Arts", +["Page_CS_11"]="Hidden Martial World", +["Page_CS_12"]="Pang Town", +["Page_CS_13"]="The Waystation: A Rare Place of Rest", +["Page_CS_14"]="Sha-Chi Tower Ruins", +["Page_CS_15"]="What Is Sealed in the Dragon Pillar?", +["Page_CS_16"]="Blood Forest", +["Page_CS_17"]="Who Is Deft-Handed Xiao Zhang?", +["Page_CS_18"]="Lujia Village", +["Page_CS_19"]="Bagua Pavilion", +["Page_XC_01"]="The Organization Is the Organization", +["Page_XC_02"]="The Nether Lord and His Emissaries", +["Page_XC_03"]="Organization Experts", +["Page_XC_04"]="Underworld Bailiffs and Wedges", +["Page_XC_05"]="Secret Tavern", +["Page_XC_06"]="Mechanical Ship and Dockyard", +["Page_XC_07"]="Dragon-Slaying Demon", +["Page_XC_08"]="Pavilion of Eleven", +["PoJun"]="Army Breaker", +["R_01001"]="Desperate Letter Written in Blood", +["R_01002"]="Axe Boss's Final Letter", +["R_01003"]="Uprising of the Four Vicious Axes: Bewilderment", +["R_01004"]="Captain Wu's Final Letter", +["R_01005"]="Strategist Xu Feng's Secret Letter", +["R_01006"]="Grand Sect Leader Ming's Reply", +["R_01007"]="Uprising of the Four Vicious Axes: Calamity", +["R_01008"]="Uprising of the Four Vicious Axes: Chaos", +["R_01009"]="Record of Primordial Stone: Dragon Body Augmentation", +["R_01010"]="Captain Chen Zhu's Secret Letter", +["R_01011"]="Mountain Village Notice", +["R_01012"]="Righteous Disciples' Injury and Illness Register", +["R_01013"]="Missing Child Notice", +["R_01014"]="Gu Lingran's Petition to Grand Sect Leader Ming (Draft)", +["R_01015"]="Villager's IOU", +["R_01016"]="Abandoned Land Deed", +["R_01017"]="Long Family Scholar's Monument Report", +["R_01018"]="Matchmaker's Letter", +["R_01019"]="Ahua's Father's Reply", +["R_01020"]="Ahui's Letter", +["R_01021"]="Frivolous Summons", +["R_01022"]="Letter to Husband Huang Miao", +["R_01023"]="Letter to Husband Liu Shangli", +["R_01024"]="Letter to Husband Jia Qianqiu", +["R_01025"]="Battle Report", +["R_01026"]="Wanderer's Letter Seeking Refuge", +["R_01027"]="Disciples' Opinions of the Three Heroes", +["R_01028"]="Sha-Chi Furnace Operating Instructions", +["R_01029"]="Garrison Register", +["R_01030"]="Sha-Chi Tower Survey", +["R_01031"]="Supply Inventory Record", +["R_01032"]="Reply to a Request for Aid", +["R_01033"]="Handwritten Order for the Adjutant", +["R_01034"]="Yu'er's Prescription", +["R_02001"]="Bai Chilian's Notes", +["R_02002"]="Huang Xingzi's Written Order", +["R_02003"]="Blood Forest Lost Treasure List", +["R_02004"]="Righteous Proclamation", +["R_02005"]="Register of the Fallen", +["R_02006"]="Mirror Forest Travelogue", +["R_02007"]="Letter to Family (Letter to an Uncle)", +["R_02008"]="Letter of Command", +["R_02009"]="Righteous Alliance Military Pledge", +["R_02010"]="Instructions to Protect the Young Lady", +["R_02011"]="Record of a Separated Thief Brother", +["R_02012"]="Slippery Hand's Letter Written in Blood", +["R_03001"]="Mo Jizi's Final Letter: Part One", +["R_03002"]="Mo Jizi's Final Letter: Part Two", +["R_03003"]="Mo Jizi's Final Letter: Part Three", +["R_03004"]="Mo Jizi's Final Letter: Part Four", +["R_03005"]="Mo Jizi's Final Letter: Part Five", +["R_03006"]="Mo Jizi's Final Letter: Hastily Marked Map", +["R_03007"]="Xiaoxue's Belongings List", +["R_03008"]="Righteous Alliance Letter of Appointment", +["R_03011"]="Disciple's Letter Home", +["R_03012"]="Secret Letter to Qianqian", +["R_03013"]="Dragon Body Technique Execution Order", +["R_03014"]="Letter from the Six Sects", +["R_03015"]="Musical Score Notes", +["R_03016"]="Female Disciple's Document", +["R_03017"]="Torn Page from the Detailed Explanation of the Dragon Body Technique", +["R_03018"]="Righteous Main Camp Fortification Plan", +["R_03019"]="Letter from the Young Master", +["R_03020"]="Martial Arts Questions and Answers", +["R_03021"]="Baby's One-Month Celebration Invitation", +["R_03022"]="Poetry Exchange Letter", +["R_03023"]="Unfinished Discussion of Swordsmanship", +["R_03025"]="Meddlesome Disciple's Last Letter", +["R_03026"]="Letter from Zhao Di", +["R_03027"]="Torn Page from a Healer's Notes", +["R_03028"]="Zhao Di and His Two Companions' Resistance Proclamation", +["R_03029"]="Soul-Transfer Puppet", +["R_03030"]="Abandoned Puppet's Letter", +["R_04001"]="Dream Bailiff Experiment Notes: The Lady's Sacred Body", +["R_040018"]="Urgent Letter with a Bird Feather (Feather Dispatch)", +["R_040019"]="The Lift Switch Was Stolen", +["R_04002"]="Dream Bailiff Experiment Notes: Puppet Zero", +["R_04003"]="Dream Bailiff Experiment Notes: Radiant Heart", +["R_04004"]="Dream Bailiff Experiment Notes: Sacred Body Completed", +["R_04005"]="Unsent Letter", +["R_04006"]="Rules of the Radiant Heart Workshop", +["R_04007"]="Lujia Village Lost Treasure List", +["R_04008"]="Soul-Transfer Powder Formula Manuscript", +["R_04009"]="Life-Imprisoner Soul-Transfer Method", +["R_04010"]="Discarded Items List: Batch 79", +["R_04902"]="Mute Puppet Blueprint", +["R_05001"]="Illustrated Construction Plan of the Puppet Base", +["R_05002"]="Dream Bailiff's Letter to the Supreme One", +["R_05003"]="Well Closure Notice", +["R_05005"]="Puppet Base Register: Spatial Expansion", +["R_05006"]="Unfinished Scripture of the Holy Mother", +["R_05007"]="Life-Imprisoner's Letter", +["R_05008"]="Letter from the Supreme One", +["R_05009"]="Secret Report on Purging Corruption", +["R_05010"]="Seven Wonders Pharmacopoeia", +["R_05011"]="Holy Mother's Proclamation", +["R_05012"]="Ritual Notice: How to Meet the Holy Mother", +["R_05013"]="Funeral Register", +["R_05014"]="Diary of a Villager Who Stayed: Mid-Autumn", +["R_05015"]="Diary of a Villager Who Stayed: Frost's Descent", +["R_05016"]="Puppet Base Register: The First Experimental Base", +["R_05017"]="Singing Girl Puppet's Letter", +["R_05018"]="Strategy for a Joint Suppression Campaign", +["R_05019"]="Oath of Alliance to Defeat the Bandits", +["R_05020"]="Wanted Criminals: The Four Strange Mask Leaders", +["R_05021"]="Prayer to the Holy Mother", +["R_06001"]="Boat Captain's Crafting Notes", +["R_06003"]="Pang Town Lost Treasure List", +["R_06005"]="Ignored Petition", +["R_06006"]="Deed Bearing a Fingerprint", +["R_06007"]="Annotations on the Heart-Meridian Scripture", +["R_06008"]="Hastily Written Letter in Blood", +["R_06009"]="Letter That Could Not Be Sent", +["R_06014"]="To Father Changqing", +["R_06015"]="Old Friend's Final Letter", +["R_06016"]="Town Resident's Diary: Torn Page", +["R_06017"]="Signed Deed", +["R_06018"]="Letter of Apology to a Younger Brother", +["R_06019"]="Xie Garden's Past: Part One", +["R_06020"]="Xie Garden's Past: Part Two", +["R_06021"]="Medical Consultation Register", +["R_06022"]="Notes on the Flower", +["R_06024"]="Sacred Scroll of the Holy Mother: Part One, Pang Sheng Meets the Holy One", +["R_06025"]="Sacred Scroll of the Holy Mother: Part Two, The Wooden Man's Heart Transplant", +["R_06028"]="Tavern Ledger", +["R_06029"]="Martial Actor's Lyrics", +["R_06030"]="Qingyi Actress's Lyrics", +["R_06031"]="Letter in Hasty Handwriting", +["R_06032"]="The Four Great Snake Houses", +["R_06033"]="The Lady's Instructions", +["R_06034"]="Elder Brother's Letter (For Axiu)", +["R_06035"]="Unsigned Poem", +["R_070001"]="Lu Sanqian's Final Words: For Jieyuan", +["R_070002"]="Atonement List", +["R_070003"]="Zhou Chuan's Written Vow", +["R_070004"]="Li Yaomei's Written Vow", +["R_070005"]="Wang Yiren's Written Vow", +["R_070006"]="Unfilial Descendant Sanqian's Written Vow", +["R_070007"]="Written Vow Defaced by the Wudang Sect", +["R_070008"]="Anonymous Written Vow", +["R_070009"]="Blood Saber Sect's Written Vow", +["R_07001"]="Infinite Radiant Heart Design", +["R_070010"]="Chen Hutou of Thunderbolt Hall's Vow", +["R_070011"]="Proclamation to Resist the Enemy", +["R_070012"]="Bloodstained Diary", +["R_070013"]="Unsigned Note", +["R_070014"]="Guard Unit's Petition of Faith", +["R_070015"]="Incomplete Mountain Trail Map", +["R_070016"]="Diary in Delicate Handwriting", +["R_070017"]="Zhou Pingzi's Last Letter (To Yuling)", +["R_070018"]="Hastily Written Diary", +["R_07002"]="Report from Leng Tu's Confidant", +["R_07004"]="Illustrated Guide to Dreamplay Manor", +["R_07005"]="Merchant Guild Directory", +["R_07007"]="Discarded Martial Instructions", +["R_07008"]="Ode to the Three Heroes", +["R_07009"]="Essentials of Illusion Arts", +["R_07010"]="Illustrated Flora Beyond the Pass", +["R_07011"]="Comprehensive Survey of Sects Beyond the Pass", +["R_07013"]="Record: Sevenfold Ingenuity and the Seven Stars", +["R_07014"]="Record: Seven Wonders Antidote", +["R_07015"]="One-Eyed Archer's Letter", +["R_07016"]="Torn Page with Three Handwriting Styles", +["R_07017"]="Research Notes on the Jade Cong", +["R_07018"]="Torn Page from an Illusionist's Notes", +["R_07019"]="Decree of the Supreme Venerable One", +["R_07020"]="Disordered Note", +["R_08001"]="Meigu Lake Region Lost Treasure List", +["R_11001"]="Unsigned Letter", +["R_11002"]="Purple Fragment Notes", +["R_11003"]="Green Snake House Secret Passage Map", +["R_12001"]="Dream Bailiff Experiment Notes: Installing the Radiant Heart", +["R_12003"]="Dream Bailiff Experiment Notes: Rift Preparations", +["R_12004"]="Letter from the Evil Lord", +["R_12005"]="Dreamplay Manor Lost Treasure List", +["R_12006"]="Pet", +["R_12007"]="Notice to Suppress the Bandits", +["R_12009"]="Waterway Gang Martial Challenge", +["R_12010"]="Waterway Gang Register", +["R_12011"]="Fragmentary Travel Notes", +["R_12012"]="Heavily Marked Map", +["R_12013"]="Stranded Paper Boat", +["R_12014"]="Stillwater Recollections: Part One, The Contest", +["R_12015"]="Stillwater Recollections: Part Two, Hope", +["R_12016"]="Stillwater Recollections: Part Three, Winning and Losing", +["R_12017"]="Ornate Invitation", +["R_12019"]="Letter to Lord Meng in the Capital", +["R_12020"]="Six Sights of Meigu", +["R_13001"]="Dream Bailiff Experiment Notes: Spare Sacred Body", +["R_14001"]="Mountain Closure Order", +["R_14004"]="Illustration of the Holy Mother's True Form", +["R_14005"]="Gazetteer of Soul-Severing Mountain", +["R_14006"]="Star Chart", +["RenOuQingTongJian"]="Celestial Mystery Bronze Sword", +["RenOuYanYueDao"]="Crescent-Moon Glaive", +["Return_ShaqiWeapon_1"]="Shadow-Fading Talisman", +["Return_Weapon_1"]="Weapon Reverse-Forging Talisman", +["RongQi"]="Vessel Maintenance Fluid", +["ShachiHook"]="Life-Reaping Chain Sickle", +["ShaqiHexin"]="Sha-Chi Core", +["SlitheringSword"]="Spirit Snake Flexible Sword", +["SnakeDual"]="White Python and Red Viper", +["TU_01001"]="Pigeon Feed", +["TU_02001"]="Elegy of Parting", +["TU_02002"]="Fist Heart Fragment: Core", +["TU_03001"]="Border Garrison Banner", +["TU_03002"]="Border Garrison Poetry Collection", +["TU_03003"]="Golden Ammunition", +["TU_04001"]="Heel Reinforcement Parts", +["TU_04003"]="Thunderbolt Electric Core", +["TU_05001"]="Lingering Obsession: Infatuation", +["TU_05003"]="Deft-Handed Heart Sutra", +["TU_05004"]="Blazing Training Lion Head", +["TU_05005"]="Shed Snakeskin: White", +["TU_06001"]="Sworn Brotherhood Blood-Oath Knife", +["TU_06002"]="Old Wooden Comb", +["TU_06004"]="Razor-Sharp Black Gold", +["TU_06005"]="Tough Bowstring", +["TU_07001"]="Dancer's Ribbon", +["TU_07002"]="Lingering Obsession: Fixation", +["TU_0701"]="The Obsessed One's Obsession", +["TU_08001"]="Plain Sword Tassel", +["TU_08002"]="Reinforced Chainsaw", +["TU_09001"]="Iron-Slaughter Mask", +["TU_09002"]="Treasure Cauldron Fragment: Part One", +["TU_09003"]="Treasure Cauldron Fragment: Part Two", +["TU_09004"]="Treasure Cauldron Fragment: Part Three", +["TU_0901"]="Restored Treasure Cauldron", +["TU_10001"]="Superalloy Sickle Head", +["TU_10002"]="Waterway Gang Rules", +["TU_10003"]="Powerful Water Pump", +["TU_11001"]="Luminous Pearl", +["TU_11002"]="Bronze Essence", +["TU_11003"]="Six Paths Sect Arrest Warrant", +["TU_11004"]="Sect Leader's Charred Head", +["TU_11005"]="Craftsman's Tool Set", +["TU_11006"]="Embroidered Shoes", +["TU_11007"]="Baishan Sect Headband", +["TU_11008"]="Snake Rattle: Red", +["TU_11009"]="Snake Gallbladder: Green", +["TU_1101"]="Snake's Memory", +["TU_11010"]="Snake Venom Sac: Black", +["TU_11011"]="Maintenance Oil", +["TU_11012"]="Everlasting Lamp Flame", +["TU_11013"]="Dog's Memory", +["TU_12001"]="Alloy Steel Sheet", +["TU_12002"]="Husband's Jade Face", +["TU_12003"]="Lingering Head Memory", +["TU_13001"]="Loyal and Righteous Hero Statue", +["TU_13004"]="Fist Heart Fragment: Shell", +["TU_13005"]="Frost Seal", +["TU_1302"]="World-Destroying Fist Heart", +["TU_14001"]="Dream Bailiff's Thread Remnants", +["TU_15001"]="Fiery Grasp", +["TU_150011"]="Cooled Fiery Grasp", +["TU_150012"]="Blazing Fire", +["TU_15002"]="Twin Chaos Irons", +["TU_150021"]="Chaos Iron Remnant: Part One", +["TU_150022"]="Chaos Iron Remnant: Part Two", +["TU_17001"]="Dark Demon Sky Fortress Mask", +["TU_18001"]="Original Chaos Vessel", +["TU_18008"]="Shattered Dragon Body", +["TU_18009"]="Boy's Complete Set of Old Clothes", +["TU_180091"]="Boy's Shirt", +["TU_180092"]="Boy's Trousers", +["TU_180093"]="Boy's Shoes", +["TU_180094"]="Boy's Hat", +["TU_18010"]="Demon-Slaying Order", +["TU_18011"]="Holy Mother's Crown", +["TU_18012"]="Cloak Wreathed in Purple Flame", +["TU_18013"]="Prosthetic Body Core", +["TU_19001"]="Eye of Insight", +["TU_19002"]="Organization's Supreme Token", +["TU_19003"]="Memories of Youth", +["TU_19004"]="Bitterleaf Temple Scripture", +["TU_19005"]="Purple-Gold Flower", +["TU_19006"]="Undying Heroic Courage", +["T_02001"]="Bloodstained Seal", +["T_02002"]="Sect Leader's Snuff Bottle", +["T_02003"]="Ancient Crossbow Mechanism", +["T_05001"]="Bridal Chamber Candles", +["T_05002"]="Twin-Child Jade Pendant", +["T_05003"]="Statue Not Yet Covered in Flowers", +["T_06001"]="Jade Brush Stand", +["T_06002"]="Tiger-Shaped Paperweight", +["T_06003"]="Impermanence Sundial", +["T_06004"]="Ink", +["T_06005"]="Inkstone with Floral Border", +["T_08001"]="Corruption-Observing Astrolabe", +["T_08003"]="Blue-Flower Compass", +["T_12001"]="General's Bronze Mirror", +["T_12002"]="Gold-and-Silver Scent Pouch", +["T_12003"]="Cloud-and-Moon Gold Hairpin", +["TanLang"]="Greedy Wolf", +["Tang"]="Black Wound", +["TangPrologue"]="Black Wound", +["Tang_HorseCartCombat"]="Black Wound", +["ThunderSpear"]="Thunder Spear", +["TianShaShuangYue"]="Heavenly Fiend Twin Battleaxes", +["TieGongZhuQuanTao"]="Iron Gauntlets", +["TigerCannon"]="Tiger Cannon", +["UnnamedBow"]="Feather Bow", +["Weapon_Material_01"]="Casting Metal", +["Weapon_Material_02"]="Polished Casting Metal", +["Weapon_Material_03"]="Flawless Casting Metal", +["Weapon_Material_04"]="Twin Metal", +["Weapon_Material_05"]="Polished Twin Metal", +["Weapon_Material_06"]="Flawless Twin Metal", +["Weapon_Material_07"]="Long-Plate Metal", +["Weapon_Material_08"]="Polished Long-Plate Metal", +["Weapon_Material_09"]="Flawless Long-Plate Metal", +["Weapon_Material_10"]="Solvent", +["Weapon_Material_11"]="Concentrated Solvent", +["Weapon_Material_12"]="Universal Fusing Solvent", +["Weapon_Material_13"]="Exotic Copper Ingot", +["Weapon_Material_14"]="Otherworldly Copper", +["Weapon_Material_15"]="Ten-Thousand-Forged Otherworldly Copper", +["Weapon_Material_16"]="Demonfire Charcoal", +["Weapon_Material_17"]="Hot Demonfire Charcoal", +["Weapon_Material_18"]="Blazing Demonfire Charcoal", +["Weapon_Material_19"]="Mechanical Gear", +["Weapon_Material_20"]="Precision Mechanical Gear", +["Weapon_Material_21"]="Ying-Style Mechanical Gear", +["Weapon_Material_22"]="Ancient Wood", +["Weapon_Material_23"]="Ancient Celestial Camphor Wood", +["Weapon_Material_24"]="Forbidden Ancient Celestial Camphor Wood", +["Weapon_Material_25"]="Soul-Summoning Incense Ash", +["Weapon_Material_26"]="Hallucinatory Incense Ash", +["Weapon_Material_27"]="Incense Ash Offered to the Holy Mother", +["WoodenSword"]="Wooden Black Wound", +["WoodenSwordHun"]="Wooden Black Wound", +["XieHuo"]="Blazing Blade", +["XuKongHuaShan"]="Void Ornate Fan", +["XueDiZi"]="Flying Guillotine", +["XueSeLingDang"]="Bloodred Bell", +["YouLongCha"]="Wandering Dragon Fork", +["YouLongTou"]="Wandering Dragon Head", +["YuuBlade"]="Demon Saw", +["ZhanMaBlade"]="Desperate Horse-Cleaving Saber", +["ZhuGuangBaoQi"]="Jeweled Splendor", +["ZhuoBiDun"]="Crude Wall Shield", +["ZiMingJian"]="Violet Nether Sword", +} +local lootNames={ +["DengDingShanDao.AC.001"]="Flawless Twin Metal", +["DengDingShanDao.AC.002"]="Master Apothecary's Memory", +["DengDingShanDao.AC.003"]="Remnant Dust", +["DengDingShanDao.AC.004"]="Forbidden Ancient Celestial Camphor Wood", +["DengDingShanDao.AC.005"]="Blazing Demonfire Charcoal", +["DengDingShanDao.AC.006"]="Experienced Apothecary's Memory", +["DengDingShanDao.AC.007"]="Ying-Style Mechanical Gear", +["DengDingShanDao.AC.008"]="Remnant Dust", +["DengDingShanDao.AC.009"]="Remnant Dust", +["DengDingShanDao.AC.010"]="Remnant Dust", +["DengDingShanDao.AC_BigHit"]="Despair Charm", +["DengDingShanDao.AC_LowHealth"]="Last-Stand Survival Token", +["DengDingShanDao.AC_MartialWeapon"]="Rough Radiant Heart", +["DengDingShanDao.AC_ShachiAttack"]="Baishan Secret Order", +["DengDingShanDao.AC_UltimateBreak"]="Ultimate Technique Charm", +["DengDingShanDao.Dust_G.001"]="Universal Fusing Solvent", +["DengDingShanDao.Dust_G.002"]="Forbidden Ancient Celestial Camphor Wood", +["DengDingShanDao.Dust_G.003"]="Shadow-Fading Talisman", +["DengDingShanDao.Dust_G.004"]="Passage Talisman", +["DengDingShanDao.Dust_G.005"]="Remnant Dust", +["DengDingShanDao.Dust_L.001"]="Blazing Demonfire Charcoal", +["DengDingShanDao.Dust_L.002"]="Remnant Dust", +["DengDingShanDao.Dust_L.003"]="Ten-Thousand-Forged Otherworldly Copper", +["DengDingShanDao.Dust_L.004"]="Remnant Dust", +["DengDingShanDao.Dust_L.005"]="Remnant Dust", +["DengDingShanDao.Dust_L.006"]="Remnant Dust", +["DengDingShanDao.Dust_L.007"]="Remnant Dust", +["DengDingShanDao.Dust_L.008"]="Remnant Dust", +["DengDingShanDao.Dust_L.009"]="Flawless Long-Plate Metal", +["DengDingShanDao.Dust_M.001"]="Remnant Dust", +["DengDingShanDao.Dust_M.002"]="Remnant Dust", +["DengDingShanDao.Dust_M.003"]="Remnant Dust", +["DengDingShanDao.Dust_M.004"]="Flawless Long-Plate Metal", +["DengDingShanDao.Dust_M.005"]="Remnant Dust", +["DengDingShanDao.Dust_M.006"]="Remnant Dust", +["DengDingShanDao.Dust_M.007"]="Remnant Dust", +["DengDingShanDao.Dust_M.008"]="Experienced Apothecary's Memory", +["DengDingShanDao.Dust_M.009"]="Remnant Dust", +["DengDingShanDao.Dust_M.010"]="Remnant Dust", +["DengDingShanDao.Dust_R.001"]="Remnant Dust", +["DengDingShanDao.Dust_R.002"]="Remnant Dust", +["DengDingShanDao.Dust_R.003"]="Remnant Dust", +["DengDingShanDao.Dust_R.004"]="Remnant Dust", +["DengDingShanDao.Dust_R.005"]="Remnant Dust", +["DengDingShanDao.Dust_R.006"]="Remnant Dust", +["DengDingShanDao.Dust_R.007"]="Remnant Dust", +["DengDingShanDao.Dust_R.008"]="Remnant Dust", +["DengDingShanDao.Dust_R.009"]="Remnant Dust", +["DengDingShanDao.Dust_R.010"]="Remnant Dust", +["DengDingShanDao.Dust_S.001"]="Remnant Dust", +["DengDingShanDao.Dust_S.002"]="Remnant Dust", +["DengDingShanDao.Dust_S.003"]="Remnant Dust", +["DengDingShanDao.Dust_S.004"]="Remnant Dust", +["DengDingShanDao.Dust_S.005"]="Remnant Dust", +["DengDingShanDao.Dust_S.006"]="Flawless Twin Metal", +["DengDingShanDao.Dust_S.007"]="Remnant Dust", +["DengDingShanDao.Dust_S.008"]="Flawless Long-Plate Metal", +["DengDingShanDao.Dust_S.009"]="Flawless Twin Metal", +["DengDingShanDao.Dust_S.010"]="Remnant Dust", +["DengDingShanDao.Dust_S.011"]="Remnant Dust", +["DengDingShanDao.Heishi.001"]="Blackstone Fragment", +["DengDingShanDao.Heishi.002"]="Blackstone Fragment", +["DengDingShanDao.Hupo.001"]="Sha-Chi Amber Fragment", +["DengDingShanDao.Hupo.002"]="Sha-Chi Amber Fragment", +["DengDingShanDao.I_10001"]="Rootless Immortal Dew", +["DengDingShanDao.I_10006"]="Mo Jizi's Bloodstained Sword", +["DengDingShanDao.K_10003"]="Detached Cage Lever", +["DengDingShanDao.Medi.001"]="Remnant Dust", +["DengDingShanDao.Medi.002"]="Ten-Thousand-Forged Otherworldly Copper", +["DengDingShanDao.Medi.003"]="Forbidden Ancient Celestial Camphor Wood", +["DengDingShanDao.Medi.004"]="Concentrated Solvent", +["DengDingShanDao.Medi.005"]="Ying-Style Mechanical Gear", +["DengDingShanDao.Medi.006"]="Polished Casting Metal", +["DengDingShanDao.Medi.007"]="Forbidden Ancient Celestial Camphor Wood", +["DengDingShanDao.Medi.008"]="Remnant Dust", +["DengDingShanDao.Medi.009"]="Remnant Dust", +["DengDingShanDao.Medi.010"]="Ten-Thousand-Forged Otherworldly Copper", +["DengDingShanDao.R_040018"]="Urgent Letter with a Bird Feather (Feather Dispatch) / Remnant Dust", +["DengDingShanDao.R_040019"]="The Lift Switch Was Stolen / Remnant Dust", +["DengDingShanDao.R_070002"]="Atonement List / Remnant Dust", +["DengDingShanDao.R_070003"]="Zhou Chuan's Written Vow / Remnant Dust", +["DengDingShanDao.R_070004"]="Li Yaomei's Written Vow / Remnant Dust", +["DengDingShanDao.R_070005"]="Wang Yiren's Written Vow / Remnant Dust", +["DengDingShanDao.R_070006"]="Unfilial Descendant Sanqian's Written Vow / Remnant Dust", +["DengDingShanDao.R_070007"]="Written Vow Defaced by the Wudang Sect / Remnant Dust", +["DengDingShanDao.R_070008"]="Anonymous Written Vow / Remnant Dust", +["DengDingShanDao.R_070009"]="Blood Saber Sect's Written Vow / Remnant Dust", +["DengDingShanDao.R_070010"]="Chen Hutou of Thunderbolt Hall's Vow / Remnant Dust", +["DengDingShanDao.R_070011"]="Proclamation to Resist the Enemy / Remnant Dust", +["DengDingShanDao.R_070012"]="Bloodstained Diary / Remnant Dust", +["DengDingShanDao.R_070013"]="Unsigned Note / Remnant Dust", +["DengDingShanDao.R_070014"]="Guard Unit's Petition of Faith / Remnant Dust", +["DengDingShanDao.R_070015"]="Incomplete Mountain Trail Map / Remnant Dust", +["DengDingShanDao.R_070016"]="Diary in Delicate Handwriting / Remnant Dust", +["DengDingShanDao.R_070018"]="Hastily Written Diary / Remnant Dust", +["DengDingShanDao.Return.001"]="Flawless Casting Metal", +["DengDingShanDao.Return.002"]="Tainted Crystal Remnant", +["DengDingShanDao.Return.003"]="Master Apothecary's Memory", +["DengDingShanDao.Return.004"]="Blazing Demonfire Charcoal", +["DengDingShanDao.Return.005"]="Remnant Dust", +["DengDingShanDao.Return.006"]="Polished Long-Plate Metal", +["DengDingShanDao.TU_09001"]="Iron-Slaughter Mask", +["DengDingShanDao.TU_09002"]="Treasure Cauldron Fragment: Part One", +["DengDingShanDao.TU_09003"]="Treasure Cauldron Fragment: Part Two", +["DengDingShanDao.TU_09004"]="Treasure Cauldron Fragment: Part Three", +["DengDingShanDao.TU_0901"]="Restored Treasure Cauldron", +["DengDingShanDao.Traversing.001"]="Polished Casting Metal", +["DengDingShanDao.Traversing.002"]="Incense Ash Offered to the Holy Mother", +["DengDingShanDao.Traversing.003"]="Purified Indigo Crystal", +["DengDingShanDao.Traversing.004"]="Master Apothecary's Memory", +["DengDingShanDao.Traversing.005"]="Apprentice Apothecary's Memory", +["DengDingShanDao.Traversing.006"]="Polished Twin Metal", +["DengDingShanDao.wmA.001"]="Polished Casting Metal / Polished Twin Metal (+1)", +["DengDingShanDao.wmA.002"]="Weapon Reverse-Forging Talisman", +["DengDingShanDao.wmA.003"]="Ying-Style Mechanical Gear", +["DengDingShanDao.wmA.004"]="Ten-Thousand-Forged Otherworldly Copper", +["DengDingShanDao.wmA.005"]="Remnant Dust", +["DengDingShanDao.wmA.006"]="Polished Long-Plate Metal", +["DengDingShanDao.wmA.007"]="Polished Twin Metal", +["DengDingShanDao.wmA.008"]="Concentrated Solvent", +["DengDingShanDao.wmA.009"]="Remnant Dust", +["DengDingShanDao.wmA.010"]="Incense Ash Offered to the Holy Mother", +["DengDingShanDao.wmA.011"]="Flawless Casting Metal", +["DengDingShanDao.wmA.012"]="Remnant Dust", +["DengDingShanDao.wmA.013"]="Tainted Crystal Remnant", +["DengDingShanDao.wmA.014"]="Remnant Dust", +["DengDingShanDao.wmA.015"]="Flawless Casting Metal", +["DengDingShanDao.wmA.016"]="Remnant Dust", +["DengDingShanDao.wmA.017"]="Remnant Dust", +["DengDingShanDao.wmA.018"]="Remnant Dust", +["DengDingShanDao.wmA.021"]="Blazing Demonfire Charcoal", +["DengDingShanDao.wmA.022"]="Polished Long-Plate Metal / Polished Casting Metal (+1)", +["DengDingShanDao.wmA.023"]="Universal Fusing Solvent", +["DengDingShanDao.wmA.024"]="Ten-Thousand-Forged Otherworldly Copper", +["DengDingShanDao.wmB.001"]="Forbidden Ancient Celestial Camphor Wood", +["DengDingShanDao.wmB.002"]="Remnant Dust", +["DengDingShanDao.wmB.003"]="Flawless Long-Plate Metal", +["DengDingShanDao.wmB.004"]="Ten-Thousand-Forged Otherworldly Copper", +["DengDingShanDao.wmB.005"]="Remnant Dust", +["DengDingShanDao.wmB.006"]="Ancient Celestial Camphor Wood", +["DengDingShanDao.wmB.007"]="Remnant Dust", +["DengDingShanDao.wmB.008"]="Flawless Long-Plate Metal", +["DengDingShanDao.wmB.009"]="Remnant Dust", +["DengDingShanDao.wmB.010"]="Remnant Dust", +["DengDingShanDao.wmB.011"]="Remnant Dust", +["DengDingShanDao.wmB.012"]="Flawless Twin Metal", +["DengDingShanDao.wmB.013"]="Ying-Style Mechanical Gear", +["DengDingShanDao.wmB.014"]="Remnant Dust", +["DengDingShanDao.wmB.016"]="Ying-Style Mechanical Gear / Blazing Demonfire Charcoal (+1)", +["DuanHunYa.001.TU_14001"]="Dream Bailiff's Thread Remnants", +["DuanHunYa.AC.001"]="Tainted Crystal Remnant", +["DuanHunYa.AC.002"]="Tainted Crystal Remnant", +["DuanHunYa.AC.003"]="Tainted Crystal Remnant", +["DuanHunYa.AC.004"]="Tainted Crystal Remnant", +["DuanHunYa.AC.005"]="Master Apothecary's Memory", +["DuanHunYa.Dust_G.001"]="Shadow-Fading Talisman", +["DuanHunYa.Dust_G.002"]="Remnant Dust", +["DuanHunYa.Dust_G.003"]="Remnant Dust", +["DuanHunYa.Dust_G.004"]="Flawless Twin Metal", +["DuanHunYa.Dust_G.005"]="Remnant Dust", +["DuanHunYa.Dust_G.006"]="Remnant Dust", +["DuanHunYa.Dust_G.007"]="Remnant Dust", +["DuanHunYa.Dust_G.008"]="Remnant Dust", +["DuanHunYa.Dust_G.009"]="Remnant Dust", +["DuanHunYa.Dust_G.010"]="Remnant Dust", +["DuanHunYa.Dust_G.011"]="Remnant Dust", +["DuanHunYa.Dust_G.012"]="Remnant Dust", +["DuanHunYa.Dust_L.001"]="Remnant Dust", +["DuanHunYa.Dust_L.002"]="Remnant Dust", +["DuanHunYa.Dust_L.003"]="Remnant Dust", +["DuanHunYa.Dust_L.004"]="Remnant Dust", +["DuanHunYa.Dust_L.005"]="Remnant Dust", +["DuanHunYa.Dust_L.006"]="Flawless Twin Metal", +["DuanHunYa.Dust_L.007"]="Forbidden Ancient Celestial Camphor Wood", +["DuanHunYa.Dust_L.008"]="Remnant Dust", +["DuanHunYa.Dust_L.009"]="Remnant Dust", +["DuanHunYa.Dust_L.010"]="Remnant Dust", +["DuanHunYa.Dust_L.011"]="Universal Fusing Solvent", +["DuanHunYa.Dust_M.001"]="Remnant Dust", +["DuanHunYa.Dust_M.002"]="Remnant Dust", +["DuanHunYa.Dust_M.003"]="Remnant Dust", +["DuanHunYa.Dust_M.004"]="Remnant Dust", +["DuanHunYa.Dust_M.005"]="Remnant Dust", +["DuanHunYa.Dust_M.006"]="Remnant Dust", +["DuanHunYa.Dust_M.007"]="Remnant Dust", +["DuanHunYa.Dust_M.008"]="Remnant Dust", +["DuanHunYa.Dust_M.009"]="Remnant Dust", +["DuanHunYa.Dust_M.010"]="Remnant Dust", +["DuanHunYa.Dust_M.011"]="Remnant Dust", +["DuanHunYa.Dust_M.012"]="Remnant Dust", +["DuanHunYa.Dust_R.001"]="Remnant Dust", +["DuanHunYa.Dust_S.001"]="Remnant Dust", +["DuanHunYa.Dust_S.002"]="Remnant Dust", +["DuanHunYa.Dust_S.003"]="Remnant Dust", +["DuanHunYa.Dust_S.004"]="Remnant Dust", +["DuanHunYa.Dust_S.005"]="Remnant Dust", +["DuanHunYa.Dust_S.006"]="Remnant Dust", +["DuanHunYa.Dust_S.007"]="Remnant Dust", +["DuanHunYa.Dust_S.008"]="Remnant Dust", +["DuanHunYa.Dust_S.009"]="Remnant Dust", +["DuanHunYa.Dust_S.010"]="Remnant Dust", +["DuanHunYa.Dust_S.011"]="Remnant Dust", +["DuanHunYa.Dust_S.012"]="Remnant Dust", +["DuanHunYa.Dust_S.013"]="Remnant Dust", +["DuanHunYa.Dust_S.014"]="Remnant Dust", +["DuanHunYa.Medi.001"]="Ying-Style Mechanical Gear", +["DuanHunYa.Medi.002"]="Purified Indigo Crystal", +["DuanHunYa.Medi.003"]="Flawless Long-Plate Metal", +["DuanHunYa.Medi.004"]="Flawless Casting Metal", +["DuanHunYa.Medi.005"]="Master Apothecary's Memory", +["DuanHunYa.Medi.006"]="Blazing Demonfire Charcoal", +["DuanHunYa.Medi.007"]="Universal Fusing Solvent", +["DuanHunYa.R_14001"]="Mountain Closure Order / Remnant Dust", +["DuanHunYa.Return.001"]="Flawless Long-Plate Metal", +["DuanHunYa.Return.002"]="Ten-Thousand-Forged Otherworldly Copper", +["DuanHunYa.Return.003"]="Master Apothecary's Memory", +["DuanHunYa.Return.004"]="Remnant Dust", +["DuanHunYa.Return.005"]="Flawless Long-Plate Metal", +["DuanHunYa.TU_11005"]="Craftsman's Tool Set", +["DuanHunYa.TU_18008"]="Shattered Dragon Body", +["DuanHunYa.TU_18011"]="Holy Mother's Crown", +["DuanHunYa.wmA.001"]="Flawless Casting Metal / Weapon Reverse-Forging Talisman (+2)", +["DuanHunYa.wmA.002"]="Flawless Casting Metal", +["DuanHunYa.wmA.004"]="Remnant Dust", +["DuanHunYa.wmA.005"]="Flawless Casting Metal", +["DuanHunYa.wmA.006"]="Universal Fusing Solvent", +["DuanHunYa.wmA.008"]="Flawless Twin Metal", +["DuanHunYa.wmA.009"]="Passage Talisman / Flawless Casting Metal (+2)", +["DuanHunYa.wmA.010"]="Flawless Twin Metal", +["DuanHunYa.wmA.011"]="Flawless Long-Plate Metal", +["DuanHunYa.wmA.012"]="Flawless Long-Plate Metal", +["DuanHunYa.wmA.013"]="Incense Ash Offered to the Holy Mother", +["DuanHunYa.wmA.014"]="Universal Fusing Solvent", +["DuanHunYa.wmA.015"]="Shadow-Fading Talisman", +["DuanHunYa.wmA.016"]="Flawless Twin Metal", +["DuanHunYa.wmA.018"]="Universal Fusing Solvent", +["DuanHunYa.wmA.019"]="Universal Fusing Solvent", +["DuanHunYa.wmA.020"]="Universal Fusing Solvent / Flawless Casting Metal (+1)", +["DuanHunYa.wmA.022"]="Flawless Casting Metal", +["DuanHunYa.wmB.001"]="Ten-Thousand-Forged Otherworldly Copper", +["DuanHunYa.wmB.002"]="Shadow-Fading Talisman / Ten-Thousand-Forged Otherworldly Copper (+2)", +["DuanHunYa.wmB.003"]="Blazing Demonfire Charcoal", +["DuanHunYa.wmB.004"]="Blazing Demonfire Charcoal", +["DuanHunYa.wmB.005"]="Tainted Crystal Remnant", +["DuanHunYa.wmB.006"]="Forbidden Ancient Celestial Camphor Wood", +["DuanHunYa.wmB.008"]="Incense Ash Offered to the Holy Mother", +["DuanHunYa.wmB.009"]="Incense Ash Offered to the Holy Mother", +["DuanHunYa.wmB.010"]="Flawless Twin Metal", +["DuanHunYa.wmB.011"]="Universal Fusing Solvent", +["DuanHunYa.wmB.012"]="Flawless Long-Plate Metal", +["ErCijingLin.001"]="Remnant Dust", +["ErCijingLin.001.Item_Traversing"]="Passage Talisman", +["ErCijingLin.002.Item_Traversing"]="Passage Talisman", +["ErCijingLin.2Medi004"]="Purified Indigo Crystal", +["ErCijingLin.3Medi004"]="Master Apothecary's Memory / Remnant Dust", +["ErCijingLin.4Medi004"]="Master Apothecary's Memory / Universal Fusing Solvent (+1)", +["ErCijingLin.5Medi004"]="Master Apothecary's Memory / Remnant Dust", +["ErCijingLin.AC.001"]="Tainted Crystal Remnant", +["ErCijingLin.AC.002"]="Tainted Crystal Remnant", +["ErCijingLin.AC_Chaos"]="Chaos Berserker Ring", +["ErCijingLin.AC_ResistIce"]="Ice-Warding Talisman", +["ErCijingLin.Dust_G.003"]="Remnant Dust", +["ErCijingLin.Dust_G.004"]="Ten-Thousand-Forged Otherworldly Copper / Blazing Demonfire Charcoal (+2)", +["ErCijingLin.Dust_L.007"]="Remnant Dust", +["ErCijingLin.Dust_L.008"]="Remnant Dust", +["ErCijingLin.Dust_L.009"]="Remnant Dust", +["ErCijingLin.Dust_L.010"]="Remnant Dust", +["ErCijingLin.Dust_L.011"]="Remnant Dust", +["ErCijingLin.Dust_L.012"]="Remnant Dust", +["ErCijingLin.Dust_M.001"]="Remnant Dust", +["ErCijingLin.Dust_M.002"]="Blazing Demonfire Charcoal", +["ErCijingLin.Dust_M.003"]="Remnant Dust", +["ErCijingLin.Dust_M.004"]="Remnant Dust", +["ErCijingLin.Dust_M.005"]="Remnant Dust", +["ErCijingLin.Dust_M.006"]="Remnant Dust", +["ErCijingLin.Dust_M.007"]="Remnant Dust", +["ErCijingLin.Dust_M.008"]="Remnant Dust", +["ErCijingLin.Dust_M.009"]="Remnant Dust", +["ErCijingLin.Dust_M.010"]="Remnant Dust", +["ErCijingLin.Fengruiwujin"]="Razor-Sharp Black Gold", +["ErCijingLin.Heishi.001"]="Blackstone Fragment", +["ErCijingLin.Heishi.002"]="Blackstone Fragment", +["ErCijingLin.HuPo.001"]="Sha-Chi Amber Fragment", +["ErCijingLin.HuPo.002"]="Sha-Chi Amber Fragment", +["ErCijingLin.I_01002"]="Primordial Stone", +["ErCijingLin.K_13001"]="Blood Forest Sha-Chi Tower Top-Floor Key", +["ErCijingLin.Medi004"]="Master Apothecary's Memory", +["ErCijingLin.Medicine_AdditionalRecover"]="Life-Saving Divine Medicine", +["ErCijingLin.Return.001"]="Tainted Crystal Remnant", +["ErCijingLin.Return.002"]="Remnant Dust", +["ErCijingLin.Return.003"]="Incense Ash Offered to the Holy Mother", +["ErCijingLin.Return.004"]="Flawless Casting Metal", +["ErCijingLin.WmA003"]="Weapon Reverse-Forging Talisman", +["ErCijingLin.WmA007"]="Remnant Dust", +["ErCijingLin.WmA008"]="Universal Fusing Solvent", +["ErCijingLin.WmA009"]="Flawless Twin Metal", +["ErCijingLin.WmA010"]="Tainted Crystal Remnant", +["ErCijingLin.WmA011"]="Flawless Casting Metal", +["ErCijingLin.WmA021"]="Shadow-Fading Talisman", +["ErCijingLin.WmA022"]="Ten-Thousand-Forged Otherworldly Copper", +["ErCijingLin.WmA023"]="Flawless Long-Plate Metal / Flawless Twin Metal (+1)", +["ErCijingLin.WmA024"]="Universal Fusing Solvent / Flawless Long-Plate Metal", +["ErCijingLin.WmA025"]="Flawless Twin Metal", +["ErCijingLin.WmA027"]="Flawless Long-Plate Metal", +["ErCijingLin.WmB001"]="Ying-Style Mechanical Gear", +["ErCijingLin.WmB002"]="Flawless Twin Metal", +["ErCijingLin.WmB003"]="Blazing Demonfire Charcoal / Forbidden Ancient Celestial Camphor Wood (+2)", +["ErCijingLin.WmB005"]="Master Apothecary's Memory", +["ErCijingLin.WmB006"]="Ying-Style Mechanical Gear", +["ErCijingLin.WmB008"]="Forbidden Ancient Celestial Camphor Wood", +["ErCijingLin.WmB012"]="Universal Fusing Solvent / Flawless Long-Plate Metal (+1)", +["FuJiZhiLin.001.Ac_Material_1"]="Tainted Crystal Remnant", +["FuJiZhiLin.001.Ac_Material_2"]="Tainted Crystal Remnant", +["FuJiZhiLin.001.Ac_Material_3"]="Demonfire Charcoal", +["FuJiZhiLin.001.Dust_Large"]="Remnant Dust", +["FuJiZhiLin.001.Dust_Medium"]="Remnant Dust", +["FuJiZhiLin.001.Dust_Small"]="Remnant Dust", +["FuJiZhiLin.001.I_02001"]="Damaged Illusion Pipa", +["FuJiZhiLin.001.Item_Piece_001"]="Blackstone Fragment", +["FuJiZhiLin.001.Item_Piece_002"]="Sha-Chi Amber Fragment", +["FuJiZhiLin.001.Item_Traversing"]="Passage Talisman", +["FuJiZhiLin.001.K_02001"]="Blood Forest Mountain Lodge Cellar Switch", +["FuJiZhiLin.001.Medi_Material_1"]="Solvent", +["FuJiZhiLin.001.Medicine03"]="Bitterleaf Dew", +["FuJiZhiLin.001.Medicine04"]="Boiling Wine Brew", +["FuJiZhiLin.001.R_07009"]="Essentials of Illusion Arts / Remnant Dust", +["FuJiZhiLin.001.R_07010"]="Illustrated Flora Beyond the Pass / Remnant Dust", +["FuJiZhiLin.001.R_07011"]="Comprehensive Survey of Sects Beyond the Pass / Remnant Dust", +["FuJiZhiLin.001.T_02001"]="Bloodstained Seal", +["FuJiZhiLin.001.Weapon_Material_01"]="Long-Plate Metal", +["FuJiZhiLin.001.Weapon_Material_04"]="Casting Metal / Twin Metal (+1)", +["FuJiZhiLin.001.Weapon_Material_07"]="Long-Plate Metal", +["FuJiZhiLin.001.Weapon_Material_10"]="Remnant Dust", +["FuJiZhiLin.001.Weapon_Material_13"]="Exotic Copper Ingot", +["FuJiZhiLin.001.Weapon_Material_16"]="Remnant Dust", +["FuJiZhiLin.001.Weapon_Material_25"]="Long-Plate Metal", +["FuJiZhiLin.001.shewu1"]="Polished Casting Metal", +["FuJiZhiLin.001.shewu2"]="Polished Twin Metal", +["FuJiZhiLin.002.Ac_Material_3"]="Purified Indigo Crystal", +["FuJiZhiLin.002.Dust_Large"]="Remnant Dust", +["FuJiZhiLin.002.Dust_Medium"]="Remnant Dust", +["FuJiZhiLin.002.Dust_Small"]="Casting Metal", +["FuJiZhiLin.002.Item_Piece_001"]="Blackstone Fragment", +["FuJiZhiLin.002.Item_Piece_002"]="Sha-Chi Amber Fragment", +["FuJiZhiLin.002.Item_Traversing"]="Passage Talisman", +["FuJiZhiLin.002.K_02002"]="Forest Waystation Courtyard Gate Key", +["FuJiZhiLin.002.Medi_Material_1"]="Remnant Dust", +["FuJiZhiLin.002.R_02002"]="Huang Xingzi's Written Order / Remnant Dust", +["FuJiZhiLin.002.T_02002"]="Sect Leader's Snuff Bottle", +["FuJiZhiLin.002.Weapon_Material_07"]="Remnant Dust", +["FuJiZhiLin.002.Weapon_Material_10"]="Remnant Dust", +["FuJiZhiLin.002.Weapon_Material_19"]="Ancient Wood", +["FuJiZhiLin.002.Weapon_Material_25"]="Solvent", +["FuJiZhiLin.003.Ac_Material_1"]="Tainted Crystal Remnant", +["FuJiZhiLin.003.Dust_Large"]="Remnant Dust", +["FuJiZhiLin.003.Dust_Medium"]="Remnant Dust", +["FuJiZhiLin.003.Dust_Small"]="Long-Plate Metal", +["FuJiZhiLin.003.Item_Piece_001"]="Blackstone Fragment", +["FuJiZhiLin.003.Item_Piece_002"]="Sha-Chi Amber Fragment", +["FuJiZhiLin.003.K_02003"]="Cave Prison Cell Key", +["FuJiZhiLin.003.Medi_Material_1"]="Long-Plate Metal", +["FuJiZhiLin.003.R_02003"]="Blood Forest Lost Treasure List / Remnant Dust", +["FuJiZhiLin.003.T_02003"]="Ancient Crossbow Mechanism", +["FuJiZhiLin.003.Weapon_Material_07"]="Exotic Copper Ingot", +["FuJiZhiLin.003.Weapon_Material_10"]="Remnant Dust", +["FuJiZhiLin.003.Weapon_Material_16"]="Remnant Dust", +["FuJiZhiLin.003.Weapon_Material_25"]="Solvent", +["FuJiZhiLin.004.Ac_Material_2"]="Soul-Summoning Incense Ash / Mechanical Gear (+1)", +["FuJiZhiLin.004.Dust_Large"]="Remnant Dust", +["FuJiZhiLin.004.Dust_Medium"]="Remnant Dust", +["FuJiZhiLin.004.Dust_Small"]="Remnant Dust", +["FuJiZhiLin.004.Item_Piece_001"]="Blackstone Fragment", +["FuJiZhiLin.004.Item_Piece_002"]="Sha-Chi Amber Fragment", +["FuJiZhiLin.004.K_02004"]="Blood Forest Mountain Lodge Secret Mechanism Room Switch", +["FuJiZhiLin.004.K_02005"]="Blood Forest Tunnel Switch", +["FuJiZhiLin.004.K_02006"]="Thief Camp Dungeon Key", +["FuJiZhiLin.004.Medi_Material_1"]="Tainted Crystal Remnant", +["FuJiZhiLin.004.R_02004"]="Righteous Proclamation / Remnant Dust", +["FuJiZhiLin.004.Weapon_Material_10"]="Solvent", +["FuJiZhiLin.004.Weapon_Material_25"]="Solvent", +["FuJiZhiLin.005.Dust_Medium"]="Remnant Dust", +["FuJiZhiLin.005.Dust_Small"]="Solvent", +["FuJiZhiLin.005.Medi_Material_1"]="Mechanical Gear", +["FuJiZhiLin.005.R_02005"]="Register of the Fallen / Remnant Dust", +["FuJiZhiLin.005.Weapon_Material_01"]="Solvent", +["FuJiZhiLin.005.Weapon_Material_04"]="Long-Plate Metal", +["FuJiZhiLin.005.Weapon_Material_10"]="Casting Metal", +["FuJiZhiLin.005.Weapon_Material_22"]="Remnant Dust", +["FuJiZhiLin.005.Weapon_Material_25"]="Remnant Dust", +["FuJiZhiLin.006.Dust_Medium"]="Remnant Dust", +["FuJiZhiLin.006.Dust_Small"]="Solvent", +["FuJiZhiLin.006.R_02006"]="Mirror Forest Travelogue / Remnant Dust", +["FuJiZhiLin.006.Return_Weapon_1"]="Exotic Copper Ingot", +["FuJiZhiLin.006.Weapon_Material_01"]="Tainted Crystal Remnant", +["FuJiZhiLin.006.Weapon_Material_04"]="Mechanical Gear", +["FuJiZhiLin.006.Weapon_Material_10"]="Ancient Wood", +["FuJiZhiLin.007.Dust_Medium"]="Remnant Dust", +["FuJiZhiLin.007.Dust_Small"]="Remnant Dust", +["FuJiZhiLin.007.R_02007"]="Letter to Family (Letter to an Uncle) / Remnant Dust", +["FuJiZhiLin.007.Return_Weapon_1"]="Remnant Dust", +["FuJiZhiLin.007.Weapon_Material_10"]="Remnant Dust", +["FuJiZhiLin.008.Dust_Medium"]="Casting Metal", +["FuJiZhiLin.008.Dust_Small"]="Remnant Dust", +["FuJiZhiLin.008.R_02008"]="Letter of Command / Remnant Dust", +["FuJiZhiLin.008.Return_ShaqiWeapon_1"]="Shadow-Fading Talisman", +["FuJiZhiLin.008.Weapon_Material_13"]="Demonfire Charcoal", +["FuJiZhiLin.009.Dust_Medium"]="Remnant Dust", +["FuJiZhiLin.009.Dust_Small"]="Remnant Dust", +["FuJiZhiLin.009.K_14004"]="Red Snake Tongue", +["FuJiZhiLin.009.R_02009"]="Righteous Alliance Military Pledge / Remnant Dust", +["FuJiZhiLin.010.Dust_Medium"]="Demonfire Charcoal", +["FuJiZhiLin.010.Dust_Small"]="Remnant Dust", +["FuJiZhiLin.010.R_02010"]="Instructions to Protect the Young Lady / Remnant Dust", +["FuJiZhiLin.010.TU_11008"]="Snake Rattle: Red", +["FuJiZhiLin.011.Dust_Medium"]="Weapon Reverse-Forging Talisman", +["FuJiZhiLin.011.Dust_Small"]="Remnant Dust", +["FuJiZhiLin.011.Page_CS_04"]="Baishan Sect / Remnant Dust", +["FuJiZhiLin.011.Page_CS_16"]="Blood Forest / Remnant Dust", +["FuJiZhiLin.011.Page_CS_17"]="Who Is Deft-Handed Xiao Zhang? / Remnant Dust", +["FuJiZhiLin.011.TU_02001"]="Elegy of Parting", +["FuJiZhiLin.012.Dust_Medium"]="Remnant Dust", +["FuJiZhiLin.012.Dust_Small"]="Remnant Dust", +["FuJiZhiLin.013.Dust_Small"]="Remnant Dust", +["FuJiZhiLin.014.Dust_Small"]="Solvent", +["FuJiZhiLin.015.Dust_Small"]="Remnant Dust", +["FuJiZhiLin.016.Dust_Small"]="Remnant Dust", +["FuJiZhiLin.017.Dust_Small"]="Remnant Dust", +["FuJiZhiLin.018.Dust_Small"]="Remnant Dust", +["FuJiZhiLin.019.Dust_Small"]="Casting Metal", +["FuJiZhiLin.020.Dust_Small"]="Twin Metal", +["FuJiZhiLin.021.Dust_Small"]="Ancient Wood", +["FuJiZhiLin.022.Dust_Small"]="Remnant Dust", +["FuJiZhiLin.023.Dust_Small"]="Remnant Dust", +["FuJiZhiLin.024.Dust_Small"]="Remnant Dust", +["FuJiZhiLin.025.Dust_Small"]="Remnant Dust", +["FuJiZhiLin.026.Dust_Small"]="Remnant Dust", +["FuJiZhiLin.027.Dust_Small"]="Demonfire Charcoal", +["FuJiZhiLin.028.Dust_Small"]="Soul-Summoning Incense Ash", +["FuJiZhiLin.029.Dust_Small"]="Remnant Dust", +["FuJiZhiLin.030.Dust_Small"]="Remnant Dust", +["FuJiZhiLin.031.Dust_Small"]="Remnant Dust", +["FuJiZhiLin.032.Dust_Small"]="Exotic Copper Ingot", +["FuJiZhiLin.AC_BreakDrink"]="Small Calming Gourd", +["FuJiZhiLin.AC_BreakShield"]="Shield-Breaking Talisman", +["FuJiZhiLin.AC_Double"]="Deft-Handed Linked Rings", +["FuJiZhiLin.AC_HeavyAttackShachi"]="Dugu's Absolute Seal", +["FuJiZhiLin.AC_Long"]="Deft Hand of Immense Strength", +["FuJiZhiLin.AC_ResistPoison"]="Food Preservation Jar", +["FuJiZhiLin.AC_Rider"]="Cavalry-Slaying Talisman", +["FuJiZhiLin.AC_Shachi"]="String-Music Charm", +["FuJiZhiLin.AC_Stance"]="Spring-Mechanism Heart Mirror", +["FuJiZhiLin.AC_Stealth"]="Breath-Holding Wraps", +["FuJiZhiLin.AC_Tang"]="Deft Skill in Hand", +["FuJiZhiLin.I_02004"]="Food Preservation Charm Fragment: Part One", +["FuJiZhiLin.I_02005"]="Food Preservation Charm Fragment: Part Two", +["FuJiZhiLin.K_06003"]="Dragon-Shaped Token: Yin", +["FuJiZhiLin.TU_04001"]="Heel Reinforcement Parts", +["FuJiZhiLin.TU_13004"]="Fist Heart Fragment: Shell", +["FuJiZhiLin.TU_19002"]="Organization's Supreme Token", +["FuJiZhiLin.hupao"]="Flawless Twin Metal / Polished Casting Metal (+1)", +["FuJiZhiLin.juchui1"]="Remnant Dust", +["FuJiZhiLin.juchui2"]="Polished Long-Plate Metal / Twin Metal (+1)", +["FuJiZhiLin.xinzeng"]="Twin Metal", +["FuJiZhiLin.xinzeng2"]="Twin Metal", +["FuJiZhiLin.xinzeng3"]="Casting Metal", +["HouJie.001.A2_05002"]="Snow and Blood", +["HouJie.001.A3_05001"]="Consecrated Jade Pendant", +["HouJie.001.A3_07001"]="Auspicious Lion Fireball", +["HouJie.001.Ac_Material_1"]="Demonfire Charcoal", +["HouJie.001.Ac_Material_2"]="Ancient Wood", +["HouJie.001.Ac_Material_3"]="Remnant Dust", +["HouJie.001.Ac_Material_4"]="Otherworldly Copper", +["HouJie.001.Ac_Material_5"]="Polished Casting Metal", +["HouJie.001.Ac_Material_6"]="Polished Long-Plate Metal", +["HouJie.001.Dust_G"]="Concentrated Solvent", +["HouJie.001.Dust_Large"]="Polished Long-Plate Metal", +["HouJie.001.Dust_Medium"]="Remnant Dust", +["HouJie.001.Dust_Small"]="Ancient Celestial Camphor Wood", +["HouJie.001.Dust_SuperSmall"]="Remnant Dust", +["HouJie.001.F_03041"]="Zhao Di: Parting Ways", +["HouJie.001.F_03042"]="Wei Sanchuan: Mistake", +["HouJie.001.F_06001"]="Long-Suffering Mother: A Mother's Love", +["HouJie.001.F_06002"]="Town Farmer: Why Turn on Each Other?", +["HouJie.001.F_06004"]="Bai Xue'er: Childhood Sweethearts", +["HouJie.001.F_06005"]="Wanderer Far from Home: Winning Honor", +["HouJie.001.F_06011"]="Righteous Disciple: Manor Experiment One", +["HouJie.001.F_06012"]="Righteous Disciple: Manor Experiment Two", +["HouJie.001.F_06013"]="Righteous Disciple: Manor Experiment Three", +["HouJie.001.HuangJinHuoChong"]="Golden Musket", +["HouJie.001.I_060002"]="Banyan Heart", +["HouJie.001.I_06002"]="Consecrated Jade Pendant", +["HouJie.001.I_06003"]="Damaged Jade Pendant That Has Lost Its Luster", +["HouJie.001.I_06004"]="Extinguished Blazing Lion Head", +["HouJie.001.Item_Piece_001"]="Blackstone Fragment", +["HouJie.001.Item_Piece_002"]="Sha-Chi Amber Fragment", +["HouJie.001.Item_Traversing"]="Passage Talisman", +["HouJie.001.K_03002"]="Righteous Main Camp Outer Gate Key", +["HouJie.001.K_05009"]="Heavy Lion Gate Key", +["HouJie.001.Medi_Material_1"]="Polished Twin Metal", +["HouJie.001.Medi_Material_2"]="Remnant Dust", +["HouJie.001.Medi_Material_3"]="Solvent", +["HouJie.001.Medicine_Duration"]="Merciful Flower Nectar", +["HouJie.001.Medicine_Recover"]="Endless Water", +["HouJie.001.R_06003"]="Pang Town Lost Treasure List / Remnant Dust", +["HouJie.001.R_06005"]="Ignored Petition / Remnant Dust", +["HouJie.001.R_06006"]="Deed Bearing a Fingerprint / Remnant Dust", +["HouJie.001.R_06007"]="Annotations on the Heart-Meridian Scripture / Remnant Dust", +["HouJie.001.R_06008"]="Hastily Written Letter in Blood / Remnant Dust", +["HouJie.001.R_06017"]="Signed Deed / Remnant Dust", +["HouJie.001.R_06018"]="Letter of Apology to a Younger Brother / Remnant Dust", +["HouJie.001.R_06019"]="Xie Garden's Past: Part One / Remnant Dust", +["HouJie.001.R_06020"]="Xie Garden's Past: Part Two / Remnant Dust", +["HouJie.001.R_06021"]="Medical Consultation Register / Remnant Dust", +["HouJie.001.R_06022"]="Notes on the Flower / Remnant Dust", +["HouJie.001.R_06023"]="Remnant Dust", +["HouJie.001.R_06029"]="Martial Actor's Lyrics / Remnant Dust", +["HouJie.001.R_06031"]="Letter in Hasty Handwriting / Remnant Dust", +["HouJie.001.R_06032"]="The Four Great Snake Houses / Remnant Dust", +["HouJie.001.Return_Weapon_1"]="Remnant Dust", +["HouJie.001.TU_05001"]="Lingering Obsession: Infatuation", +["HouJie.001.TU_05003"]="Deft-Handed Heart Sutra", +["HouJie.001.TU_05004"]="Blazing Training Lion Head", +["HouJie.001.TU_05005"]="Snake Gallbladder: Green", +["HouJie.001.T_06004"]="Ink", +["HouJie.001.T_06005"]="Inkstone with Floral Border", +["HouJie.001.TanLang"]="Greedy Wolf", +["HouJie.001.Weapon_Material_01"]="Remnant Dust", +["HouJie.001.Weapon_Material_02"]="Soul-Summoning Incense Ash / Exotic Copper Ingot (+1)", +["HouJie.001.Weapon_Material_04"]="Precision Mechanical Gear", +["HouJie.001.Weapon_Material_05"]="Remnant Dust", +["HouJie.001.Weapon_Material_07"]="Remnant Dust", +["HouJie.001.Weapon_Material_08"]="Otherworldly Copper", +["HouJie.001.Weapon_Material_10"]="Remnant Dust", +["HouJie.001.Weapon_Material_11"]="Passage Talisman", +["HouJie.001.Weapon_Material_13"]="Ancient Wood", +["HouJie.001.Weapon_Material_14"]="Polished Twin Metal", +["HouJie.001.Weapon_Material_16"]="Polished Long-Plate Metal", +["HouJie.001.Weapon_Material_17"]="Polished Long-Plate Metal", +["HouJie.001.Weapon_Material_19"]="Precision Mechanical Gear", +["HouJie.001.Weapon_Material_20"]="Polished Twin Metal", +["HouJie.001.Weapon_Material_22"]="Polished Casting Metal", +["HouJie.001.Weapon_Material_23"]="Polished Long-Plate Metal", +["HouJie.001.Weapon_Material_25"]="Remnant Dust", +["HouJie.001.Weapon_Material_26"]="Remnant Dust", +["HouJie.001.YouMIngGui"]="Green Snake Potion", +["HouJie.0010.Dust_Medium"]="Tainted Crystal Remnant", +["HouJie.002.Ac_Material_1"]="Polished Twin Metal", +["HouJie.002.Ac_Material_2"]="Remnant Dust", +["HouJie.002.Ac_Material_3"]="Precision Mechanical Gear", +["HouJie.002.Ac_Material_4"]="Polished Long-Plate Metal", +["HouJie.002.Ac_Material_5"]="Polished Casting Metal", +["HouJie.002.Ac_Material_6"]="Tainted Crystal Remnant", +["HouJie.002.Dust_G"]="Remnant Dust", +["HouJie.002.Dust_Large"]="Soul-Summoning Incense Ash", +["HouJie.002.Dust_Medium"]="Polished Long-Plate Metal", +["HouJie.002.Dust_Small"]="Polished Casting Metal", +["HouJie.002.Item_Piece_001"]="Blackstone Fragment", +["HouJie.002.Item_Piece_002"]="Sha-Chi Amber Fragment", +["HouJie.002.Item_Traversing"]="Polished Casting Metal", +["HouJie.002.Medi_Material_1"]="Polished Casting Metal", +["HouJie.002.Medi_Material_2"]="Experienced Apothecary's Memory", +["HouJie.002.Return_Weapon_1"]="Remnant Dust", +["HouJie.002.Weapon_Material_01"]="Polished Twin Metal", +["HouJie.002.Weapon_Material_02"]="Polished Long-Plate Metal", +["HouJie.002.Weapon_Material_04"]="Remnant Dust", +["HouJie.002.Weapon_Material_05"]="Hallucinatory Incense Ash", +["HouJie.002.Weapon_Material_07"]="Remnant Dust", +["HouJie.002.Weapon_Material_08"]="Polished Twin Metal", +["HouJie.002.Weapon_Material_10"]="Remnant Dust", +["HouJie.002.Weapon_Material_11"]="Polished Long-Plate Metal", +["HouJie.002.Weapon_Material_13"]="Exotic Copper Ingot", +["HouJie.002.Weapon_Material_14"]="Polished Casting Metal", +["HouJie.002.Weapon_Material_16"]="Polished Twin Metal", +["HouJie.002.Weapon_Material_17"]="Apprentice Apothecary's Memory", +["HouJie.002.Weapon_Material_19"]="Polished Casting Metal", +["HouJie.002.Weapon_Material_20"]="Mechanical Gear", +["HouJie.002.Weapon_Material_22"]="Remnant Dust", +["HouJie.002.Weapon_Material_23"]="Polished Twin Metal", +["HouJie.002.Weapon_Material_25"]="Soul-Summoning Incense Ash", +["HouJie.002.Weapon_Material_26"]="Tainted Crystal Remnant", +["HouJie.003.Ac_Material_1"]="Hallucinatory Incense Ash", +["HouJie.003.Ac_Material_2"]="Ancient Wood", +["HouJie.003.Ac_Material_3"]="Hot Demonfire Charcoal", +["HouJie.003.Ac_Material_4"]="Remnant Dust", +["HouJie.003.Ac_Material_5"]="Solvent", +["HouJie.003.Ac_Material_6"]="Purified Indigo Crystal", +["HouJie.003.Dust_G"]="Concentrated Solvent", +["HouJie.003.Dust_Large"]="Remnant Dust", +["HouJie.003.Dust_Medium"]="Polished Casting Metal", +["HouJie.003.Dust_Small"]="Remnant Dust", +["HouJie.003.Item_Piece_001"]="Blackstone Fragment", +["HouJie.003.Item_Piece_002"]="Sha-Chi Amber Fragment", +["HouJie.003.Item_Traversing"]="Passage Talisman", +["HouJie.003.Return_ShaqiWeapon_1"]="Shadow-Fading Talisman", +["HouJie.003.Weapon_Material_01"]="Otherworldly Copper", +["HouJie.003.Weapon_Material_02"]="Mechanical Gear", +["HouJie.003.Weapon_Material_04"]="Polished Casting Metal", +["HouJie.003.Weapon_Material_05"]="Polished Twin Metal", +["HouJie.003.Weapon_Material_07"]="Remnant Dust", +["HouJie.003.Weapon_Material_08"]="Concentrated Solvent", +["HouJie.003.Weapon_Material_10"]="Otherworldly Copper", +["HouJie.003.Weapon_Material_11"]="Polished Casting Metal", +["HouJie.003.Weapon_Material_13"]="Remnant Dust", +["HouJie.003.Weapon_Material_14"]="Remnant Dust", +["HouJie.003.Weapon_Material_16"]="Remnant Dust", +["HouJie.003.Weapon_Material_22"]="Polished Twin Metal", +["HouJie.003.Weapon_Material_25"]="Polished Casting Metal", +["HouJie.003.Weapon_Material_26"]="Remnant Dust", +["HouJie.004.Dust_G"]="Remnant Dust", +["HouJie.004.Dust_Large"]="Remnant Dust", +["HouJie.004.Dust_Medium"]="Remnant Dust", +["HouJie.004.Dust_Small"]="Polished Long-Plate Metal", +["HouJie.004.Item_Piece_001"]="Blackstone Fragment", +["HouJie.004.Item_Piece_002"]="Sha-Chi Amber Fragment", +["HouJie.004.Item_Traversing"]="Casting Metal", +["HouJie.004.Return_ShaqiWeapon_1"]="Shadow-Fading Talisman", +["HouJie.004.Weapon_Material_01"]="Remnant Dust", +["HouJie.004.Weapon_Material_04"]="Tainted Crystal Remnant", +["HouJie.004.Weapon_Material_07"]="Polished Casting Metal", +["HouJie.004.Weapon_Material_10"]="Exotic Copper Ingot", +["HouJie.004.Weapon_Material_11"]="Twin Metal", +["HouJie.004.Weapon_Material_13"]="Demonfire Charcoal", +["HouJie.004.Weapon_Material_16"]="Weapon Reverse-Forging Talisman", +["HouJie.004.Weapon_Material_22"]="Soul-Summoning Incense Ash", +["HouJie.004.Weapon_Material_25"]="Remnant Dust", +["HouJie.004.Weapon_Material_26"]="Solvent", +["HouJie.005.Dust_Large"]="Remnant Dust", +["HouJie.005.Dust_Medium"]="Exotic Copper Ingot", +["HouJie.005.Dust_Small"]="Polished Long-Plate Metal", +["HouJie.005.Item_Traversing"]="Polished Casting Metal", +["HouJie.005.Return_ShaqiWeapon_1"]="Polished Casting Metal", +["HouJie.005.Weapon_Material_04"]="Polished Twin Metal", +["HouJie.005.Weapon_Material_10"]="Polished Casting Metal", +["HouJie.005.Weapon_Material_11"]="Remnant Dust", +["HouJie.005.Weapon_Material_25"]="Polished Long-Plate Metal", +["HouJie.005.Weapon_Material_26"]="Polished Long-Plate Metal", +["HouJie.006.Dust_Large"]="Polished Long-Plate Metal", +["HouJie.006.Dust_Medium"]="Remnant Dust", +["HouJie.006.Dust_Small"]="Ancient Celestial Camphor Wood", +["HouJie.006.Weapon_Material_10"]="Remnant Dust", +["HouJie.006.Weapon_Material_25"]="Polished Long-Plate Metal", +["HouJie.006.Weapon_Material_26"]="Remnant Dust", +["HouJie.007.Dust_Medium"]="Remnant Dust", +["HouJie.007.Dust_Small"]="Polished Long-Plate Metal", +["HouJie.008.Dust_Medium"]="Polished Twin Metal", +["HouJie.008.Dust_Small"]="Remnant Dust", +["HouJie.009.Dust_Medium"]="Remnant Dust", +["HouJie.009.Dust_Small"]="Hallucinatory Incense Ash", +["HouJie.010.Dust_Small"]="Remnant Dust", +["HouJie.011.Dust_Small"]="Tainted Crystal Remnant", +["HouJie.012.Dust_Small"]="Remnant Dust", +["HouJie.013.Dust_Small"]="Hallucinatory Incense Ash", +["HouJie.014.Dust_Small"]="Remnant Dust", +["HouJie.015.Dust_Small"]="Remnant Dust", +["HouJie.016.Dust_Small"]="Solvent", +["HouJie.017.Dust_Small"]="Polished Casting Metal", +["HouJie.018.Dust_Small"]="Precision Mechanical Gear", +["HouJie.019.Dust_Small"]="Ancient Celestial Camphor Wood", +["HouJie.020.Dust_Small"]="Tainted Crystal Remnant", +["HouJie.AC_RangedWeapon"]="Formless Divine Mirror", +["HouJie.AC_ResistBleed"]="Blood-Clotting Talisman", +["HouJie.AC_ResistThunder"]="Lightning-Warding Talisman", +["HouJie.Chest.001"]="Otherworldly Copper / Hot Demonfire Charcoal (+1)", +["HouJie.Chest.002"]="Polished Long-Plate Metal / Polished Twin Metal (+1)", +["HouJie.Chest.003"]="Polished Twin Metal / Polished Long-Plate Metal (+1)", +["HouJie.Chest.004"]="Ancient Celestial Camphor Wood / Hot Demonfire Charcoal (+1)", +["HouJie.Chest.005"]="Polished Twin Metal / Polished Long-Plate Metal (+1)", +["HouJie.Chest.006"]="Polished Long-Plate Metal / Polished Twin Metal (+1)", +["HouJie.Chest.007"]="Polished Long-Plate Metal / Polished Casting Metal (+1)", +["HouJie.MadDoctor.001"]="Remnant Dust", +["HouJie.MadDoctor.002"]="Remnant Dust", +["HouJie.MadDoctor.003"]="Remnant Dust", +["HouJie.MadDoctor.004"]="Remnant Dust", +["HouJie.MadDoctor.005"]="Remnant Dust", +["HouJie.MadDoctor.006"]="Remnant Dust", +["HouJie.MadDoctor.007"]="Remnant Dust", +["HouJie.extra.001"]="Concentrated Solvent / Experienced Apothecary's Memory (+1)", +["HouJie.extra.003"]="Tainted Crystal Remnant", +["HouJie.extra.004"]="Polished Twin Metal", +["HouJie.extra.005"]="Polished Casting Metal", +["HouJie.extra.006"]="Flawless Twin Metal", +["Houjie.001.ShaqiHexin"]="Sha-Chi Core", +["Houjie.002.ShaqiHexin"]="Sha-Chi Core", +["HuanShuShi.AC.001"]="Forbidden Ancient Celestial Camphor Wood", +["HuanShuShi.AC.002"]="Ten-Thousand-Forged Otherworldly Copper", +["HuanShuShi.AC.003"]="Tainted Crystal Remnant", +["HuanShuShi.AC.004"]="Flawless Twin Metal", +["HuanShuShi.AC.005"]="Tainted Crystal Remnant", +["HuanShuShi.AC.007"]="Ying-Style Mechanical Gear", +["HuanShuShi.AC_ElementRegen"]="Spell-Nullifying Whisk Threads", +["HuanShuShi.AC_Frost"]="Spell-Nullifying Icicle", +["HuanShuShi.Dust_G.001"]="Remnant Dust", +["HuanShuShi.Dust_G.002"]="Remnant Dust", +["HuanShuShi.Dust_G.003"]="Remnant Dust", +["HuanShuShi.Dust_G.004"]="Passage Talisman", +["HuanShuShi.Dust_G.005"]="Remnant Dust", +["HuanShuShi.Dust_L.001"]="Remnant Dust", +["HuanShuShi.Dust_L.002"]="Remnant Dust", +["HuanShuShi.Dust_L.003"]="Remnant Dust", +["HuanShuShi.Dust_L.004"]="Experienced Apothecary's Memory", +["HuanShuShi.Dust_L.005"]="Master Apothecary's Memory", +["HuanShuShi.Dust_L.006"]="Forbidden Ancient Celestial Camphor Wood", +["HuanShuShi.Dust_L.007"]="Remnant Dust", +["HuanShuShi.Dust_L.008"]="Remnant Dust", +["HuanShuShi.Dust_L.009"]="Weapon Reverse-Forging Talisman", +["HuanShuShi.Dust_L.010"]="Remnant Dust", +["HuanShuShi.Dust_L.011"]="Remnant Dust", +["HuanShuShi.Dust_L.012"]="Experienced Apothecary's Memory", +["HuanShuShi.Dust_L.013"]="Remnant Dust", +["HuanShuShi.Dust_L.014"]="Shadow-Fading Talisman", +["HuanShuShi.Dust_L.015"]="Universal Fusing Solvent", +["HuanShuShi.Dust_L.016"]="Remnant Dust", +["HuanShuShi.Dust_L.017"]="Remnant Dust", +["HuanShuShi.Dust_M.001"]="Remnant Dust", +["HuanShuShi.Dust_M.002"]="Remnant Dust", +["HuanShuShi.Dust_M.003"]="Remnant Dust", +["HuanShuShi.Dust_M.004"]="Remnant Dust", +["HuanShuShi.Dust_M.005"]="Remnant Dust", +["HuanShuShi.Dust_M.006"]="Remnant Dust", +["HuanShuShi.Dust_M.007"]="Remnant Dust", +["HuanShuShi.Dust_R.001"]="Remnant Dust", +["HuanShuShi.Dust_R.002"]="Remnant Dust", +["HuanShuShi.Dust_R.003"]="Remnant Dust", +["HuanShuShi.Dust_R.004"]="Remnant Dust", +["HuanShuShi.Dust_R.005"]="Remnant Dust", +["HuanShuShi.Heishi.001"]="Blackstone Fragment", +["HuanShuShi.Heishi.002"]="Blackstone Fragment", +["HuanShuShi.Hupo.001"]="Sha-Chi Amber Fragment", +["HuanShuShi.Hupo.002"]="Sha-Chi Amber Fragment", +["HuanShuShi.Medi.001"]="Purified Indigo Crystal", +["HuanShuShi.Medi.002"]="Incense Ash Offered to the Holy Mother", +["HuanShuShi.Medi.003"]="Remnant Dust", +["HuanShuShi.Medi.004"]="Master Apothecary's Memory", +["HuanShuShi.Medi.005"]="Universal Fusing Solvent", +["HuanShuShi.Medi.006"]="Apprentice Apothecary's Memory", +["HuanShuShi.Medi.007"]="Apprentice Apothecary's Memory", +["HuanShuShi.Medi.008"]="Master Apothecary's Memory / Remnant Dust", +["HuanShuShi.Medi.009"]="Remnant Dust", +["HuanShuShi.Medi.010"]="Universal Fusing Solvent", +["HuanShuShi.Medicine_Ghost"]="Phantom Body Elixir", +["HuanShuShi.R_07018"]="Torn Page from an Illusionist's Notes / Remnant Dust", +["HuanShuShi.R_07019"]="Decree of the Supreme Venerable One / Remnant Dust", +["HuanShuShi.R_07020"]="Disordered Note / Remnant Dust", +["HuanShuShi.Return.001"]="Weapon Reverse-Forging Talisman", +["HuanShuShi.Return.003"]="Remnant Dust", +["HuanShuShi.TU_06002"]="Old Wooden Comb", +["HuanShuShi.TU_15002"]="Twin Chaos Irons", +["HuanShuShi.TU_180091"]="Boy's Shirt", +["HuanShuShi.TU_180092"]="Boy's Trousers", +["HuanShuShi.TU_180093"]="Boy's Shoes", +["HuanShuShi.TU_180094"]="Boy's Hat", +["HuanShuShi.Traversing.001"]="Passage Talisman", +["HuanShuShi.Traversing.002"]="Passage Talisman", +["HuanShuShi.Traversing.003"]="Passage Talisman", +["HuanShuShi.Traversing.004"]="Passage Talisman", +["HuanShuShi.Traversing.005"]="Passage Talisman", +["HuanShuShi.wmA.007"]="Remnant Dust", +["HuanShuShi.wmA.013"]="Remnant Dust", +["HuanShuShi.wmA.014"]="Flawless Long-Plate Metal", +["HuanShuShi.wmA.015"]="Remnant Dust", +["HuanShuShi.wmA.016"]="Experienced Apothecary's Memory", +["HuanShuShi.wmA.017"]="Remnant Dust", +["HuanShuShi.wmA.019"]="Universal Fusing Solvent", +["HuanShuShi.wmA.021"]="Remnant Dust", +["HuanShuShi.wmA.022"]="Remnant Dust", +["HuanShuShi.wmA.023"]="Remnant Dust", +["HuanShuShi.wmA.026"]="Flawless Long-Plate Metal", +["HuanShuShi.wmA.027"]="Remnant Dust", +["HuanShuShi.wmA.029"]="Remnant Dust", +["HuanShuShi.wmB.001"]="Remnant Dust", +["HuanShuShi.wmB.002"]="Remnant Dust", +["HuanShuShi.wmB.003"]="Flawless Twin Metal", +["HuanShuShi.wmB.004"]="Incense Ash Offered to the Holy Mother", +["HuanShuShi.wmB.005"]="Ten-Thousand-Forged Otherworldly Copper / Blazing Demonfire Charcoal (+1)", +["HuanShuShi.wmB.006"]="Remnant Dust", +["HuanShuShi.wmB.007"]="Blazing Demonfire Charcoal", +["HuanShuShi.wmB.008"]="Remnant Dust", +["HuanShuShi.wmB.009"]="Universal Fusing Solvent", +["HuanShuShi.wmB.010"]="Flawless Casting Metal", +["HuanShuShi.wmB.011"]="Remnant Dust", +["HuanShuShi.wmB.012"]="Flawless Casting Metal", +["HuanShuShi.wmB.014"]="Tainted Crystal Remnant", +["HuanShuShi.wmB.015"]="Ying-Style Mechanical Gear", +["HuanShuShi.wmB.016"]="Master Apothecary's Memory", +["LongZhu.AC_Counter"]="Counterattack Bracers", +["LongZhu.AC_SwitchEndure"]="Wondrous Scabbard", +["LongZhu.TU_150011"]="Cooled Fiery Grasp", +["LongZhu.TU_150021"]="Chaos Iron Remnant: Part One", +["LuJiaCun.001.Ac_Material_1"]="Tainted Crystal Remnant", +["LuJiaCun.001.Chest002"]="Soul-Summoning Incense Ash", +["LuJiaCun.001.Chest003"]="Polished Casting Metal", +["LuJiaCun.001.Dust_Large"]="Remnant Dust", +["LuJiaCun.001.Dust_Medium"]="Remnant Dust", +["LuJiaCun.001.Dust_Read"]="Remnant Dust", +["LuJiaCun.001.Dust_Small"]="Remnant Dust", +["LuJiaCun.001.Item_Piece_002"]="Sha-Chi Amber Fragment", +["LuJiaCun.001.K_05001"]="Lujia Village Cottage Cellar Key", +["LuJiaCun.001.K_14005"]="Black Snake Fang", +["LuJiaCun.001.Page_CS_06"]="Mechanical Ship and Dockyard / Remnant Dust", +["LuJiaCun.001.Page_CS_18"]="Lujia Village / Remnant Dust", +["LuJiaCun.001.R_02001"]="Bai Chilian's Notes / Remnant Dust", +["LuJiaCun.001.R_03029"]="Soul-Transfer Puppet / Remnant Dust", +["LuJiaCun.001.R_03030"]="Abandoned Puppet's Letter / Remnant Dust", +["LuJiaCun.001.R_05018"]="Strategy for a Joint Suppression Campaign / Remnant Dust", +["LuJiaCun.001.R_05019"]="Oath of Alliance to Defeat the Bandits / Remnant Dust", +["LuJiaCun.001.R_05020"]="Wanted Criminals: The Four Strange Mask Leaders / Remnant Dust", +["LuJiaCun.001.R_07013"]="Record: Sevenfold Ingenuity and the Seven Stars / Remnant Dust", +["LuJiaCun.001.R_07014"]="Record: Seven Wonders Antidote / Remnant Dust", +["LuJiaCun.001.Return_ShaqiWeapon_1"]="Shadow-Fading Talisman", +["LuJiaCun.001.Return_Weapon_1"]="Weapon Reverse-Forging Talisman", +["LuJiaCun.001.TU_03001"]="Border Garrison Banner", +["LuJiaCun.001.TU_03002"]="Border Garrison Poetry Collection", +["LuJiaCun.001.TU_03003"]="Golden Ammunition", +["LuJiaCun.001.TU_06002"]="Old Wooden Comb", +["LuJiaCun.001.TU_06005"]="Tough Bowstring", +["LuJiaCun.001.TU_11010"]="Snake Venom Sac: Black", +["LuJiaCun.001.Weapon_Material_03"]="Flawless Casting Metal", +["LuJiaCun.001.Weapon_Material_04"]="Twin Metal", +["LuJiaCun.001.Weapon_Material_05"]="Polished Twin Metal", +["LuJiaCun.001.Weapon_Material_08"]="Polished Long-Plate Metal", +["LuJiaCun.001.Weapon_Material_10"]="Polished Twin Metal", +["LuJiaCun.001.Weapon_Material_16"]="Hallucinatory Incense Ash", +["LuJiaCun.001.Weapon_Material_19"]="Ancient Celestial Camphor Wood", +["LuJiaCun.001.Weapon_Material_22"]="Hot Demonfire Charcoal", +["LuJiaCun.0010.Dust_Medium"]="Remnant Dust", +["LuJiaCun.0011.Dust_Medium"]="Remnant Dust", +["LuJiaCun.0012.Dust_Medium"]="Remnant Dust", +["LuJiaCun.0013.Dust_Medium"]="Remnant Dust", +["LuJiaCun.0014.Dust_Medium"]="Remnant Dust", +["LuJiaCun.0015.Dust_Medium"]="Remnant Dust", +["LuJiaCun.0016.Dust_Medium"]="Remnant Dust", +["LuJiaCun.0017.Dust_Medium"]="Remnant Dust", +["LuJiaCun.0018.Dust_Medium"]="Remnant Dust", +["LuJiaCun.0019.Dust_Medium"]="Remnant Dust", +["LuJiaCun.002.Ac_Material_1"]="Tainted Crystal Remnant", +["LuJiaCun.002.Dust_Medium"]="Remnant Dust", +["LuJiaCun.002.Dust_Read"]="Remnant Dust", +["LuJiaCun.002.Dust_Small"]="Remnant Dust", +["LuJiaCun.002.Item_Piece_001"]="Blackstone Fragment", +["LuJiaCun.002.Return_ShaqiWeapon_1"]="Shadow-Fading Talisman", +["LuJiaCun.002.Return_Weapon_1"]="Weapon Reverse-Forging Talisman", +["LuJiaCun.002.Weapon_Material_04"]="Polished Casting Metal", +["LuJiaCun.002.Weapon_Material_07"]="Polished Long-Plate Metal", +["LuJiaCun.002.Weapon_Material_13"]="Hot Demonfire Charcoal / Remnant Dust", +["LuJiaCun.002.Weapon_Material_16"]="Ancient Wood", +["LuJiaCun.002.Weapon_Material_22"]="Otherworldly Copper", +["LuJiaCun.002.Weapon_Material_25"]="Otherworldly Copper", +["LuJiaCun.0020.Dust_Medium"]="Remnant Dust", +["LuJiaCun.0021.Dust_Medium"]="Remnant Dust", +["LuJiaCun.003.Ac_Material_1"]="Tainted Crystal Remnant", +["LuJiaCun.003.Dust_Read"]="Remnant Dust", +["LuJiaCun.003.Dust_Small"]="Remnant Dust", +["LuJiaCun.003.Return_ShaqiWeapon_1"]="Shadow-Fading Talisman", +["LuJiaCun.003.Return_Weapon_1"]="Weapon Reverse-Forging Talisman", +["LuJiaCun.003.Weapon_Material_01"]="Long-Plate Metal", +["LuJiaCun.003.Weapon_Material_07"]="Polished Twin Metal", +["LuJiaCun.003.Weapon_Material_19"]="Exotic Copper Ingot", +["LuJiaCun.004.Ac_Material_1"]="Tainted Crystal Remnant", +["LuJiaCun.004.Dust_Large"]="Remnant Dust", +["LuJiaCun.004.Dust_Medium"]="Remnant Dust", +["LuJiaCun.004.Dust_Read"]="Remnant Dust", +["LuJiaCun.004.Dust_Small"]="Remnant Dust", +["LuJiaCun.004.Item_Piece_001"]="Blackstone Fragment", +["LuJiaCun.004.K_05005"]="Lujia Village Cottage Cellar Key", +["LuJiaCun.004.K_06004"]="Dragon-Shaped Token: Yang", +["LuJiaCun.004.R_04007"]="Lujia Village Lost Treasure List / Remnant Dust", +["LuJiaCun.004.R_04902"]="Mute Puppet Blueprint / Remnant Dust", +["LuJiaCun.004.R_05001"]="Illustrated Construction Plan of the Puppet Base / Remnant Dust", +["LuJiaCun.004.R_05002"]="Dream Bailiff's Letter to the Supreme One / Remnant Dust", +["LuJiaCun.004.R_05003"]="Well Closure Notice / Remnant Dust", +["LuJiaCun.004.R_05005"]="Puppet Base Register: Spatial Expansion / Remnant Dust", +["LuJiaCun.004.R_05006"]="Unfinished Scripture of the Holy Mother / Remnant Dust", +["LuJiaCun.004.R_05007"]="Life-Imprisoner's Letter / Remnant Dust", +["LuJiaCun.004.R_05008"]="Letter from the Supreme One / Remnant Dust", +["LuJiaCun.004.R_05009"]="Secret Report on Purging Corruption / Remnant Dust", +["LuJiaCun.004.R_05010"]="Seven Wonders Pharmacopoeia / Remnant Dust", +["LuJiaCun.004.R_05011"]="Holy Mother's Proclamation / Remnant Dust", +["LuJiaCun.004.R_05012"]="Ritual Notice: How to Meet the Holy Mother / Remnant Dust", +["LuJiaCun.004.R_05013"]="Funeral Register / Remnant Dust", +["LuJiaCun.004.R_05014"]="Diary of a Villager Who Stayed: Mid-Autumn / Remnant Dust", +["LuJiaCun.004.R_05015"]="Diary of a Villager Who Stayed: Frost's Descent / Remnant Dust", +["LuJiaCun.004.R_05016"]="Puppet Base Register: The First Experimental Base / Remnant Dust", +["LuJiaCun.004.R_05017"]="Singing Girl Puppet's Letter / Remnant Dust", +["LuJiaCun.004.R_05021"]="Prayer to the Holy Mother / Remnant Dust", +["LuJiaCun.004.Return_ShaqiWeapon_1"]="Shadow-Fading Talisman", +["LuJiaCun.004.Return_Weapon_1"]="Weapon Reverse-Forging Talisman", +["LuJiaCun.004.T_05001"]="Bridal Chamber Candles", +["LuJiaCun.004.T_05002"]="Twin-Child Jade Pendant", +["LuJiaCun.004.T_05003"]="Statue Not Yet Covered in Flowers", +["LuJiaCun.004.Weapon_Material_01"]="Polished Long-Plate Metal", +["LuJiaCun.004.Weapon_Material_04"]="Solvent", +["LuJiaCun.004.Weapon_Material_10"]="Casting Metal", +["LuJiaCun.004.Weapon_Material_16"]="Soul-Summoning Incense Ash", +["LuJiaCun.005.Ac_Material_1"]="Tainted Crystal Remnant", +["LuJiaCun.005.Dust_Large"]="Remnant Dust", +["LuJiaCun.005.Dust_Medium"]="Remnant Dust", +["LuJiaCun.005.Dust_Read"]="Remnant Dust", +["LuJiaCun.005.Dust_Small"]="Remnant Dust", +["LuJiaCun.005.Return_Weapon_1"]="Weapon Reverse-Forging Talisman", +["LuJiaCun.005.Weapon_Material_07"]="Polished Casting Metal", +["LuJiaCun.005.Weapon_Material_16"]="Ancient Celestial Camphor Wood", +["LuJiaCun.005.Weapon_Material_22"]="Hallucinatory Incense Ash", +["LuJiaCun.006.Dust_Large"]="Remnant Dust", +["LuJiaCun.006.Dust_Medium"]="Remnant Dust", +["LuJiaCun.006.Dust_Read"]="Remnant Dust", +["LuJiaCun.006.Dust_Small"]="Twin Metal", +["LuJiaCun.006.Return_Weapon_1"]="Weapon Reverse-Forging Talisman", +["LuJiaCun.006.Weapon_Material_01"]="Polished Long-Plate Metal", +["LuJiaCun.006.Weapon_Material_16"]="Hot Demonfire Charcoal", +["LuJiaCun.006.Weapon_Material_25"]="Demonfire Charcoal", +["LuJiaCun.007.Dust_Read"]="Remnant Dust", +["LuJiaCun.007.Dust_Small"]="Remnant Dust", +["LuJiaCun.007.Weapon_Material_04"]="Precision Mechanical Gear", +["LuJiaCun.007.Weapon_Material_25"]="Ancient Wood", +["LuJiaCun.008.Dust_Large"]="Remnant Dust", +["LuJiaCun.008.Dust_Medium"]="Remnant Dust", +["LuJiaCun.008.Dust_Read"]="Remnant Dust", +["LuJiaCun.008.Dust_Small"]="Remnant Dust", +["LuJiaCun.009.Dust_Large"]="Remnant Dust", +["LuJiaCun.009.Dust_Read"]="Remnant Dust", +["LuJiaCun.009.Dust_Small"]="Remnant Dust", +["LuJiaCun.009.Weapon_Material_01"]="Solvent", +["LuJiaCun.009.Weapon_Material_10"]="Polished Twin Metal", +["LuJiaCun.010.Dust_Large"]="Remnant Dust", +["LuJiaCun.010.Dust_Read"]="Remnant Dust", +["LuJiaCun.010.Dust_Small"]="Remnant Dust", +["LuJiaCun.011.Dust_Read"]="Remnant Dust", +["LuJiaCun.011.Dust_Small"]="Remnant Dust", +["LuJiaCun.012.Dust_Read"]="Remnant Dust", +["LuJiaCun.012.Dust_Small"]="Remnant Dust", +["LuJiaCun.013.Dust_Read"]="Remnant Dust", +["LuJiaCun.013.Dust_Small"]="Remnant Dust", +["LuJiaCun.015.Dust_Read"]="Remnant Dust", +["LuJiaCun.015.Dust_Small"]="Remnant Dust", +["LuJiaCun.016.Dust_Read"]="Remnant Dust", +["LuJiaCun.016.Dust_Small"]="Remnant Dust", +["LuJiaCun.017.Dust_Read"]="Remnant Dust", +["LuJiaCun.017.Dust_Small"]="Remnant Dust", +["LuJiaCun.018.Dust_Read"]="Remnant Dust", +["LuJiaCun.018.Dust_Small"]="Remnant Dust", +["LuJiaCun.019.Dust_Read"]="Remnant Dust", +["LuJiaCun.019.Dust_Small"]="Remnant Dust", +["LuJiaCun.020.Dust_Read"]="Remnant Dust", +["LuJiaCun.020.Dust_Small"]="Remnant Dust", +["LuJiaCun.021.Dust_Read"]="Remnant Dust", +["LuJiaCun.021.Dust_Small"]="Remnant Dust", +["LuJiaCun.022.Dust_Read"]="Remnant Dust", +["LuJiaCun.022.Dust_Small"]="Remnant Dust", +["LuJiaCun.026.Dust_Small"]="Remnant Dust", +["LuJiaCun.027.Dust_Small"]="Remnant Dust", +["LuJiaCun.028.Dust_Small"]="Remnant Dust", +["LuJiaCun.031.Dust_Small"]="Remnant Dust", +["LuJiaCun.033.Dust_Small"]="Remnant Dust", +["LuJiaCun.034.Dust_Small"]="Remnant Dust", +["LuJiaCun.036.Dust_Small"]="Remnant Dust", +["LuJiaCun.037.Dust_Small"]="Remnant Dust", +["LuJiaCun.039.Dust_Small"]="Remnant Dust", +["LuJiaCun.040.Dust_Small"]="Remnant Dust", +["LuJiaCun.041.Dust_Small"]="Remnant Dust", +["LuJiaCun.044.Dust_Small"]="Remnant Dust", +["LuJiaCun.046.Dust_Small"]="Remnant Dust", +["LuJiaCun.047.Dust_Small"]="Remnant Dust", +["LuJiaCun.048.Dust_Small"]="Remnant Dust", +["LuJiaCun.049.Dust_Small"]="Remnant Dust", +["LuJiaCun.050.Dust_Small"]="Remnant Dust", +["LuJiaCun.051.Dust_Small"]="Remnant Dust", +["LuJiaCun.052.Dust_Small"]="Remnant Dust", +["LuJiaCun.054.Dust_Small"]="Remnant Dust", +["LuJiaCun.Chest001"]="Polished Casting Metal / Concentrated Solvent", +["LuJiaCun.Chest002"]="Sha-Chi Amber Fragment", +["LuJiaCun.Chest003"]="Casting Metal / Sha-Chi Amber Fragment", +["LuJiaCun.Chest004"]="Purified Indigo Crystal / Remnant Dust", +["LuJiaCun.Chest005"]="Sha-Chi Amber Fragment", +["LuJiaCun.Chest006"]="Polished Long-Plate Metal / Remnant Dust", +["LuJiaCun.Chest007"]="Concentrated Solvent / Precision Mechanical Gear", +["LuJiaCun.Chest008"]="Twin Metal / Mechanical Gear", +["LuJiaCun.Chest009"]="Casting Metal / Polished Twin Metal", +["LuJiaCun.Chest010"]="Long-Plate Metal / Soul-Summoning Incense Ash (+1)", +["LuJiaCun.Chest011"]="Demonfire Charcoal / Remnant Dust", +["LuJiaCun.Chest012"]="Polished Long-Plate Metal", +["LuJiaCun.Chest013"]="Casting Metal / Long-Plate Metal", +["LuJiaCun.Chest014"]="Soul-Summoning Incense Ash / Remnant Dust", +["LuJiaCun.Chest015"]="Ancient Celestial Camphor Wood / Ancient Wood (+1)", +["LuJiaCun.Chest016"]="Polished Twin Metal / Long-Plate Metal (+1)", +["LuJiaCun.Chest017"]="Soul-Summoning Incense Ash / Remnant Dust", +["LuJiaCun.Chest018"]="Long-Plate Metal / Hallucinatory Incense Ash (+1)", +["LuJiaCun.Chest019"]="Solvent / Twin Metal", +["LuJiaCun.Chest020"]="Mechanical Gear / Remnant Dust", +["LuJiaCun.Chest021"]="Polished Casting Metal / Casting Metal (+1)", +["LuJiaCun.Chest022"]="Polished Long-Plate Metal / Polished Twin Metal (+1)", +["LuJiaCun.Chest023"]="Concentrated Solvent / Polished Twin Metal (+1)", +["LuJiaCun.Chest024"]="Precision Mechanical Gear / Exotic Copper Ingot", +["LuJiaCun.Chest025"]="Blackstone Fragment / Remnant Dust", +["LuJiaCun.Chest026"]="Blackstone Fragment / Remnant Dust", +["LuJiaCun.Chest028"]="Polished Twin Metal / Twin Metal", +["LuJiaCun.Chest029"]="Precision Mechanical Gear / Exotic Copper Ingot", +["LuJiaCun.Chest030"]="Solvent / Polished Twin Metal", +["LuJiaCun.Chest031"]="Polished Twin Metal / Concentrated Solvent (+1)", +["LuJiaCun.Chest033"]="Concentrated Solvent / Polished Casting Metal", +["LuJiaCun.Traverse001"]="Passage Talisman", +["LuJiaCun.Traverse002"]="Passage Talisman", +["LuJiaCun.Traverse003"]="Passage Talisman", +["LuJiaCun.Traverse004"]="Passage Talisman", +["LuJiaCun.Traverse005"]="Passage Talisman", +["LuJiaCun.Traverse006"]="Passage Talisman", +["LuJiacCun.001.AC_BreakRecover"]="Agarwood Prayer Beads", +["LuJiacCun.001.AC_BreakRegen"]="Loving Mother's Charm", +["LuJiacCun.001.AC_Control"]="Fine Thread Ball", +["LuJiacCun.001.AC_Execution"]="Ten-Thousand-Kill Clever Lock", +["LuJiacCun.001.AC_Health"]="Exotic Woven Curio", +["LuJiacCun.001.AC_PoisonRegen"]="Living Wood Talisman", +["LuJiacCun.001.AC_ResistRanged"]="Arrow-Warding Charm", +["LuJiacCun.001.AC_SpiritShadow"]="Small Dark Source Cage", +["LuJiacCun.001.AC_SummonDuration"]="Puppet's Wooden Heart", +["LuJiacCun.001.GuiShen"]="Spirit-Restoring Soup", +["LuJiacCun.001.JinJiHeJi"]="Forbidden Mixture", +["MeiGuHu.001.Return_ShaqiWeapon_1"]="Universal Fusing Solvent", +["MeiGuHu.002.Return_ShaqiWeapon_1"]="Universal Fusing Solvent", +["MeiGuHu.005.Return_Weapon_1"]="Flawless Twin Metal", +["MeiGuHu.AC_Execution"]="Ten-Thousand-Kill Clever Lock", +["MeiGuHu.AC_Loot"]="Treasure Basin / Remnant Dust", +["MeiGuHu.AC_Poison"]="Virulent Poison Pouch", +["MeiGuHu.AC_Ranged"]="Sharpshooter's Eye", +["MeiGuHu.AC_ShachiCool"]="Rouge Box", +["MeiGuHu.Ac001"]="Forbidden Ancient Celestial Camphor Wood", +["MeiGuHu.Ac003.ShaQiTa"]="Remnant Dust", +["MeiGuHu.Ac004"]="Tainted Crystal Remnant / Remnant Dust", +["MeiGuHu.Ac005"]="Flawless Casting Metal", +["MeiGuHu.Ac006"]="Flawless Casting Metal", +["MeiGuHu.Ac007"]="Tainted Crystal Remnant", +["MeiGuHu.Ac008"]="Purified Indigo Crystal", +["MeiGuHu.Ac009"]="Remnant Dust", +["MeiGuHu.Ac010"]="Master Apothecary's Memory", +["MeiGuHu.Chest.Shaqita.001"]="Precision Mechanical Gear / Incense Ash Offered to the Holy Mother (+1)", +["MeiGuHu.Chest.Shaqita.002"]="Flawless Long-Plate Metal / Polished Long-Plate Metal (+1)", +["MeiGuHu.Chest001"]="Precision Mechanical Gear / Hot Demonfire Charcoal (+1)", +["MeiGuHu.Chest002"]="Flawless Casting Metal / Polished Long-Plate Metal (+1)", +["MeiGuHu.Chest003"]="Polished Casting Metal / Polished Twin Metal", +["MeiGuHu.Chest004"]="Tainted Crystal Remnant / Remnant Dust", +["MeiGuHu.Chest005"]="Polished Casting Metal / Flawless Twin Metal (+1)", +["MeiGuHu.Dust_G.001"]="Ying-Style Mechanical Gear", +["MeiGuHu.Dust_G.002"]="Flawless Casting Metal", +["MeiGuHu.Dust_L.001"]="Remnant Dust", +["MeiGuHu.Dust_L.002"]="Passage Talisman", +["MeiGuHu.Dust_L.003"]="Flawless Casting Metal", +["MeiGuHu.Dust_M.001"]="Hot Demonfire Charcoal", +["MeiGuHu.Dust_M.002"]="Flawless Twin Metal", +["MeiGuHu.Dust_M.003"]="Remnant Dust", +["MeiGuHu.Dust_M.004"]="Remnant Dust", +["MeiGuHu.Dust_M.005"]="Flawless Long-Plate Metal", +["MeiGuHu.Dust_M.006"]="Remnant Dust", +["MeiGuHu.Dust_M.007"]="Flawless Twin Metal", +["MeiGuHu.Dust_M.008"]="Remnant Dust", +["MeiGuHu.Dust_S.001"]="Remnant Dust", +["MeiGuHu.Dust_S.002"]="Experienced Apothecary's Memory", +["MeiGuHu.Dust_S.003"]="Universal Fusing Solvent", +["MeiGuHu.Dust_S.004"]="Remnant Dust", +["MeiGuHu.Dust_S.005"]="Apprentice Apothecary's Memory", +["MeiGuHu.Dust_S.006"]="Remnant Dust", +["MeiGuHu.Dust_S.007"]="Ancient Celestial Camphor Wood", +["MeiGuHu.Dust_S.008"]="Remnant Dust", +["MeiGuHu.Dust_S.009"]="Remnant Dust", +["MeiGuHu.Dust_S.010"]="Remnant Dust", +["MeiGuHu.Dust_S.011"]="Remnant Dust", +["MeiGuHu.Dust_S.012"]="Remnant Dust", +["MeiGuHu.Dust_S.013"]="Remnant Dust", +["MeiGuHu.Dust_S.014"]="Remnant Dust", +["MeiGuHu.Dust_S.015"]="Remnant Dust", +["MeiGuHu.Dust_S.016"]="Remnant Dust", +["MeiGuHu.Dust_S.017"]="Remnant Dust", +["MeiGuHu.Dust_S.018"]="Remnant Dust", +["MeiGuHu.Dust_S.019"]="Remnant Dust", +["MeiGuHu.Dust_S.020"]="Remnant Dust", +["MeiGuHu.Dust_S.021"]="Experienced Apothecary's Memory", +["MeiGuHu.Dust_S.022"]="Remnant Dust", +["MeiGuHu.Dust_S.023"]="Flawless Twin Metal", +["MeiGuHu.Dust_S.024"]="Remnant Dust", +["MeiGuHu.Dust_S.025"]="Blazing Demonfire Charcoal", +["MeiGuHu.Dust_S.026"]="Ten-Thousand-Forged Otherworldly Copper", +["MeiGuHu.Dust_S.027"]="Flawless Long-Plate Metal", +["MeiGuHu.Dust_S.028"]="Remnant Dust", +["MeiGuHu.Dust_S.029"]="Remnant Dust", +["MeiGuHu.Dust_S.030"]="Remnant Dust", +["MeiGuHu.Dust_S.031"]="Experienced Apothecary's Memory", +["MeiGuHu.Heishi.001"]="Blackstone Fragment", +["MeiGuHu.Heishi.002"]="Blackstone Fragment", +["MeiGuHu.Heishi.003"]="Blackstone Fragment", +["MeiGuHu.Heishi.004"]="Blackstone Fragment", +["MeiGuHu.HuPo.001"]="Sha-Chi Amber Fragment", +["MeiGuHu.HuPo.002"]="Sha-Chi Amber Fragment", +["MeiGuHu.HuPo.003"]="Sha-Chi Amber Fragment", +["MeiGuHu.HuPo.004"]="Sha-Chi Amber Fragment", +["MeiGuHu.I_08002"]="Illusion Pipa Strings", +["MeiGuHu.Investigate1"]="Remnant Dust", +["MeiGuHu.Investigate2"]="Remnant Dust", +["MeiGuHu.Investigate3"]="Remnant Dust", +["MeiGuHu.K_12003"]="Red-Cloth Wooden Door Key", +["MeiGuHu.K_14003"]="White Snake Eye", +["MeiGuHu.Medi001"]="Flawless Long-Plate Metal", +["MeiGuHu.Medi002"]="Flawless Casting Metal", +["MeiGuHu.Medi003"]="Universal Fusing Solvent", +["MeiGuHu.Medi004"]="Incense Ash Offered to the Holy Mother", +["MeiGuHu.Medi005"]="Remnant Dust", +["MeiGuHu.Medi006"]="Flawless Twin Metal", +["MeiGuHu.Medi007"]="Universal Fusing Solvent", +["MeiGuHu.Medi008"]="Flawless Twin Metal", +["MeiGuHu.Medi009"]="Flawless Twin Metal", +["MeiGuHu.Medi010"]="Flawless Long-Plate Metal", +["MeiGuHu.Medi011"]="Apprentice Apothecary's Memory", +["MeiGuHu.Medi012"]="Remnant Dust", +["MeiGuHu.Medi013"]="Flawless Long-Plate Metal", +["MeiGuHu.Medi014"]="Master Apothecary's Memory", +["MeiGuHu.Medi015"]="Experienced Apothecary's Memory", +["MeiGuHu.Medi016"]="Flawless Casting Metal", +["MeiGuHu.Medicine_ShachiAttack"]="Sha-Chi Hemolysis Catalyst", +["MeiGuHu.Medicine_UltimateCharge"]="Longevity Drink", +["MeiGuHu.R_07001"]="Infinite Radiant Heart Design / Remnant Dust", +["MeiGuHu.R_07004"]="Illustrated Guide to Dreamplay Manor / Remnant Dust", +["MeiGuHu.R_07005"]="Merchant Guild Directory / Remnant Dust", +["MeiGuHu.R_07015"]="One-Eyed Archer's Letter / Remnant Dust", +["MeiGuHu.R_11001"]="Unsigned Letter / Remnant Dust", +["MeiGuHu.R_11002"]="Purple Fragment Notes / Remnant Dust", +["MeiGuHu.R_11003"]="Green Snake House Secret Passage Map / Remnant Dust", +["MeiGuHu.R_12007"]="Notice to Suppress the Bandits / Remnant Dust", +["MeiGuHu.R_12007.2"]="Notice to Suppress the Bandits / Remnant Dust", +["MeiGuHu.R_12009"]="Waterway Gang Martial Challenge / Remnant Dust", +["MeiGuHu.R_12010"]="Waterway Gang Register / Remnant Dust", +["MeiGuHu.R_12011"]="Fragmentary Travel Notes / Remnant Dust", +["MeiGuHu.R_12012"]="Heavily Marked Map / Remnant Dust", +["MeiGuHu.R_12013"]="Stranded Paper Boat / Remnant Dust", +["MeiGuHu.R_12014"]="Stillwater Recollections: Part One, The Contest / Remnant Dust", +["MeiGuHu.R_12015"]="Stillwater Recollections: Part Two, Hope / Remnant Dust", +["MeiGuHu.R_12016"]="Stillwater Recollections: Part Three, Winning and Losing / Remnant Dust", +["MeiGuHu.R_12017"]="Ornate Invitation / Remnant Dust", +["MeiGuHu.R_12019"]="Letter to Lord Meng in the Capital / Remnant Dust", +["MeiGuHu.R_12020"]="Six Sights of Meigu / Remnant Dust", +["MeiGuHu.Read01"]="Remnant Dust", +["MeiGuHu.Read02"]="Remnant Dust", +["MeiGuHu.Read03"]="Remnant Dust", +["MeiGuHu.Read04"]="Remnant Dust", +["MeiGuHu.Read05"]="Remnant Dust", +["MeiGuHu.Return001"]="Universal Fusing Solvent", +["MeiGuHu.Return002"]="Universal Fusing Solvent", +["MeiGuHu.Return003"]="Flawless Twin Metal", +["MeiGuHu.Return006"]="Flawless Twin Metal", +["MeiGuHu.Return007"]="Universal Fusing Solvent", +["MeiGuHu.Return008"]="Apprentice Apothecary's Memory", +["MeiGuHu.Return009"]="Universal Fusing Solvent", +["MeiGuHu.Return010"]="Ten-Thousand-Forged Otherworldly Copper", +["MeiGuHu.Return011"]="Flawless Long-Plate Metal", +["MeiGuHu.Return012"]="Ying-Style Mechanical Gear", +["MeiGuHu.ShaqiTa.AC_TimerEndure"]="Hundred-Battle Demon Body", +["MeiGuHu.ShaqiTa.TU_15001"]="Fiery Grasp", +["MeiGuHu.TU_03003"]="Golden Ammunition", +["MeiGuHu.TU_05005"]="Shed Snakeskin: White", +["MeiGuHu.TU_10001"]="Superalloy Sickle Head", +["MeiGuHu.TU_10002"]="Waterway Gang Rules", +["MeiGuHu.TU_10003"]="Powerful Water Pump", +["MeiGuHu.TU_11003"]="Six Paths Sect Arrest Warrant", +["MeiGuHu.TU_11006"]="Embroidered Shoes", +["MeiGuHu.TU_11012"]="Everlasting Lamp Flame", +["MeiGuHu.T_08003"]="Blue-Flower Compass", +["MeiGuHu.Traverse001"]="Flawless Long-Plate Metal", +["MeiGuHu.Traverse003"]="Flawless Twin Metal", +["MeiGuHu.Traverse005"]="Passage Talisman", +["MeiGuHu.Traverse007"]="Flawless Twin Metal", +["MeiGuHu.Traverse008"]="Remnant Dust", +["MeiGuHu.Traverse009"]="Experienced Apothecary's Memory", +["MeiGuHu.WmA001"]="Polished Casting Metal", +["MeiGuHu.WmA002"]="Polished Casting Metal", +["MeiGuHu.WmA003"]="Experienced Apothecary's Memory", +["MeiGuHu.WmA004"]="Apprentice Apothecary's Memory", +["MeiGuHu.WmA005"]="Apprentice Apothecary's Memory", +["MeiGuHu.WmA006"]="Remnant Dust", +["MeiGuHu.WmA006.Shaqita"]="Blazing Demonfire Charcoal", +["MeiGuHu.WmA007"]="Apprentice Apothecary's Memory", +["MeiGuHu.WmA008"]="Apprentice Apothecary's Memory", +["MeiGuHu.WmA009"]="Universal Fusing Solvent", +["MeiGuHu.WmA009.Shaqita"]="Flawless Long-Plate Metal", +["MeiGuHu.WmA010"]="Flawless Casting Metal", +["MeiGuHu.WmA011"]="Flawless Casting Metal", +["MeiGuHu.WmA011.Shaqita"]="Remnant Dust", +["MeiGuHu.WmA012"]="Remnant Dust", +["MeiGuHu.WmA012.Shaqita"]="Polished Long-Plate Metal", +["MeiGuHu.WmA013"]="Remnant Dust", +["MeiGuHu.WmA014"]="Remnant Dust", +["MeiGuHu.WmA015"]="Shadow-Fading Talisman", +["MeiGuHu.WmA016"]="Remnant Dust", +["MeiGuHu.WmA017"]="Remnant Dust", +["MeiGuHu.WmA018"]="Blazing Demonfire Charcoal", +["MeiGuHu.WmA019"]="Flawless Casting Metal", +["MeiGuHu.WmA020"]="Hot Demonfire Charcoal", +["MeiGuHu.WmA021"]="Remnant Dust", +["MeiGuHu.WmA021.shaqita"]="Remnant Dust", +["MeiGuHu.WmA022"]="Flawless Long-Plate Metal", +["MeiGuHu.WmA022.shaqita"]="Universal Fusing Solvent", +["MeiGuHu.WmA023"]="Polished Long-Plate Metal", +["MeiGuHu.WmA023.shaqita"]="Ancient Celestial Camphor Wood", +["MeiGuHu.WmA024"]="Polished Long-Plate Metal", +["MeiGuHu.WmA024.Shaqita"]="Tainted Crystal Remnant / Otherworldly Copper (+1)", +["MeiGuHu.WmB001"]="Hallucinatory Incense Ash / Forbidden Ancient Celestial Camphor Wood (+1)", +["MeiGuHu.WmB002"]="Apprentice Apothecary's Memory", +["MeiGuHu.WmB003"]="Remnant Dust", +["MeiGuHu.WmB004"]="Incense Ash Offered to the Holy Mother", +["MeiGuHu.WmB005"]="Polished Twin Metal", +["MeiGuHu.WmB006"]="Universal Fusing Solvent", +["MeiGuHu.WmB007"]="Tainted Crystal Remnant", +["MeiGuHu.WmB007.shaqita"]="Apprentice Apothecary's Memory", +["MeiGuHu.WmB008"]="Remnant Dust", +["MeiGuHu.WmB009"]="Ten-Thousand-Forged Otherworldly Copper", +["MeiGuHu.WmB010"]="Apprentice Apothecary's Memory", +["MeiGuHu.WmB010.shaqita"]="Hallucinatory Incense Ash", +["MeiGuHu.WmB011"]="Hallucinatory Incense Ash", +["MeiGuHu.WmB011.shaqita"]="Flawless Casting Metal", +["MeiGuHu.WmB012"]="Flawless Twin Metal", +["MeiGuHu.WmB013"]="Flawless Casting Metal", +["MeiGuHu.WmB014"]="Tainted Crystal Remnant", +["MeiGuHu.WmB015"]="Remnant Dust", +["MeiGuHu.WmB016"]="Polished Casting Metal / Flawless Long-Plate Metal (+1)", +["MeiGuHu.WmB017"]="Remnant Dust", +["MeiGuHu.WmB018"]="Remnant Dust", +["MeiGuHu.WmB019"]="Experienced Apothecary's Memory", +["MeiGuHu.wmA.003"]="Remnant Dust", +["MeiGuHu.wmB.020"]="Flawless Casting Metal", +["PangZhen.001.Item_Traversing"]="Passage Talisman", +["PangZhen.001.Return_Weapon_1"]="Hot Demonfire Charcoal", +["PangZhen.002.Item_Traversing"]="Passage Talisman", +["PangZhen.002.Return_Weapon_1"]="Ancient Celestial Camphor Wood", +["PangZhen.003.Item_Traversing"]="Passage Talisman", +["PangZhen.003.Return_ShaqiWeapon_1"]="Polished Long-Plate Metal", +["PangZhen.003.Return_Weapon_1"]="Long-Plate Metal", +["PangZhen.004.Return_ShaqiWeapon_1"]="Remnant Dust", +["PangZhen.004.Return_Weapon_1"]="Weapon Reverse-Forging Talisman", +["PangZhen.005.Return_ShaqiWeapon_1"]="Remnant Dust", +["PangZhen.AC.001"]="Tainted Crystal Remnant", +["PangZhen.AC.002"]="Tainted Crystal Remnant", +["PangZhen.AC.003"]="Tainted Crystal Remnant", +["PangZhen.AC.004"]="Tainted Crystal Remnant", +["PangZhen.AC.005"]="Tainted Crystal Remnant", +["PangZhen.AC.006"]="Tainted Crystal Remnant", +["PangZhen.AC.007"]="Purified Indigo Crystal", +["PangZhen.AC.008"]="Purified Indigo Crystal", +["PangZhen.AC_AnimMovement"]="Dance Fan", +["PangZhen.AC_Combo"]="Righteous Blood Beneath the Clouds", +["PangZhen.AC_DrinkCost"]="Secluded Mansion Medicine Jar", +["PangZhen.AC_DrinkCost_1"]="Medicine Jar Fragment: Lid", +["PangZhen.AC_DrinkCost_2"]="Medicine Jar Fragment: Chain", +["PangZhen.AC_DrinkCost_3"]="Medicine Jar Fragment: Handle", +["PangZhen.AC_DrinkCost_4"]="Medicine Jar Fragment: Body", +["PangZhen.AC_ResistFire"]="Fire-Warding Talisman", +["PangZhen.AC_ShachiRegen"]="Sha-Chi Headscarf", +["PangZhen.AC_ShachiWeapon"]="Dark Source Cube", +["PangZhen.AC_ShachiWeapon_1"]="Dark Source Cube: Tenon", +["PangZhen.AC_ShachiWeapon_2"]="Dark Source Cube: Mortise", +["PangZhen.AC_UltimateBreak"]="Ultimate Technique Charm", +["PangZhen.Dust_E.002"]="Remnant Dust", +["PangZhen.Dust_G.001"]="Remnant Dust", +["PangZhen.Dust_G.004"]="Concentrated Solvent / Otherworldly Copper (+2)", +["PangZhen.Dust_L.001"]="Remnant Dust", +["PangZhen.Dust_L.002"]="Remnant Dust", +["PangZhen.Dust_L.003"]="Hallucinatory Incense Ash", +["PangZhen.Dust_L.004"]="Remnant Dust", +["PangZhen.Dust_L.005"]="Remnant Dust", +["PangZhen.Dust_M.001"]="Remnant Dust", +["PangZhen.Dust_M.002"]="Remnant Dust", +["PangZhen.Dust_M.003"]="Remnant Dust", +["PangZhen.Dust_M.004"]="Hot Demonfire Charcoal", +["PangZhen.Dust_M.005"]="Remnant Dust", +["PangZhen.Dust_M.006"]="Remnant Dust", +["PangZhen.Dust_M.007"]="Remnant Dust", +["PangZhen.Dust_R.001"]="Remnant Dust", +["PangZhen.Dust_R.002"]="Remnant Dust", +["PangZhen.Dust_R.003"]="Remnant Dust", +["PangZhen.Dust_R.004"]="Remnant Dust", +["PangZhen.Dust_R.005"]="Remnant Dust", +["PangZhen.Dust_R.006"]="Remnant Dust", +["PangZhen.Dust_R.007"]="Remnant Dust", +["PangZhen.Dust_R.008"]="Remnant Dust", +["PangZhen.Dust_R.009"]="Remnant Dust", +["PangZhen.Dust_S.001"]="Hot Demonfire Charcoal", +["PangZhen.Dust_S.002"]="Concentrated Solvent", +["PangZhen.Dust_S.003"]="Weapon Reverse-Forging Talisman", +["PangZhen.Dust_S.004"]="Remnant Dust", +["PangZhen.Dust_S.005"]="Precision Mechanical Gear", +["PangZhen.Dust_S.006"]="Remnant Dust", +["PangZhen.Dust_S.007"]="Remnant Dust", +["PangZhen.Dust_S.008"]="Remnant Dust", +["PangZhen.Dust_S.009"]="Remnant Dust", +["PangZhen.Dust_S.010"]="Remnant Dust", +["PangZhen.Dust_S.011"]="Remnant Dust", +["PangZhen.Dust_S.012"]="Polished Casting Metal", +["PangZhen.E_Box01"]="Polished Twin Metal / Polished Casting Metal (+2)", +["PangZhen.E_Box02"]="Polished Long-Plate Metal / Tainted Crystal Remnant (+1)", +["PangZhen.E_Box03"]="Tainted Crystal Remnant / Concentrated Solvent (+1)", +["PangZhen.E_wmA.001"]="Flawless Long-Plate Metal", +["PangZhen.E_wmA.002"]="Polished Long-Plate Metal", +["PangZhen.E_wmA.003"]="Polished Twin Metal", +["PangZhen.E_wmA.004"]="Universal Fusing Solvent", +["PangZhen.Heishi.001"]="Blackstone Fragment", +["PangZhen.Heishi.002"]="Blackstone Fragment", +["PangZhen.Heishi.003"]="Blackstone Fragment", +["PangZhen.Heishi.004"]="Blackstone Fragment", +["PangZhen.HuPo.001"]="Sha-Chi Amber Fragment", +["PangZhen.HuPo.002"]="Sha-Chi Amber Fragment", +["PangZhen.HuPo.003"]="Sha-Chi Amber Fragment", +["PangZhen.HuPo.004"]="Sha-Chi Amber Fragment", +["PangZhen.K_05008"]="Bagua Pavilion Rooftop Key", +["PangZhen.K_05010"]="Tianxiang Pavilion Key", +["PangZhen.K_05011"]="Huang Family Mansion Key", +["PangZhen.K_05012"]="Pang Town Dyehouse Outer Courtyard Key", +["PangZhen.MadDoctor.001"]="Remnant Dust", +["PangZhen.MadDoctor.002"]="Remnant Dust", +["PangZhen.MadDoctor.003"]="Remnant Dust", +["PangZhen.MadDoctor.004"]="Remnant Dust", +["PangZhen.MadDoctor.005"]="Remnant Dust", +["PangZhen.MadDoctor.006"]="Remnant Dust", +["PangZhen.MadDoctor.007"]="Remnant Dust", +["PangZhen.Medi.001"]="Apprentice Apothecary's Memory", +["PangZhen.Medi.002"]="Apprentice Apothecary's Memory", +["PangZhen.Medi.003"]="Apprentice Apothecary's Memory", +["PangZhen.Medi.004"]="Remnant Dust", +["PangZhen.Medi.005"]="Mechanical Gear", +["PangZhen.Medi.006"]="Polished Casting Metal / Apprentice Apothecary's Memory (+1)", +["PangZhen.Medi.007"]="Mechanical Gear", +["PangZhen.Page_CS_07"]="Long Family / Remnant Dust", +["PangZhen.Page_CS_08"]="Dark Demon Sky Fortress / Remnant Dust", +["PangZhen.Page_CS_19"]="Bagua Pavilion / Remnant Dust", +["PangZhen.Page_XC_07"]="Dragon-Slaying Demon / Remnant Dust", +["PangZhen.R_06001"]="Boat Captain's Crafting Notes / Remnant Dust", +["PangZhen.R_06002"]="Remnant Dust", +["PangZhen.R_06005"]="Ignored Petition / Remnant Dust", +["PangZhen.R_06008"]="Hastily Written Letter in Blood / Remnant Dust", +["PangZhen.R_06009"]="Letter That Could Not Be Sent / Remnant Dust", +["PangZhen.R_06014"]="To Father Changqing / Remnant Dust", +["PangZhen.R_06015"]="Old Friend's Final Letter / Remnant Dust", +["PangZhen.R_06016"]="Town Resident's Diary: Torn Page / Remnant Dust", +["PangZhen.R_06024"]="Sacred Scroll of the Holy Mother: Part One, Pang Sheng Meets the Holy One / Remnant Dust", +["PangZhen.R_06025"]="Sacred Scroll of the Holy Mother: Part Two, The Wooden Man's Heart Transplant / Remnant Dust", +["PangZhen.R_06028"]="Tavern Ledger / Remnant Dust", +["PangZhen.R_06030"]="Qingyi Actress's Lyrics / Remnant Dust", +["PangZhen.R_06034"]="Elder Brother's Letter (For Axiu) / Remnant Dust", +["PangZhen.R_06035"]="Unsigned Poem / Remnant Dust", +["PangZhen.TU_04003"]="Thunderbolt Electric Core", +["PangZhen.TU_07001"]="Dancer's Ribbon", +["PangZhen.TU_19004"]="Bitterleaf Temple Scripture", +["PangZhen.TU_19006"]="Undying Heroic Courage", +["PangZhen.T_06001"]="Jade Brush Stand", +["PangZhen.T_06002"]="Tiger-Shaped Paperweight", +["PangZhen.wmA.001"]="Otherworldly Copper", +["PangZhen.wmA.002"]="Polished Long-Plate Metal", +["PangZhen.wmA.005"]="Remnant Dust", +["PangZhen.wmA.006"]="Otherworldly Copper", +["PangZhen.wmA.007"]="Remnant Dust", +["PangZhen.wmA.008"]="Polished Twin Metal", +["PangZhen.wmA.009"]="Polished Twin Metal", +["PangZhen.wmA.010"]="Weapon Reverse-Forging Talisman", +["PangZhen.wmA.011"]="Precision Mechanical Gear", +["PangZhen.wmA.013"]="Weapon Reverse-Forging Talisman", +["PangZhen.wmA.014"]="Concentrated Solvent", +["PangZhen.wmA.015"]="Polished Twin Metal", +["PangZhen.wmA.016"]="Polished Long-Plate Metal", +["PangZhen.wmA.017"]="Concentrated Solvent", +["PangZhen.wmA.018"]="Ancient Celestial Camphor Wood", +["PangZhen.wmA.019"]="Polished Long-Plate Metal", +["PangZhen.wmA.020"]="Concentrated Solvent", +["PangZhen.wmA.021"]="Polished Casting Metal", +["PangZhen.wmA.022"]="Polished Twin Metal / Remnant Dust", +["PangZhen.wmA.023"]="Polished Twin Metal / Otherworldly Copper", +["PangZhen.wmA.024"]="Ancient Celestial Camphor Wood / Polished Casting Metal (+2)", +["PangZhen.wmA.025"]="Weapon Reverse-Forging Talisman / Remnant Dust", +["PangZhen.wmA.026"]="Twin Metal / Remnant Dust", +["PangZhen.wmB.001"]="Concentrated Solvent", +["PangZhen.wmB.002"]="Hallucinatory Incense Ash", +["PangZhen.wmB.003"]="Remnant Dust", +["PangZhen.wmB.004"]="Remnant Dust", +["PangZhen.wmB.005"]="Remnant Dust", +["PangZhen.wmB.008"]="Precision Mechanical Gear", +["PangZhen.wmB.009"]="Experienced Apothecary's Memory", +["PangZhen.wmB.010"]="Remnant Dust", +["PangZhen.wmB.012"]="Remnant Dust", +["PangZhen.wmB.013"]="Remnant Dust", +["PangZhen.wmB.014"]="Hallucinatory Incense Ash", +["PangZhen.wmB.015"]="Remnant Dust", +["PangZhen.wmB.016"]="Weapon Reverse-Forging Talisman", +["PangZhen.wmB.017"]="Shadow-Fading Talisman", +["PangZhen.wmB.018"]="Long-Plate Metal", +["PangZhen.wmB.019"]="Casting Metal", +["Pangzhen.Page_XC_04"]="Underworld Bailiffs and Wedges / Remnant Dust", +["Pangzhen.Page_XC_05"]="Secret Tavern / Remnant Dust", +["Test"]="Black Wound Twin Blades / Remnant Dust", +["XiMeng.001.AC_Electrified"]="Moon-Thunder Ornate Lantern", +["XiMeng.001.AC_Elemental"]="Feather Fan Remnant", +["XiMeng.001.AC_EvadePhantom"]="Shadow Phantom Mask", +["XiMeng.001.AC_ExecutionSwitchCool"]="Executioner's Headscarf", +["XiMeng.001.AC_MagicWeapon"]="Hundred-Aspect Nuo Mask", +["XiMeng.001.AC_MagicWeapon_1"]="Nuo Mask Fragment: Joy", +["XiMeng.001.AC_MagicWeapon_2"]="Nuo Mask Fragment: Anger", +["XiMeng.001.AC_MagicWeapon_3"]="Nuo Mask Fragment: Sorrow", +["XiMeng.001.F_07041"]="Part One: Struggle / Female Expert's Memory 1", +["XiMeng.001.F_07042"]="Part Two: Radiant Heart Experiment", +["XiMeng.001.F_07043"]="Part Three: Sacred Body", +["XiMeng.001.K_07001"]="Theater Ticket", +["XiMeng.001.Medi_Material_2"]="Experienced Apothecary's Memory", +["XiMeng.001.Medicine_Element"]="Ritual Medicinal Wine", +["XiMeng.001.R_07001"]="Infinite Radiant Heart Design / Remnant Dust", +["XiMeng.001.R_07002"]="Report from Leng Tu's Confidant / Remnant Dust", +["XiMeng.001.R_07003"]="Remnant Dust", +["XiMeng.001.R_07004"]="Illustrated Guide to Dreamplay Manor / Remnant Dust", +["XiMeng.001.R_07005"]="Merchant Guild Directory / Remnant Dust", +["XiMeng.001.R_07006"]="Remnant Dust", +["XiMeng.001.R_07007"]="Discarded Martial Instructions / Remnant Dust", +["XiMeng.001.R_07008"]="Ode to the Three Heroes / Remnant Dust", +["XiMeng.001.R_07009"]="Essentials of Illusion Arts / Remnant Dust", +["XiMeng.001.R_07010"]="Illustrated Flora Beyond the Pass / Remnant Dust", +["XiMeng.001.R_07011"]="Comprehensive Survey of Sects Beyond the Pass / Remnant Dust", +["XiMeng.001.R_07016"]="Torn Page with Three Handwriting Styles / Remnant Dust", +["XiMeng.001.R_07017"]="Research Notes on the Jade Cong / Remnant Dust", +["XiMeng.001.R_13001"]="Dream Bailiff Experiment Notes: Spare Sacred Body / Remnant Dust", +["XiMeng.001.R_14004"]="Illustration of the Holy Mother's True Form / Remnant Dust", +["XiMeng.001.R_14005"]="Gazetteer of Soul-Severing Mountain / Remnant Dust", +["XiMeng.001.R_14006"]="Star Chart / Remnant Dust", +["XiMeng.001.TU12001"]="Alloy Steel Sheet", +["XiMeng.001.TU12002"]="Husband's Jade Face", +["XiMeng.001.TU_05003"]="Deft-Handed Heart Sutra", +["XiMeng.001.TU_18001"]="Original Chaos Vessel", +["XiMeng.001.TU_19001"]="Eye of Insight", +["XiMeng.001.T_12001"]="General's Bronze Mirror", +["XiMeng.001.T_12002"]="Gold-and-Silver Scent Pouch", +["XiMeng.001.T_12003"]="Cloud-and-Moon Gold Hairpin", +["XiMeng.001.Weapon_Material_03"]="Flawless Casting Metal", +["XiMeng.001.Weapon_Material_06"]="Universal Fusing Solvent", +["XiMeng.001.Weapon_Material_15"]="Hallucinatory Incense Ash", +["XiMeng.001.Weapon_Material_21"]="Hot Demonfire Charcoal", +["XiMeng.001.Weapon_Material_26"]="Ying-Style Mechanical Gear", +["XiMeng.001.Weapon_Material_27"]="Ten-Thousand-Forged Otherworldly Copper", +["XiMeng.002.Ac_Material_4"]="Purified Indigo Crystal", +["XiMeng.002.Medi_Material_2"]="Experienced Apothecary's Memory", +["XiMeng.002.Weapon_Material_11"]="Universal Fusing Solvent", +["XiMeng.002.Weapon_Material_18"]="Ten-Thousand-Forged Otherworldly Copper", +["XiMeng.002.Weapon_Material_21"]="Ying-Style Mechanical Gear", +["XiMeng.002.Weapon_Material_24"]="Blazing Demonfire Charcoal", +["XiMeng.002.Weapon_Material_26"]="Precision Mechanical Gear", +["XiMeng.002.Weapon_Material_27"]="Hallucinatory Incense Ash", +["XiMeng.003.Ac_Material_1"]="Tainted Crystal Remnant", +["XiMeng.003.Medi_Material_3"]="Master Apothecary's Memory", +["XiMeng.003.Weapon_Material_08"]="Universal Fusing Solvent", +["XiMeng.003.Weapon_Material_15"]="Forbidden Ancient Celestial Camphor Wood", +["XiMeng.003.Weapon_Material_18"]="Forbidden Ancient Celestial Camphor Wood", +["XiMeng.003.Weapon_Material_21"]="Blazing Demonfire Charcoal", +["XiMeng.003.Weapon_Material_24"]="Hot Demonfire Charcoal", +["XiMeng.003.Weapon_Material_26"]="Incense Ash Offered to the Holy Mother", +["XiMeng.003.Weapon_Material_27"]="Incense Ash Offered to the Holy Mother", +["XiMeng.004.Ac_Material_1"]="Tainted Crystal Remnant", +["XiMeng.004.Item_Piece_001"]="Blackstone Fragment", +["XiMeng.004.Medi_Material_2"]="Experienced Apothecary's Memory", +["XiMeng.004.Weapon_Material_02"]="Flawless Long-Plate Metal", +["XiMeng.004.Weapon_Material_12"]="Flawless Twin Metal", +["XiMeng.004.Weapon_Material_18"]="Incense Ash Offered to the Holy Mother", +["XiMeng.004.Weapon_Material_21"]="Forbidden Ancient Celestial Camphor Wood", +["XiMeng.004.Weapon_Material_24"]="Ying-Style Mechanical Gear", +["XiMeng.004.Weapon_Material_26"]="Ying-Style Mechanical Gear", +["XiMeng.004.Weapon_Material_27"]="Blazing Demonfire Charcoal", +["XiMeng.005.Ac_Material_1"]="Tainted Crystal Remnant", +["XiMeng.005.Medi_Material_2"]="Experienced Apothecary's Memory", +["XiMeng.005.Medi_Material_3"]="Master Apothecary's Memory", +["XiMeng.005.Weapon_Material_03"]="Flawless Casting Metal", +["XiMeng.005.Weapon_Material_06"]="Flawless Twin Metal", +["XiMeng.005.Weapon_Material_09"]="Flawless Long-Plate Metal", +["XiMeng.005.Weapon_Material_11"]="Flawless Casting Metal", +["XiMeng.005.Weapon_Material_26"]="Incense Ash Offered to the Holy Mother", +["XiMeng.005.Weapon_Material_27"]="Hallucinatory Incense Ash", +["XiMeng.006.Medi_Material_2"]="Experienced Apothecary's Memory", +["XiMeng.006.Weapon_Material_03"]="Flawless Casting Metal", +["XiMeng.006.Weapon_Material_06"]="Flawless Twin Metal", +["XiMeng.006.Weapon_Material_09"]="Flawless Long-Plate Metal", +["XiMeng.006.Weapon_Material_15"]="Ten-Thousand-Forged Otherworldly Copper", +["XiMeng.006.Weapon_Material_18"]="Blazing Demonfire Charcoal", +["XiMeng.006.Weapon_Material_21"]="Ying-Style Mechanical Gear", +["XiMeng.007.Medi_Material_2"]="Experienced Apothecary's Memory", +["XiMeng.007.Weapon_Material_05"]="Universal Fusing Solvent", +["XiMeng.007.Weapon_Material_11"]="Concentrated Solvent", +["XiMeng.008.Weapon_Material_08"]="Polished Long-Plate Metal", +["XiMeng.008.Weapon_Material_11"]="Concentrated Solvent", +["XiMeng.008.Weapon_Material_12"]="Flawless Twin Metal", +["XiMeng.009.Weapon_Material_02"]="Polished Casting Metal", +["XiMeng.009.Weapon_Material_08"]="Polished Long-Plate Metal", +["XiMeng.009.Weapon_Material_11"]="Concentrated Solvent", +["XiMeng.009.Weapon_Material_12"]="Universal Fusing Solvent", +["XiMeng.010.Weapon_Material_02"]="Polished Casting Metal", +["XiMeng.010.Weapon_Material_05"]="Polished Twin Metal", +["XiMeng.010.Weapon_Material_12"]="Universal Fusing Solvent", +["XiMeng.011.Weapon_Material_12"]="Universal Fusing Solvent", +["XiMeng.Chest001"]="Blackstone Fragment / Remnant Dust", +["XiMeng.Chest002"]="Blackstone Fragment / Remnant Dust", +["XiMeng.Chest003"]="Blackstone Fragment", +["XiMeng.Chest004"]="Sha-Chi Amber Fragment", +["XiMeng.Chest005"]="Sha-Chi Amber Fragment", +["XiMeng.Chest006"]="Sha-Chi Amber Fragment / Remnant Dust", +["XiMeng.Chest007"]="Sha-Chi Amber Fragment", +["XiMeng.Chest008"]="Universal Fusing Solvent", +["XiMeng.Chest009"]="Universal Fusing Solvent / Remnant Dust", +["XiMeng.Chest010"]="Flawless Long-Plate Metal / Remnant Dust", +["XiMeng.Chest011"]="Tainted Crystal Remnant / Remnant Dust", +["XiMeng.Chest012"]="Universal Fusing Solvent / Ying-Style Mechanical Gear", +["XiMeng.Chest013"]="Universal Fusing Solvent / Flawless Long-Plate Metal", +["XiMeng.Chest014"]="Flawless Casting Metal / Universal Fusing Solvent", +["XiMeng.Chest015"]="Polished Casting Metal / Polished Twin Metal (+1)", +["XiMeng.Chest016"]="Shadow-Fading Talisman / Master Apothecary's Memory (+1)", +["XiMeng.Chest017"]="Flawless Casting Metal / Universal Fusing Solvent", +["XiMeng.Chest018"]="Universal Fusing Solvent / Experienced Apothecary's Memory", +["XiMeng.Chest019"]="Flawless Casting Metal / Flawless Twin Metal (+1)", +["XiMeng.Chest020"]="Passage Talisman / Tainted Crystal Remnant", +["XiMeng.Chest021"]="Weapon Reverse-Forging Talisman / Purified Indigo Crystal (+1)", +["XiMeng.Chest022"]="Flawless Casting Metal / Remnant Dust", +["XiMeng.Chest023"]="Master Apothecary's Memory / Remnant Dust", +["XiMeng.Chest024"]="Universal Fusing Solvent / Flawless Casting Metal (+1)", +["XiMeng.Chest025"]="Flawless Casting Metal / Universal Fusing Solvent", +["XiMeng.Chest026"]="Universal Fusing Solvent / Ancient Celestial Camphor Wood", +["XiMeng.Chest028"]="Universal Fusing Solvent / Flawless Twin Metal (+1)", +["XiMeng.Chest029"]="Flawless Long-Plate Metal / Flawless Twin Metal", +["XiMeng.Chest030"]="Flawless Long-Plate Metal / Remnant Dust", +["XiMeng.Chest031"]="Flawless Twin Metal / Flawless Long-Plate Metal (+1)", +["XiMeng.Chest032"]="Otherworldly Copper / Ten-Thousand-Forged Otherworldly Copper (+1)", +["XiMeng.Chest033"]="Flawless Casting Metal / Flawless Twin Metal (+1)", +["XiMeng.Chest034"]="Weapon Reverse-Forging Talisman / Passage Talisman (+2)", +["XiMeng.Dust_G.001"]="Remnant Dust", +["XiMeng.Dust_G.002"]="Remnant Dust", +["XiMeng.Dust_G.003"]="Remnant Dust", +["XiMeng.Dust_G.004"]="Remnant Dust", +["XiMeng.Dust_G.005"]="Remnant Dust", +["XiMeng.Dust_G.006"]="Remnant Dust", +["XiMeng.Dust_G.007"]="Remnant Dust", +["XiMeng.Dust_G.008"]="Remnant Dust", +["XiMeng.Dust_L.006"]="Remnant Dust", +["XiMeng.Dust_L.010"]="Remnant Dust", +["XiMeng.Dust_L.011"]="Remnant Dust", +["XiMeng.Dust_L.012"]="Remnant Dust", +["XiMeng.Dust_M.004"]="Remnant Dust", +["XiMeng.Dust_M.005"]="Remnant Dust", +["XiMeng.Dust_M.006"]="Remnant Dust", +["XiMeng.Dust_M.007"]="Remnant Dust", +["XiMeng.Dust_M.008"]="Remnant Dust", +["XiMeng.Dust_M.009"]="Remnant Dust", +["XiMeng.Dust_M.010"]="Remnant Dust", +["XiMeng.Dust_M.011"]="Remnant Dust", +["XiMeng.Dust_M.012"]="Remnant Dust", +["XiMeng.Dust_M.013"]="Remnant Dust", +["XiMeng.Dust_M.014"]="Remnant Dust", +["XiMeng.Dust_M.015"]="Remnant Dust", +["XiMeng.Dust_M.016"]="Remnant Dust", +["XiMeng.Dust_R.001"]="Remnant Dust", +["XiMeng.Dust_R.002"]="Remnant Dust", +["XiMeng.Dust_R.003"]="Remnant Dust", +["XiMeng.Dust_R.004"]="Remnant Dust", +["XiMeng.Dust_R.005"]="Remnant Dust", +["XiMeng.Dust_S.001"]="Remnant Dust", +["XiMeng.Dust_S.003"]="Remnant Dust", +["XiMeng.Dust_S.004"]="Remnant Dust", +["XiMeng.Dust_S.005"]="Remnant Dust", +["XiMeng.Dust_S.006"]="Remnant Dust", +["XiMeng.Dust_S.007"]="Remnant Dust", +["XiMeng.Dust_S.008"]="Remnant Dust", +["XiMeng.Dust_S.012"]="Remnant Dust", +["XiMeng.Dust_S.013"]="Remnant Dust", +["XiMeng.Dust_S.015"]="Remnant Dust", +["XiMeng.Dust_S.016"]="Remnant Dust", +["XiMeng.Dust_S.017"]="Remnant Dust", +["XiMeng.Dust_S.018"]="Remnant Dust", +["XiMeng.Dust_S.019"]="Remnant Dust", +["XiMeng.Dust_S.020"]="Remnant Dust", +["XiMeng.Dust_S.021"]="Remnant Dust", +["XiMeng.Dust_S.022"]="Remnant Dust", +["XiMeng.Dust_S.023"]="Remnant Dust", +["XiMeng.Dust_S.024"]="Remnant Dust", +["XiMeng.Dust_S.025"]="Remnant Dust", +["XiMeng.Dust_S.026"]="Remnant Dust", +["XiMeng.Item_Traversing.001"]="Passage Talisman", +["XiMeng.Item_Traversing.002"]="Passage Talisman", +["XiMeng.Item_Traversing.004"]="Passage Talisman", +["XiMeng.Item_Traversing.005"]="Passage Talisman", +["XiMeng.Return.001"]="Weapon Reverse-Forging Talisman", +["XiMeng.Return.002"]="Weapon Reverse-Forging Talisman", +["XiMeng.Return.003"]="Weapon Reverse-Forging Talisman", +["XiMeng.Return.004"]="Weapon Reverse-Forging Talisman", +["XiMeng.Return_ShaqiWeapon_1.002"]="Shadow-Fading Talisman", +["Xigu.001.Ac_Material_1"]="Casting Metal", +["Xigu.001.Ac_Material_2"]="Solvent", +["Xigu.001.Ac_Material_3"]="Remnant Dust", +["Xigu.001.BrutalAxe"]="Brutal Axe", +["Xigu.001.Double"]="Black Wound Twin Blades", +["Xigu.001.Dust_Large"]="Remnant Dust", +["Xigu.001.Dust_Medium"]="Remnant Dust", +["Xigu.001.Dust_Small"]="Remnant Dust", +["Xigu.001.GuiTouBlade"]="Red-Adornment Ghostslayer", +["Xigu.001.I_01001"]="Twin Flesh Flower", +["Xigu.001.I_01002"]="Primordial Stone", +["Xigu.001.I_01003"]="A Flesh Flower", +["Xigu.001.I_01010"]="Three-Headed Little Doll", +["Xigu.001.IronBlade"]="Broken Steel Blade", +["Xigu.001.Item_Piece_001"]="Blackstone Fragment", +["Xigu.001.Item_Traversing"]="Passage Talisman", +["Xigu.001.K_01001"]="Rusted Dragon-Shaped Key", +["Xigu.001.K_01002"]="Sha-Chi Furnace Inspection-Port Switch", +["Xigu.001.K_01003"]="Cell Door Key", +["Xigu.001.Long"]="Long Black Wound", +["Xigu.001.Medi_Material_1"]="Casting Metal", +["Xigu.001.Medicine02"]="Edge-Concentrating Pill", +["Xigu.001.Medicine16"]="Vessel Maintenance Fluid", +["Xigu.001.Return_ShaqiWeapon_1"]="Twin Metal", +["Xigu.001.Return_Weapon_1"]="Remnant Dust", +["Xigu.001.ShachiHook"]="Life-Reaping Chain Sickle", +["Xigu.001.TU_01001"]="Pigeon Feed", +["Xigu.001.TU_06001"]="Sworn Brotherhood Blood-Oath Knife", +["Xigu.001.Tang"]="Black Wound", +["Xigu.001.UnnamedBow"]="Feather Bow", +["Xigu.001.Weapon_Material_01"]="Mechanical Gear", +["Xigu.001.Weapon_Material_04"]="Twin Metal / Casting Metal (+1)", +["Xigu.001.Weapon_Material_07"]="Long-Plate Metal / Casting Metal (+1)", +["Xigu.001.Weapon_Material_10"]="Solvent / Long-Plate Metal", +["Xigu.001.Weapon_Material_13"]="Exotic Copper Ingot", +["Xigu.001.Weapon_Material_16"]="Exotic Copper Ingot", +["Xigu.001.Weapon_Material_19"]="Mechanical Gear", +["Xigu.001.Weapon_Material_22"]="Twin Metal", +["Xigu.001.Weapon_Material_25"]="Ancient Wood", +["Xigu.002.Ac_Material_1"]="Casting Metal", +["Xigu.002.Ac_Material_2"]="Solvent", +["Xigu.002.Ac_Material_3"]="Solvent", +["Xigu.002.Dust_Large"]="Remnant Dust", +["Xigu.002.Dust_Medium"]="Remnant Dust", +["Xigu.002.Dust_Small"]="Remnant Dust", +["Xigu.002.Item_Piece_001"]="Blackstone Fragment", +["Xigu.002.Item_Piece_002"]="Sha-Chi Amber Fragment", +["Xigu.002.Item_Traversing"]="Passage Talisman", +["Xigu.002.Medi_Material_1"]="Casting Metal", +["Xigu.002.Return_ShaqiWeapon_1"]="Shadow-Fading Talisman", +["Xigu.002.Return_Weapon_1"]="Weapon Reverse-Forging Talisman", +["Xigu.002.Weapon_Material_01"]="Long-Plate Metal", +["Xigu.002.Weapon_Material_04"]="Twin Metal / Long-Plate Metal (+1)", +["Xigu.002.Weapon_Material_07"]="Long-Plate Metal", +["Xigu.002.Weapon_Material_10"]="Casting Metal", +["Xigu.002.Weapon_Material_13"]="Exotic Copper Ingot", +["Xigu.002.Weapon_Material_16"]="Demonfire Charcoal", +["Xigu.002.Weapon_Material_19"]="Weapon Reverse-Forging Talisman", +["Xigu.002.Weapon_Material_22"]="Demonfire Charcoal", +["Xigu.002.Weapon_Material_25"]="Ancient Wood", +["Xigu.003.Ac_Material_1"]="Twin Metal", +["Xigu.003.Ac_Material_2"]="Remnant Dust", +["Xigu.003.Dust_Large"]="Remnant Dust", +["Xigu.003.Dust_Medium"]="Remnant Dust", +["Xigu.003.Dust_Small"]="Solvent", +["Xigu.003.Item_Piece_001"]="Blackstone Fragment", +["Xigu.003.Item_Piece_002"]="Sha-Chi Amber Fragment", +["Xigu.003.Item_Traversing"]="Passage Talisman", +["Xigu.003.Medi_Material_1"]="Solvent", +["Xigu.003.Return_ShaqiWeapon_1"]="Shadow-Fading Talisman", +["Xigu.003.Return_Weapon_1"]="Weapon Reverse-Forging Talisman", +["Xigu.003.Weapon_Material_01"]="Remnant Dust", +["Xigu.003.Weapon_Material_04"]="Casting Metal", +["Xigu.003.Weapon_Material_07"]="Long-Plate Metal / Casting Metal (+1)", +["Xigu.003.Weapon_Material_10"]="Solvent", +["Xigu.003.Weapon_Material_13"]="Mechanical Gear", +["Xigu.003.Weapon_Material_16"]="Exotic Copper Ingot", +["Xigu.003.Weapon_Material_19"]="Mechanical Gear / Ancient Wood", +["Xigu.003.Weapon_Material_25"]="Shadow-Fading Talisman", +["Xigu.004.Ac_Material_1"]="Solvent", +["Xigu.004.Dust_Large"]="Remnant Dust", +["Xigu.004.Dust_Medium"]="Remnant Dust", +["Xigu.004.Dust_Small"]="Remnant Dust", +["Xigu.004.Item_Piece_001"]="Blackstone Fragment", +["Xigu.004.Item_Piece_002"]="Sha-Chi Amber Fragment", +["Xigu.004.Item_Traversing"]="Passage Talisman", +["Xigu.004.Medi_Material_1"]="Weapon Reverse-Forging Talisman", +["Xigu.004.Weapon_Material_01"]="Casting Metal / Twin Metal (+1)", +["Xigu.004.Weapon_Material_04"]="Twin Metal / Exotic Copper Ingot (+1)", +["Xigu.004.Weapon_Material_07"]="Long-Plate Metal", +["Xigu.004.Weapon_Material_10"]="Mechanical Gear", +["Xigu.004.Weapon_Material_13"]="Ancient Wood / Twin Metal", +["Xigu.004.Weapon_Material_16"]="Demonfire Charcoal", +["Xigu.004.Weapon_Material_25"]="Solvent", +["Xigu.005.Dust_Large"]="Remnant Dust", +["Xigu.005.Dust_Medium"]="Remnant Dust", +["Xigu.005.Dust_Small"]="Remnant Dust", +["Xigu.005.Item_Piece_002"]="Sha-Chi Amber Fragment", +["Xigu.005.Item_Traversing"]="Passage Talisman", +["Xigu.005.Medi_Material_1"]="Shadow-Fading Talisman", +["Xigu.005.Weapon_Material_04"]="Tainted Crystal Remnant", +["Xigu.005.Weapon_Material_07"]="Long-Plate Metal / Ancient Wood", +["Xigu.005.Weapon_Material_08"]="Twin Metal", +["Xigu.005.Weapon_Material_09"]="Solvent", +["Xigu.005.Weapon_Material_10"]="Remnant Dust", +["Xigu.005.Weapon_Material_25"]="Solvent", +["Xigu.006.Dust_Large"]="Remnant Dust", +["Xigu.006.Dust_Medium"]="Remnant Dust", +["Xigu.006.Dust_Small"]="Remnant Dust", +["Xigu.006.Item_Traversing"]="Passage Talisman", +["Xigu.006.Weapon_Material_04"]="Ancient Wood / Long-Plate Metal", +["Xigu.006.Weapon_Material_10"]="Remnant Dust", +["Xigu.007.Dust_Large"]="Remnant Dust", +["Xigu.007.Dust_Medium"]="Remnant Dust", +["Xigu.007.Dust_Small"]="Remnant Dust", +["Xigu.007.Weapon_Material_10"]="Weapon Reverse-Forging Talisman", +["Xigu.008.Dust_Medium"]="Remnant Dust", +["Xigu.008.Dust_Small"]="Remnant Dust", +["Xigu.008.Weapon_Material_10"]="Remnant Dust", +["Xigu.009.Dust_Medium"]="Remnant Dust", +["Xigu.009.Dust_Small"]="Remnant Dust", +["Xigu.010.Dust_Small"]="Remnant Dust", +["Xigu.011.Dust_Small"]="Remnant Dust", +["Xigu.012.Dust_Small"]="Remnant Dust", +["Xigu.013.Dust_Small"]="Remnant Dust", +["Xigu.014.Dust_Small"]="Remnant Dust", +["Xigu.015.Dust_Small"]="Remnant Dust", +["Xigu.016.Dust_Small"]="Remnant Dust", +["Xigu.017.Dust_Small"]="Demonfire Charcoal", +["Xigu.018.Dust_Small"]="Remnant Dust", +["Xigu.019.Dust_Small"]="Casting Metal", +["Xigu.020.Dust_Small"]="Remnant Dust", +["Xigu.021.Dust_Small"]="Remnant Dust", +["Xigu.022.Dust_Small"]="Remnant Dust", +["Xigu.AC_ActHit"]="Shadow-Motion Hunting Device", +["Xigu.AC_Attack"]="Strength Wraps", +["Xigu.AC_BreakAttack"]="Pursuit Order", +["Xigu.AC_Deflect"]="Ingenious Mechanism Ring", +["Xigu.AC_Drink"]="Aromatic Medicine Box", +["Xigu.AC_HealthResistance"]="Ancient Armor Fragment", +["Xigu.AC_HeavyAttackCost"]="Overwhelming Righteousness", +["Xigu.AC_PerfectFrame"]="Primordial Meridian Device", +["Xigu.AC_ResistNonBreak"]="Solid Rock Bracers", +["Xigu.Double"]="Black Wound Twin Blades", +["Xigu.Dust.Ma.002"]="Remnant Dust", +["Xigu.Dust.Ma.003"]="Remnant Dust", +["Xigu.Dust.Ma.004"]="Remnant Dust", +["Xigu.Dust.SuperSmall"]="Remnant Dust", +["Xigu.Dust.SuperSmall.002"]="Remnant Dust", +["Xigu.Dust.SuperSmall.003"]="Remnant Dust", +["Xigu.Dust.SuperSmall.004"]="Remnant Dust", +["Xigu.Dust.SuperSmall.005"]="Remnant Dust", +["Xigu.Extra.001"]="Flawless Long-Plate Metal", +["Xigu.Extra.002"]="Polished Twin Metal", +["Xigu.Extra.003"]="Polished Long-Plate Metal", +["Xigu.HongFangZi.Chest"]="Flawless Casting Metal / Flawless Long-Plate Metal (+1)", +["Xigu.HongFangZi.Wm001"]="Flawless Twin Metal", +["Xigu.HongFangZi.Wm002"]="Flawless Twin Metal", +["Xigu.HongFangZi.Wm003"]="Flawless Casting Metal", +["Xigu.HongFangZi.Wm004"]="Concentrated Solvent", +["Xigu.HongFangZi.Wm005"]="Otherworldly Copper", +["Xigu.HongFangZi.Wm006"]="Polished Long-Plate Metal", +["Xigu.HongFangZi.Wm007"]="Polished Twin Metal", +["Xigu.HongFangZi.Wm008"]="Precision Mechanical Gear", +["Xigu.I_01007"]="Woundwort", +["Xigu.I_01008"]="Waxy Leaf", +["Xigu.I_01009"]="Blood-Staunching Vine", +["Xigu.Page_CS_02"]="What Is Sha-Chi? / Remnant Dust", +["Xigu.Page_CS_06"]="Sha-Chi Augmentation / Remnant Dust", +["Xigu.Page_CS_10"]="Mechanical Arts / Remnant Dust", +["Xigu.Page_CS_11"]="Hidden Martial World / Remnant Dust", +["Xigu.Page_CS_13"]="The Waystation: A Rare Place of Rest / Remnant Dust", +["Xigu.Page_CS_14"]="Sha-Chi Tower Ruins / Remnant Dust", +["Xigu.Page_CS_15"]="What Is Sealed in the Dragon Pillar? / Remnant Dust", +["Xigu.R_01001"]="Desperate Letter Written in Blood / Remnant Dust", +["Xigu.R_01002"]="Axe Boss's Final Letter / Remnant Dust", +["Xigu.R_01003"]="Uprising of the Four Vicious Axes: Bewilderment / Remnant Dust", +["Xigu.R_01004"]="Captain Wu's Final Letter / Remnant Dust", +["Xigu.R_01005"]="Strategist Xu Feng's Secret Letter / Remnant Dust", +["Xigu.R_01006"]="Grand Sect Leader Ming's Reply / Remnant Dust", +["Xigu.R_01007"]="Uprising of the Four Vicious Axes: Calamity / Remnant Dust", +["Xigu.R_01008"]="Uprising of the Four Vicious Axes: Chaos / Remnant Dust", +["Xigu.R_01009"]="Record of Primordial Stone: Dragon Body Augmentation / Remnant Dust", +["Xigu.R_01010"]="Captain Chen Zhu's Secret Letter / Remnant Dust", +["Xigu.R_01011"]="Mountain Village Notice / Remnant Dust", +["Xigu.R_01012"]="Righteous Disciples' Injury and Illness Register / Remnant Dust", +["Xigu.R_01013"]="Missing Child Notice / Remnant Dust", +["Xigu.R_01014"]="Gu Lingran's Petition to Grand Sect Leader Ming (Draft) / Remnant Dust", +["Xigu.R_01015"]="Villager's IOU / Remnant Dust", +["Xigu.R_01016"]="Abandoned Land Deed / Remnant Dust", +["Xigu.R_01017"]="Long Family Scholar's Monument Report / Remnant Dust", +["Xigu.R_01018"]="Matchmaker's Letter / Remnant Dust", +["Xigu.R_01019"]="Ahua's Father's Reply / Remnant Dust", +["Xigu.R_01020"]="Ahui's Letter / Remnant Dust", +["Xigu.R_01021"]="Frivolous Summons / Remnant Dust", +["Xigu.R_01022"]="Letter to Husband Huang Miao / Remnant Dust", +["Xigu.R_01023"]="Letter to Husband Liu Shangli / Remnant Dust", +["Xigu.R_01024"]="Letter to Husband Jia Qianqiu / Remnant Dust", +["Xigu.R_01025"]="Battle Report / Remnant Dust", +["Xigu.R_01026"]="Wanderer's Letter Seeking Refuge / Remnant Dust", +["Xigu.R_01027"]="Disciples' Opinions of the Three Heroes / Remnant Dust", +["Xigu.R_01028"]="Sha-Chi Furnace Operating Instructions / Remnant Dust", +["Xigu.R_01029"]="Garrison Register / Remnant Dust", +["Xigu.R_01030"]="Sha-Chi Tower Survey / Remnant Dust", +["Xigu.R_01031"]="Supply Inventory Record / Remnant Dust", +["Xigu.R_01032"]="Reply to a Request for Aid / Remnant Dust", +["Xigu.R_01033"]="Handwritten Order for the Adjutant / Remnant Dust", +["Xigu.R_12001"]="Dream Bailiff Experiment Notes: Installing the Radiant Heart / Remnant Dust", +["Xigu.R_12003"]="Dream Bailiff Experiment Notes: Rift Preparations / Remnant Dust", +["Xigu.R_12004"]="Letter from the Evil Lord / Remnant Dust", +["Xigu.R_12006"]="Pet / Remnant Dust", +["Xuese.Page_XC_08"]="Pavilion of Eleven / Remnant Dust", +["Zhengdaodaying.AC.001"]="Casting Metal", +["Zhengdaodaying.AC.002"]="Experienced Apothecary's Memory", +["Zhengdaodaying.AC.004"]="Remnant Dust", +["Zhengdaodaying.AC.005"]="Twin Metal", +["Zhengdaodaying.AC.006"]="Purified Indigo Crystal", +["Zhengdaodaying.AC.007"]="Hot Demonfire Charcoal", +["Zhengdaodaying.AC.008"]="Concentrated Solvent", +["Zhengdaodaying.AC_HeavyAttackDamage"]="Broken Vessel", +["Zhengdaodaying.AC_LowShachi"]="United-Heart Twin-Fish Pendant", +["Zhengdaodaying.AC_PowerWeapon"]="Guardian Statue", +["Zhengdaodaying.AC_PowerWeapon_1"]="Guardian Statue Fragment: Head", +["Zhengdaodaying.AC_PowerWeapon_2"]="Guardian Statue Fragment: Arm", +["Zhengdaodaying.AC_PowerWeapon_3"]="Guardian Statue Fragment: Torso", +["Zhengdaodaying.AC_PowerWeapon_4"]="Guardian Statue Fragment: Leg", +["Zhengdaodaying.AC_Rider"]="Cavalry-Slaying Talisman", +["Zhengdaodaying.AC_UltimateCharge"]="Nameless Master's Thumb Ring", +["Zhengdaodaying.Dust_G.001"]="Remnant Dust", +["Zhengdaodaying.Dust_G.002"]="Remnant Dust", +["Zhengdaodaying.Dust_L.001"]="Remnant Dust", +["Zhengdaodaying.Dust_L.002"]="Passage Talisman", +["Zhengdaodaying.Dust_L.003"]="Remnant Dust", +["Zhengdaodaying.Dust_M.001"]="Precision Mechanical Gear", +["Zhengdaodaying.Dust_M.002"]="Apprentice Apothecary's Memory", +["Zhengdaodaying.Dust_M.003"]="Remnant Dust", +["Zhengdaodaying.Dust_M.004"]="Remnant Dust", +["Zhengdaodaying.Dust_M.005"]="Passage Talisman", +["Zhengdaodaying.Dust_M.006"]="Remnant Dust", +["Zhengdaodaying.Dust_M.007"]="Remnant Dust", +["Zhengdaodaying.Dust_R.001"]="Remnant Dust", +["Zhengdaodaying.Dust_R.002"]="Remnant Dust", +["Zhengdaodaying.Dust_R.003"]="Remnant Dust", +["Zhengdaodaying.Dust_R.004"]="Remnant Dust", +["Zhengdaodaying.Dust_R.005"]="Remnant Dust", +["Zhengdaodaying.Dust_R.006"]="Remnant Dust", +["Zhengdaodaying.Dust_R.007"]="Remnant Dust", +["Zhengdaodaying.Dust_R.008"]="Remnant Dust", +["Zhengdaodaying.Dust_R.009"]="Remnant Dust", +["Zhengdaodaying.Dust_R.010"]="Remnant Dust", +["Zhengdaodaying.Dust_S.001"]="Solvent", +["Zhengdaodaying.Dust_S.002"]="Remnant Dust", +["Zhengdaodaying.Dust_S.003"]="Remnant Dust", +["Zhengdaodaying.Dust_S.004"]="Solvent", +["Zhengdaodaying.Dust_S.005"]="Remnant Dust", +["Zhengdaodaying.Dust_S.006"]="Remnant Dust", +["Zhengdaodaying.Dust_S.007"]="Weapon Reverse-Forging Talisman", +["Zhengdaodaying.Dust_S.008"]="Universal Fusing Solvent", +["Zhengdaodaying.Dust_S.009"]="Otherworldly Copper", +["Zhengdaodaying.Dust_S.010"]="Remnant Dust", +["Zhengdaodaying.Dust_S.011"]="Weapon Reverse-Forging Talisman", +["Zhengdaodaying.Heishi.001"]="Blackstone Fragment", +["Zhengdaodaying.Heishi.002"]="Blackstone Fragment", +["Zhengdaodaying.Heishi.003"]="Blackstone Fragment", +["Zhengdaodaying.Heishi.004"]="Blackstone Fragment", +["Zhengdaodaying.HuPo.001"]="Sha-Chi Amber Fragment", +["Zhengdaodaying.HuPo.002"]="Sha-Chi Amber Fragment", +["Zhengdaodaying.HuPo.003"]="Sha-Chi Amber Fragment", +["Zhengdaodaying.HuPo.004"]="Sha-Chi Amber Fragment", +["Zhengdaodaying.I_03001"]="Broken Iron Sword", +["Zhengdaodaying.I_03002"]="Plain Hairpin", +["Zhengdaodaying.I_03003"]="Pitch-Black Scabbard", +["Zhengdaodaying.K_03001"]="Valley Gate Key Before the Camp", +["Zhengdaodaying.K_03005"]="Mo Jizi's Room Key", +["Zhengdaodaying.Medi.001"]="Flawless Long-Plate Metal", +["Zhengdaodaying.Medi.002"]="Remnant Dust", +["Zhengdaodaying.Medi.003"]="Apprentice Apothecary's Memory", +["Zhengdaodaying.Medi.004"]="Shadow-Fading Talisman", +["Zhengdaodaying.Medi.005"]="Experienced Apothecary's Memory", +["Zhengdaodaying.Medi.006"]="Otherworldly Copper", +["Zhengdaodaying.Medi.007"]="Remnant Dust", +["Zhengdaodaying.Medi.009"]="Precision Mechanical Gear", +["Zhengdaodaying.Medi.010"]="Flawless Casting Metal", +["Zhengdaodaying.Medi.011"]="Master Apothecary's Memory", +["Zhengdaodaying.Medicine_Attack"]="Lament Medicine", +["Zhengdaodaying.Medicine_Interrupt"]="Nether Ghost Medicine", +["Zhengdaodaying.Page_CS_05"]="Who Are the Three Heroes of Kunlun? / Remnant Dust", +["Zhengdaodaying.R_03001"]="Mo Jizi's Final Letter: Part One / Remnant Dust", +["Zhengdaodaying.R_03002"]="Mo Jizi's Final Letter: Part Two / Remnant Dust", +["Zhengdaodaying.R_03003"]="Mo Jizi's Final Letter: Part Three / Remnant Dust", +["Zhengdaodaying.R_03004"]="Mo Jizi's Final Letter: Part Four / Remnant Dust", +["Zhengdaodaying.R_03005"]="Mo Jizi's Final Letter: Part Five / Remnant Dust", +["Zhengdaodaying.R_03006"]="Mo Jizi's Final Letter: Hastily Marked Map / Remnant Dust", +["Zhengdaodaying.R_03008"]="Righteous Alliance Letter of Appointment / Remnant Dust", +["Zhengdaodaying.R_03011"]="Disciple's Letter Home / Remnant Dust", +["Zhengdaodaying.R_03012"]="Secret Letter to Qianqian / Remnant Dust", +["Zhengdaodaying.R_03013"]="Dragon Body Technique Execution Order / Remnant Dust", +["Zhengdaodaying.R_03014"]="Letter from the Six Sects / Remnant Dust", +["Zhengdaodaying.R_03015"]="Musical Score Notes / Remnant Dust", +["Zhengdaodaying.R_03016"]="Female Disciple's Document / Remnant Dust", +["Zhengdaodaying.R_03017"]="Torn Page from the Detailed Explanation of the Dragon Body Technique / Remnant Dust", +["Zhengdaodaying.R_03018"]="Righteous Main Camp Fortification Plan / Remnant Dust", +["Zhengdaodaying.R_03019"]="Letter from the Young Master / Remnant Dust", +["Zhengdaodaying.R_03020"]="Martial Arts Questions and Answers / Remnant Dust", +["Zhengdaodaying.R_03021"]="Baby's One-Month Celebration Invitation / Remnant Dust", +["Zhengdaodaying.R_03022"]="Poetry Exchange Letter / Remnant Dust", +["Zhengdaodaying.R_03023"]="Unfinished Discussion of Swordsmanship / Remnant Dust", +["Zhengdaodaying.R_03025"]="Meddlesome Disciple's Last Letter / Remnant Dust", +["Zhengdaodaying.R_03026"]="Letter from Zhao Di / Remnant Dust", +["Zhengdaodaying.R_03027"]="Torn Page from a Healer's Notes / Remnant Dust", +["Zhengdaodaying.R_03028"]="Zhao Di and His Two Companions' Resistance Proclamation / Remnant Dust", +["Zhengdaodaying.R_04001"]="Dream Bailiff Experiment Notes: The Lady's Sacred Body / Remnant Dust", +["Zhengdaodaying.R_04002"]="Dream Bailiff Experiment Notes: Puppet Zero / Remnant Dust", +["Zhengdaodaying.R_04003"]="Dream Bailiff Experiment Notes: Radiant Heart / Remnant Dust", +["Zhengdaodaying.R_04004"]="Dream Bailiff Experiment Notes: Sacred Body Completed / Remnant Dust", +["Zhengdaodaying.R_04005"]="Unsent Letter / Remnant Dust", +["Zhengdaodaying.R_04006"]="Rules of the Radiant Heart Workshop / Remnant Dust", +["Zhengdaodaying.R_04008"]="Soul-Transfer Powder Formula Manuscript / Remnant Dust", +["Zhengdaodaying.R_04009"]="Life-Imprisoner Soul-Transfer Method / Remnant Dust", +["Zhengdaodaying.R_04010"]="Discarded Items List: Batch 79 / Remnant Dust", +["Zhengdaodaying.Return.001"]="Hallucinatory Incense Ash", +["Zhengdaodaying.Return.002"]="Hot Demonfire Charcoal", +["Zhengdaodaying.Return.003"]="Ancient Celestial Camphor Wood", +["Zhengdaodaying.Return.004"]="Remnant Dust", +["Zhengdaodaying.Return.005"]="Hallucinatory Incense Ash", +["Zhengdaodaying.Return.006"]="Universal Fusing Solvent", +["Zhengdaodaying.Return.007"]="Shadow-Fading Talisman", +["Zhengdaodaying.TU_08001"]="Plain Sword Tassel", +["Zhengdaodaying.TU_08002"]="Reinforced Chainsaw", +["Zhengdaodaying.Traversing.001"]="Flawless Casting Metal", +["Zhengdaodaying.Traversing.002"]="Universal Fusing Solvent", +["Zhengdaodaying.Traversing.003"]="Tainted Crystal Remnant", +["Zhengdaodaying.Traversing.004"]="Flawless Long-Plate Metal", +["Zhengdaodaying.Traversing.005"]="Solvent", +["Zhengdaodaying.Traversing.006"]="Experienced Apothecary's Memory", +["Zhengdaodaying.wmA.001"]="Remnant Dust", +["Zhengdaodaying.wmA.002"]="Solvent", +["Zhengdaodaying.wmA.003"]="Tainted Crystal Remnant", +["Zhengdaodaying.wmA.004"]="Flawless Twin Metal", +["Zhengdaodaying.wmA.005"]="Casting Metal", +["Zhengdaodaying.wmA.006"]="Remnant Dust", +["Zhengdaodaying.wmA.007"]="Casting Metal", +["Zhengdaodaying.wmA.008"]="Remnant Dust", +["Zhengdaodaying.wmA.009"]="Twin Metal / Remnant Dust", +["Zhengdaodaying.wmA.010"]="Remnant Dust", +["Zhengdaodaying.wmA.011"]="Remnant Dust", +["Zhengdaodaying.wmA.012"]="Shadow-Fading Talisman", +["Zhengdaodaying.wmA.013"]="Remnant Dust", +["Zhengdaodaying.wmA.014"]="Flawless Twin Metal", +["Zhengdaodaying.wmA.015"]="Long-Plate Metal", +["Zhengdaodaying.wmA.016"]="Precision Mechanical Gear", +["Zhengdaodaying.wmA.017"]="Hot Demonfire Charcoal", +["Zhengdaodaying.wmA.018"]="Solvent", +["Zhengdaodaying.wmA.019"]="Long-Plate Metal", +["Zhengdaodaying.wmA.020"]="Remnant Dust", +["Zhengdaodaying.wmA.021"]="Tainted Crystal Remnant", +["Zhengdaodaying.wmA.022"]="Flawless Casting Metal", +["Zhengdaodaying.wmA.023"]="Remnant Dust", +["Zhengdaodaying.wmA.024"]="Master Apothecary's Memory / Precision Mechanical Gear (+1)", +["Zhengdaodaying.wmA.025"]="Casting Metal / Long-Plate Metal", +["Zhengdaodaying.wmA.026"]="Solvent / Hallucinatory Incense Ash (+1)", +["Zhengdaodaying.wmA.027"]="Hallucinatory Incense Ash / Universal Fusing Solvent (+1)", +["Zhengdaodaying.wmA.028"]="Solvent / Concentrated Solvent", +["Zhengdaodaying.wmA.030"]="Flawless Casting Metal", +["Zhengdaodaying.wmA.032"]="Apprentice Apothecary's Memory", +["Zhengdaodaying.wmA.035"]="Solvent", +["Zhengdaodaying.wmA.040"]="Flawless Long-Plate Metal", +["Zhengdaodaying.wmA.041"]="Otherworldly Copper", +["Zhengdaodaying.wmA.042"]="Universal Fusing Solvent", +["Zhengdaodaying.wmA.043"]="Universal Fusing Solvent", +["Zhengdaodaying.wmA.044"]="Flawless Casting Metal / Flawless Twin Metal (+1)", +["Zhengdaodaying.wmB.001"]="Weapon Reverse-Forging Talisman", +["Zhengdaodaying.wmB.002"]="Universal Fusing Solvent", +["Zhengdaodaying.wmB.003"]="Tainted Crystal Remnant", +["Zhengdaodaying.wmB.004"]="Flawless Long-Plate Metal", +["Zhengdaodaying.wmB.005"]="Remnant Dust", +["Zhengdaodaying.wmB.006"]="Remnant Dust", +["Zhengdaodaying.wmB.007"]="Remnant Dust", +["Zhengdaodaying.wmB.008"]="Purified Indigo Crystal / Ancient Celestial Camphor Wood (+1)", +["Zhengdaodaying.wmB.009"]="Ancient Celestial Camphor Wood", +["Zhengdaodaying.wmB.010"]="Apprentice Apothecary's Memory", +["Zhengdaodaying.wmB.011"]="Ancient Celestial Camphor Wood", +["Zhengdaodaying.wmB.012"]="Passage Talisman", +["Zhengdaodaying.wmB.013"]="Remnant Dust", +["Zhengdaodaying.wmB.014"]="Long-Plate Metal", +["Zhengdaodaying.wmB.015"]="Remnant Dust", +["Zhengdaodaying.wmB.016"]="Remnant Dust", +["Zhengdaodaying.wmB.017"]="Remnant Dust", +["Zhengdaodaying.wmB.018"]="Remnant Dust", +["Zhengdaodaying.wmB.019"]="Remnant Dust", +["Zhengdaodaying.wmB.020"]="Passage Talisman", +["Zhengdaodaying.wmB.021"]="Concentrated Solvent", +["Zhengdaodaying.wmB.022"]="Tainted Crystal Remnant", +["Zhengdaodaying.wmB.023"]="Twin Metal", +["??????"]="Rear Mountain Key", +} +if syntaxcheck then return end +local previous=rawget(_G,'PBZ_ESP') +if previous then + if previous.pid==getOpenedProcessID() then error('Disable the existing PBZ ESP before enabling another copy.') end + if type(previous.cleanup)~='function' then error('Old ESP cleanup state is missing') end + previous.cleanup() +end +local localizedItems,totalItems,localizedLoot,totalLoot=EspSupport.localize(itemNames,lootNames) +local defaultRangePosition=400 +local state={pid=getOpenedProcessID(),enabled={},classCache={},nameCache={},labels={},actors={},pointCache={},maxDistance=EspSupport.rangeMetres(defaultRangePosition)} +local MARKER='PBZ_ITEM_OBJECT_ESP_V1' +local categories={ + {key='items',caption='物品',color=0xA7F3CE}, + {key='chests',caption='宝箱',color=0x77D5FF}, + {key='bells',caption='铜铃与存档点',color=0xFFD19C}, + {key='ladders',caption='梯子',color=0xD2D2D2}, + {key='flowers',caption='记忆之花',color=0xE5AEF9}, + {key='interactions',caption='交互对象',color=0xEFE8E0} +} +for _,c in ipairs(categories) do state.enabled[c.key]=true end +local colorByKey={};for _,c in ipairs(categories) do colorByKey[c.key]=c.color end +local function ptr(p) return type(p)=='number' and p>0x10000 and p<0x7FFFFFFFFFFF end +local function q(p) return ptr(p) and readQword(p) or nil end +local function finite(x) return type(x)=='number' and x==x and math.abs(x)<1e12 end +local function vector(p) + if not ptr(p) then return end + local x,y,z=readDouble(p),readDouble(p+8),readDouble(p+16) + if finite(x) and finite(y) and finite(z) then return {x,y,z} end +end +local function array(p,limit) + local data,num,cap=q(p),readInteger(p+8),readInteger(p+12) + if not num or not cap or num>limit or cap1000000 then return end + if num>0 and not ptr(data) then return end + return data,num +end +local function exactString(p,n,wide) + local bytes=readBytes(p,n*(wide and 2 or 1),true) + if not bytes or #bytes~=n*(wide and 2 or 1) then return '' end + if not wide then return string.char(table.unpack(bytes)) end + local chars={};local i=1 + while i<=#bytes do + local unit=bytes[i]+bytes[i+1]*256;i=i+2 + if unit>=0xD800 and unit<=0xDBFF and i<#bytes then + local low=bytes[i]+bytes[i+1]*256 + if low>=0xDC00 and low<=0xDFFF then unit=0x10000+(unit-0xD800)*1024+low-0xDC00;i=i+2 + else unit=0xFFFD end + elseif unit>=0xD800 and unit<=0xDFFF then unit=0xFFFD end + if unit==0 then break end + chars[#chars+1]=utf8.char(unit) + end + return table.concat(chars) +end +local function fname(p) + local id=readInteger(p) + if not id then return '' end + local text=state.nameCache[id] + if not text then + local block=id>>16 + if block>8191 then return '' end + local b=q(state.namePool+0x10+block*8) + if not ptr(b) then return '' end + local entry=b+(id&0xFFFF)*2 + local h=readSmallInteger(entry) + if not h then return '' end + local n=h>>6 + if n<1 or n>1023 then return '' end + text=exactString(entry+2,n,(h&1)~=0) + if not text then return '' end + state.nameCache[id]=text + end + local number=readInteger(p+4) + if number and number>0 then text=text..'_'..tostring(number-1) end + return text +end +local function fstring(p) + local data,n=array(p,1024) + if not data or n<2 then return '' end + return exactString(data,n-1,true) +end +local function meta(cl) + if not ptr(cl) then return end + local nameId=q(cl+0x18) + local super=q(cl+0x40) + if not nameId or super==nil then return end + local old=state.classCache[cl] + if old and old.nameId==nameId and old.super==super then return old end + local m={nameId=nameId,super=super,name=fname(cl+0x18)} + state.classCache[cl]=m + return m +end +local function properties(cl) + local m=meta(cl);if not m then return {} end + if m.fields then return m.fields end + local fields={};local f=q(cl+0x50);local seen={} + for i=1,512 do + if not ptr(f) or seen[f] then break end + seen[f]=true + local off,size=readInteger(f+0x44),readInteger(f+0x34) + if off and off<0x100000 and size and size<0x100000 then + fields[fname(f+0x20)]={offset=off,size=size,type=q(f+0x70), + byte=readBytes(f+0x71,1),mask=readBytes(f+0x72,1)} + end + f=q(f+0x10) + end + m.fields=fields;return fields +end +local function field(cl,name,required) + local seen={} + for i=1,32 do + if not ptr(cl) or seen[cl] then break end + seen[cl]=true + local p=properties(cl)[name];if p then return p end + local m=meta(cl);cl=m and m.super + end + if required then error('Missing reflected field: '..name) end +end +local function offset(cl,name) return field(cl,name,true).offset end +local function classOf(a) return q(a+0x10) end +local function nativeFunction(cl,name) + local visited={} + for i=1,32 do + if not ptr(cl) or visited[cl] then break end + visited[cl]=true + local f=q(cl+0x48);local seen={} + for j=1,1024 do + if not ptr(f) or seen[f] then break end + seen[f]=true + if fname(f+0x18)==name then return q(f+0x128) end + f=q(f+0x28) + end + local m=meta(cl);cl=m and m.super + end +end +local function flag(a,f) + if not f or not f.byte or not f.mask then return false end + local b=readBytes(a+f.offset+f.byte,1) + return b and (b&f.mask)~=0 +end +local function uniqueScan(pattern) + local scan=createMemScan();local found=createFoundList(scan) + local ok,result=pcall(function() + local base=getAddress('PBZ.exe') + scan.firstScan(soExactValue,vtByteArray,rtRounded,pattern,'',base,base+getModuleSize('PBZ.exe')-1, + '+X',fsmNotAligned,'1',true,false,false,false) + scan.waitTillDone();found.initialize() + if found.Count~=1 then error('ESP signature expected 1 match; found '..found.Count) end + return getAddress(found.Address[0]) + end) + found.destroy();scan.destroy() + if not ok then error(result) end + return result +end +local function setupContext(world) + state.classCache={};state.nameCache={};state.actors={};state.pointCache={};state.labels={};state.scan=nil + local wc=classOf(world) + local c={world=world,levels=offset(wc,'Levels'),gi=offset(wc,'OwningGameInstance')} + local gi=q(world+c.gi);if not ptr(gi) then return end + c.localPlayers=offset(classOf(gi),'LocalPlayers') + local players,n=array(gi+c.localPlayers,8);if not players or n<1 then return end + local lp=q(players);if not ptr(lp) then return end + c.controller=offset(classOf(lp),'PlayerController') + local pc=q(lp+c.controller);if not ptr(pc) then return end + c.pawn=offset(classOf(pc),'Pawn');c.camera=offset(classOf(pc),'PlayerCameraManager') + local pawn,cam=q(pc+c.pawn),q(pc+c.camera) + if not ptr(pawn) or not ptr(cam) then return end + local ac=classOf(pawn) + c.root=offset(ac,'RootComponent');c.hidden=field(ac,'bHidden',true);c.destroyed=field(ac,'bActorIsBeingDestroyed',true) + local root=q(pawn+c.root);if not ptr(root) then return end + local getter=nativeFunction(classOf(root),'K2_GetComponentLocation') + if not ptr(getter) then error('Missing SceneComponent location getter') end + local bytes=readBytes(getter,36,true) + if not bytes or bytes[22]~=0x0F or bytes[23]~=0x10 or bytes[24]~=0x89 + or bytes[29]~=0xF2 or bytes[30]~=0x0F or bytes[31]~=0x10 or bytes[32]~=0x81 then + error('SceneComponent location getter changed; refusing an unverified transform offset') + end + c.position=readInteger(getter+0x18) + if not c.position or c.position<0x100 or c.position>0x1000 or readInteger(getter+0x20)~=c.position+16 then + error('Unexpected SceneComponent world-position layout') + end + local levels,nlevels=array(world+c.levels,8192) + if not levels then return end + local level=q(levels) + if ptr(level) then c.owningWorld=offset(classOf(level),'OwningWorld') end + if not c.owningWorld then return end + state.context=c;return c +end +local function localState(c) + local gi=q(c.world+c.gi);if not ptr(gi) then return end + local players,n=array(gi+c.localPlayers,8);if not players or n<1 then return end + local lp=q(players);if not ptr(lp) then return end + local pc=q(lp+c.controller);if not ptr(pc) then return end + local pawn,cam=q(pc+c.pawn),q(pc+c.camera) + if not ptr(pawn) or not ptr(cam) then return end + local root=q(pawn+c.root);if not ptr(root) then return end + local pos=vector(root+c.position);if not pos then return end + return {pawn=pawn,cam=cam,position=pos} +end +local function describeClass(cl) + local m=meta(cl);if not m then return end + if m.description~=nil then return m.description or nil end + local ancestry={};local current=cl;local seen={} + for i=1,32 do + if not ptr(current) or seen[current] then break end + seen[current]=true;local base=meta(current);if not base then break end + ancestry[base.name]=true;current=base.super + end + local d={name=m.name} + if ancestry.BP_FlowInteract_MemoryFlower_C then + d.category='flowers';d.caption='记忆之花';d.flower=field(cl,'FlowerItem');d.used=field(cl,'HasDestory') + elseif ancestry.BP_Chest_C then + d.category='chests';d.caption='宝箱';d.loot=field(cl,'Loot Item ID') + elseif ancestry.BP_Rubbish_C then + d.category='items';d.caption='可搜索遗骸';d.loot=field(cl,'Loot Item ID');d.item=field(cl,'Item ID');d.used=field(cl,'bDestroyed') + elseif ancestry.MelodiousBell or ancestry.PBZCheckPoint then + d.category='bells';d.caption='铜铃/存档点' + elseif ancestry.PBZSpecialMoveClimLadderBase or ancestry.SpecialMoveVolume_ClimLadder then + d.category='ladders';d.caption='梯子' + elseif ancestry.PBZFlowInteractActorBase then + d.category='interactions';d.caption=ancestry.BP_FlowInteractActor_DragonPillar_C and '龙柱' or '交互对象' + d.loot=field(cl,'LootItemID') + elseif ancestry.PBZSwitchBase then + d.category='interactions';d.caption='交互对象' + if ancestry.BP_FogDoor_C then d.caption='雾门' + elseif ancestry.BP_MaskSafeDoor_C then d.caption='封印门' + elseif ancestry.BP_Teleport_C then d.caption='传送点' + elseif ancestry.BP_ZC_Statue_Fissure_C then d.caption='裂隙雕像' end + else m.description=false;return end + m.description=d;return d +end +local function lootCaption(id) + if id=='' or id=='None' then return end + if itemNames[id] then return itemNames[id] end + return lootNames[id] +end +local function candidate(a) + if not ptr(a) then return end + local cl=classOf(a);local d=describeClass(cl);if not d then return end + local id=q(a+0x18);local index=readInteger(a+0xC) + local weak=PBZ_EspProjection and PBZ_EspProjection.weak(a);if not weak then return end + if not id or not index then return end + local caption=d.caption;local category=d.category + local loot=d.loot and fname(a+d.loot.offset) or '' + local resolved=lootCaption(loot) + if not resolved and d.item then resolved=lootCaption(fname(a+d.item.offset)) end + if category=='interactions' and loot~='' and loot~='None' then category='items';caption='战利品' end + if resolved then caption=resolved end + if d.flower then + local flower=lootCaption(fstring(a+d.flower.offset));if flower then caption='记忆之花:'..flower end + end + if category=='chests' then caption=caption..' [宝箱]' elseif category=='items' then caption=caption..' [物品]' end + return {address=a,weak=weak,class=cl,nameId=id,index=index,description=d,category=category,caption=caption} +end +local function scanSlice(c) + local now=getTickCount() + if not state.scan then + if state.nextScan and now=s.num then + state.actors=s.results;local keep={};for _,e in ipairs(s.results)do keep[e.address]=state.pointCache[e.address]end;state.pointCache=keep;state.scan=nil;state.nextScan=now+400;state.scannedActors=0 + for _ in pairs(s.seen) do state.scannedActors=state.scannedActors+1 end + state.lastScan=now;return + end + local level=q(s.data+s.level*8);s.level=s.level+1;levels=levels+1 + if ptr(level) and q(level+c.owningWorld)==c.world then + s.actorData,s.actorNum=array(level+0xA0,65536) + s.actorIndex=0 + end + end + end +end +local function samplePoints(c) + local started=getTickCount();local count=#state.actors + if count==0 then return end + for i=1,16 do + state.pointCursor=((state.pointCursor or 0)%count)+1 + local entry=state.actors[state.pointCursor];local a=entry.address + state.pointCache[a]=nil + if classOf(a)==entry.class and q(a+0x18)==entry.nameId and readInteger(a+0xC)==entry.index + and PBZ_EspProjection.weak(a)==entry.weak and not flag(a,c.hidden)and not flag(a,c.destroyed) + and not flag(a,entry.description.used)then + local root=q(a+c.root);local position=ptr(root)and vector(root+c.position) + if position then state.pointCache[a]={weak=entry.weak,position=position,time=getTickCount()}end + end + if getTickCount()-started>=6 then break end + end +end +local function localCall(name,...) return executeCodeLocalEx(name,...) end +local function hideOverlay() + if state.overlay and state.overlayShown then localCall('user32.ShowWindow',state.overlay.Handle,0);state.overlayShown=false end +end +local function findGameWindow() + local h=getWindow(getForegroundWindow(),0);local best,bestArea + for i=1,1024 do + if not h or h==0 then break end + if getWindowProcessID(h)==state.pid and getWindowClassName(h)=='UnrealWindow' + and localCall('user32.IsWindowVisible',h)~=0 then + if localCall('user32.GetClientRect',h,state.scratch.Memory)~=0 then + local w,hgt=readIntegerLocal(state.scratch.Memory+8),readIntegerLocal(state.scratch.Memory+12) + local area=(w or 0)*(hgt or 0) + if area>0 and (not bestArea or area>bestArea) then best,bestArea=h,area end + end + end + h=getWindow(h,2) + end + state.gameWindow=best;return best +end +local function clientRect() + local hwnd=state.gameWindow + if not hwnd or getWindowProcessID(hwnd)~=state.pid then hwnd=findGameWindow() end + if not hwnd or localCall('user32.IsIconic',hwnd)~=0 then return end + local p=state.scratch.Memory + if localCall('user32.GetClientRect',hwnd,p)==0 then return end + local w,h=readIntegerLocal(p+8),readIntegerLocal(p+12) + if not w or not h or w<100 or h<100 then return end + writeIntegerLocal(p+16,0);writeIntegerLocal(p+20,0) + if localCall('user32.ClientToScreen',hwnd,p+16)==0 then return end + local x,y=readIntegerLocal(p+16,true),readIntegerLocal(p+20,true) + return x,y,w,h +end +local function cleanup() + if state.cleaned then return end + state.cleaned=true + for _,key in ipairs({'frameTimer','scanTimer','closeTimer'}) do + local t=state[key];if t then t.Enabled=false;t.destroy();state[key]=nil end + end + for _,key in ipairs({'overlay','form'}) do + local f=state[key];if f then f.OnClose=nil;f.destroy();state[key]=nil end + end + if state.scratch then state.scratch.destroy();state.scratch=nil end + if rawget(_G,'PBZ_ESP')==state then _G.PBZ_ESP=nil end +end +state.cleanup=cleanup +local function rounded(control,radius) + local region=localCall('gdi32.CreateRoundRectRgn',0,0,control.Width+1,control.Height+1,radius,radius) + if not region or region==0 then error('Could not create rounded control') end + if localCall('user32.SetWindowRgn',control.Handle,region,1)==0 then + localCall('gdi32.DeleteObject',region);error('Could not apply rounded control') + end +end +local function requestClose() + if state.disabling then return end + state.disabling=true + local t=createTimer(nil,false);state.closeTimer=t;t.Interval=1 + t.OnTimer=function() + t.Enabled=false + local ok,err=pcall(function() + local record=state.ownerRecord + if not record or not record.Active then + record=nil;local list=getAddressList() + for i=0,list.Count-1 do + local r=list.getMemoryRecord(i) + if r.Active and (r.Script or ''):find(MARKER,1,true) then + if record then error('Multiple active ESP entries. Disable the intended entry in CE.') end + record=r + end + end + end + if not record then error('Cannot find active ESP entry. Uncheck it in CE.') end + state.ownerRecord=record;record.Active=false + if record.Active then error('CE could not disable the ESP entry.') end + end) + if not ok and not state.cleaned then state.disabling=false;state.status.Caption=tostring(err) end + if not state.cleaned and state.closeTimer then state.closeTimer.destroy();state.closeTimer=nil end + end + t.Enabled=true +end +local function buildMenu() + local f=createForm(false);state.form=f + f.Caption='影之刃零 · 物品与对象ESP';f.Name='PBZESPMenu';f.DoNotSaveInTable=true + f.setBorderStyle('bsNone');f.ClientWidth=426;f.ClientHeight=522;f.Color=0x211A16 + f.Font.Name='Microsoft YaHei UI';f.Font.Size=10;f.Font.Color=0xEFE8E0;f.centerScreen() + local function label(text,x,y,w,h,size) + local l=createLabel(f);l.Parent=f;l.Caption=text;l.AutoSize=false + l.Left,l.Top,l.Width,l.Height=x,y,w,h;if size then l.Font.Size=size end;return l + end + local function button(text,x,y,w,h,click) + local b=createButton(f);b.Parent=f;b.Caption=text;b.Left,b.Top,b.Width,b.Height=x,y,w,h + b.OnClick=click;rounded(b,18);return b + end + local title=label('PHANTOM BLADE ZERO',22,17,382,27,15);title.Font.Style='[fsBold]' + title.OnMouseDown=function() f.dragNow() end + label('物品与对象 · 场景 / 分区大地图',23,49,380,22,10) + for i,c in ipairs(categories) do + local y=87+(i-1)*43 + label(c.caption,24,y+5,255,26,11) + local b + b=button('开',315,y,86,32,function() + state.enabled[c.key]=not state.enabled[c.key];b.Caption=state.enabled[c.key] and '开' or '关' + end) + end + state.rangeLabel=label(('搜索与显示范围:%d 米'):format(state.maxDistance),24,350,380,23,10) + local range=createTrackBar(f);state.rangeSlider=range;range.Parent=f + range.Left,range.Top,range.Width,range.Height=24,377,378,32 + range.Min=0;range.Max=EspSupport.maxRangePosition;range.Position=defaultRangePosition + range.OnChange=function() + state.maxDistance=EspSupport.rangeMetres(range.Position) + state.rangeLabel.Caption=('搜索与显示范围:%d 米'):format(state.maxDistance) + end + label('中文名称 · 准星为坐标点 · 仅显示已加载对象',24,417,380,21,9) + state.status=label('正在扫描已加载对象…',24,442,380,26,9) + button('最小化',24,478,181,31,function() localCall('user32.ShowWindow',f.Handle,6) end) + button('关闭',221,478,181,31,requestClose) + f.OnClose=function() requestClose();return caNone end + rounded(f,26);f.show() +end +local function buildOverlay() + local f=createForm(false);state.overlay=f + f.Caption='PBZ ESP Overlay';f.Name='PBZESPOverlay';f.DoNotSaveInTable=true + f.setBorderStyle('bsNone');f.Color=0x010101;f.ClientWidth=640;f.ClientHeight=480;f.DoubleBuffered=true + local p=createPaintBox(f);state.paint=p;p.Parent=f;p.Align='alClient' + local ex=localCall('user32.GetWindowLongPtrW',f.Handle,-20) + if not ex then error('Could not read overlay window style') end + localCall('user32.SetWindowLongPtrW',f.Handle,-20,ex|0x00080000|0x20|0x08000000|0x80) + f.setLayeredAttributes(0x010101,255,1) + p.OnPaint=function() + if state.cleaned then return end + local canvas=p.Canvas + local ok,err=pcall(function() + canvas.Brush.Style='bsSolid';canvas.Brush.Color=0x010101;canvas.fillRect(0,0,p.Width,p.Height) + canvas.Brush.Style='bsClear';canvas.Font.Name='Microsoft YaHei UI';canvas.Font.Height=-16 + canvas.Font.Quality='fqNonAntialiased';canvas.Font.Style='[fsBold]' + local function text(s,x,y,color) + local left=math.floor(x-canvas.getTextWidth(s)/2) + canvas.Font.Color=0x000000 + canvas.textOut(left-1,y,s);canvas.textOut(left+1,y,s);canvas.textOut(left,y-1,s);canvas.textOut(left,y+1,s) + canvas.Font.Color=color;canvas.textOut(left,y,s) + end + for _,entry in ipairs(state.labels) do + text('+',entry.x,entry.y-8,entry.color) + text(entry.caption,entry.x,entry.y-27,entry.color) + text(entry.distance,entry.x,entry.y+9,0xFFFFFF) + end + end) + if not ok then + state.lastError=tostring(err);state.paused=true;hideOverlay() + if state.status then state.status.Caption='绘制暂停:'..tostring(err):sub(1,90) end + end + end + f.OnClose=function() return caNone end + f.show();localCall('user32.ShowWindow',f.Handle,0);state.overlayShown=false +end +local function frame() + if state.cleaned or state.paused or(PBZ_EspProjection and PBZ_EspProjection.stopping)then return end + if getOpenedProcessID()~=state.pid then + hideOverlay();state.labels={};state.status.Caption='游戏进程已改变,请重新连接后开启ESP。';return + end + local world=q(state.worldSlot) + if not ptr(world) then hideOverlay();state.context=nil;state.actors={};state.labels={};return end + local c=state.context + if not c or c.world~=world then + state.context=nil;hideOverlay();c=setupContext(world) + if not c then state.status.Caption='等待本地角色…';return end + end + local player=localState(c) + if not player then hideOverlay();state.labels={};return end + state.player=player + if getForegroundProcess()~=state.pid then hideOverlay();return end + local x,y,w,h=clientRect();if not x then hideOverlay();return end + local points={} + local now=getTickCount() + for _,entry in ipairs(state.actors)do + local sample=state.pointCache[entry.address] + if sample and sample.weak==entry.weak and now-sample.time>=0 and now-sample.time<2500 and state.enabled[entry.category]then + local dist,metres=EspSupport.distanceText(sample.position,player.position) + if metres<=state.maxDistance then + points[#points+1]={address=entry.address,weak=entry.weak,position=sample.position,caption=entry.caption,distance=dist,metres=metres,color=colorByKey[entry.category]} + end + end + end + table.sort(points,function(a,b) return a.metres0x10000 and p<0x7FFFFFFFFFFF end +local function q(p) return ptr(p) and readQword(p) or nil end +local function finite(x) return type(x)=='number' and x==x and math.abs(x)<1e12 end +local function vector(p) + if not ptr(p) then return end + local x,y,z=readDouble(p),readDouble(p+8),readDouble(p+16) + if finite(x) and finite(y) and finite(z) then return {x,y,z} end +end +local function array(p,limit) + local data,num,cap=q(p),readInteger(p+8),readInteger(p+12) + if not num or not cap or num>limit or cap1000000 then return end + if num>0 and not ptr(data) then return end + return data,num +end +local function exactString(p,n,wide) + local bytes=readBytes(p,n*(wide and 2 or 1),true) + if not bytes or #bytes~=n*(wide and 2 or 1) then return '' end + if not wide then return string.char(table.unpack(bytes)) end + local chars={};local i=1 + while i<=#bytes do + local unit=bytes[i]+bytes[i+1]*256;i=i+2 + if unit>=0xD800 and unit<=0xDBFF and i<#bytes then + local low=bytes[i]+bytes[i+1]*256 + if low>=0xDC00 and low<=0xDFFF then unit=0x10000+(unit-0xD800)*1024+low-0xDC00;i=i+2 + else unit=0xFFFD end + elseif unit>=0xD800 and unit<=0xDFFF then unit=0xFFFD end + if unit==0 then break end + chars[#chars+1]=utf8.char(unit) + end + return table.concat(chars) +end +local function fname(p) + local id=readInteger(p) + if not id then return '' end + local text=state.nameCache[id] + if not text then + local block=id>>16 + if block>8191 then return '' end + local b=q(state.namePool+0x10+block*8) + if not ptr(b) then return '' end + local entry=b+(id&0xFFFF)*2 + local h=readSmallInteger(entry) + if not h then return '' end + local n=h>>6 + if n<1 or n>1023 then return '' end + text=exactString(entry+2,n,(h&1)~=0) + if not text then return '' end + state.nameCache[id]=text + end + local number=readInteger(p+4) + if number and number>0 then text=text..'_'..tostring(number-1) end + return text +end +local function fstring(p) + local data,n=array(p,1024) + if not data or n<2 then return '' end + return exactString(data,n-1,true) +end +local function meta(cl) + if not ptr(cl) then return end + local nameId=q(cl+0x18) + local super=q(cl+0x40) + if not nameId or super==nil then return end + local old=state.classCache[cl] + if old and old.nameId==nameId and old.super==super then return old end + local m={nameId=nameId,super=super,name=fname(cl+0x18)} + state.classCache[cl]=m + return m +end +local function properties(cl) + local m=meta(cl);if not m then return {} end + if m.fields then return m.fields end + local fields={};local f=q(cl+0x50);local seen={} + for i=1,512 do + if not ptr(f) or seen[f] then break end + seen[f]=true + local off,size=readInteger(f+0x44),readInteger(f+0x34) + if off and off<0x100000 and size and size<0x100000 then + fields[fname(f+0x20)]={offset=off,size=size,type=q(f+0x70), + byte=readBytes(f+0x71,1),mask=readBytes(f+0x72,1)} + end + f=q(f+0x10) + end + m.fields=fields;return fields +end +local function field(cl,name,required) + local seen={} + for i=1,32 do + if not ptr(cl) or seen[cl] then break end + seen[cl]=true + local p=properties(cl)[name];if p then return p end + local m=meta(cl);cl=m and m.super + end + if required then error('Missing reflected field: '..name) end +end +local function offset(cl,name) return field(cl,name,true).offset end +local function classOf(a) return q(a+0x10) end +local function uniqueScan(pattern) + local scan=createMemScan();local found=createFoundList(scan) + local ok,result=pcall(function() + local base=getAddress('PBZ.exe') + scan.firstScan(soExactValue,vtByteArray,rtRounded,pattern,'',base,base+getModuleSize('PBZ.exe')-1, + '+X',fsmNotAligned,'1',true,false,false,false) + scan.waitTillDone();found.initialize() + if found.Count~=1 then error('ESP signature expected 1 match; found '..found.Count) end + return getAddress(found.Address[0]) + end) + found.destroy();scan.destroy() + if not ok then error(result) end + return result +end +local MARKER='PBZ_CONSCIOUSNESS_DUST_EDITOR_V1' +local function resolveBalance() + if getOpenedProcessID()~=state.pid then return nil,'Process changed. Re-enable after attaching.' end + local world=q(state.worldSlot) + if not ptr(world) then return nil,'Load into the game first.' end + if state.world~=world then state.classCache={};state.world=world end + local gi=q(world+offset(classOf(world),'OwningGameInstance')) + if not ptr(gi) then return nil,'Waiting for the game instance.' end + local data,num=array(gi+offset(classOf(gi),'LocalPlayers'),8) + if not data or num<1 then return nil,'Waiting for the local player.' end + local lp=q(data);if not ptr(lp) then return nil,'Waiting for the local player.' end + local pc=q(lp+offset(classOf(lp),'PlayerController')) + if not ptr(pc) then return nil,'Waiting for the controller.' end + local pawnOffset=offset(classOf(pc),'Pawn') + local pawn=q(pc+pawnOffset) + if not ptr(pawn) then return nil,'Waiting for the local pawn.' end + local cl=classOf(pawn) + local dust=field(cl,'ConsciousnessDust') + if not dust or dust.size~=4 then return nil,'This pawn has no supported Remnant Dust field.' end + local address=pawn+dust.offset;local value=readInteger(address,true) + if not value or value<0 then return nil,'The current balance is unavailable.' end + return {world=world,controller=pc,pawnOffset=pawnOffset,pawn=pawn,class=cl, + nameId=q(pawn+0x18),index=readInteger(pawn+0xC),address=address,value=value} +end +local function safeResolve() + local ok,result,message=pcall(resolveBalance) + if not ok then state.lastError=tostring(result);return nil,'Currency unavailable. Re-enable after loading.' end + return result,message +end +local function cleanup() + if state.cleaned then return end + state.cleaned=true + for _,key in ipairs({'timer','closeTimer'}) do + local timer=state[key];if timer then timer.Enabled=false;timer.destroy();state[key]=nil end + end + if state.form then state.form.OnClose=nil;state.form.destroy();state.form=nil end + if rawget(_G,'PBZ_DustEditor')==state then _G.PBZ_DustEditor=nil end +end +state.cleanup=cleanup +local function requestClose() + if state.disabling then return end + state.disabling=true + local timer=createTimer(nil,false);state.closeTimer=timer;timer.Interval=1 + timer.OnTimer=function() + timer.Enabled=false + local ok,err=pcall(function() + local record;local list=getAddressList() + for i=0,list.Count-1 do + local candidate=list.getMemoryRecord(i) + if candidate.Active and (candidate.Script or ''):find(MARKER,1,true) then + if record then error('Multiple Dust editors active. Uncheck the intended entry in CE.') end + record=candidate + end + end + if not record then error('Cannot find the active entry. Uncheck it in CE.') end + record.Active=false + if record.Active then error('Could not disable the currency editor.') end + end) + if not ok and not state.cleaned then state.disabling=false;state.status.Caption=tostring(err) end + if not state.cleaned and state.closeTimer then state.closeTimer.destroy();state.closeTimer=nil end + end + timer.Enabled=true +end +local function rounded(control,radius) + local region=executeCodeLocalEx('gdi32.CreateRoundRectRgn',0,0,control.Width+1,control.Height+1,radius,radius) + if not region or region==0 then error('Could not create a rounded window region') end + if executeCodeLocalEx('user32.SetWindowRgn',control.Handle,region,1)==0 then + executeCodeLocalEx('gdi32.DeleteObject',region);error('Could not apply a rounded window region') + end +end +local function applyAmount() + if state.cleaned or state.disabling then return end + local text=state.edit.Text:match('^%s*(.-)%s*$') + if not text:match('^%d+$') or #text>10 then state.status.Caption='Enter a whole number from 0 to 2147483647.';return end + local amount=tonumber(text,10) + if not amount or amount>2147483647 then state.status.Caption='Enter a whole number from 0 to 2147483647.';return end + local balance,message=safeResolve() + if not balance then state.status.Caption=message;return end + if getOpenedProcessID()~=state.pid or q(state.worldSlot)~=balance.world + or q(balance.controller+balance.pawnOffset)~=balance.pawn or classOf(balance.pawn)~=balance.class + or q(balance.pawn+0x18)~=balance.nameId or readInteger(balance.pawn+0xC)~=balance.index then + state.status.Caption='The local pawn changed. Try Apply again after loading.';return + end + local ok=writeInteger(balance.address,amount) + local actual=readInteger(balance.address,true) + if not ok or actual~=amount then + state.lastError='Currency write/readback failed';state.status.Caption='Could not apply the amount. Try again in gameplay.';return + end + state.lastApplied=amount;state.current.Caption='Current amount: '..tostring(actual) + state.status.Caption='Applied '..tostring(actual)..' Remnant Dust.' + state.edit.Text=tostring(actual);state.userEdited=false +end +local function buildForm() + local f=createForm(false);state.form=f + f.Caption='Phantom Blade Zero - Remnant Dust';f.Name='PBZDustEditor';f.DoNotSaveInTable=true + f.setBorderStyle('bsNone');f.ClientWidth=474;f.ClientHeight=282;f.Color=0x211A16 + f.Font.Name='Segoe UI';f.Font.Size=10;f.Font.Color=0xEFE8E0;f.centerScreen() + local function label(text,x,y,w,h,size) + local l=createLabel(f);l.Parent=f;l.Caption=text;l.AutoSize=false + l.Left,l.Top,l.Width,l.Height=x,y,w,h;if size then l.Font.Size=size end;return l + end + local title=label('REMNANT DUST',23,18,428,30,15);title.Font.Style='[fsBold]' + title.OnMouseDown=function() f.dragNow() end + state.current=label('Current amount: waiting for the local pawn...',24,62,426,26,10) + label('New amount',24,103,426,23,10) + local edit=createEdit(f);state.edit=edit;edit.Parent=f + edit.Left,edit.Top,edit.Width,edit.Height=24,131,426,34 + edit.Font.Size=13;edit.Color=0x2D251F;edit.Font.Color=0xEFE8E0;edit.Text='' + edit.OnChange=function() state.userEdited=true end + rounded(edit,12) + state.status=label('Enter an amount, then select Apply.',24,179,426,26,9) + local function button(text,x,click) + local b=createButton(f);b.Parent=f;b.Caption=text;b.Left,b.Top,b.Width,b.Height=x,228,204,33 + b.OnClick=click;rounded(b,18);return b + end + state.applyButton=button('Apply',24,applyAmount) + button('Close',246,requestClose) + f.OnClose=function() requestClose();return caNone end + rounded(f,26);f.show() +end +local function refresh() + if state.cleaned then return end + local balance,message=safeResolve() + state.applyButton.Enabled=balance~=nil + if balance then + state.current.Caption='Current amount: '..tostring(balance.value) + if state.unavailable then state.status.Caption='Enter an amount, then select Apply.';state.unavailable=false end + if not state.initialized or (state.lastPawn~=balance.pawn and not state.userEdited) then + state.edit.Text=tostring(balance.value);state.userEdited=false;state.initialized=true + end + state.lastPawn=balance.pawn + else state.unavailable=true;state.current.Caption='Current amount: unavailable';state.status.Caption=message end +end +local ok,err=pcall(function() + local worldRef=uniqueScan(signatures.world) + state.worldSlot=worldRef+7+readInteger(worldRef+3,true) + local poolRef=uniqueScan(signatures.names)+0x1C + state.namePool=poolRef+7+readInteger(poolRef+3,true) + _G.PBZ_DustEditor=state + buildForm();refresh() + state.timer=createTimer(nil,false);state.timer.Interval=250 + state.timer.OnTimer=function() + local good,message=pcall(refresh) + if not good then state.lastError=tostring(message);state.applyButton.Enabled=false;state.status.Caption='Currency unavailable. Re-enable after loading.' end + end + state.timer.Enabled=true +end) +if not ok then cleanup();error('Remnant Dust editor: '..tostring(err)) end +{$asm} +[DISABLE] +{$lua} +if syntaxcheck then return end +local state=rawget(_G,'PBZ_DustEditor') +if state and state.cleanup then state.cleanup() end +{$asm} diff --git a/runtime/resources/scripts/1337142248.aa b/runtime/resources/scripts/1337142248.aa new file mode 100644 index 0000000..0ad4adb --- /dev/null +++ b/runtime/resources/scripts/1337142248.aa @@ -0,0 +1,264 @@ +[ENABLE] +{$lua} +if syntaxcheck then return end +local signatures={world="48 8B 05 ?? ?? ?? ?? 48 85 C0 75 ?? 80 3D ?? ?? ?? ?? 02 72 ?? 48 8D 15 ?? ?? ?? ?? 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? 33 C0 48 83 C4 20 5B C3",names="89 03 48 8B C3 89 7B 04 48 8B 5C 24 48 48 83 C4 30 5F C3 80 3D ?? ?? ?? ?? 00 74 09 48 8D 05 ?? ?? ?? ?? EB 13 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? C6 05 ?? ?? ?? ?? 01 0F 28 44 24 20"} +local state={pid=getOpenedProcessID(),classCache={},nameCache={}} +local function ptr(p) return type(p)=='number' and p>0x10000 and p<0x7FFFFFFFFFFF end +local function q(p) return ptr(p) and readQword(p) or nil end +local function finite(x) return type(x)=='number' and x==x and math.abs(x)<1e12 end +local function vector(p) + if not ptr(p) then return end + local x,y,z=readDouble(p),readDouble(p+8),readDouble(p+16) + if finite(x) and finite(y) and finite(z) then return {x,y,z} end +end +local function array(p,limit) + local data,num,cap=q(p),readInteger(p+8),readInteger(p+12) + if not num or not cap or num>limit or cap1000000 then return end + if num>0 and not ptr(data) then return end + return data,num +end +local function exactString(p,n,wide) + local bytes=readBytes(p,n*(wide and 2 or 1),true) + if not bytes or #bytes~=n*(wide and 2 or 1) then return '' end + if not wide then return string.char(table.unpack(bytes)) end + local chars={};local i=1 + while i<=#bytes do + local unit=bytes[i]+bytes[i+1]*256;i=i+2 + if unit>=0xD800 and unit<=0xDBFF and i<#bytes then + local low=bytes[i]+bytes[i+1]*256 + if low>=0xDC00 and low<=0xDFFF then unit=0x10000+(unit-0xD800)*1024+low-0xDC00;i=i+2 + else unit=0xFFFD end + elseif unit>=0xD800 and unit<=0xDFFF then unit=0xFFFD end + if unit==0 then break end + chars[#chars+1]=utf8.char(unit) + end + return table.concat(chars) +end +local function fname(p) + local id=readInteger(p) + if not id then return '' end + local text=state.nameCache[id] + if not text then + local block=id>>16 + if block>8191 then return '' end + local b=q(state.namePool+0x10+block*8) + if not ptr(b) then return '' end + local entry=b+(id&0xFFFF)*2 + local h=readSmallInteger(entry) + if not h then return '' end + local n=h>>6 + if n<1 or n>1023 then return '' end + text=exactString(entry+2,n,(h&1)~=0) + if not text then return '' end + state.nameCache[id]=text + end + local number=readInteger(p+4) + if number and number>0 then text=text..'_'..tostring(number-1) end + return text +end +local function fstring(p) + local data,n=array(p,1024) + if not data or n<2 then return '' end + return exactString(data,n-1,true) +end +local function meta(cl) + if not ptr(cl) then return end + local nameId=q(cl+0x18) + local super=q(cl+0x40) + if not nameId or super==nil then return end + local old=state.classCache[cl] + if old and old.nameId==nameId and old.super==super then return old end + local m={nameId=nameId,super=super,name=fname(cl+0x18)} + state.classCache[cl]=m + return m +end +local function properties(cl) + local m=meta(cl);if not m then return {} end + if m.fields then return m.fields end + local fields={};local f=q(cl+0x50);local seen={} + for i=1,512 do + if not ptr(f) or seen[f] then break end + seen[f]=true + local off,size=readInteger(f+0x44),readInteger(f+0x34) + if off and off<0x100000 and size and size<0x100000 then + fields[fname(f+0x20)]={offset=off,size=size,type=q(f+0x70), + byte=readBytes(f+0x71,1),mask=readBytes(f+0x72,1)} + end + f=q(f+0x10) + end + m.fields=fields;return fields +end +local function field(cl,name,required) + local seen={} + for i=1,32 do + if not ptr(cl) or seen[cl] then break end + seen[cl]=true + local p=properties(cl)[name];if p then return p end + local m=meta(cl);cl=m and m.super + end + if required then error('Missing reflected field: '..name) end +end +local function offset(cl,name) return field(cl,name,true).offset end +local function classOf(a) return q(a+0x10) end +local function nativeFunction(cl,name) + local visited={} + for i=1,32 do + if not ptr(cl) or visited[cl] then break end + visited[cl]=true + local f=q(cl+0x48);local seen={} + for j=1,1024 do + if not ptr(f) or seen[f] then break end + seen[f]=true + if fname(f+0x18)==name then return q(f+0x128) end + f=q(f+0x28) + end + local m=meta(cl);cl=m and m.super + end +end +local function flag(a,f) + if not f or not f.byte or not f.mask then return false end + local b=readBytes(a+f.offset+f.byte,1) + return b and (b&f.mask)~=0 +end +local function uniqueScan(pattern) + local scan=createMemScan();local found=createFoundList(scan) + local ok,result=pcall(function() + local base=getAddress('PBZ.exe') + scan.firstScan(soExactValue,vtByteArray,rtRounded,pattern,'',base,base+getModuleSize('PBZ.exe')-1, + '+X',fsmNotAligned,'1',true,false,false,false) + scan.waitTillDone();found.initialize() + if found.Count~=1 then error('ESP signature expected 1 match; found '..found.Count) end + return getAddress(found.Address[0]) + end) + found.destroy();scan.destroy() + if not ok then error(result) end + return result +end +local wr=uniqueScan(signatures.world) +state.worldSlot=wr+7+readInteger(wr+3,true) +local nr=uniqueScan(signatures.names)+0x1C +state.namePool=nr+7+readInteger(nr+3,true) +local function getContext() + if getOpenedProcessID()~=state.pid then error('No Fall Damage: attached process changed; disable and re-enable') end + local world=q(state.worldSlot) + if not ptr(world) then return end + local gi=q(world+offset(classOf(world),'OwningGameInstance')) + if not ptr(gi) then return end + local players,n=array(gi+offset(classOf(gi),'LocalPlayers'),8) + if not players or not n or n<1 then return end + local lp=q(players) + if not ptr(lp) then return end + local pc=q(lp+offset(classOf(lp),'PlayerController')) + if not ptr(pc) then return end + local pawn=q(pc+offset(classOf(pc),'Pawn')) + if not ptr(pawn) then return end + local cl=classOf(pawn);local base=cl;local found=false;local seen={} + for i=1,32 do + if not ptr(base) or seen[base] then break end;seen[base]=true + if fname(base+0x18)=='BP_Player_Base_C' then found=true;break end + base=q(base+0x40) + end + if not found then return end + local damage=field(cl,'DamageDepth',true) + local dead=field(cl,'DeadDepth',true) + if damage.size~=8 or dead.size~=8 or damage.offset==dead.offset + or damage.offset%8~=0 or dead.offset%8~=0 then error('No Fall Damage: unsupported fall threshold layout') end + local hidden=field(cl,'bActorIsBeingDestroyed',true) + if flag(pawn,hidden) then return end + return {world=world,gi=gi,lp=lp,pc=pc,pawn=pawn,class=cl, + name=q(pawn+0x18),index=readInteger(pawn+0xC),outer=q(pawn+0x20), + damage=damage.offset,dead=dead.offset,destroyOffset=hidden.offset+hidden.byte,destroyMask=hidden.mask} +end +local initial=getContext() +if not initial then error('Load a save and possess the local player before enabling No Fall Damage') end +local previous=rawget(_G,'PBZ_NoFallDamage') +if previous then + if previous.pid==state.pid then error('Disable the existing No Fall Damage entry first') end + if previous.timer then previous.timer.Enabled=false;previous.timer.destroy();previous.timer=nil end + previous.lease=nil + _G.PBZ_NoFallDamage=nil +end +state.damageLimit=1000000000000 +state.deadLimit=2000000000000 +local function numberOK(v) return type(v)=='number' and v==v and math.abs(v)<1e15 end +local function sameIdentity(c) + if getOpenedProcessID()~=state.pid or not ptr(c.pawn) then return false end + local bits=readBytes(c.pawn+c.destroyOffset,1) + return bits~=nil and (bits&c.destroyMask)==0 + and q(c.pawn+0x10)==c.class + and q(c.pawn+0x18)==c.name + and readInteger(c.pawn+0xC)==c.index + and q(c.pawn+0x20)==c.outer +end +local function release() + local c=state.lease + if not c then return end + if sameIdentity(c) then + for _,f in ipairs({{c.damage,state.damageLimit,'originalDamage'},{c.dead,state.deadLimit,'originalDead'}}) do + local a=c.pawn+f[1] + if readDouble(a)==f[2] then + writeDouble(a,c[f[3]]) + if readDouble(a)~=c[f[3]] then error('No Fall Damage: failed to restore '..f[3]) end + end + end + end + state.lease=nil +end +local function maintain(c) + if not sameIdentity(c) then error('No Fall Damage: pawn identity changed before writing') end + local damage,dead=readDouble(c.pawn+c.damage),readDouble(c.pawn+c.dead) + if not numberOK(damage) or not numberOK(dead) or damage<0 or dead<0 then error('No Fall Damage: invalid fall thresholds') end + if damage~=state.damageLimit then c.originalDamage=damage end + if dead~=state.deadLimit then c.originalDead=dead end + if not numberOK(c.originalDamage) or not numberOK(c.originalDead) then error('No Fall Damage: missing original thresholds') end + for _,f in ipairs({{c.dead,state.deadLimit},{c.damage,state.damageLimit}}) do + if not sameIdentity(c) then error('No Fall Damage: pawn changed while updating thresholds') end + local a=c.pawn+f[1] + if readDouble(a)~=f[2] then + writeDouble(a,f[2]) + if readDouble(a)~=f[2] then error('No Fall Damage: threshold write failed') end + end + end +end +local function tick() + if getOpenedProcessID()~=state.pid then + state.lastError='Attached process changed; disable and re-enable No Fall Damage' + state.timer.Enabled=false;return + end + local c=getContext();local old=state.lease + if old and (not c or c.pawn~=old.pawn or c.world~=old.world or c.class~=old.class + or c.name~=old.name or c.index~=old.index or c.outer~=old.outer) then release();old=nil end + if c then + if not old then state.lease=c;old=c end + maintain(old) + end + state.lastError=nil +end +state.stop=function() + if state.timer then state.timer.Enabled=false end + release() + if state.timer then state.timer.destroy();state.timer=nil end + if rawget(_G,'PBZ_NoFallDamage')==state then _G.PBZ_NoFallDamage=nil end +end +local ok,err=pcall(function() + state.timer=createTimer(nil,false);state.timer.Interval=50 + state.timer.OnTimer=function() + local good,why=pcall(tick) + if not good then state.lastError=tostring(why);state.timer.Enabled=false end + end + state.lease=initial;maintain(initial) + _G.PBZ_NoFallDamage=state + state.timer.Enabled=true +end) +if not ok then + local restored=pcall(state.stop) + if not restored then _G.PBZ_NoFallDamage=state end + error(err) +end +{$asm} +[DISABLE] +{$lua} +if syntaxcheck then return end +local s=rawget(_G,'PBZ_NoFallDamage') +if s then s.stop() end +{$asm} diff --git a/runtime/resources/scripts/1337142249.aa b/runtime/resources/scripts/1337142249.aa new file mode 100644 index 0000000..103cda5 --- /dev/null +++ b/runtime/resources/scripts/1337142249.aa @@ -0,0 +1,482 @@ +[ENABLE] +{$lua} +local feature="consumables" +local patterns={DamageAdd="48 89 5C 24 10 F3 0F 11 54 24 18 57 48 83 EC 20 48 8B D9 48 8B FA 48 8B CA",Medicine="48 89 5C 24 18 55 57 41 56 48 81 EC F0 02 00 00 48 8B 05 ?? ?? ?? ?? 48 33 C4 48 89 84 24 E0 02 00 00",InventoryOne="41 8B 80 ?? ?? ?? ?? B9 00 00 00 00 2B C6 48 8B D3 0F 48 C1 48 8D 8F 68 01 00 00 41 89 80 ?? ?? ?? ??",InventoryBatch="8B 81 ?? ?? ?? ?? 44 8B C7 2B C7 48 8B D3 41 0F 48 C4 89 81 ?? ?? ?? ?? 49 8D 8D 68 01 00 00",Modification="48 8B C4 4C 89 40 18 55 53 56 48 8D 68 B1 48 81 EC D0 00 00 00 0F 29 70 B8 49 8B D9 0F 29 78 A8 48 89 78 10 48 8B 3D ?? ?? ?? ?? 4C 89 60 E0 4C 8B E1 4C 89 68 D8 8B CF 4C 89 70 D0",world="48 8B 05 ?? ?? ?? ?? 48 85 C0 75 ?? 80 3D ?? ?? ?? ?? 02 72 ?? 48 8D 15 ?? ?? ?? ?? 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? 33 C0 48 83 C4 20 5B C3",names="89 03 48 8B C3 89 7B 04 48 8B 5C 24 48 48 83 C4 30 5F C3 80 3D ?? ?? ?? ?? 00 74 09 48 8D 05 ?? ?? ?? ?? EB 13 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? C6 05 ?? ?? ?? ?? 01 0F 28 44 24 20"} +local state={pid=getOpenedProcessID(),classCache={},nameCache={}} +local function ptr(p) return type(p)=='number' and p>0x10000 and p<0x7FFFFFFFFFFF end +local function q(p) return ptr(p) and readQword(p) or nil end +local function finite(x) return type(x)=='number' and x==x and math.abs(x)<1e12 end +local function vector(p) + if not ptr(p) then return end + local x,y,z=readDouble(p),readDouble(p+8),readDouble(p+16) + if finite(x) and finite(y) and finite(z) then return {x,y,z} end +end +local function array(p,limit) + local data,num,cap=q(p),readInteger(p+8),readInteger(p+12) + if not num or not cap or num>limit or cap1000000 then return end + if num>0 and not ptr(data) then return end + return data,num +end +local function exactString(p,n,wide) + local bytes=readBytes(p,n*(wide and 2 or 1),true) + if not bytes or #bytes~=n*(wide and 2 or 1) then return '' end + if not wide then return string.char(table.unpack(bytes)) end + local chars={};local i=1 + while i<=#bytes do + local unit=bytes[i]+bytes[i+1]*256;i=i+2 + if unit>=0xD800 and unit<=0xDBFF and i<#bytes then + local low=bytes[i]+bytes[i+1]*256 + if low>=0xDC00 and low<=0xDFFF then unit=0x10000+(unit-0xD800)*1024+low-0xDC00;i=i+2 + else unit=0xFFFD end + elseif unit>=0xD800 and unit<=0xDFFF then unit=0xFFFD end + if unit==0 then break end + chars[#chars+1]=utf8.char(unit) + end + return table.concat(chars) +end +local function fname(p) + local id=readInteger(p) + if not id then return '' end + local text=state.nameCache[id] + if not text then + local block=id>>16 + if block>8191 then return '' end + local b=q(state.namePool+0x10+block*8) + if not ptr(b) then return '' end + local entry=b+(id&0xFFFF)*2 + local h=readSmallInteger(entry) + if not h then return '' end + local n=h>>6 + if n<1 or n>1023 then return '' end + text=exactString(entry+2,n,(h&1)~=0) + if not text then return '' end + state.nameCache[id]=text + end + local number=readInteger(p+4) + if number and number>0 then text=text..'_'..tostring(number-1) end + return text +end +local function fstring(p) + local data,n=array(p,1024) + if not data or n<2 then return '' end + return exactString(data,n-1,true) +end +local function meta(cl) + if not ptr(cl) then return end + local nameId=q(cl+0x18) + local super=q(cl+0x40) + if not nameId or super==nil then return end + local old=state.classCache[cl] + if old and old.nameId==nameId and old.super==super then return old end + local m={nameId=nameId,super=super,name=fname(cl+0x18)} + state.classCache[cl]=m + return m +end +local function properties(cl) + local m=meta(cl);if not m then return {} end + if m.fields then return m.fields end + local fields={};local f=q(cl+0x50);local seen={} + for i=1,512 do + if not ptr(f) or seen[f] then break end + seen[f]=true + local off,size=readInteger(f+0x44),readInteger(f+0x34) + if off and off<0x100000 and size and size<0x100000 then + fields[fname(f+0x20)]={address=f,offset=off,size=size,type=q(f+0x70), + byte=readBytes(f+0x71,1),mask=readBytes(f+0x72,1)} + end + f=q(f+0x10) + end + m.fields=fields;return fields +end +local function field(cl,name,required) + local seen={} + for i=1,32 do + if not ptr(cl) or seen[cl] then break end + seen[cl]=true + local p=properties(cl)[name];if p then return p end + local m=meta(cl);cl=m and m.super + end + if required then error('Missing reflected field: '..name) end +end +local function offset(cl,name) return field(cl,name,true).offset end +local function classOf(a) return q(a+0x10) end +local function nativeFunction(cl,name) + local visited={} + for i=1,32 do + if not ptr(cl) or visited[cl] then break end + visited[cl]=true + local f=q(cl+0x48);local seen={} + for j=1,1024 do + if not ptr(f) or seen[f] then break end + seen[f]=true + if fname(f+0x18)==name then return q(f+0x128) end + f=q(f+0x28) + end + local m=meta(cl);cl=m and m.super + end +end +local function flag(a,f) + if not f or not f.byte or not f.mask then return false end + local b=readBytes(a+f.offset+f.byte,1) + return b and (b&f.mask)~=0 +end +local function uniqueScan(pattern) + local scan=createMemScan();local found=createFoundList(scan) + local ok,result=pcall(function() + local base=getAddress('PBZ.exe') + scan.firstScan(soExactValue,vtByteArray,rtRounded,pattern,'',base,base+getModuleSize('PBZ.exe')-1, + '+X',fsmNotAligned,'1',true,false,false,false) + scan.waitTillDone();found.initialize() + if found.Count~=1 then error('ESP signature expected 1 match; found '..found.Count) end + return getAddress(found.Address[0]) + end) + found.destroy();scan.destroy() + if not ok then error(result) end + return result +end +local worldRef=uniqueScan(patterns.world) +local worldSlot=worldRef+7+readInteger(worldRef+3,true) +local namesRef=uniqueScan(patterns.names)+0x1C +state.namePool=namesRef+7+readInteger(namesRef+3,true) +local world=q(worldSlot);assert(ptr(world),'Load a save first') +local giOffset=offset(classOf(world),'OwningGameInstance') +local gi=q(world+giOffset);assert(ptr(gi),'Local game instance unavailable') +local playersOffset=offset(classOf(gi),'LocalPlayers') +local players,num=array(gi+playersOffset,8);assert(players and num>0,'Local player unavailable') +local lp=q(players);assert(ptr(lp),'Local player unavailable') +local controllerOffset=offset(classOf(lp),'PlayerController') +local pc=q(lp+controllerOffset);assert(ptr(pc),'Local controller unavailable') +local pawnOffset=offset(classOf(pc),'Pawn');local pawn=q(pc+pawnOffset) +assert(ptr(pawn),'Local pawn unavailable') +local function baseClass(cl,name) + local seen={} + for i=1,32 do + if not ptr(cl) or seen[cl] then return end;seen[cl]=true + if fname(cl+0x18)==name then return cl end + cl=q(cl+0x40) + end +end +local pawnClass=baseClass(classOf(pawn),'PBZCharacter');assert(pawnClass,'Unsupported local pawn') +local cfg={pid=state.pid,worldSlot=worldSlot,gi=giOffset,players=playersOffset,controller=controllerOffset, + pawn=pawnOffset,asc=offset(classOf(pawn),'AbilitySystemComponent'),pawnClass=pawnClass} +if feature=='consumables' then + cfg.Medicine=uniqueScan(patterns.Medicine);cfg.InventoryOne=uniqueScan(patterns.InventoryOne) + cfg.InventoryBatch=uniqueScan(patterns.InventoryBatch) + local data=q(world+0x9E0);local count=readInteger(world+0x9E8) + assert(ptr(data) and count and count>0 and count<2048,'Unsupported world subsystem map') + local bp + for i=0,count-1 do + local a=q(data+i*24+8) + local cl=ptr(a) and classOf(a) + if ptr(cl) and fname(cl+0x18)=='PBZBackPackSubsystem' and q(a+0x20)==world then bp=a;break end + end + assert(bp,'Local world backpack unavailable');cfg.backpackClass=classOf(bp) + local inventory=field(cfg.backpackClass,'Inventories',true) + local value=q(inventory.address+0x78) + local infoClass=ptr(value) and q(value+0x70) + assert(ptr(infoClass) and fname(infoClass+0x18)=='PBZInventoryInfo','Inventory map ABI changed') + cfg.infoClass=infoClass + local amount=field(infoClass,'CurrentAmount',true) + assert(amount.size==4 and readInteger(cfg.InventoryOne+3)==amount.offset + and readInteger(cfg.InventoryBatch+2)==amount.offset,'Inventory decrement no longer matches reflected amount') + local itemData=field(infoClass,'ItemDataStruct',true) + local itemType=field(itemData.type,'ItemType',true) + local detail=field(itemData.type,'ItemDetailType',true) + local itemGA=field(itemData.type,'ItemGA',true) + local function enumValue(prop,wanted) + local en=q(prop.address+0x78) + assert(ptr(en),'Missing inventory enum') + local names=q(en+0x40);local values=q(en+0x48);local n=readInteger(en+0x50) + assert(ptr(names) and ptr(values) and n and n>0 and n<256,'Unsupported UE5.7 enum storage') + names=names&(~1);values=values&(~1) + for i=0,n-1 do if fname(names+i*8)==wanted then return q(values+i*8) end end + error('Missing enum value '..wanted) + end + cfg.itemValue=enumValue(itemType,'EItemTypes::Item') + cfg.noneValue=enumValue(detail,'EItemDetailType::None');cfg.cookingValue=enumValue(detail,'EItemDetailType::Cooking') + cfg.itemType=itemData.offset+itemType.offset;cfg.detail=itemData.offset+detail.offset + cfg.itemGAPath=itemData.offset+itemGA.offset+8 +else + cfg.DamageAdd=uniqueScan(patterns.DamageAdd) + local method=uniqueScan(patterns.Modification) + local ac=q(pawn+offset(classOf(pawn),'Attribute Component')) + local calculator=ptr(ac) and q(ac+offset(classOf(ac),'DefaultDamageCalculator')) + assert(ptr(calculator) and q(q(calculator)+0x2B8)==method,'Unsupported local damage calculator') + local b=readBytes(method,0x1100,true);assert(b and #b==0x1100,'Damage method unreadable') + assert(b[4]==0x4C and b[5]==0x89 and b[6]==0x40 and b[11]==0x48 and b[12]==0x8D and b[13]==0x68,'Damage frame layout changed') + local frame=b[14];if frame>=128 then frame=frame-256 end + cfg.targetASC=b[7]-frame + cfg.targetMap=0x30-frame + local moves={0x0F,0x28,0xD6,0x48,0x8B,0xD0,0x48,0x8B,0xCE} + local getter;local calls={} + for i=1,#b-20 do + if b[i]==0xE8 and b[i+14]==0xE8 then + local match=true;for k=1,9 do if b[i+4+k]~=moves[k] then match=false;break end end + if match then + local a=method+i-1 + local target=a+5+readInteger(a+1,true) + local add=a+19+readInteger(a+15,true) + if add==cfg.DamageAdd then + if not getter then getter=target end + if target==getter then calls[#calls+1]=a+19 end + end + end + end + end + assert(getter and #calls>0 and #calls<=32,'Health modification calls unavailable') + local healthName=false + local g=readBytes(getter,0xA0,true) + for i=1,#g-7 do + if g[i]==0x4C and g[i+1]==0x8D and g[i+2]==5 then + local a=getter+i-1;local text=a+7+readInteger(a+3,true) + if exactString(text,6,true)=='Health' then healthName=true;break end + end + end + assert(healthName,'First damage attribute is not verified Health') + cfg.healthCalls=calls +end +cfg.originals={} +local hooks=feature=='consumables' and {{'Medicine',16},{'InventoryOne',14},{'InventoryBatch',14}} or {{'DamageAdd',16}} +for _,h in ipairs(hooks) do + local bytes=readBytes(cfg[h[1]],h[2],true);assert(bytes and #bytes==h[2],'Original instructions unavailable') + local fingerprint=2166136261 + for _,b in ipairs(bytes) do fingerprint=((fingerprint~b)*16777619)&0xFFFFFFFF end + cfg[h[1]..'Hash']=fingerprint;cfg.originals[h[1]]=bytes +end +local definitions={} +local function define(k,v) definitions[#definitions+1]=('define(PBZ_IC_%s,%X)'):format(k,v) end +define('PID',cfg.pid) +define('WorldSlot',cfg.worldSlot) +define('MedicineHash',cfg.MedicineHash) +define('InventoryOneHash',cfg.InventoryOneHash) +define('InventoryBatchHash',cfg.InventoryBatchHash) +define('Medicine',cfg.Medicine) +define('InventoryOne',cfg.InventoryOne) +define('InventoryBatch',cfg.InventoryBatch) +define('BackpackClass',cfg.backpackClass) +define('InfoClass',cfg.infoClass) +define('ItemType',cfg.itemType) +define('Detail',cfg.detail) +define('ItemGAPath',cfg.itemGAPath) +define('ItemValue',cfg.itemValue) +define('NoneValue',cfg.noneValue) +define('CookingValue',cfg.cookingValue) +local native=[====[alloc(PBZ_IC_Code,$3000) +label(PBZ_IC_MedicineCode) +label(PBZ_IC_MedicinePass) +label(PBZ_IC_InventoryOneCode) +label(PBZ_IC_InventoryOneUsable) +label(PBZ_IC_InventoryOnePass) +label(PBZ_IC_InventoryBatchCode) +label(PBZ_IC_InventoryBatchUsable) +label(PBZ_IC_InventoryBatchPass) +label(PBZ_IC_Config) +label(PBZ_IC_BackpackClassValue) +label(PBZ_IC_InfoClassValue) +label(PBZ_IC_OriginalMedicine) +label(PBZ_IC_OriginalInventoryOne) +label(PBZ_IC_OriginalInventoryBatch) +registersymbol(PBZ_IC_Code) +registersymbol(PBZ_IC_Config) +registersymbol(PBZ_IC_Medicine) +registersymbol(PBZ_IC_InventoryOne) +registersymbol(PBZ_IC_InventoryBatch) +registersymbol(PBZ_IC_OriginalMedicine) +registersymbol(PBZ_IC_OriginalInventoryOne) +registersymbol(PBZ_IC_OriginalInventoryBatch) +registersymbol(PBZ_IC_MedicineCode) +registersymbol(PBZ_IC_InventoryOneCode) +registersymbol(PBZ_IC_InventoryBatchCode) +PBZ_IC_Code: +PBZ_IC_MedicineCode: + pushfq + push rax + push r10 + push r11 + test r8d,r8d + jle PBZ_IC_MedicinePass + mov r11,rcx + mov rax,[r11+10] + cmp rax,[PBZ_IC_BackpackClassValue] + jne PBZ_IC_MedicinePass + mov rax,PBZ_IC_WorldSlot + mov rax,[rax] + test rax,rax + je PBZ_IC_MedicinePass + cmp [r11+20],rax + jne PBZ_IC_MedicinePass + xor r8d,r8d +PBZ_IC_MedicinePass: + pop r11 + pop r10 + pop rax + popfq + readmem(PBZ_IC_Medicine,$10) + db FF 25 00 00 00 00 + dq PBZ_IC_Medicine+10 +PBZ_IC_InventoryOneCode: + pushfq + push rax + push r10 + push r11 + test esi,esi + jle PBZ_IC_InventoryOnePass + mov r11,rdi + mov rax,[r11+10] + cmp rax,[PBZ_IC_BackpackClassValue] + jne PBZ_IC_InventoryOnePass + mov rax,PBZ_IC_WorldSlot + mov rax,[rax] + test rax,rax + je PBZ_IC_InventoryOnePass + cmp [r11+20],rax + jne PBZ_IC_InventoryOnePass + mov r10,r8 + test r10,r10 + je PBZ_IC_InventoryOnePass + mov rax,[r10+10] + cmp rax,[PBZ_IC_InfoClassValue] + jne PBZ_IC_InventoryOnePass + cmp byte ptr [r10+PBZ_IC_ItemType],PBZ_IC_ItemValue + jne PBZ_IC_InventoryOnePass + movzx eax,byte ptr [r10+PBZ_IC_Detail] + cmp eax,PBZ_IC_NoneValue + je PBZ_IC_InventoryOneUsable + cmp eax,PBZ_IC_CookingValue + jne PBZ_IC_InventoryOnePass +PBZ_IC_InventoryOneUsable: + cmp qword ptr [r10+PBZ_IC_ItemGAPath],0 + je PBZ_IC_InventoryOnePass + xor esi,esi +PBZ_IC_InventoryOnePass: + pop r11 + pop r10 + pop rax + popfq + readmem(PBZ_IC_InventoryOne,$0E) + db FF 25 00 00 00 00 + dq PBZ_IC_InventoryOne+E +PBZ_IC_InventoryBatchCode: + pushfq + push rax + push r10 + push r11 + test edi,edi + jle PBZ_IC_InventoryBatchPass + mov r11,r13 + mov rax,[r11+10] + cmp rax,[PBZ_IC_BackpackClassValue] + jne PBZ_IC_InventoryBatchPass + mov rax,PBZ_IC_WorldSlot + mov rax,[rax] + test rax,rax + je PBZ_IC_InventoryBatchPass + cmp [r11+20],rax + jne PBZ_IC_InventoryBatchPass + mov r10,rcx + test r10,r10 + je PBZ_IC_InventoryBatchPass + mov rax,[r10+10] + cmp rax,[PBZ_IC_InfoClassValue] + jne PBZ_IC_InventoryBatchPass + cmp byte ptr [r10+PBZ_IC_ItemType],PBZ_IC_ItemValue + jne PBZ_IC_InventoryBatchPass + movzx eax,byte ptr [r10+PBZ_IC_Detail] + cmp eax,PBZ_IC_NoneValue + je PBZ_IC_InventoryBatchUsable + cmp eax,PBZ_IC_CookingValue + jne PBZ_IC_InventoryBatchPass +PBZ_IC_InventoryBatchUsable: + cmp qword ptr [r10+PBZ_IC_ItemGAPath],0 + je PBZ_IC_InventoryBatchPass + xor edi,edi +PBZ_IC_InventoryBatchPass: + pop r11 + pop r10 + pop rax + popfq + readmem(PBZ_IC_InventoryBatch,$0E) + db FF 25 00 00 00 00 + dq PBZ_IC_InventoryBatch+E +align 10 +PBZ_IC_Config: + dq 50425A434F4E3031 + dd PBZ_IC_PID + dd 0 + dd PBZ_IC_MedicineHash + dd PBZ_IC_InventoryOneHash + dd PBZ_IC_InventoryBatchHash +align 8 +PBZ_IC_BackpackClassValue: + dq PBZ_IC_BackpackClass +PBZ_IC_InfoClassValue: + dq PBZ_IC_InfoClass +align 10 +PBZ_IC_OriginalMedicine: + readmem(PBZ_IC_Medicine,$10) +align 10 +PBZ_IC_OriginalInventoryOne: + readmem(PBZ_IC_InventoryOne,$0E) +align 10 +PBZ_IC_OriginalInventoryBatch: + readmem(PBZ_IC_InventoryBatch,$0E) +PBZ_IC_Medicine: + db FF 25 00 00 00 00 + dq PBZ_IC_MedicineCode + db 90 90 +PBZ_IC_InventoryOne: + db FF 25 00 00 00 00 + dq PBZ_IC_InventoryOneCode +PBZ_IC_InventoryBatch: + db FF 25 00 00 00 00 + dq PBZ_IC_InventoryBatchCode +]====] +local checks={} +for name,bytes in pairs(cfg.originals) do local text={} +for _,b in ipairs(bytes) do text[#text+1]=('%02X'):format(b) end +checks[#checks+1]=('assert(PBZ_IC_%s,%s)'):format(name,table.concat(text,' ')) end +local assembly=table.concat(definitions,'\n')..'\n'..table.concat(checks,'\n')..'\n'..native +if syntaxcheck then return assembly end +return assembly +{$asm} +[DISABLE] +{$lua} +if syntaxcheck then return end +local prefix="PBZ_IC" +local code=getAddressSafe(prefix..'_Code');local config=getAddressSafe(prefix..'_Config') +if not code or code==0 or not config or config=code+0x3000 then error('Missing owned restore allocation') end +if readQword(config)~=0x50425a434f4e3031 or readInteger(config+8)~=getOpenedProcessID() then error('Restore process/version mismatch') end +local sections={{name="Medicine",size=16,hashOffset=16,destination="PBZ_IC_MedicineCode",expected={72,137,92,36,24,85,87,65,86,72,129,236,240,2,0,0}},{name="InventoryOne",size=14,hashOffset=20,destination="PBZ_IC_InventoryOneCode",expected={65,139,128,-1,-1,-1,-1,185,0,0,0,0,43,198}},{name="InventoryBatch",size=14,hashOffset=24,destination="PBZ_IC_InventoryBatchCode",expected={139,129,-1,-1,-1,-1,68,139,199,43,199,72,139,211}}} +local restore={} +for _,s in ipairs(sections) do + local hook=getAddressSafe(prefix..'_'..s.name);local original=getAddressSafe(prefix..'_Original'..s.name) + local destination=getAddressSafe(s.destination) + if not hook or not original or original=code+0x3000 or not destination + or destination=code+0x3000 then error('Restore symbols incomplete') end + local b=readBytes(hook,s.size,true) + if not b or #b~=s.size or b[1]~=0xFF or b[2]~=0x25 or b[3]~=0 or b[4]~=0 or b[5]~=0 or b[6]~=0 + or readQword(hook+6)~=destination then error('Hook ownership changed; refusing restoration') end + for i=15,s.size do if b[i]~=0x90 then error('Explicit padding changed') end end + b=readBytes(original,s.size,true) + if not b or #b~=s.size then error('Original bytes unreadable') end + for i=1,s.size do if s.expected[i]>=0 and b[i]~=s.expected[i] then error('Saved instructions mismatch') end end + local fingerprint=2166136261 + for _,byte in ipairs(b) do fingerprint=((fingerprint~byte)*16777619)&0xFFFFFFFF end + if fingerprint~=readInteger(config+s.hashOffset) then error('Original instruction fingerprint mismatch') end + restore[#restore+1]=('%X:\n readmem(%X,$%X)\n'):format(hook,original,s.size) +end +return table.concat(restore,'\n')..[====[ +unregistersymbol(PBZ_IC_Code) +unregistersymbol(PBZ_IC_Config) +unregistersymbol(PBZ_IC_Medicine) +unregistersymbol(PBZ_IC_InventoryOne) +unregistersymbol(PBZ_IC_InventoryBatch) +unregistersymbol(PBZ_IC_OriginalMedicine) +unregistersymbol(PBZ_IC_OriginalInventoryOne) +unregistersymbol(PBZ_IC_OriginalInventoryBatch) +unregistersymbol(PBZ_IC_MedicineCode) +unregistersymbol(PBZ_IC_InventoryOneCode) +unregistersymbol(PBZ_IC_InventoryBatchCode) +dealloc(PBZ_IC_Code) +]====] +{$asm} diff --git a/runtime/resources/scripts/1337142250.aa b/runtime/resources/scripts/1337142250.aa new file mode 100644 index 0000000..23288ce --- /dev/null +++ b/runtime/resources/scripts/1337142250.aa @@ -0,0 +1,502 @@ +[ENABLE] +{$lua} +local feature="damage" +local patterns={DamageAdd="48 89 5C 24 10 F3 0F 11 54 24 18 57 48 83 EC 20 48 8B D9 48 8B FA 48 8B CA",Medicine="48 89 5C 24 18 55 57 41 56 48 81 EC F0 02 00 00 48 8B 05 ?? ?? ?? ?? 48 33 C4 48 89 84 24 E0 02 00 00",InventoryOne="41 8B 80 ?? ?? ?? ?? B9 00 00 00 00 2B C6 48 8B D3 0F 48 C1 48 8D 8F 68 01 00 00 41 89 80 ?? ?? ?? ??",InventoryBatch="8B 81 ?? ?? ?? ?? 44 8B C7 2B C7 48 8B D3 41 0F 48 C4 89 81 ?? ?? ?? ?? 49 8D 8D 68 01 00 00",Modification="48 8B C4 4C 89 40 18 55 53 56 48 8D 68 B1 48 81 EC D0 00 00 00 0F 29 70 B8 49 8B D9 0F 29 78 A8 48 89 78 10 48 8B 3D ?? ?? ?? ?? 4C 89 60 E0 4C 8B E1 4C 89 68 D8 8B CF 4C 89 70 D0",world="48 8B 05 ?? ?? ?? ?? 48 85 C0 75 ?? 80 3D ?? ?? ?? ?? 02 72 ?? 48 8D 15 ?? ?? ?? ?? 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? 33 C0 48 83 C4 20 5B C3",names="89 03 48 8B C3 89 7B 04 48 8B 5C 24 48 48 83 C4 30 5F C3 80 3D ?? ?? ?? ?? 00 74 09 48 8D 05 ?? ?? ?? ?? EB 13 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? C6 05 ?? ?? ?? ?? 01 0F 28 44 24 20"} +local state={pid=getOpenedProcessID(),classCache={},nameCache={}} +local function ptr(p) return type(p)=='number' and p>0x10000 and p<0x7FFFFFFFFFFF end +local function q(p) return ptr(p) and readQword(p) or nil end +local function finite(x) return type(x)=='number' and x==x and math.abs(x)<1e12 end +local function vector(p) + if not ptr(p) then return end + local x,y,z=readDouble(p),readDouble(p+8),readDouble(p+16) + if finite(x) and finite(y) and finite(z) then return {x,y,z} end +end +local function array(p,limit) + local data,num,cap=q(p),readInteger(p+8),readInteger(p+12) + if not num or not cap or num>limit or cap1000000 then return end + if num>0 and not ptr(data) then return end + return data,num +end +local function exactString(p,n,wide) + local bytes=readBytes(p,n*(wide and 2 or 1),true) + if not bytes or #bytes~=n*(wide and 2 or 1) then return '' end + if not wide then return string.char(table.unpack(bytes)) end + local chars={};local i=1 + while i<=#bytes do + local unit=bytes[i]+bytes[i+1]*256;i=i+2 + if unit>=0xD800 and unit<=0xDBFF and i<#bytes then + local low=bytes[i]+bytes[i+1]*256 + if low>=0xDC00 and low<=0xDFFF then unit=0x10000+(unit-0xD800)*1024+low-0xDC00;i=i+2 + else unit=0xFFFD end + elseif unit>=0xD800 and unit<=0xDFFF then unit=0xFFFD end + if unit==0 then break end + chars[#chars+1]=utf8.char(unit) + end + return table.concat(chars) +end +local function fname(p) + local id=readInteger(p) + if not id then return '' end + local text=state.nameCache[id] + if not text then + local block=id>>16 + if block>8191 then return '' end + local b=q(state.namePool+0x10+block*8) + if not ptr(b) then return '' end + local entry=b+(id&0xFFFF)*2 + local h=readSmallInteger(entry) + if not h then return '' end + local n=h>>6 + if n<1 or n>1023 then return '' end + text=exactString(entry+2,n,(h&1)~=0) + if not text then return '' end + state.nameCache[id]=text + end + local number=readInteger(p+4) + if number and number>0 then text=text..'_'..tostring(number-1) end + return text +end +local function fstring(p) + local data,n=array(p,1024) + if not data or n<2 then return '' end + return exactString(data,n-1,true) +end +local function meta(cl) + if not ptr(cl) then return end + local nameId=q(cl+0x18) + local super=q(cl+0x40) + if not nameId or super==nil then return end + local old=state.classCache[cl] + if old and old.nameId==nameId and old.super==super then return old end + local m={nameId=nameId,super=super,name=fname(cl+0x18)} + state.classCache[cl]=m + return m +end +local function properties(cl) + local m=meta(cl);if not m then return {} end + if m.fields then return m.fields end + local fields={};local f=q(cl+0x50);local seen={} + for i=1,512 do + if not ptr(f) or seen[f] then break end + seen[f]=true + local off,size=readInteger(f+0x44),readInteger(f+0x34) + if off and off<0x100000 and size and size<0x100000 then + fields[fname(f+0x20)]={address=f,offset=off,size=size,type=q(f+0x70), + byte=readBytes(f+0x71,1),mask=readBytes(f+0x72,1)} + end + f=q(f+0x10) + end + m.fields=fields;return fields +end +local function field(cl,name,required) + local seen={} + for i=1,32 do + if not ptr(cl) or seen[cl] then break end + seen[cl]=true + local p=properties(cl)[name];if p then return p end + local m=meta(cl);cl=m and m.super + end + if required then error('Missing reflected field: '..name) end +end +local function offset(cl,name) return field(cl,name,true).offset end +local function classOf(a) return q(a+0x10) end +local function nativeFunction(cl,name) + local visited={} + for i=1,32 do + if not ptr(cl) or visited[cl] then break end + visited[cl]=true + local f=q(cl+0x48);local seen={} + for j=1,1024 do + if not ptr(f) or seen[f] then break end + seen[f]=true + if fname(f+0x18)==name then return q(f+0x128) end + f=q(f+0x28) + end + local m=meta(cl);cl=m and m.super + end +end +local function flag(a,f) + if not f or not f.byte or not f.mask then return false end + local b=readBytes(a+f.offset+f.byte,1) + return b and (b&f.mask)~=0 +end +local function uniqueScan(pattern) + local scan=createMemScan();local found=createFoundList(scan) + local ok,result=pcall(function() + local base=getAddress('PBZ.exe') + scan.firstScan(soExactValue,vtByteArray,rtRounded,pattern,'',base,base+getModuleSize('PBZ.exe')-1, + '+X',fsmNotAligned,'1',true,false,false,false) + scan.waitTillDone();found.initialize() + if found.Count~=1 then error('ESP signature expected 1 match; found '..found.Count) end + return getAddress(found.Address[0]) + end) + found.destroy();scan.destroy() + if not ok then error(result) end + return result +end +local worldRef=uniqueScan(patterns.world) +local worldSlot=worldRef+7+readInteger(worldRef+3,true) +local namesRef=uniqueScan(patterns.names)+0x1C +state.namePool=namesRef+7+readInteger(namesRef+3,true) +local world=q(worldSlot);assert(ptr(world),'Load a save first') +local giOffset=offset(classOf(world),'OwningGameInstance') +local gi=q(world+giOffset);assert(ptr(gi),'Local game instance unavailable') +local playersOffset=offset(classOf(gi),'LocalPlayers') +local players,num=array(gi+playersOffset,8);assert(players and num>0,'Local player unavailable') +local lp=q(players);assert(ptr(lp),'Local player unavailable') +local controllerOffset=offset(classOf(lp),'PlayerController') +local pc=q(lp+controllerOffset);assert(ptr(pc),'Local controller unavailable') +local pawnOffset=offset(classOf(pc),'Pawn');local pawn=q(pc+pawnOffset) +assert(ptr(pawn),'Local pawn unavailable') +local function baseClass(cl,name) + local seen={} + for i=1,32 do + if not ptr(cl) or seen[cl] then return end;seen[cl]=true + if fname(cl+0x18)==name then return cl end + cl=q(cl+0x40) + end +end +local pawnClass=baseClass(classOf(pawn),'PBZCharacter');assert(pawnClass,'Unsupported local pawn') +local cfg={pid=state.pid,worldSlot=worldSlot,gi=giOffset,players=playersOffset,controller=controllerOffset, + pawn=pawnOffset,asc=offset(classOf(pawn),'AbilitySystemComponent'),pawnClass=pawnClass} +if feature=='consumables' then + cfg.Medicine=uniqueScan(patterns.Medicine);cfg.InventoryOne=uniqueScan(patterns.InventoryOne) + cfg.InventoryBatch=uniqueScan(patterns.InventoryBatch) + local data=q(world+0x9E0);local count=readInteger(world+0x9E8) + assert(ptr(data) and count and count>0 and count<2048,'Unsupported world subsystem map') + local bp + for i=0,count-1 do + local a=q(data+i*24+8) + local cl=ptr(a) and classOf(a) + if ptr(cl) and fname(cl+0x18)=='PBZBackPackSubsystem' and q(a+0x20)==world then bp=a;break end + end + assert(bp,'Local world backpack unavailable');cfg.backpackClass=classOf(bp) + local inventory=field(cfg.backpackClass,'Inventories',true) + local value=q(inventory.address+0x78) + local infoClass=ptr(value) and q(value+0x70) + assert(ptr(infoClass) and fname(infoClass+0x18)=='PBZInventoryInfo','Inventory map ABI changed') + cfg.infoClass=infoClass + local amount=field(infoClass,'CurrentAmount',true) + assert(amount.size==4 and readInteger(cfg.InventoryOne+3)==amount.offset + and readInteger(cfg.InventoryBatch+2)==amount.offset,'Inventory decrement no longer matches reflected amount') + local itemData=field(infoClass,'ItemDataStruct',true) + local itemType=field(itemData.type,'ItemType',true) + local detail=field(itemData.type,'ItemDetailType',true) + local itemGA=field(itemData.type,'ItemGA',true) + local function enumValue(prop,wanted) + local en=q(prop.address+0x78) + assert(ptr(en),'Missing inventory enum') + local names=q(en+0x40);local values=q(en+0x48);local n=readInteger(en+0x50) + assert(ptr(names) and ptr(values) and n and n>0 and n<256,'Unsupported UE5.7 enum storage') + names=names&(~1);values=values&(~1) + for i=0,n-1 do if fname(names+i*8)==wanted then return q(values+i*8) end end + error('Missing enum value '..wanted) + end + cfg.itemValue=enumValue(itemType,'EItemTypes::Item') + cfg.noneValue=enumValue(detail,'EItemDetailType::None');cfg.cookingValue=enumValue(detail,'EItemDetailType::Cooking') + cfg.itemType=itemData.offset+itemType.offset;cfg.detail=itemData.offset+detail.offset + cfg.itemGAPath=itemData.offset+itemGA.offset+8 +else + cfg.DamageAdd=uniqueScan(patterns.DamageAdd) + local method=uniqueScan(patterns.Modification) + local ac=q(pawn+offset(classOf(pawn),'Attribute Component')) + local calculator=ptr(ac) and q(ac+offset(classOf(ac),'DefaultDamageCalculator')) + assert(ptr(calculator) and q(q(calculator)+0x2B8)==method,'Unsupported local damage calculator') + local b=readBytes(method,0x1100,true);assert(b and #b==0x1100,'Damage method unreadable') + assert(b[4]==0x4C and b[5]==0x89 and b[6]==0x40 and b[11]==0x48 and b[12]==0x8D and b[13]==0x68,'Damage frame layout changed') + local frame=b[14];if frame>=128 then frame=frame-256 end + cfg.targetASC=b[7]-frame + cfg.targetMap=0x30-frame + local moves={0x0F,0x28,0xD6,0x48,0x8B,0xD0,0x48,0x8B,0xCE} + local getter;local calls={} + for i=1,#b-20 do + if b[i]==0xE8 and b[i+14]==0xE8 then + local match=true;for k=1,9 do if b[i+4+k]~=moves[k] then match=false;break end end + if match then + local a=method+i-1 + local target=a+5+readInteger(a+1,true) + local add=a+19+readInteger(a+15,true) + if add==cfg.DamageAdd then + if not getter then getter=target end + if target==getter then calls[#calls+1]=a+19 end + end + end + end + end + assert(getter and #calls>0 and #calls<=32,'Health modification calls unavailable') + local healthName=false + local g=readBytes(getter,0xA0,true) + for i=1,#g-7 do + if g[i]==0x4C and g[i+1]==0x8D and g[i+2]==5 then + local a=getter+i-1;local text=a+7+readInteger(a+3,true) + if exactString(text,6,true)=='Health' then healthName=true;break end + end + end + assert(healthName,'First damage attribute is not verified Health') + cfg.healthCalls=calls +end +cfg.originals={} +local hooks=feature=='consumables' and {{'Medicine',16},{'InventoryOne',14},{'InventoryBatch',14}} or {{'DamageAdd',16}} +for _,h in ipairs(hooks) do + local bytes=readBytes(cfg[h[1]],h[2],true);assert(bytes and #bytes==h[2],'Original instructions unavailable') + local fingerprint=2166136261 + for _,b in ipairs(bytes) do fingerprint=((fingerprint~b)*16777619)&0xFFFFFFFF end + cfg[h[1]..'Hash']=fingerprint;cfg.originals[h[1]]=bytes +end +local definitions={} +local function define(k,v) definitions[#definitions+1]=('define(PBZ_DM_%s,%X)'):format(k,v) end +define('PID',cfg.pid) +define('WorldSlot',cfg.worldSlot) +define('DamageAddHash',cfg.DamageAddHash) +define('DamageAdd',cfg.DamageAdd) +define('GI',cfg.gi) +define('Players',cfg.players) +define('Controller',cfg.controller) +define('Pawn',cfg.pawn) +define('ASC',cfg.asc) +define('PawnClass',cfg.pawnClass) +define('TargetASC',cfg.targetASC) +define('TargetMap',cfg.targetMap) +define('HealthCount',#cfg.healthCalls) +local health={} +for _,a in ipairs(cfg.healthCalls) do health[#health+1]=(' dq %X'):format(a) end +local native=[====[alloc(PBZ_DM_Code,$3000) +label(PBZ_DM_CallLoop) +label(PBZ_DM_Health) +label(PBZ_DM_Enemy) +label(PBZ_DM_SourceClass) +label(PBZ_DM_EnemyFactor) +label(PBZ_DM_Scale) +label(PBZ_DM_Scaled) +label(PBZ_DM_Pass) +label(PBZ_DM_OriginalDamageAdd) +label(PBZ_DM_Config) +label(PBZ_DM_FromPlayer) +label(PBZ_DM_FromEnemy) +label(PBZ_DM_PawnClassValue) +label(PBZ_DM_HealthCalls) +registersymbol(PBZ_DM_Code) +registersymbol(PBZ_DM_Config) +registersymbol(PBZ_DM_DamageAdd) +registersymbol(PBZ_DM_OriginalDamageAdd) +registersymbol(PBZ_DM_FromPlayer) +registersymbol(PBZ_DM_FromEnemy) +PBZ_DM_Code: + pushfq + push rax + push r10 + push r11 + mov r11,[rsp+20] + lea rax,[PBZ_DM_HealthCalls] + mov r10d,PBZ_DM_HealthCount +PBZ_DM_CallLoop: + cmp [rax],r11 + je PBZ_DM_Health + add rax,8 + dec r10d + jne PBZ_DM_CallLoop + jmp PBZ_DM_Pass +PBZ_DM_Health: + cmp rcx,[rbp+PBZ_DM_TargetMap] + jne PBZ_DM_Pass + mov r11,PBZ_DM_WorldSlot + mov rax,[r11] + test rax,rax + je PBZ_DM_Pass + mov rax,[rax+PBZ_DM_GI] + test rax,rax + je PBZ_DM_Pass + cmp dword ptr [rax+PBZ_DM_Players+8],1 + jl PBZ_DM_Pass + mov rax,[rax+PBZ_DM_Players] + test rax,rax + je PBZ_DM_Pass + mov rax,[rax] + test rax,rax + je PBZ_DM_Pass + mov rax,[rax+PBZ_DM_Controller] + test rax,rax + je PBZ_DM_Pass + mov r11,[rax+PBZ_DM_Pawn] + test r11,r11 + je PBZ_DM_Pass + mov rax,[r11+PBZ_DM_ASC] + test rax,rax + je PBZ_DM_Pass + cmp [rax+20],r11 + jne PBZ_DM_Pass + cmp r13,rax + jne PBZ_DM_Enemy + cmp [rbp+PBZ_DM_TargetASC],rax + je PBZ_DM_Pass + lea r11,[PBZ_DM_FromPlayer] + jmp PBZ_DM_Scale +PBZ_DM_Enemy: + cmp [rbp+PBZ_DM_TargetASC],rax + jne PBZ_DM_Pass + test r13,r13 + je PBZ_DM_Pass + mov r10,[r13+20] + test r10,r10 + je PBZ_DM_Pass + mov r10,[r10+10] + mov r11d,20 +PBZ_DM_SourceClass: + test r10,r10 + je PBZ_DM_Pass + cmp r10,[PBZ_DM_PawnClassValue] + je PBZ_DM_EnemyFactor + mov r10,[r10+40] + dec r11d + jne PBZ_DM_SourceClass + jmp PBZ_DM_Pass +PBZ_DM_EnemyFactor: + lea r11,[PBZ_DM_FromEnemy] +PBZ_DM_Scale: + mov eax,[r11] + test eax,80000000 + jne PBZ_DM_Pass + cmp eax,7F800000 + jae PBZ_DM_Pass + cmp eax,3F800000 + je PBZ_DM_Pass + movd r10d,xmm2 + test r10d,80000000 + je PBZ_DM_Pass + and r10d,7FFFFFFF + cmp r10d,7F800000 + jae PBZ_DM_Pass + sub rsp,10 + movdqu [rsp],xmm2 + mulss xmm2,[r11] + movd eax,xmm2 + and eax,7FFFFFFF + cmp eax,7F800000 + jb PBZ_DM_Scaled + movdqu xmm2,[rsp] +PBZ_DM_Scaled: + add rsp,10 +PBZ_DM_Pass: + pop r11 + pop r10 + pop rax + popfq + readmem(PBZ_DM_DamageAdd,$10) + db FF 25 00 00 00 00 + dq PBZ_DM_DamageAdd+10 +align 10 +PBZ_DM_OriginalDamageAdd: + readmem(PBZ_DM_DamageAdd,$10) +align 8 +PBZ_DM_Config: + dq 50425A44414D3031 + dd PBZ_DM_PID + dd 0 + dd PBZ_DM_DamageAddHash +PBZ_DM_FromPlayer: + dd (float)1.0 +PBZ_DM_FromEnemy: + dd (float)1.0 +PBZ_DM_PawnClassValue: + dq PBZ_DM_PawnClass +PBZ_DM_HealthCalls: + PBZ_HEALTH_CALLS_PLACEHOLDER +PBZ_DM_DamageAdd: + db FF 25 00 00 00 00 + dq PBZ_DM_Code + db 90 90 +]====] +native=native:gsub('PBZ_HEALTH_CALLS_PLACEHOLDER',function() return table.concat(health,'\n') end) +local checks={} +for name,bytes in pairs(cfg.originals) do local text={} +for _,b in ipairs(bytes) do text[#text+1]=('%02X'):format(b) end +checks[#checks+1]=('assert(PBZ_DM_%s,%s)'):format(name,table.concat(text,' ')) end +local assembly=table.concat(definitions,'\n')..'\n'..table.concat(checks,'\n')..'\n'..native +if syntaxcheck then return assembly end +local MARKER='PBZ_DAMAGE_MULTIPLIER_V1' +local prior=rawget(_G,'PBZ_DamageMultiplier') +if prior then + if prior.pid==getOpenedProcessID() then + local owner=prior.owner and getAddressList().getMemoryRecordByID(prior.owner) + if (getAddressSafe('PBZ_DM_Code') or 0)~=0 or (owner and owner.Active) then error('Disable the existing Damage Multiplier entry first') end + end + prior.cleanup() +end +local ui={pid=getOpenedProcessID(),createdAt=getTickCount(),records={},status='Waiting for allocation'} +local parent +local list=getAddressList() +for i=0,list.Count-1 do local r=list.getMemoryRecord(i) + if (r.Script or ''):find(MARKER,1,true) then assert(not parent,'Multiple Damage Multiplier entries');parent=r end +end +assert(parent,'Damage Multiplier table entry not found') +ui.owner=parent.ID +function ui.cleanup() + if ui.timer then ui.timer.Enabled=false;ui.timer.destroy();ui.timer=nil end + for _,record in ipairs(ui.records) do + local r=list.getMemoryRecordByID(record.id) + if r and (not r.Parent or r.Parent.ID==ui.owner) and r.Address==record.address then r.destroy() end + end + ui.records={} + if rawget(_G,'PBZ_DamageMultiplier')==ui then _G.PBZ_DamageMultiplier=nil end +end +ui.timer=createTimer(nil,false);ui.timer.Interval=100 +ui.timer.OnTimer=function() + local ok,why=pcall(function() + if getOpenedProcessID()~=ui.pid then ui.cleanup();return end + local code=getAddressSafe('PBZ_DM_Code');local hook=getAddressSafe('PBZ_DM_DamageAdd') + if not code or code==0 or not hook or hook==0 then + if ui.ready or getTickCount()-ui.createdAt>5000 then ui.cleanup() end + return + end + if readBytes(hook,1)~=0xFF or readQword(hook+6)~=code then + if ui.ready then ui.cleanup() end;return + end + if not ui.ready then + for _,spec in ipairs({{'From Player','PBZ_DM_FromPlayer'},{'From Enemy','PBZ_DM_FromEnemy'}}) do + local r=list.createMemoryRecord();r.Description=spec[1];r.VariableType=vtSingle;r.Address=spec[2] + ui.records[#ui.records+1]={id=r.ID,address=spec[2]};r.appendToEntry(parent) + end + parent.Collapsed=false;ui.ready=true;ui.status='Ready' + end + end) + if not ok then ui.lastError=tostring(why);ui.status='UI error';ui.cleanup() end +end +_G.PBZ_DamageMultiplier=ui;ui.timer.Enabled=true +return assembly +{$asm} +[DISABLE] +{$lua} +if syntaxcheck then return end +local prefix="PBZ_DM" +local code=getAddressSafe(prefix..'_Code');local config=getAddressSafe(prefix..'_Config') +if not code or code==0 or not config or config=code+0x3000 then error('Missing owned restore allocation') end +if readQword(config)~=0x50425a44414d3031 or readInteger(config+8)~=getOpenedProcessID() then error('Restore process/version mismatch') end +local sections={{name="DamageAdd",size=16,hashOffset=16,destination="PBZ_DM_Code",expected={72,137,92,36,16,243,15,17,84,36,24,87,72,131,236,32}}} +local restore={} +for _,s in ipairs(sections) do + local hook=getAddressSafe(prefix..'_'..s.name);local original=getAddressSafe(prefix..'_Original'..s.name) + local destination=getAddressSafe(s.destination) + if not hook or not original or original=code+0x3000 or not destination + or destination=code+0x3000 then error('Restore symbols incomplete') end + local b=readBytes(hook,s.size,true) + if not b or #b~=s.size or b[1]~=0xFF or b[2]~=0x25 or b[3]~=0 or b[4]~=0 or b[5]~=0 or b[6]~=0 + or readQword(hook+6)~=destination then error('Hook ownership changed; refusing restoration') end + for i=15,s.size do if b[i]~=0x90 then error('Explicit padding changed') end end + b=readBytes(original,s.size,true) + if not b or #b~=s.size then error('Original bytes unreadable') end + for i=1,s.size do if s.expected[i]>=0 and b[i]~=s.expected[i] then error('Saved instructions mismatch') end end + local fingerprint=2166136261 + for _,byte in ipairs(b) do fingerprint=((fingerprint~byte)*16777619)&0xFFFFFFFF end + if fingerprint~=readInteger(config+s.hashOffset) then error('Original instruction fingerprint mismatch') end + restore[#restore+1]=('%X:\n readmem(%X,$%X)\n'):format(hook,original,s.size) +end +return table.concat(restore,'\n')..[====[ +unregistersymbol(PBZ_DM_Code) +unregistersymbol(PBZ_DM_Config) +unregistersymbol(PBZ_DM_DamageAdd) +unregistersymbol(PBZ_DM_OriginalDamageAdd) +unregistersymbol(PBZ_DM_FromPlayer) +unregistersymbol(PBZ_DM_FromEnemy) +dealloc(PBZ_DM_Code) +]====] +{$asm} diff --git a/runtime/resources/scripts/1337142253.aa b/runtime/resources/scripts/1337142253.aa new file mode 100644 index 0000000..ad0cd1c --- /dev/null +++ b/runtime/resources/scripts/1337142253.aa @@ -0,0 +1,671 @@ +[ENABLE] +{$lua} +if syntaxcheck then return end +local queryPatterns={Row="4C 8D 9C 24 30 02 00 00 49 8B 5B 10 49 8B 73 28 49 8B E3 5F C3",Dust="48 8B 5C 24 38 48 8B 74 24 40 48 8B 7C 24 48 41 89 06 48 83 C4 20 41 5E C3",Cycle="4C 03 C8 4C 89 4A 20 8B 81 38 02 00 00 41 89 00 C3 CC 48 89 5C 24 08 48 89 6C 24 18",Enough="48 8B 5C 24 40 88 06 48 83 C4 20 5F 5E 5D C3 CC CC CC CC CC CC CC CC"} +local querySizes={Row=16,Dust=15,Cycle=16,Enough=14} +local signatures={world="48 8B 05 ?? ?? ?? ?? 48 85 C0 75 ?? 80 3D ?? ?? ?? ?? 02 72 ?? 48 8D 15 ?? ?? ?? ?? 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? 33 C0 48 83 C4 20 5B C3",names="89 03 48 8B C3 89 7B 04 48 8B 5C 24 48 48 83 C4 30 5F C3 80 3D ?? ?? ?? ?? 00 74 09 48 8D 05 ?? ?? ?? ?? EB 13 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? C6 05 ?? ?? ?? ?? 01 0F 28 44 24 20",objects="44 8B 49 04 45 85 C9 74 ?? 8B 01 85 C0 78 ?? 3B 05 ?? ?? ?? ?? 7D ?? 8B C8 0F B7 C0 48 C1 E9 10 48 8D 14 40 48 8B 05 ?? ?? ?? ?? 48 8B 0C C8 4C 8D 04 D1"} +local state={pid=getOpenedProcessID(),classCache={},nameCache={}} +local function ptr(p) return type(p)=='number' and p>0x10000 and p<0x7FFFFFFFFFFF end +local function q(p) return ptr(p) and readQword(p) or nil end +local function finite(x) return type(x)=='number' and x==x and math.abs(x)<1e12 end +local function vector(p) + if not ptr(p) then return end + local x,y,z=readDouble(p),readDouble(p+8),readDouble(p+16) + if finite(x) and finite(y) and finite(z) then return {x,y,z} end +end +local function array(p,limit) + local data,num,cap=q(p),readInteger(p+8),readInteger(p+12) + if not num or not cap or num>limit or cap1000000 then return end + if num>0 and not ptr(data) then return end + return data,num +end +local function exactString(p,n,wide) + local bytes=readBytes(p,n*(wide and 2 or 1),true) + if not bytes or #bytes~=n*(wide and 2 or 1) then return '' end + if not wide then return string.char(table.unpack(bytes)) end + local chars={};local i=1 + while i<=#bytes do + local unit=bytes[i]+bytes[i+1]*256;i=i+2 + if unit>=0xD800 and unit<=0xDBFF and i<#bytes then + local low=bytes[i]+bytes[i+1]*256 + if low>=0xDC00 and low<=0xDFFF then unit=0x10000+(unit-0xD800)*1024+low-0xDC00;i=i+2 + else unit=0xFFFD end + elseif unit>=0xD800 and unit<=0xDFFF then unit=0xFFFD end + if unit==0 then break end + chars[#chars+1]=utf8.char(unit) + end + return table.concat(chars) +end +local function fname(p) + local id=readInteger(p) + if not id then return '' end + local text=state.nameCache[id] + if not text then + local block=id>>16 + if block>8191 then return '' end + local b=q(state.namePool+0x10+block*8) + if not ptr(b) then return '' end + local entry=b+(id&0xFFFF)*2 + local h=readSmallInteger(entry) + if not h then return '' end + local n=h>>6 + if n<1 or n>1023 then return '' end + text=exactString(entry+2,n,(h&1)~=0) + if not text then return '' end + state.nameCache[id]=text + end + local number=readInteger(p+4) + if number and number>0 then text=text..'_'..tostring(number-1) end + return text +end +local function fstring(p) + local data,n=array(p,1024) + if not data or n<2 then return '' end + return exactString(data,n-1,true) +end +local function meta(cl) + if not ptr(cl) then return end + local nameId=q(cl+0x18) + local super=q(cl+0x40) + if not nameId or super==nil then return end + local old=state.classCache[cl] + if old and old.nameId==nameId and old.super==super then return old end + local m={nameId=nameId,super=super,name=fname(cl+0x18)} + state.classCache[cl]=m + return m +end +local function properties(cl) + local m=meta(cl);if not m then return {} end + if m.fields then return m.fields end + local fields={};local f=q(cl+0x50);local seen={} + for i=1,512 do + if not ptr(f) or seen[f] then break end + seen[f]=true + local off,size=readInteger(f+0x44),readInteger(f+0x34) + if off and off<0x100000 and size and size<0x100000 then + fields[fname(f+0x20)]={offset=off,size=size,type=q(f+0x70), + byte=readBytes(f+0x71,1),mask=readBytes(f+0x72,1)} + end + f=q(f+0x10) + end + m.fields=fields;return fields +end +local function field(cl,name,required) + local seen={} + for i=1,32 do + if not ptr(cl) or seen[cl] then break end + seen[cl]=true + local p=properties(cl)[name];if p then return p end + local m=meta(cl);cl=m and m.super + end + if required then error('Missing reflected field: '..name) end +end +local function offset(cl,name) return field(cl,name,true).offset end +local function classOf(a) return q(a+0x10) end +local function nativeFunction(cl,name) + local visited={} + for i=1,32 do + if not ptr(cl) or visited[cl] then break end + visited[cl]=true + local f=q(cl+0x48);local seen={} + for j=1,1024 do + if not ptr(f) or seen[f] then break end + seen[f]=true + if fname(f+0x18)==name then return q(f+0x128) end + f=q(f+0x28) + end + local m=meta(cl);cl=m and m.super + end +end +local function flag(a,f) + if not f or not f.byte or not f.mask then return false end + local b=readBytes(a+f.offset+f.byte,1) + return b and (b&f.mask)~=0 +end +local function uniqueScan(pattern) + local scan=createMemScan();local found=createFoundList(scan) + local ok,result=pcall(function() + local base=getAddress('PBZ.exe') + scan.firstScan(soExactValue,vtByteArray,rtRounded,pattern,'',base,base+getModuleSize('PBZ.exe')-1, + '+X',fsmNotAligned,'1',true,false,false,false) + scan.waitTillDone();found.initialize() + if found.Count~=1 then error('ESP signature expected 1 match; found '..found.Count) end + return getAddress(found.Address[0]) + end) + found.destroy();scan.destroy() + if not ok then error(result) end + return result +end +local wr=uniqueScan(signatures.world) +state.worldSlot=wr+7+readInteger(wr+3,true) +local nr=uniqueScan(signatures.names)+0x1C +state.namePool=nr+7+readInteger(nr+3,true) +local function fail(s) error('Free Traits: '..s) end +local function bytes(p,n) + local b=readBytes(p,n,true);if not b or #b~=n then fail('unreadable memory') end;return b +end +local function matches(p,pattern) + local b=readBytes(p,#pattern,true);if not b or #b~=#pattern then return false end + for i,x in ipairs(pattern) do if x~=-1 and b[i]~=x then return false end end;return true +end +local function displacement(p,n,pattern,index) + local hits={} + for i=0,n-#pattern do if matches(p+i,pattern) then hits[#hits+1]=p+i end end + if #hits~=1 then fail('unsupported native field reference') end + local v=readInteger(hits[1]+index,true) + if not v or v<0 or v>0x10000 or v%8~=0 then fail('unsupported native field offset') end + return v +end +local function context() + if getOpenedProcessID()~=state.pid then return end + local world=q(state.worldSlot);if not ptr(world) then return end + local gi=q(world+offset(classOf(world),'OwningGameInstance')) + if not ptr(gi) then return end + local players,n=array(gi+offset(classOf(gi),'LocalPlayers'),8) + if not players or not n or n<1 then return end + local lp=q(players);if not ptr(lp) then return end + local pc=q(lp+offset(classOf(lp),'PlayerController'));if not ptr(pc) then return end + local pawn=q(pc+offset(classOf(pc),'Pawn'));if not ptr(pawn) then return end + local f=field(classOf(pawn),'PBZAbilityNodes') + if not f or f.size~=8 then return end + local component=q(pawn+f.offset) + if not ptr(component) or q(component+0x20)~=pawn or fname(classOf(component)+0x18)~='PBZAbilityNodesComponent' then return end + local gate=field(classOf(component),'bForceUnLockRongShuZhiXin',true) + if gate.size~=1 or not gate.byte or not gate.mask or gate.mask==0 then fail('invalid branch-unlock flag') end + local destroy=field(classOf(pawn),'bActorIsBeingDestroyed',true) + if flag(pawn,destroy) then return end + return {world=world,gi=gi,pawn=pawn,component=component,class=classOf(component), + name=q(component+0x18),index=readInteger(component+0xC),gate=component+gate.offset+gate.byte,mask=gate.mask} +end +local initial=context();if not initial then fail('load the local player before enabling') end +local ref=uniqueScan(signatures.objects) +local chunks=q(ref+0x2B+readInteger(ref+0x27,true)) +local count=readInteger(ref+0x15+readInteger(ref+0x11,true)) +if not ptr(chunks) or not count or count<1 or count>2000000 then fail('unsupported object array') end +local queryClasses={};local widgetClass;local last=-1;local chunk +for i=0,count-1 do + local c=i>>16;if c~=last then chunk=q(chunks+c*8);last=c end + if ptr(chunk) then + local slot=chunk+(i&0xFFFF)*24;local flags=readInteger(slot+4) + if flags and (flags&0x10200000)==0 then + local ob=q(slot+8) + if ptr(ob) then local n=fname(ob+0x18) + if (n=='PBZAbilityNodesManager' or n=='AbilityNodeHelpObj' or n=='PBZGameSystem' or n=='PBZBackPackSubsystem') + and fname(classOf(ob)+0x18)=='Class' then queryClasses[n]=ob end + if n=='AbilityNodeStruct' and fname(classOf(ob)+0x18)=='ScriptStruct' then queryClasses[n]=ob end + end + if ptr(ob) and readInteger(ob+0xC)==i and fname(ob+0x18)=='W_AbilityWidget_C' + and fname(classOf(ob)+0x18)=='WidgetBlueprintGeneratedClass' then + if widgetClass then fail('ambiguous Traits widget class') end;widgetClass=ob + end + end + end +end +if not widgetClass then fail('open the Traits menu once before enabling') end +local userWidget=widgetClass +for i=1,32 do + if not ptr(userWidget) then fail('Traits widget ancestry changed') end + if fname(userWidget+0x18)=='UserWidget' then break end + userWidget=q(userWidget+0x40) +end +if fname(userWidget+0x18)~='UserWidget' then fail('UserWidget class missing') end +local tick=q(widgetClass+0x48) +for i=1,512 do + if not ptr(tick) then fail('open the Traits menu before enabling') end + if fname(tick+0x18)=='Tick__puerts_mixin__' then break end + tick=q(tick+0x28) +end +if fname(tick+0x18)~='Tick__puerts_mixin__' or fname(classOf(tick)+0x18)~='JSGeneratedFunction' then fail('unsupported Traits binding') end +local exec=q(tick+0x128) +local dynOffset=displacement(exec,0x110,{0x48,0x8B,0xB3,-1,-1,-1,-1,0x48,0x89,0x74,0x24,0x30},3) +local dyn=q(tick+dynOffset) +local control=q(tick+dynOffset+8) +if not ptr(dyn) or not ptr(control) or not readInteger(control+8) or readInteger(control+8)<1 then fail('expired script environment') end +local dynVtable=q(dyn);local hook=q(dynVtable+0x18) +if not matches(hook,{0x48,0x8B,0x49,-1,0x48,0x85,0xC9,0x0F,0x85,-1,-1,-1,-1,0xC3}) then fail('mixin dispatch entry changed') end +local parentOffset=readBytes(hook+3,1) +local env=q(dyn+parentOffset) +local invoke=hook+13+readInteger(hook+9,true) +local mapOffset=displacement(invoke,0x200,{0x48,0x8B,0x96,-1,-1,-1,-1,0x48,0x98,0x48,0x8D,0x0C,0x40},3) +local map=env+mapOffset +local data,slots=array(map,8192) +if not data or not slots then fail('script function map unavailable') end +local bits=q(map+0x20);local bitCount=readInteger(map+0x28) +if not ptr(bits) then bits=map+0x10;if not bitCount or bitCount>128 then fail('script map allocation flags changed') end end +if not bitCount or bitCount>32)&0x3FF) + if not n or n<32 or n>256 then fail('Traits prototype property count changed') end + local methods={};local foundTick=false + for i=0,n-1 do + local v=q(properties+0x10+i*8) + if instanceType(v)==2065 then + local f=untag(v);local s=untag(q(f+0x18)) + if s and q(s+0x20)==script and q(f+0x20)==ctx then + methods[#methods+1]=v;if v==fn+1 then foundTick=true end + end + end + end + if #methods<32 or #methods>256 or not foundTick then fail('Traits prototype validation failed') end + return methods +end +local methods=menuMethods() +local rowStruct=assert(queryClasses.AbilityNodeStruct,'AbilityNodeStruct reflection missing') +for _,def in ipairs({{'NodeType',0x10,1},{'ConsumeDust',0x130,4},{'NeedMaterials',0xE0,0x50}}) do + local p=field(rowStruct,def[1],true) + if p.offset~=def[2] or p.size~=def[3] then fail('AbilityNodeStruct layout changed: '..def[1]) end +end +local nativeAddresses={} +local queries={Row={'PBZAbilityNodesManager','GetAbilityTableNodeData',0xB1}, + Dust={'AbilityNodeHelpObj','GetConsumeDust',0x80},Cycle={'PBZGameSystem','GetCycleCount',0xE}, + Enough={'PBZBackPackSubsystem','HasEnoughItem',0x109}} +for name,def in pairs(queries) do + local cl=assert(queryClasses[def[1]],'Native Traits query class unavailable: '..def[1]) + local entry=assert(nativeFunction(cl,def[2]),'Native Traits UFunction unavailable: '..def[2]) + local at=entry+def[3];local expected={} + for v in queryPatterns[name]:gmatch('%x%x') do expected[#expected+1]=tonumber(v,16) end + if not matches(at,expected) then fail('Native query instructions changed: '..def[2]) end + nativeAddresses[name]=at +end +local codeSymbol='PBZ_NT_Code' +local owner={pid=state.pid,context=context,handles={handle},menuMethods=menuMethods,methods=methods,addresses=nativeAddresses} +owner.symbolNames={'Code','Enabled','Methods','MethodCount','Low','High','PID','RowHits','DustHits','CycleHits','EnoughHits'} +for name in pairs(nativeAddresses) do owner.symbolNames[#owner.symbolNames+1]='Entry'..name;owner.symbolNames[#owner.symbolNames+1]='Backup'..name end +local old=rawget(_G,'PBZ_NativeTraits') +if old and old.pid==owner.pid then fail('Native Traits manager already exists') end +if old then + if old.timer then old.timer.destroy() end + for _,name in ipairs(owner.symbolNames) do unregisterSymbol('PBZ_NT_'..name) end + _G.PBZ_NativeTraits=nil +end +if getAddressSafe(codeSymbol) then fail('Native Traits has unowned restore symbols') end +local template=[==[ +label(PBZ_NT_ClearMaterial) +alloc(PBZ_NT_Code,$6000) +label(PBZ_NT_Enabled) +label(PBZ_NT_Methods) +label(PBZ_NT_MethodCount) +label(PBZ_NT_Low) +label(PBZ_NT_High) +label(PBZ_NT_PID) +label(PBZ_NT_Filter) +label(PBZ_NT_FilterReturn) +label(PBZ_NT_FilterYes) +label(PBZ_NT_Scan) +label(PBZ_NT_Next) +label(PBZ_NT_Match) +label(PBZ_NT_EntryRow) +label(PBZ_NT_BackupRow) +label(PBZ_NT_OriginalRow) +label(PBZ_NT_EntryDust) +label(PBZ_NT_BackupDust) +label(PBZ_NT_OriginalDust) +label(PBZ_NT_EntryCycle) +label(PBZ_NT_BackupCycle) +label(PBZ_NT_OriginalCycle) +label(PBZ_NT_EntryEnough) +label(PBZ_NT_BackupEnough) +label(PBZ_NT_OriginalEnough) +label(PBZ_NT_RowHits) +label(PBZ_NT_DustHits) +label(PBZ_NT_CycleHits) +label(PBZ_NT_EnoughHits) +registersymbol(PBZ_NT_Code) +registersymbol(PBZ_NT_Enabled) +registersymbol(PBZ_NT_Methods) +registersymbol(PBZ_NT_MethodCount) +registersymbol(PBZ_NT_Low) +registersymbol(PBZ_NT_High) +registersymbol(PBZ_NT_PID) +registersymbol(PBZ_NT_RowHits) +registersymbol(PBZ_NT_DustHits) +registersymbol(PBZ_NT_CycleHits) +registersymbol(PBZ_NT_EnoughHits) +registersymbol(PBZ_NT_EntryRow) +registersymbol(PBZ_NT_BackupRow) +registersymbol(PBZ_NT_EntryDust) +registersymbol(PBZ_NT_BackupDust) +registersymbol(PBZ_NT_EntryCycle) +registersymbol(PBZ_NT_BackupCycle) +registersymbol(PBZ_NT_EntryEnough) +registersymbol(PBZ_NT_BackupEnough) +assert(PBZ_NT_Row,4C) +assert(PBZ_NT_Dust,48) +assert(PBZ_NT_Cycle,4C) +assert(PBZ_NT_Enough,48) +PBZ_NT_Code: +PBZ_NT_EntryRow: + pushfq + push rax + push rcx + push rdx + push r8 + push r9 + push r10 + push r11 + lea rcx,[rsp+40] + call PBZ_NT_Filter + test eax,eax + je PBZ_NT_OriginalRow + lock inc dword ptr [PBZ_NT_RowHits] + mov byte ptr [rsi+10],FF + mov dword ptr [rsi+130],0 + mov ecx,[rsi+E8] + cmp ecx,80 + ja PBZ_NT_OriginalRow + mov rax,[rsi+E0] + test rax,rax + je PBZ_NT_OriginalRow + test ecx,ecx + je PBZ_NT_OriginalRow +PBZ_NT_ClearMaterial: + mov dword ptr [rax+8],0 + add rax,14 + dec ecx + jne PBZ_NT_ClearMaterial +PBZ_NT_OriginalRow: + pop r11 + pop r10 + pop r9 + pop r8 + pop rdx + pop rcx + pop rax + popfq + readmem(PBZ_NT_Row,$10) + db FF 25 00 00 00 00 + dq PBZ_NT_Row+10 +PBZ_NT_EntryDust: + pushfq + push rax + push rcx + push rdx + push r8 + push r9 + push r10 + push r11 + lea rcx,[rsp+40] + call PBZ_NT_Filter + test eax,eax + je PBZ_NT_OriginalDust + lock inc dword ptr [PBZ_NT_DustHits] + mov qword ptr [rsp+30],0 +PBZ_NT_OriginalDust: + pop r11 + pop r10 + pop r9 + pop r8 + pop rdx + pop rcx + pop rax + popfq + readmem(PBZ_NT_Dust,$F) + db FF 25 00 00 00 00 + dq PBZ_NT_Dust+F +PBZ_NT_EntryCycle: + pushfq + push rax + push rcx + push rdx + push r8 + push r9 + push r10 + push r11 + lea rcx,[rsp+40] + call PBZ_NT_Filter + test eax,eax + je PBZ_NT_OriginalCycle + lock inc dword ptr [PBZ_NT_CycleHits] + pop r11 + pop r10 + pop r9 + pop r8 + pop rdx + pop rcx + pop rax + popfq + readmem(PBZ_NT_Cycle,7) + mov dword ptr [r8],7FFFFFFF + mov eax,7FFFFFFF + db FF 25 00 00 00 00 + dq PBZ_NT_Cycle+10 +PBZ_NT_OriginalCycle: + pop r11 + pop r10 + pop r9 + pop r8 + pop rdx + pop rcx + pop rax + popfq + readmem(PBZ_NT_Cycle,$10) + db FF 25 00 00 00 00 + dq PBZ_NT_Cycle+10 +PBZ_NT_EntryEnough: + pushfq + push rax + push rcx + push rdx + push r8 + push r9 + push r10 + push r11 + lea rcx,[rsp+40] + call PBZ_NT_Filter + test eax,eax + je PBZ_NT_OriginalEnough + lock inc dword ptr [PBZ_NT_EnoughHits] + mov byte ptr [rsp+30],1 +PBZ_NT_OriginalEnough: + pop r11 + pop r10 + pop r9 + pop r8 + pop rdx + pop rcx + pop rax + popfq + readmem(PBZ_NT_Enough,$E) + db FF 25 00 00 00 00 + dq PBZ_NT_Enough+E +PBZ_NT_Filter: + xor eax,eax + cmp dword ptr [PBZ_NT_Enabled],1 + jne PBZ_NT_FilterReturn + mov r9,gs:[08] + lea r8,[rcx+2000] + cmp r8,r9 + cmova r8,r9 + sub r8,20 + add rcx,8 +PBZ_NT_Scan: + cmp rcx,r8 + jae PBZ_NT_FilterReturn + mov r10,[rcx] + cmp r10,[PBZ_NT_Low] + jb PBZ_NT_Next + cmp r10,[PBZ_NT_High] + ja PBZ_NT_Next + cmp qword ptr [rcx-8],40 + ja PBZ_NT_Next + mov r11,[rcx+10] + lea rdx,[rcx+20] + cmp r11,rdx + jb PBZ_NT_Next + cmp r11,r9 + jae PBZ_NT_Next + test r11,7 + jne PBZ_NT_Next + mov rdx,PBZ_NT_Methods + mov r11d,[PBZ_NT_MethodCount] +PBZ_NT_Match: + test r11d,r11d + je PBZ_NT_Next + cmp r10,[rdx] + je PBZ_NT_FilterYes + add rdx,8 + dec r11d + jmp PBZ_NT_Match +PBZ_NT_Next: + add rcx,8 + jmp PBZ_NT_Scan +PBZ_NT_FilterYes: + mov eax,1 +PBZ_NT_FilterReturn: + ret +PBZ_NT_Code+2000: +PBZ_NT_Enabled: + dd 0 +PBZ_NT_PID: + dd PROCESS_ID +PBZ_NT_MethodCount: + dd METHOD_COUNT + align 8 +PBZ_NT_Low: + dq METHOD_LOW +PBZ_NT_High: + dq METHOD_HIGH +PBZ_NT_RowHits: + dd 0 +PBZ_NT_BackupRow: + readmem(PBZ_NT_Row,$10) +PBZ_NT_DustHits: + dd 0 +PBZ_NT_BackupDust: + readmem(PBZ_NT_Dust,$F) +PBZ_NT_CycleHits: + dd 0 +PBZ_NT_BackupCycle: + readmem(PBZ_NT_Cycle,$10) +PBZ_NT_EnoughHits: + dd 0 +PBZ_NT_BackupEnough: + readmem(PBZ_NT_Enough,$E) + align 8 +PBZ_NT_Methods: +METHOD_DATA +PBZ_NT_Row: + db FF 25 00 00 00 00 + dq PBZ_NT_EntryRow + nop 2 +PBZ_NT_Dust: + db FF 25 00 00 00 00 + dq PBZ_NT_EntryDust + nop 1 +PBZ_NT_Cycle: + db FF 25 00 00 00 00 + dq PBZ_NT_EntryCycle + nop 2 +PBZ_NT_Enough: + db FF 25 00 00 00 00 + dq PBZ_NT_EntryEnough +]==] +template=template:gsub('METHOD_DATA',function() + local s={};for _,v in ipairs(methods) do s[#s+1]=('dq %X'):format(v) end + for i=#methods+1,256 do s[#s+1]='dq 0' end;return table.concat(s,'\n') +end) +local low,high=methods[1],methods[1] +for _,v in ipairs(methods) do low=math.min(low,v);high=math.max(high,v) end +template=template:gsub('METHOD_COUNT',('%X'):format(#methods)):gsub('METHOD_LOW',('%X'):format(low)):gsub('METHOD_HIGH',('%X'):format(high)) +template=template:gsub('PROCESS_ID',('%X'):format(owner.pid)) +for name,a in pairs(nativeAddresses) do template=('define(PBZ_NT_%s,%X)\n'):format(name,a)..template end +owner.originals={} +for name,a in pairs(nativeAddresses) do owner.originals[name]=bytes(a,querySizes[name]) end +owner.restoreGate=function() + local c=owner.gate + if c and getOpenedProcessID()==owner.pid and q(c.component+0x18)==c.name and readInteger(c.component+0xC)==c.index then + local b=readBytes(c.gate,1);if b then + local target=(b&(~c.mask&0xFF))|(c.original&c.mask) + if target~=b then assert(writeBytes(c.gate,target),'Native Traits: branch flag restore failed') end + end + end + owner.gate=nil +end +owner.refresh=function() + if owner.pid~=getOpenedProcessID() then return end + local enabled=getAddressSafe('PBZ_NT_Enabled');local target=getAddressSafe('PBZ_NT_Methods') + if not enabled or not target then return end + local current=menuMethods();local changed=not owner.cachedMethods or #current~=#owner.cachedMethods + if not changed then for i,v in ipairs(current) do if v~=owner.cachedMethods[i] then changed=true;break end end end + if changed then + assert(writeInteger(enabled,0),'Native Traits: scope pause failed') + local lo,hi=current[1],current[1] + for i,v in ipairs(current) do assert(writeQword(target+(i-1)*8,v));lo=math.min(lo,v);hi=math.max(hi,v) end + assert(writeQword(getAddress('PBZ_NT_Low'),lo));assert(writeQword(getAddress('PBZ_NT_High'),hi)) + assert(writeInteger(getAddress('PBZ_NT_MethodCount'),#current));owner.cachedMethods=current + end + local c=context() + if owner.gate and (not c or c.component~=owner.gate.component) then owner.restoreGate() end + if c then + if not owner.gate then c.original=assert(readBytes(c.gate,1));owner.gate=c end + local b=assert(readBytes(c.gate,1));assert(writeBytes(c.gate,b|c.mask)) + end + assert(writeInteger(enabled,1)) + owner.lastError=nil +end +owner.stop=function() + if owner.pid~=getOpenedProcessID() then + if owner.timer then owner.timer.destroy();owner.timer=nil end + local out={};for _,name in ipairs(owner.symbolNames) do out[#out+1]='unregistersymbol(PBZ_NT_'..name..')' end + _G.PBZ_NativeTraits=nil;return table.concat(out,'\n') + end + local code=getAddressSafe('PBZ_NT_Code');assert(code,'Native Traits: code allocation missing') + local text={} + for name,a in pairs(owner.addresses) do + local p=readBytes(a,6,true);local expected=assert(getAddressSafe('PBZ_NT_Entry'..name)) + assert(p and table.concat(p,',')=='255,37,0,0,0,0' and q(a+6)==expected,'Native Traits: hook ownership changed for '..name) + local backup=assert(getAddressSafe('PBZ_NT_Backup'..name));local b=readBytes(backup,querySizes[name],true) + assert(b and table.concat(b,',')==table.concat(owner.originals[name],','),'Native Traits: invalid backup for '..name) + text[#text+1]=('%X:\n readmem(%X,$%X)'):format(a,backup,querySizes[name]) + end + assert(writeInteger(getAddress('PBZ_NT_Enabled'),0));owner.restoreGate() + if owner.timer then owner.timer.destroy();owner.timer=nil end + for _,name in ipairs(owner.symbolNames) do + text[#text+1]='unregistersymbol(PBZ_NT_'..name..')' + end + _G.PBZ_NativeTraits=nil;return table.concat(text,'\n') +end +local timer=createTimer(nil,false);owner.timer=timer;timer.Interval=1000 +timer.OnTimer=function() + if owner.pid~=getOpenedProcessID() then timer.Enabled=false;return end + local ok,e=pcall(owner.refresh) + if not ok then owner.lastError=tostring(e);local enabled=getAddressSafe('PBZ_NT_Enabled');if enabled then writeInteger(enabled,0) end end +end +_G.PBZ_NativeTraits=owner;timer.Enabled=true +return template +{$asm} +[DISABLE] +{$lua} +if syntaxcheck then return end +local s=rawget(_G,"PBZ_NativeTraits");assert(s,"Native Traits restore manager missing");return s.stop() +{$asm} diff --git a/runtime/resources/scripts/1337142254.aa b/runtime/resources/scripts/1337142254.aa new file mode 100644 index 0000000..af8c79e --- /dev/null +++ b/runtime/resources/scripts/1337142254.aa @@ -0,0 +1,644 @@ +[ENABLE] +{$lua} +if syntaxcheck then return end +local signatures={world="48 8B 05 ?? ?? ?? ?? 48 85 C0 75 ?? 80 3D ?? ?? ?? ?? 02 72 ?? 48 8D 15 ?? ?? ?? ?? 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? 33 C0 48 83 C4 20 5B C3",names="89 03 48 8B C3 89 7B 04 48 8B 5C 24 48 48 83 C4 30 5F C3 80 3D ?? ?? ?? ?? 00 74 09 48 8D 05 ?? ?? ?? ?? EB 13 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? C6 05 ?? ?? ?? ?? 01 0F 28 44 24 20",objects="44 8B 49 04 45 85 C9 74 ?? 8B 01 85 C0 78 ?? 3B 05 ?? ?? ?? ?? 7D ?? 8B C8 0F B7 C0 48 C1 E9 10 48 8D 14 40 48 8B 05 ?? ?? ?? ?? 48 8B 0C C8 4C 8D 04 D1"} +local state={pid=getOpenedProcessID(),classCache={},nameCache={}} +local function ptr(p) return type(p)=='number' and p>0x10000 and p<0x7FFFFFFFFFFF end +local function q(p) return ptr(p) and readQword(p) or nil end +local function finite(x) return type(x)=='number' and x==x and math.abs(x)<1e12 end +local function vector(p) + if not ptr(p) then return end + local x,y,z=readDouble(p),readDouble(p+8),readDouble(p+16) + if finite(x) and finite(y) and finite(z) then return {x,y,z} end +end +local function array(p,limit) + local data,num,cap=q(p),readInteger(p+8),readInteger(p+12) + if not num or not cap or num>limit or cap1000000 then return end + if num>0 and not ptr(data) then return end + return data,num +end +local function exactString(p,n,wide) + local bytes=readBytes(p,n*(wide and 2 or 1),true) + if not bytes or #bytes~=n*(wide and 2 or 1) then return '' end + if not wide then return string.char(table.unpack(bytes)) end + local chars={};local i=1 + while i<=#bytes do + local unit=bytes[i]+bytes[i+1]*256;i=i+2 + if unit>=0xD800 and unit<=0xDBFF and i<#bytes then + local low=bytes[i]+bytes[i+1]*256 + if low>=0xDC00 and low<=0xDFFF then unit=0x10000+(unit-0xD800)*1024+low-0xDC00;i=i+2 + else unit=0xFFFD end + elseif unit>=0xD800 and unit<=0xDFFF then unit=0xFFFD end + if unit==0 then break end + chars[#chars+1]=utf8.char(unit) + end + return table.concat(chars) +end +local function fname(p) + local id=readInteger(p) + if not id then return '' end + local text=state.nameCache[id] + if not text then + local block=id>>16 + if block>8191 then return '' end + local b=q(state.namePool+0x10+block*8) + if not ptr(b) then return '' end + local entry=b+(id&0xFFFF)*2 + local h=readSmallInteger(entry) + if not h then return '' end + local n=h>>6 + if n<1 or n>1023 then return '' end + text=exactString(entry+2,n,(h&1)~=0) + if not text then return '' end + state.nameCache[id]=text + end + local number=readInteger(p+4) + if number and number>0 then text=text..'_'..tostring(number-1) end + return text +end +local function fstring(p) + local data,n=array(p,1024) + if not data or n<2 then return '' end + return exactString(data,n-1,true) +end +local function meta(cl) + if not ptr(cl) then return end + local nameId=q(cl+0x18) + local super=q(cl+0x40) + if not nameId or super==nil then return end + local old=state.classCache[cl] + if old and old.nameId==nameId and old.super==super then return old end + local m={nameId=nameId,super=super,name=fname(cl+0x18)} + state.classCache[cl]=m + return m +end +local function properties(cl) + local m=meta(cl);if not m then return {} end + if m.fields then return m.fields end + local fields={};local f=q(cl+0x50);local seen={} + for i=1,512 do + if not ptr(f) or seen[f] then break end + seen[f]=true + local off,size=readInteger(f+0x44),readInteger(f+0x34) + if off and off<0x100000 and size and size<0x100000 then + fields[fname(f+0x20)]={offset=off,size=size,type=q(f+0x70), + byte=readBytes(f+0x71,1),mask=readBytes(f+0x72,1)} + end + f=q(f+0x10) + end + m.fields=fields;return fields +end +local function field(cl,name,required) + local seen={} + for i=1,32 do + if not ptr(cl) or seen[cl] then break end + seen[cl]=true + local p=properties(cl)[name];if p then return p end + local m=meta(cl);cl=m and m.super + end + if required then error('Missing reflected field: '..name) end +end +local function offset(cl,name) return field(cl,name,true).offset end +local function classOf(a) return q(a+0x10) end +local function nativeFunction(cl,name) + local visited={} + for i=1,32 do + if not ptr(cl) or visited[cl] then break end + visited[cl]=true + local f=q(cl+0x48);local seen={} + for j=1,1024 do + if not ptr(f) or seen[f] then break end + seen[f]=true + if fname(f+0x18)==name then return q(f+0x128) end + f=q(f+0x28) + end + local m=meta(cl);cl=m and m.super + end +end +local function flag(a,f) + if not f or not f.byte or not f.mask then return false end + local b=readBytes(a+f.offset+f.byte,1) + return b and (b&f.mask)~=0 +end +local function uniqueScan(pattern) + local scan=createMemScan();local found=createFoundList(scan) + local ok,result=pcall(function() + local base=getAddress('PBZ.exe') + scan.firstScan(soExactValue,vtByteArray,rtRounded,pattern,'',base,base+getModuleSize('PBZ.exe')-1, + '+X',fsmNotAligned,'1',true,false,false,false) + scan.waitTillDone();found.initialize() + if found.Count~=1 then error('ESP signature expected 1 match; found '..found.Count) end + return getAddress(found.Address[0]) + end) + found.destroy();scan.destroy() + if not ok then error(result) end + return result +end +local wr=uniqueScan(signatures.world) +state.worldSlot=wr+7+readInteger(wr+3,true) +local nr=uniqueScan(signatures.names)+0x1C +state.namePool=nr+7+readInteger(nr+3,true) +local function identity(a) + if not ptr(a) then return end + local cl=q(a+0x10);local n=q(a+0x18);local index=readInteger(a+0xC) + if not ptr(cl) or not n or not index then return end + return {address=a,class=cl,name=n,index=index} +end +local function valid(id) + return id and state.pid==getOpenedProcessID() and q(id.address+0x10)==id.class + and q(id.address+0x18)==id.name and readInteger(id.address+0xC)==id.index +end +local function context() + if state.pid~=getOpenedProcessID() then return end + local world=q(state.worldSlot);if not ptr(world) then return end + local gi=q(world+offset(classOf(world),'OwningGameInstance'));if not ptr(gi) then return end + local list,n=array(gi+offset(classOf(gi),'LocalPlayers'),8);if not list or not n or n<1 then return end + local lp=q(list);if not ptr(lp) then return end + local pc=q(lp+offset(classOf(lp),'PlayerController'));if not ptr(pc) then return end + local pawn=q(pc+offset(classOf(pc),'Pawn'));if not ptr(pawn) then return end + local dying=field(classOf(pawn),'bActorIsBeingDestroyed') + if dying and flag(pawn,dying) then return end + return {world=world,gi=gi,lp=lp,pc=pc,pawn=pawn,pawnID=identity(pawn)} +end +local initial=assert(context(),'Load the local player before enabling this entry') +local function functions(cl,name) + for d=1,32 do + if not ptr(cl) then break end + local fn=q(cl+0x48) + for i=1,2048 do + if not ptr(fn) then break end + if fname(fn+0x18)==name then return fn end + fn=q(fn+0x28) + end + cl=q(cl+0x40) + end +end +local function objectInventory(wanted) + local ref=uniqueScan(signatures.objects) + state.objectChunksSlot=ref+0x2B+readInteger(ref+0x27,true) + state.objectCountSlot=ref+0x15+readInteger(ref+0x11,true) + local chunks=q(state.objectChunksSlot) + local count=readInteger(state.objectCountSlot) + assert(ptr(chunks) and count and count>0 and count<2000000,'Unsupported object array') + local out={};local last=-1;local chunk + for i=0,count-1 do + local ci=i>>16;if ci~=last then chunk=q(chunks+ci*8);last=ci end + if ptr(chunk) then local slot=chunk+(i&0xFFFF)*24;local flags=readInteger(slot+4) + if flags and flags&0x10200000==0 then + local a=q(slot+8) + if ptr(a) and readInteger(a+0xC)==i then + local n=fname(a+0x18);local kind=wanted[n] + if kind and fname(classOf(a)+0x18)==kind then + assert(not out[n],'Ambiguous loaded object: '..n);out[n]=a + end + end + end + end + end + for n in pairs(wanted) do assert(out[n],'Required game object is not loaded: '..n) end + return out +end +local function setBit(a,f,value) + assert(f and f.size==1 and f.byte==0 and f.mask and f.mask>0,'Unsupported boolean property') + local b=assert(readBytes(a+f.offset,1),'Boolean field unreadable') + local nextValue=value and (b|f.mask) or (b&(~f.mask&0xFF)) + if nextValue~=b then assert(writeBytes(a+f.offset,nextValue),'Boolean field write failed') end +end +local dispatchPatterns={normal="48 8B 0F 4C 8D 44 24 38 48 8B D0 4C 8B 89 60020000 48 8B CF 41 FF D1 48 8B B4 24 E8000000 48 8B AC 24 08010000 48 8B 9C 24 00010000 4C 8B A4 24 E0000000 44 0F28 84 24 A0000000 48 81 C4 F0000000 5F C3",normalOffset=24,paused="48 8B 07 41 0F28 C8 48 8B CF 44 0F28 84 24 A0000000 48 81 C4 F0000000 5F 48 FF A0 18050000"} +local function findName(name) + local target=name:lower();local current=readInteger(state.namePool+8);local cursor=readInteger(state.namePool+0xC) + assert(current and current<8192 and cursor and cursor<=0x20000,'Unsupported FName allocator') + for block=current,0,-1 do + local data=q(state.namePool+0x10+block*8);local size=block==current and cursor or 0x20000 + if ptr(data) and size>0 then + local bytes=readBytes(data,size,true) + if bytes and #bytes==size then + local parts={};for lo=1,size,4096 do parts[#parts+1]=string.char(table.unpack(bytes,lo,math.min(lo+4095,size))) end + local text=table.concat(parts):lower();local from=1 + while true do + local at=text:find(target,from,true);if not at then break end + if at>=3 and (at-3)%2==0 then + local header=bytes[at-2]+bytes[at-1]*256 + if header&1==0 and header>>6==#name then return (block<<16)|((at-3)>>1) end + end + from=at+1 + end + end + end + end + error('Required registered gameplay tag name is unavailable: '..name) +end +local function staticTarget(cl,name,expected) + local fn=assert(functions(cl,name),'Native function unavailable: '..name) + assert((readInteger(fn+0x100)&0x400)~=0,'Expected native UFunction: '..name) + for n,spec in pairs(expected) do + local f=field(fn,n,true);assert(f.offset==spec[1] and f.size==spec[2],'Function parameter layout changed: '..name..'.'..n) + end + local cdo=q(cl+0x160);assert(ptr(cdo) and classOf(cdo)==cl,'Class default object unavailable') + local pe=q(q(cdo)+0x260);local bytes=pe and readBytes(pe,12,true) + assert(bytes and table.concat(bytes,',')=='64,85,86,87,65,84,65,85,65,86,65,87','UObject.ProcessEvent ABI changed') + return {receiver=identity(cdo),fn=identity(fn),native=q(fn+0x128),processEvent=pe} +end +local function acquireDispatch(key) + local d=rawget(_G,'PBZ_UtilityDispatch') + local exports={'Code','NormalEntry','PausedEntry','Mailbox','NormalBackup','PausedBackup'} + if d and d.pid~=state.pid then + if d.timer then d.timer.destroy() end + for _,n in ipairs(exports) do unregisterSymbol('PBZ_UT_'..n) end + _G.PBZ_UtilityDispatch=nil;d=nil + end + if d then + assert(not d.closing,'Utility dispatcher is finishing cleanup; retry enabling shortly') + assert(not d.users[key],'This utility is already enabled') + assert(d.validateHooks,'Unsupported Utility dispatcher version');d.validateHooks() + d.users[key]=true;return d,'' + end + assert(not getAddressSafe('PBZ_UT_Code'),'Unowned Utility dispatch symbols; no target bytes changed') + local normal=uniqueScan(dispatchPatterns.normal)+dispatchPatterns.normalOffset;local paused=uniqueScan(dispatchPatterns.paused) + local originalNormal=assert(readBytes(normal,16,true));local originalPaused=assert(readBytes(paused,19,true)) + local source=[==[ +alloc(PBZ_UT_Code,$5000) +label(PBZ_UT_NormalEntry) +label(PBZ_UT_PausedEntry) +label(PBZ_UT_Worker) +label(PBZ_UT_Mailbox) +label(PBZ_UT_NormalBackup) +label(PBZ_UT_PausedBackup) +label(PBZ_UT_ValidateObject) +label(PBZ_UT_ObjectInvalid) +label(PBZ_UT_Reject) +label(PBZ_UT_Return) +label(PBZ_UT_CheckExtra) +registersymbol(PBZ_UT_Code) +registersymbol(PBZ_UT_NormalEntry) +registersymbol(PBZ_UT_PausedEntry) +registersymbol(PBZ_UT_Mailbox) +registersymbol(PBZ_UT_NormalBackup) +registersymbol(PBZ_UT_PausedBackup) +PBZ_UT_Code: +PBZ_UT_NormalEntry: + call PBZ_UT_Worker + readmem(PBZ_UT_Normal,$10) + db FF 25 00 00 00 00 + dq PBZ_UT_Normal+10 +PBZ_UT_PausedEntry: + call PBZ_UT_Worker + readmem(PBZ_UT_Paused,$13) + db FF 25 00 00 00 00 + dq PBZ_UT_Paused+13 +PBZ_UT_Worker: + pushfq + push rax + push rcx + push rdx + push r8 + push r9 + push r10 + push r11 + push rbx + push rsi + push rdi + sub rsp,C0 + movdqu [rsp+30],xmm0 + movdqu [rsp+40],xmm1 + movdqu [rsp+50],xmm2 + movdqu [rsp+60],xmm3 + movdqu [rsp+70],xmm4 + movdqu [rsp+80],xmm5 + mov rbx,PBZ_UT_Mailbox + cmp dword ptr [rbx],1 + jne PBZ_UT_Return + cmp rdi,[rbx+18] + jne PBZ_UT_Return + mov rax,WORLD_SLOT + mov rax,[rax] + cmp rax,[rbx+10] + jne PBZ_UT_Reject + test rax,rax + je PBZ_UT_Reject + mov rax,[rax+GI_OFFSET] + test rax,rax + je PBZ_UT_Reject + cmp dword ptr [rax+PLAYERS_OFFSET+8],1 + jl PBZ_UT_Reject + mov rax,[rax+PLAYERS_OFFSET] + test rax,rax + je PBZ_UT_Reject + mov rax,[rax] + test rax,rax + je PBZ_UT_Reject + cmp rdi,[rax+CONTROLLER_OFFSET] + jne PBZ_UT_Reject + mov rax,[rbx+20] + mov ecx,[rbx+38] + call PBZ_UT_ValidateObject + test al,al + je PBZ_UT_Reject + mov rax,[rbx+20] + mov rcx,[rbx+28] + cmp [rax+10],rcx + jne PBZ_UT_Reject + mov rcx,[rbx+30] + cmp [rax+18],rcx + jne PBZ_UT_Reject + mov ecx,[rbx+38] + cmp [rax+0C],ecx + jne PBZ_UT_Reject + mov rdx,[rbx+40] + mov rax,rdx + mov ecx,[rbx+58] + call PBZ_UT_ValidateObject + test al,al + je PBZ_UT_Reject + mov rdx,[rbx+40] + mov rcx,[rbx+48] + cmp [rdx+10],rcx + jne PBZ_UT_Reject + mov rcx,[rbx+50] + cmp [rdx+18],rcx + jne PBZ_UT_Reject + mov ecx,[rbx+58] + cmp [rdx+0C],ecx + jne PBZ_UT_Reject + test dword ptr [rdx+100],400 + je PBZ_UT_Reject +PBZ_UT_CheckExtra: + mov rax,[rbx+60] + mov ecx,[rbx+78] + call PBZ_UT_ValidateObject + test al,al + je PBZ_UT_Reject + mov rax,[rbx+60] + mov rcx,[rbx+68] + cmp [rax+10],rcx + jne PBZ_UT_Reject + mov rcx,[rbx+70] + cmp [rax+18],rcx + jne PBZ_UT_Reject + mov ecx,[rbx+78] + cmp [rax+0C],ecx + jne PBZ_UT_Reject + cmp dword ptr [rbx+7C],1 + jne @f + cmp rax,[rdi+PAWN_OFFSET] + jne PBZ_UT_Reject +@@: + mov dword ptr [rbx],2 + mov rcx,[rbx+20] + mov rdx,[rbx+40] + lea r8,[rbx+80] + mov rax,[rcx] + call qword ptr [rax+260] + mov dword ptr [rbx],3 + jmp PBZ_UT_Return +PBZ_UT_Reject: + mov dword ptr [rbx],4 +PBZ_UT_Return: + movdqu xmm0,[rsp+30] + movdqu xmm1,[rsp+40] + movdqu xmm2,[rsp+50] + movdqu xmm3,[rsp+60] + movdqu xmm4,[rsp+70] + movdqu xmm5,[rsp+80] + add rsp,C0 + pop rdi + pop rsi + pop rbx + pop r11 + pop r10 + pop r9 + pop r8 + pop rdx + pop rcx + pop rax + popfq + ret +PBZ_UT_ValidateObject: + test rax,rax + je PBZ_UT_ObjectInvalid + test ecx,ecx + js PBZ_UT_ObjectInvalid + mov r10,OBJECT_COUNT_SLOT + cmp ecx,[r10] + jae PBZ_UT_ObjectInvalid + mov r10,OBJECT_CHUNKS_SLOT + mov r10,[r10] + test r10,r10 + je PBZ_UT_ObjectInvalid + mov r11d,ecx + shr r11d,10 + mov r10,[r10+r11*8] + test r10,r10 + je PBZ_UT_ObjectInvalid + and ecx,FFFF + imul ecx,ecx,18 + add r10,rcx + test dword ptr [r10+4],10200000 + jne PBZ_UT_ObjectInvalid + cmp [r10+8],rax + jne PBZ_UT_ObjectInvalid + mov al,1 + ret +PBZ_UT_ObjectInvalid: + xor eax,eax + ret +PBZ_UT_Code+2000: +PBZ_UT_NormalBackup: + readmem(PBZ_UT_Normal,$10) +PBZ_UT_PausedBackup: + readmem(PBZ_UT_Paused,$13) +PBZ_UT_Code+2100: +PBZ_UT_Mailbox: + dd 0 + dd 0 + dq PROCESS_ID +PBZ_UT_Normal: + db FF 25 00 00 00 00 + dq PBZ_UT_NormalEntry + db 90 90 +PBZ_UT_Paused: + db FF 25 00 00 00 00 + dq PBZ_UT_PausedEntry + db 90 90 90 90 90 +]==] + local function hex(bytes) local out={};for _,b in ipairs(bytes) do out[#out+1]=('%02X'):format(b) end;return table.concat(out,' ') end + source='assert(PBZ_UT_Normal,'..hex(originalNormal)..')\nassert(PBZ_UT_Paused,'..hex(originalPaused)..')\n'..source + local values={PBZ_UT_Normal=normal,PBZ_UT_Paused=paused,WORLD_SLOT=state.worldSlot, + GI_OFFSET=offset(classOf(initial.world),'OwningGameInstance'),PLAYERS_OFFSET=offset(classOf(initial.gi),'LocalPlayers'), + CONTROLLER_OFFSET=offset(classOf(initial.lp),'PlayerController'),PAWN_OFFSET=offset(classOf(initial.pc),'Pawn'), + OBJECT_COUNT_SLOT=state.objectCountSlot,OBJECT_CHUNKS_SLOT=state.objectChunksSlot,PROCESS_ID=state.pid} + for n,v in pairs(values) do assert(type(v)=='number','Missing dispatch value '..n);source=('define(%s,%X)\n'):format(n,v)..source end + d={pid=state.pid,users={[key]=true},queue={},normal=normal,paused=paused,normalBytes=originalNormal,pausedBytes=originalPaused} + d.identity=identity;d.valid=valid + local function compare(a,b) + local x=readBytes(a,#b,true);return x and table.concat(x,',')==table.concat(b,',') + end + local function mail() + local p=getAddressSafe('PBZ_UT_Mailbox');if not p then return end + if readQword(p+8)~=d.pid then error('Utility mailbox PID mismatch') end;return p + end + local function writeID(p,id) + assert(writeQword(p,id.address));assert(writeQword(p+8,id.class));assert(writeQword(p+16,id.name));assert(writeInteger(p+24,id.index)) + end + d.validateHooks=function() + assert(mail(),'Utility dispatcher has not finished installing') + for _,c in ipairs({{d.normal,16,'Normal',d.normalBytes},{d.paused,19,'Paused',d.pausedBytes}}) do + local entry=assert(getAddressSafe('PBZ_UT_'..c[3]..'Entry'));local backup=assert(getAddressSafe('PBZ_UT_'..c[3]..'Backup')) + local head=readBytes(c[1],6,true) + assert(head and table.concat(head,',')=='255,37,0,0,0,0' and q(c[1]+6)==entry,'Utility hook ownership changed') + assert(compare(backup,c[4]),'Utility backup changed') + end + return true + end + d.enqueue=function(request) + assert(not d.closing and d.users[request.owner],'Utility dispatcher is not available to this entry') + d.queue[#d.queue+1]=request + end + d.pending=function(owner) + if d.current and d.current.owner==owner then return true end + for _,r in ipairs(d.queue) do if r.owner==owner then return true end end + return false + end + d.pump=function() + if d.pid~=getOpenedProcessID() then d.timer.Enabled=false;return end + if d.closing then + if compare(d.normal,d.normalBytes) and compare(d.paused,d.pausedBytes) then + d.timer.destroy();d.timer=nil;if rawget(_G,'PBZ_UtilityDispatch')==d then _G.PBZ_UtilityDispatch=nil end + end + return + end + local m=mail();if not m then return end + local status=readInteger(m) + if d.current then + if status==2 then return end + if status==1 then + local r=d.current;local stale=false + if r.validate and getTickCount()-(r.sentAt or 0)>=250 then local ok,valid=pcall(r.validate);stale=(not ok)or valid==false end + if not stale then return end + d.current=nil;assert(writeInteger(m,0));r.done=true;r.success=false;r.error='Request target changed before the game thread ran it' + if r.callback then r.callback(r) end + else + local r=d.current;d.current=nil + local result + if status==3 then result=r.resultKind=='bool' and readBytes(m+0x80+r.resultOffset,1) or readQword(m+0x80+r.resultOffset) end + assert(writeInteger(m,0));r.done=true;r.success=status==3;r.result=result + if r.callback then r.callback(r) end + end + elseif status~=0 then assert(writeInteger(m,0)) end + if #d.queue==0 then return end + local r=table.remove(d.queue,1) + if q(state.worldSlot)~=r.world or not valid(r.pcID) or not valid(r.receiver) or not valid(r.fn) or not valid(r.extra) then + r.done=true;r.success=false;r.error='World or object identity changed';if r.callback then r.callback(r) end;return + end + assert(writeQword(m+0x10,r.world));assert(writeQword(m+0x18,r.pcID.address)) + writeID(m+0x20,r.receiver);writeID(m+0x40,r.fn);writeID(m+0x60,r.extra) + assert(writeInteger(m+0x7C,r.currentPawnOnly and 1 or 0)) + local zeros={};for i=1,512 do zeros[i]=0 end;assert(writeBytes(m+0x80,table.unpack(zeros))) + for _,w in ipairs(r.writes) do + assert(w[1]>=0 and w[1]<0x200,'Parameter write outside mailbox') + if w[3]=='byte' then assert(writeBytes(m+0x80+w[1],w[2])) else assert(writeQword(m+0x80+w[1],w[2])) end + end + d.current=r;r.sentAt=getTickCount();assert(writeInteger(m,1)) + end + d.drain=function(owner) + local start=getTickCount();local attempts=0 + while d.pending(owner) and getTickCount()-start<2000 and attempts<200 do + attempts=attempts+1;d.pump();if d.pending(owner) then sleep(10) end + end + if d.pending(owner) then + local m=mail();local status=m and readInteger(m)or -1 + error(('游戏线程仍有未完成的请求(邮箱状态 %s,已等待 2000 毫秒)。请回到游戏画面、不要停在暂停或加载界面,再重试关闭'):format(tostring(status)),0) + end + end + d.release=function(owner) + if d.pid~=getOpenedProcessID() then + if d.timer then d.timer.destroy();d.timer=nil end + if rawget(_G,'PBZ_UtilityDispatch')~=d then return '' end + _G.PBZ_UtilityDispatch=nil;local out={};for _,n in ipairs(exports) do out[#out+1]='unregistersymbol(PBZ_UT_'..n..')' end + return table.concat(out,'\n') + end + assert(not d.pending(owner),'Finish utility cleanup before disabling') + local any=false;for k in pairs(d.users) do if k~=owner then any=true end end + if any then d.users[owner]=nil;return '' end + assert(#d.queue==0 and not d.current,'Another utility request is still running') + local checks={{d.normal,16,'Normal'},{d.paused,19,'Paused'}};local out={} + for _,c in ipairs(checks) do + local entry=assert(getAddressSafe('PBZ_UT_'..c[3]..'Entry'));local backup=assert(getAddressSafe('PBZ_UT_'..c[3]..'Backup')) + local head=readBytes(c[1],6,true) + assert(head and table.concat(head,',')=='255,37,0,0,0,0' and q(c[1]+6)==entry,'Utility hook ownership changed') + local saved=c[3]=='Normal' and d.normalBytes or d.pausedBytes + assert(compare(backup,saved),'Utility original instruction buffer changed') + if c[2]>14 then local padding=readBytes(c[1]+14,c[2]-14,true);assert(padding and #padding==c[2]-14,'Utility padding unreadable');for _,v in ipairs(padding) do assert(v==0x90,'Utility padding changed') end end + out[#out+1]=('%X:\n readmem(%X,$%X)'):format(c[1],backup,c[2]) + end + for _,n in ipairs(exports) do out[#out+1]='unregistersymbol(PBZ_UT_'..n..')' end + d.users[owner]=nil;d.closing=true + return table.concat(out,'\n') + end + d.timer=createTimer(nil,false);d.timer.Interval=20 + d.timer.OnTimer=function() local ok,e=pcall(d.pump);if not ok then d.lastError=tostring(e) end end + _G.PBZ_UtilityDispatch=d;d.timer.Enabled=true + return d,source +end +local old=rawget(_G,'PBZ_StealthMode') +if old and old.pid==state.pid then error('Stealth Mode is already enabled') end +if old and old.timer then old.timer.destroy() end +local objects=objectInventory({PBZAbilityBlueprintLibrary='Class'}) +local expected={Actor={0,8},GameplayTag={8,8},bShouldReplicate={0x10,1},ReturnValue={0x11,1}} +local add=staticTarget(objects.PBZAbilityBlueprintLibrary,'AddLooseGameplayTag',expected) +local remove=staticTarget(objects.PBZAbilityBlueprintLibrary,'RemoveLooseGameplayTag',expected) +local tag=findName('AI.Hatred.CanNotBeHatred') +local dispatcher,assembly=acquireDispatch('stealth') +local s={pid=state.pid,dispatcher=dispatcher} +local function request(l,adding) + local target=adding and add or remove + local r={owner='stealth',world=l.world,pcID=l.pcID,receiver=target.receiver,fn=target.fn,extra=l.pawnID, + currentPawnOnly=adding,resultKind='bool',resultOffset=0x11, + writes={{0,l.pawnID.address},{8,tag},{0x10,0,'byte'}}} + l.pending=r + r.callback=function(done) + l.pending=nil + if done.success and done.result==1 then l.owned=adding;s.lastError=nil + else s.lastError=done.error or 'Stealth tag request was rejected by the game';l.failedAt=getTickCount() end + end + dispatcher.enqueue(r) +end +local function discardInvalid(l) + return not valid(l.pawnID) or not valid(l.pcID) or q(state.worldSlot)~=l.world +end +s.tick=function() + if s.pid~=getOpenedProcessID() then s.timer.Enabled=false;return end + if s.stopping then return end + local c=context();local l=s.lease + if l and l.pending then return end + if l and (not c or c.pawn~=l.pawnID.address or c.world~=l.world or not valid(l.pawnID)) then + if l.owned and not discardInvalid(l) then request(l,false);return end + s.lease=nil;l=nil + end + if not c then return end + if not l then l={world=c.world,pawnID=c.pawnID,pcID=identity(c.pc),owned=false};s.lease=l end + if not l.owned and (not l.failedAt or getTickCount()-l.failedAt>1000) then request(l,true) end +end +s.stop=function() + s.stopping=true;if s.timer then s.timer.Enabled=false end + if s.pid==getOpenedProcessID() then + dispatcher.drain('stealth') + local l=s.lease + if l and l.owned and not discardInvalid(l) then request(l,false);dispatcher.drain('stealth');assert(not l.owned,'Stealth removal failed; resume the game and retry disabling') end + end + local restore=dispatcher.release('stealth') + if s.timer then s.timer.destroy();s.timer=nil end + if rawget(_G,'PBZ_StealthMode')==s then _G.PBZ_StealthMode=nil end;return restore +end +s.timer=createTimer(nil,false);s.timer.Interval=200 +s.timer.OnTimer=function() local ok,e=pcall(s.tick);if not ok then s.lastError=tostring(e) end end +_G.PBZ_StealthMode=s;s.timer.Enabled=true +return assembly +{$asm} +[DISABLE] +{$lua} +if syntaxcheck then return end +local s=rawget(_G,'PBZ_StealthMode') +if s then return s.stop() end +local d=rawget(_G,'PBZ_UtilityDispatch');if d then return d.release('stealth') end +{$asm} diff --git a/runtime/resources/scripts/1337142255.aa b/runtime/resources/scripts/1337142255.aa new file mode 100644 index 0000000..e90b731 --- /dev/null +++ b/runtime/resources/scripts/1337142255.aa @@ -0,0 +1,313 @@ +[ENABLE] +{$lua} +if syntaxcheck then return end +local signatures={world="48 8B 05 ?? ?? ?? ?? 48 85 C0 75 ?? 80 3D ?? ?? ?? ?? 02 72 ?? 48 8D 15 ?? ?? ?? ?? 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? 33 C0 48 83 C4 20 5B C3",names="89 03 48 8B C3 89 7B 04 48 8B 5C 24 48 48 83 C4 30 5F C3 80 3D ?? ?? ?? ?? 00 74 09 48 8D 05 ?? ?? ?? ?? EB 13 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? C6 05 ?? ?? ?? ?? 01 0F 28 44 24 20",objects="44 8B 49 04 45 85 C9 74 ?? 8B 01 85 C0 78 ?? 3B 05 ?? ?? ?? ?? 7D ?? 8B C8 0F B7 C0 48 C1 E9 10 48 8D 14 40 48 8B 05 ?? ?? ?? ?? 48 8B 0C C8 4C 8D 04 D1"} +local state={pid=getOpenedProcessID(),classCache={},nameCache={}} +local function ptr(p) return type(p)=='number' and p>0x10000 and p<0x7FFFFFFFFFFF end +local function q(p) return ptr(p) and readQword(p) or nil end +local function finite(x) return type(x)=='number' and x==x and math.abs(x)<1e12 end +local function vector(p) + if not ptr(p) then return end + local x,y,z=readDouble(p),readDouble(p+8),readDouble(p+16) + if finite(x) and finite(y) and finite(z) then return {x,y,z} end +end +local function array(p,limit) + local data,num,cap=q(p),readInteger(p+8),readInteger(p+12) + if not num or not cap or num>limit or cap1000000 then return end + if num>0 and not ptr(data) then return end + return data,num +end +local function exactString(p,n,wide) + local bytes=readBytes(p,n*(wide and 2 or 1),true) + if not bytes or #bytes~=n*(wide and 2 or 1) then return '' end + if not wide then return string.char(table.unpack(bytes)) end + local chars={};local i=1 + while i<=#bytes do + local unit=bytes[i]+bytes[i+1]*256;i=i+2 + if unit>=0xD800 and unit<=0xDBFF and i<#bytes then + local low=bytes[i]+bytes[i+1]*256 + if low>=0xDC00 and low<=0xDFFF then unit=0x10000+(unit-0xD800)*1024+low-0xDC00;i=i+2 + else unit=0xFFFD end + elseif unit>=0xD800 and unit<=0xDFFF then unit=0xFFFD end + if unit==0 then break end + chars[#chars+1]=utf8.char(unit) + end + return table.concat(chars) +end +local function fname(p) + local id=readInteger(p) + if not id then return '' end + local text=state.nameCache[id] + if not text then + local block=id>>16 + if block>8191 then return '' end + local b=q(state.namePool+0x10+block*8) + if not ptr(b) then return '' end + local entry=b+(id&0xFFFF)*2 + local h=readSmallInteger(entry) + if not h then return '' end + local n=h>>6 + if n<1 or n>1023 then return '' end + text=exactString(entry+2,n,(h&1)~=0) + if not text then return '' end + state.nameCache[id]=text + end + local number=readInteger(p+4) + if number and number>0 then text=text..'_'..tostring(number-1) end + return text +end +local function fstring(p) + local data,n=array(p,1024) + if not data or n<2 then return '' end + return exactString(data,n-1,true) +end +local function meta(cl) + if not ptr(cl) then return end + local nameId=q(cl+0x18) + local super=q(cl+0x40) + if not nameId or super==nil then return end + local old=state.classCache[cl] + if old and old.nameId==nameId and old.super==super then return old end + local m={nameId=nameId,super=super,name=fname(cl+0x18)} + state.classCache[cl]=m + return m +end +local function properties(cl) + local m=meta(cl);if not m then return {} end + if m.fields then return m.fields end + local fields={};local f=q(cl+0x50);local seen={} + for i=1,512 do + if not ptr(f) or seen[f] then break end + seen[f]=true + local off,size=readInteger(f+0x44),readInteger(f+0x34) + if off and off<0x100000 and size and size<0x100000 then + fields[fname(f+0x20)]={offset=off,size=size,type=q(f+0x70), + byte=readBytes(f+0x71,1),mask=readBytes(f+0x72,1)} + end + f=q(f+0x10) + end + m.fields=fields;return fields +end +local function field(cl,name,required) + local seen={} + for i=1,32 do + if not ptr(cl) or seen[cl] then break end + seen[cl]=true + local p=properties(cl)[name];if p then return p end + local m=meta(cl);cl=m and m.super + end + if required then error('Missing reflected field: '..name) end +end +local function offset(cl,name) return field(cl,name,true).offset end +local function classOf(a) return q(a+0x10) end +local function nativeFunction(cl,name) + local visited={} + for i=1,32 do + if not ptr(cl) or visited[cl] then break end + visited[cl]=true + local f=q(cl+0x48);local seen={} + for j=1,1024 do + if not ptr(f) or seen[f] then break end + seen[f]=true + if fname(f+0x18)==name then return q(f+0x128) end + f=q(f+0x28) + end + local m=meta(cl);cl=m and m.super + end +end +local function flag(a,f) + if not f or not f.byte or not f.mask then return false end + local b=readBytes(a+f.offset+f.byte,1) + return b and (b&f.mask)~=0 +end +local function uniqueScan(pattern) + local scan=createMemScan();local found=createFoundList(scan) + local ok,result=pcall(function() + local base=getAddress('PBZ.exe') + scan.firstScan(soExactValue,vtByteArray,rtRounded,pattern,'',base,base+getModuleSize('PBZ.exe')-1, + '+X',fsmNotAligned,'1',true,false,false,false) + scan.waitTillDone();found.initialize() + if found.Count~=1 then error('ESP signature expected 1 match; found '..found.Count) end + return getAddress(found.Address[0]) + end) + found.destroy();scan.destroy() + if not ok then error(result) end + return result +end +local wr=uniqueScan(signatures.world) +state.worldSlot=wr+7+readInteger(wr+3,true) +local nr=uniqueScan(signatures.names)+0x1C +state.namePool=nr+7+readInteger(nr+3,true) +local function identity(a) + if not ptr(a) then return end + local cl=q(a+0x10);local n=q(a+0x18);local index=readInteger(a+0xC) + if not ptr(cl) or not n or not index then return end + return {address=a,class=cl,name=n,index=index} +end +local function valid(id) + return id and state.pid==getOpenedProcessID() and q(id.address+0x10)==id.class + and q(id.address+0x18)==id.name and readInteger(id.address+0xC)==id.index +end +local function context() + if state.pid~=getOpenedProcessID() then return end + local world=q(state.worldSlot);if not ptr(world) then return end + local gi=q(world+offset(classOf(world),'OwningGameInstance'));if not ptr(gi) then return end + local list,n=array(gi+offset(classOf(gi),'LocalPlayers'),8);if not list or not n or n<1 then return end + local lp=q(list);if not ptr(lp) then return end + local pc=q(lp+offset(classOf(lp),'PlayerController'));if not ptr(pc) then return end + local pawn=q(pc+offset(classOf(pc),'Pawn'));if not ptr(pawn) then return end + local dying=field(classOf(pawn),'bActorIsBeingDestroyed') + if dying and flag(pawn,dying) then return end + return {world=world,gi=gi,lp=lp,pc=pc,pawn=pawn,pawnID=identity(pawn)} +end +local initial=assert(context(),'Load the local player before enabling this entry') +local function functions(cl,name) + for d=1,32 do + if not ptr(cl) then break end + local fn=q(cl+0x48) + for i=1,2048 do + if not ptr(fn) then break end + if fname(fn+0x18)==name then return fn end + fn=q(fn+0x28) + end + cl=q(cl+0x40) + end +end +local function objectInventory(wanted) + local ref=uniqueScan(signatures.objects) + state.objectChunksSlot=ref+0x2B+readInteger(ref+0x27,true) + state.objectCountSlot=ref+0x15+readInteger(ref+0x11,true) + local chunks=q(state.objectChunksSlot) + local count=readInteger(state.objectCountSlot) + assert(ptr(chunks) and count and count>0 and count<2000000,'Unsupported object array') + local out={};local last=-1;local chunk + for i=0,count-1 do + local ci=i>>16;if ci~=last then chunk=q(chunks+ci*8);last=ci end + if ptr(chunk) then local slot=chunk+(i&0xFFFF)*24;local flags=readInteger(slot+4) + if flags and flags&0x10200000==0 then + local a=q(slot+8) + if ptr(a) and readInteger(a+0xC)==i then + local n=fname(a+0x18);local kind=wanted[n] + if kind and fname(classOf(a)+0x18)==kind then + assert(not out[n],'Ambiguous loaded object: '..n);out[n]=a + end + end + end + end + end + for n in pairs(wanted) do assert(out[n],'Required game object is not loaded: '..n) end + return out +end +local function setBit(a,f,value) + assert(f and f.size==1 and f.byte==0 and f.mask and f.mask>0,'Unsupported boolean property') + local b=assert(readBytes(a+f.offset,1),'Boolean field unreadable') + local nextValue=value and (b|f.mask) or (b&(~f.mask&0xFF)) + if nextValue~=b then assert(writeBytes(a+f.offset,nextValue),'Boolean field write failed') end +end +local old=rawget(_G,'PBZ_NoClipFly') +if old and old.pid==state.pid then error('NoClip / Fly is already enabled') end +if old and old.timer then old.timer.destroy() end +local s={pid=state.pid,speed=3200,verticalSpeed=2000} +local function snapshot(obj,f) + local bytes=assert(readBytes(obj.address+f.offset,f.size,true),'Flight field unreadable') + return {object=obj,field=f,bytes=bytes} +end +local function restore(l) + if not l then return end + for _,v in ipairs(l.saved) do + if valid(v.object) then + if v.field.mask and v.field.size==1 and v.field.byte==0 and v.bit then + setBit(v.object.address,v.field,(v.bytes[1]&v.field.mask)~=0) + else assert(writeBytes(v.object.address+v.field.offset,table.unpack(v.bytes)),'Flight field restore failed') end + end + end + if valid(l.moveID) then + for i=0,2 do assert(writeDouble(l.move+l.velocity.offset+i*8,0),'Flight stop failed') end + end +end +local function bind(c) + local move=q(c.pawn+offset(classOf(c.pawn),'CharacterMovement')) + local cap=q(c.pawn+offset(classOf(c.pawn),'CapsuleComponent')) + assert(ptr(move) and ptr(cap) and q(move+0x20)==c.pawn and q(cap+0x20)==c.pawn,'Flight components changed') + local mcl,ccl=classOf(move),classOf(cap) + local mode=field(mcl,'MovementMode',true);local velocity=field(mcl,'Velocity',true) + local gravity=field(mcl,'GravityScale',true);local speed=field(mcl,'MaxFlySpeed',true) + local rotation=field(classOf(c.pc),'ControlRotation',true) + local body=field(ccl,'BodyInstance',true);local collision=field(body.type,'CollisionEnabled',true) + assert(mode.size==1 and velocity.size==24 and gravity.size==4 and speed.size==4 and rotation.size==24,'Unexpected UE5 flight layout') + assert(fname(body.type+0x18)=='BodyInstance' and collision.size==1 and collision.offsetmath.abs(lr) then lr=x end;if math.abs(y)>math.abs(fb) then fb=y end + if pad.GAMEPAD_LEFT_SHOULDER then ud=1 end + if pad.GAMEPAD_RIGHT_SHOULDER then ud=-1 end + end + local length=math.sqrt(fb*fb+lr*lr);if length>1 then fb=fb/length;lr=lr/length end + return fb,lr,ud +end +s.tick=function() + if s.pid~=getOpenedProcessID() then s.timer.Enabled=false;return end + local c=context() + if not c then if s.lease then restore(s.lease);s.lease=nil end;return end + local move=q(c.pawn+offset(classOf(c.pawn),'CharacterMovement')) + local cap=q(c.pawn+offset(classOf(c.pawn),'CapsuleComponent')) + local l=s.lease + if l and (not valid(l.pawnID) or not valid(l.moveID) or not valid(l.capID) or not valid(l.pcID) + or l.pawnID.address~=c.pawn or l.move~=move or l.capID.address~=cap or l.pcID.address~=c.pc) then + restore(l);s.lease=nil;l=nil + end + if not l then l=bind(c);s.lease=l end + local yaw=readDouble(c.pc+l.rotation.offset+8) + if not finite(yaw) then return end + local fb,lr,ud=input();local radians=math.rad(yaw) + local vx=(math.cos(radians)*fb-math.sin(radians)*lr)*s.speed + local vy=(math.sin(radians)*fb+math.cos(radians)*lr)*s.speed + local vz=ud*s.verticalSpeed + assert(writeBytes(l.move+l.mode.offset,5),'MovementMode write failed') + assert(writeFloat(l.move+l.gravity.offset,0),'GravityScale write failed') + assert(writeFloat(l.move+l.speed.offset,math.sqrt(s.speed*s.speed+s.verticalSpeed*s.verticalSpeed)+1),'MaxFlySpeed write failed') + assert(writeBytes(l.capID.address+l.bodyCollision.offset,0),'Capsule collision write failed') + setBit(c.pawn,l.actorCollision,false) + if l.soft then setBit(l.move,l.soft,false) end + assert(writeDouble(l.move+l.velocity.offset,vx));assert(writeDouble(l.move+l.velocity.offset+8,vy));assert(writeDouble(l.move+l.velocity.offset+16,vz)) + s.lastError=nil +end +s.stop=function() + if s.timer then s.timer.Enabled=false end + restore(s.lease);s.lease=nil + if s.timer then s.timer.destroy();s.timer=nil end + if rawget(_G,'PBZ_NoClipFly')==s then _G.PBZ_NoClipFly=nil end +end +s.lease=bind(initial) +s.timer=createTimer(nil,false);s.timer.Interval=10 +s.timer.OnTimer=function() + local ok,e=pcall(s.tick) + if not ok then s.lastError=tostring(e);s.timer.Enabled=false;pcall(restore,s.lease) end +end +_G.PBZ_NoClipFly=s;s.timer.Enabled=true +{$asm} +[DISABLE] +{$lua} +if syntaxcheck then return end +local s=rawget(_G,'PBZ_NoClipFly') +if s then return s.stop() end +{$asm} diff --git a/runtime/resources/scripts/1337142256.aa b/runtime/resources/scripts/1337142256.aa new file mode 100644 index 0000000..a98968c --- /dev/null +++ b/runtime/resources/scripts/1337142256.aa @@ -0,0 +1,632 @@ +[ENABLE] +{$lua} +if syntaxcheck then return end +local signatures={world="48 8B 05 ?? ?? ?? ?? 48 85 C0 75 ?? 80 3D ?? ?? ?? ?? 02 72 ?? 48 8D 15 ?? ?? ?? ?? 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? 33 C0 48 83 C4 20 5B C3",names="89 03 48 8B C3 89 7B 04 48 8B 5C 24 48 48 83 C4 30 5F C3 80 3D ?? ?? ?? ?? 00 74 09 48 8D 05 ?? ?? ?? ?? EB 13 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? C6 05 ?? ?? ?? ?? 01 0F 28 44 24 20",objects="44 8B 49 04 45 85 C9 74 ?? 8B 01 85 C0 78 ?? 3B 05 ?? ?? ?? ?? 7D ?? 8B C8 0F B7 C0 48 C1 E9 10 48 8D 14 40 48 8B 05 ?? ?? ?? ?? 48 8B 0C C8 4C 8D 04 D1"} +local state={pid=getOpenedProcessID(),classCache={},nameCache={}} +local function ptr(p) return type(p)=='number' and p>0x10000 and p<0x7FFFFFFFFFFF end +local function q(p) return ptr(p) and readQword(p) or nil end +local function finite(x) return type(x)=='number' and x==x and math.abs(x)<1e12 end +local function vector(p) + if not ptr(p) then return end + local x,y,z=readDouble(p),readDouble(p+8),readDouble(p+16) + if finite(x) and finite(y) and finite(z) then return {x,y,z} end +end +local function array(p,limit) + local data,num,cap=q(p),readInteger(p+8),readInteger(p+12) + if not num or not cap or num>limit or cap1000000 then return end + if num>0 and not ptr(data) then return end + return data,num +end +local function exactString(p,n,wide) + local bytes=readBytes(p,n*(wide and 2 or 1),true) + if not bytes or #bytes~=n*(wide and 2 or 1) then return '' end + if not wide then return string.char(table.unpack(bytes)) end + local chars={};local i=1 + while i<=#bytes do + local unit=bytes[i]+bytes[i+1]*256;i=i+2 + if unit>=0xD800 and unit<=0xDBFF and i<#bytes then + local low=bytes[i]+bytes[i+1]*256 + if low>=0xDC00 and low<=0xDFFF then unit=0x10000+(unit-0xD800)*1024+low-0xDC00;i=i+2 + else unit=0xFFFD end + elseif unit>=0xD800 and unit<=0xDFFF then unit=0xFFFD end + if unit==0 then break end + chars[#chars+1]=utf8.char(unit) + end + return table.concat(chars) +end +local function fname(p) + local id=readInteger(p) + if not id then return '' end + local text=state.nameCache[id] + if not text then + local block=id>>16 + if block>8191 then return '' end + local b=q(state.namePool+0x10+block*8) + if not ptr(b) then return '' end + local entry=b+(id&0xFFFF)*2 + local h=readSmallInteger(entry) + if not h then return '' end + local n=h>>6 + if n<1 or n>1023 then return '' end + text=exactString(entry+2,n,(h&1)~=0) + if not text then return '' end + state.nameCache[id]=text + end + local number=readInteger(p+4) + if number and number>0 then text=text..'_'..tostring(number-1) end + return text +end +local function fstring(p) + local data,n=array(p,1024) + if not data or n<2 then return '' end + return exactString(data,n-1,true) +end +local function meta(cl) + if not ptr(cl) then return end + local nameId=q(cl+0x18) + local super=q(cl+0x40) + if not nameId or super==nil then return end + local old=state.classCache[cl] + if old and old.nameId==nameId and old.super==super then return old end + local m={nameId=nameId,super=super,name=fname(cl+0x18)} + state.classCache[cl]=m + return m +end +local function properties(cl) + local m=meta(cl);if not m then return {} end + if m.fields then return m.fields end + local fields={};local f=q(cl+0x50);local seen={} + for i=1,512 do + if not ptr(f) or seen[f] then break end + seen[f]=true + local off,size=readInteger(f+0x44),readInteger(f+0x34) + if off and off<0x100000 and size and size<0x100000 then + fields[fname(f+0x20)]={offset=off,size=size,type=q(f+0x70), + byte=readBytes(f+0x71,1),mask=readBytes(f+0x72,1)} + end + f=q(f+0x10) + end + m.fields=fields;return fields +end +local function field(cl,name,required) + local seen={} + for i=1,32 do + if not ptr(cl) or seen[cl] then break end + seen[cl]=true + local p=properties(cl)[name];if p then return p end + local m=meta(cl);cl=m and m.super + end + if required then error('Missing reflected field: '..name) end +end +local function offset(cl,name) return field(cl,name,true).offset end +local function classOf(a) return q(a+0x10) end +local function nativeFunction(cl,name) + local visited={} + for i=1,32 do + if not ptr(cl) or visited[cl] then break end + visited[cl]=true + local f=q(cl+0x48);local seen={} + for j=1,1024 do + if not ptr(f) or seen[f] then break end + seen[f]=true + if fname(f+0x18)==name then return q(f+0x128) end + f=q(f+0x28) + end + local m=meta(cl);cl=m and m.super + end +end +local function flag(a,f) + if not f or not f.byte or not f.mask then return false end + local b=readBytes(a+f.offset+f.byte,1) + return b and (b&f.mask)~=0 +end +local function uniqueScan(pattern) + local scan=createMemScan();local found=createFoundList(scan) + local ok,result=pcall(function() + local base=getAddress('PBZ.exe') + scan.firstScan(soExactValue,vtByteArray,rtRounded,pattern,'',base,base+getModuleSize('PBZ.exe')-1, + '+X',fsmNotAligned,'1',true,false,false,false) + scan.waitTillDone();found.initialize() + if found.Count~=1 then error('ESP signature expected 1 match; found '..found.Count) end + return getAddress(found.Address[0]) + end) + found.destroy();scan.destroy() + if not ok then error(result) end + return result +end +local wr=uniqueScan(signatures.world) +state.worldSlot=wr+7+readInteger(wr+3,true) +local nr=uniqueScan(signatures.names)+0x1C +state.namePool=nr+7+readInteger(nr+3,true) +local function identity(a) + if not ptr(a) then return end + local cl=q(a+0x10);local n=q(a+0x18);local index=readInteger(a+0xC) + if not ptr(cl) or not n or not index then return end + return {address=a,class=cl,name=n,index=index} +end +local function valid(id) + return id and state.pid==getOpenedProcessID() and q(id.address+0x10)==id.class + and q(id.address+0x18)==id.name and readInteger(id.address+0xC)==id.index +end +local function context() + if state.pid~=getOpenedProcessID() then return end + local world=q(state.worldSlot);if not ptr(world) then return end + local gi=q(world+offset(classOf(world),'OwningGameInstance'));if not ptr(gi) then return end + local list,n=array(gi+offset(classOf(gi),'LocalPlayers'),8);if not list or not n or n<1 then return end + local lp=q(list);if not ptr(lp) then return end + local pc=q(lp+offset(classOf(lp),'PlayerController'));if not ptr(pc) then return end + local pawn=q(pc+offset(classOf(pc),'Pawn'));if not ptr(pawn) then return end + local dying=field(classOf(pawn),'bActorIsBeingDestroyed') + if dying and flag(pawn,dying) then return end + return {world=world,gi=gi,lp=lp,pc=pc,pawn=pawn,pawnID=identity(pawn)} +end +local initial=assert(context(),'Load the local player before enabling this entry') +local function functions(cl,name) + for d=1,32 do + if not ptr(cl) then break end + local fn=q(cl+0x48) + for i=1,2048 do + if not ptr(fn) then break end + if fname(fn+0x18)==name then return fn end + fn=q(fn+0x28) + end + cl=q(cl+0x40) + end +end +local function objectInventory(wanted) + local ref=uniqueScan(signatures.objects) + state.objectChunksSlot=ref+0x2B+readInteger(ref+0x27,true) + state.objectCountSlot=ref+0x15+readInteger(ref+0x11,true) + local chunks=q(state.objectChunksSlot) + local count=readInteger(state.objectCountSlot) + assert(ptr(chunks) and count and count>0 and count<2000000,'Unsupported object array') + local out={};local last=-1;local chunk + for i=0,count-1 do + local ci=i>>16;if ci~=last then chunk=q(chunks+ci*8);last=ci end + if ptr(chunk) then local slot=chunk+(i&0xFFFF)*24;local flags=readInteger(slot+4) + if flags and flags&0x10200000==0 then + local a=q(slot+8) + if ptr(a) and readInteger(a+0xC)==i then + local n=fname(a+0x18);local kind=wanted[n] + if kind and fname(classOf(a)+0x18)==kind then + assert(not out[n],'Ambiguous loaded object: '..n);out[n]=a + end + end + end + end + end + for n in pairs(wanted) do assert(out[n],'Required game object is not loaded: '..n) end + return out +end +local function setBit(a,f,value) + assert(f and f.size==1 and f.byte==0 and f.mask and f.mask>0,'Unsupported boolean property') + local b=assert(readBytes(a+f.offset,1),'Boolean field unreadable') + local nextValue=value and (b|f.mask) or (b&(~f.mask&0xFF)) + if nextValue~=b then assert(writeBytes(a+f.offset,nextValue),'Boolean field write failed') end +end +local dispatchPatterns={normal="48 8B 0F 4C 8D 44 24 38 48 8B D0 4C 8B 89 60020000 48 8B CF 41 FF D1 48 8B B4 24 E8000000 48 8B AC 24 08010000 48 8B 9C 24 00010000 4C 8B A4 24 E0000000 44 0F28 84 24 A0000000 48 81 C4 F0000000 5F C3",normalOffset=24,paused="48 8B 07 41 0F28 C8 48 8B CF 44 0F28 84 24 A0000000 48 81 C4 F0000000 5F 48 FF A0 18050000"} +local function findName(name) + local target=name:lower();local current=readInteger(state.namePool+8);local cursor=readInteger(state.namePool+0xC) + assert(current and current<8192 and cursor and cursor<=0x20000,'Unsupported FName allocator') + for block=current,0,-1 do + local data=q(state.namePool+0x10+block*8);local size=block==current and cursor or 0x20000 + if ptr(data) and size>0 then + local bytes=readBytes(data,size,true) + if bytes and #bytes==size then + local parts={};for lo=1,size,4096 do parts[#parts+1]=string.char(table.unpack(bytes,lo,math.min(lo+4095,size))) end + local text=table.concat(parts):lower();local from=1 + while true do + local at=text:find(target,from,true);if not at then break end + if at>=3 and (at-3)%2==0 then + local header=bytes[at-2]+bytes[at-1]*256 + if header&1==0 and header>>6==#name then return (block<<16)|((at-3)>>1) end + end + from=at+1 + end + end + end + end + error('Required registered gameplay tag name is unavailable: '..name) +end +local function staticTarget(cl,name,expected) + local fn=assert(functions(cl,name),'Native function unavailable: '..name) + assert((readInteger(fn+0x100)&0x400)~=0,'Expected native UFunction: '..name) + for n,spec in pairs(expected) do + local f=field(fn,n,true);assert(f.offset==spec[1] and f.size==spec[2],'Function parameter layout changed: '..name..'.'..n) + end + local cdo=q(cl+0x160);assert(ptr(cdo) and classOf(cdo)==cl,'Class default object unavailable') + local pe=q(q(cdo)+0x260);local bytes=pe and readBytes(pe,12,true) + assert(bytes and table.concat(bytes,',')=='64,85,86,87,65,84,65,85,65,86,65,87','UObject.ProcessEvent ABI changed') + return {receiver=identity(cdo),fn=identity(fn),native=q(fn+0x128),processEvent=pe} +end +local function acquireDispatch(key) + local d=rawget(_G,'PBZ_UtilityDispatch') + local exports={'Code','NormalEntry','PausedEntry','Mailbox','NormalBackup','PausedBackup'} + if d and d.pid~=state.pid then + if d.timer then d.timer.destroy() end + for _,n in ipairs(exports) do unregisterSymbol('PBZ_UT_'..n) end + _G.PBZ_UtilityDispatch=nil;d=nil + end + if d then + assert(not d.closing,'Utility dispatcher is finishing cleanup; retry enabling shortly') + assert(not d.users[key],'This utility is already enabled') + assert(d.validateHooks,'Unsupported Utility dispatcher version');d.validateHooks() + d.users[key]=true;return d,'' + end + assert(not getAddressSafe('PBZ_UT_Code'),'Unowned Utility dispatch symbols; no target bytes changed') + local normal=uniqueScan(dispatchPatterns.normal)+dispatchPatterns.normalOffset;local paused=uniqueScan(dispatchPatterns.paused) + local originalNormal=assert(readBytes(normal,16,true));local originalPaused=assert(readBytes(paused,19,true)) + local source=[==[ +alloc(PBZ_UT_Code,$5000) +label(PBZ_UT_NormalEntry) +label(PBZ_UT_PausedEntry) +label(PBZ_UT_Worker) +label(PBZ_UT_Mailbox) +label(PBZ_UT_NormalBackup) +label(PBZ_UT_PausedBackup) +label(PBZ_UT_ValidateObject) +label(PBZ_UT_ObjectInvalid) +label(PBZ_UT_Reject) +label(PBZ_UT_Return) +label(PBZ_UT_CheckExtra) +registersymbol(PBZ_UT_Code) +registersymbol(PBZ_UT_NormalEntry) +registersymbol(PBZ_UT_PausedEntry) +registersymbol(PBZ_UT_Mailbox) +registersymbol(PBZ_UT_NormalBackup) +registersymbol(PBZ_UT_PausedBackup) +PBZ_UT_Code: +PBZ_UT_NormalEntry: + call PBZ_UT_Worker + readmem(PBZ_UT_Normal,$10) + db FF 25 00 00 00 00 + dq PBZ_UT_Normal+10 +PBZ_UT_PausedEntry: + call PBZ_UT_Worker + readmem(PBZ_UT_Paused,$13) + db FF 25 00 00 00 00 + dq PBZ_UT_Paused+13 +PBZ_UT_Worker: + pushfq + push rax + push rcx + push rdx + push r8 + push r9 + push r10 + push r11 + push rbx + push rsi + push rdi + sub rsp,C0 + movdqu [rsp+30],xmm0 + movdqu [rsp+40],xmm1 + movdqu [rsp+50],xmm2 + movdqu [rsp+60],xmm3 + movdqu [rsp+70],xmm4 + movdqu [rsp+80],xmm5 + mov rbx,PBZ_UT_Mailbox + cmp dword ptr [rbx],1 + jne PBZ_UT_Return + cmp rdi,[rbx+18] + jne PBZ_UT_Return + mov rax,WORLD_SLOT + mov rax,[rax] + cmp rax,[rbx+10] + jne PBZ_UT_Reject + test rax,rax + je PBZ_UT_Reject + mov rax,[rax+GI_OFFSET] + test rax,rax + je PBZ_UT_Reject + cmp dword ptr [rax+PLAYERS_OFFSET+8],1 + jl PBZ_UT_Reject + mov rax,[rax+PLAYERS_OFFSET] + test rax,rax + je PBZ_UT_Reject + mov rax,[rax] + test rax,rax + je PBZ_UT_Reject + cmp rdi,[rax+CONTROLLER_OFFSET] + jne PBZ_UT_Reject + mov rax,[rbx+20] + mov ecx,[rbx+38] + call PBZ_UT_ValidateObject + test al,al + je PBZ_UT_Reject + mov rax,[rbx+20] + mov rcx,[rbx+28] + cmp [rax+10],rcx + jne PBZ_UT_Reject + mov rcx,[rbx+30] + cmp [rax+18],rcx + jne PBZ_UT_Reject + mov ecx,[rbx+38] + cmp [rax+0C],ecx + jne PBZ_UT_Reject + mov rdx,[rbx+40] + mov rax,rdx + mov ecx,[rbx+58] + call PBZ_UT_ValidateObject + test al,al + je PBZ_UT_Reject + mov rdx,[rbx+40] + mov rcx,[rbx+48] + cmp [rdx+10],rcx + jne PBZ_UT_Reject + mov rcx,[rbx+50] + cmp [rdx+18],rcx + jne PBZ_UT_Reject + mov ecx,[rbx+58] + cmp [rdx+0C],ecx + jne PBZ_UT_Reject + test dword ptr [rdx+100],400 + je PBZ_UT_Reject +PBZ_UT_CheckExtra: + mov rax,[rbx+60] + mov ecx,[rbx+78] + call PBZ_UT_ValidateObject + test al,al + je PBZ_UT_Reject + mov rax,[rbx+60] + mov rcx,[rbx+68] + cmp [rax+10],rcx + jne PBZ_UT_Reject + mov rcx,[rbx+70] + cmp [rax+18],rcx + jne PBZ_UT_Reject + mov ecx,[rbx+78] + cmp [rax+0C],ecx + jne PBZ_UT_Reject + cmp dword ptr [rbx+7C],1 + jne @f + cmp rax,[rdi+PAWN_OFFSET] + jne PBZ_UT_Reject +@@: + mov dword ptr [rbx],2 + mov rcx,[rbx+20] + mov rdx,[rbx+40] + lea r8,[rbx+80] + mov rax,[rcx] + call qword ptr [rax+260] + mov dword ptr [rbx],3 + jmp PBZ_UT_Return +PBZ_UT_Reject: + mov dword ptr [rbx],4 +PBZ_UT_Return: + movdqu xmm0,[rsp+30] + movdqu xmm1,[rsp+40] + movdqu xmm2,[rsp+50] + movdqu xmm3,[rsp+60] + movdqu xmm4,[rsp+70] + movdqu xmm5,[rsp+80] + add rsp,C0 + pop rdi + pop rsi + pop rbx + pop r11 + pop r10 + pop r9 + pop r8 + pop rdx + pop rcx + pop rax + popfq + ret +PBZ_UT_ValidateObject: + test rax,rax + je PBZ_UT_ObjectInvalid + test ecx,ecx + js PBZ_UT_ObjectInvalid + mov r10,OBJECT_COUNT_SLOT + cmp ecx,[r10] + jae PBZ_UT_ObjectInvalid + mov r10,OBJECT_CHUNKS_SLOT + mov r10,[r10] + test r10,r10 + je PBZ_UT_ObjectInvalid + mov r11d,ecx + shr r11d,10 + mov r10,[r10+r11*8] + test r10,r10 + je PBZ_UT_ObjectInvalid + and ecx,FFFF + imul ecx,ecx,18 + add r10,rcx + test dword ptr [r10+4],10200000 + jne PBZ_UT_ObjectInvalid + cmp [r10+8],rax + jne PBZ_UT_ObjectInvalid + mov al,1 + ret +PBZ_UT_ObjectInvalid: + xor eax,eax + ret +PBZ_UT_Code+2000: +PBZ_UT_NormalBackup: + readmem(PBZ_UT_Normal,$10) +PBZ_UT_PausedBackup: + readmem(PBZ_UT_Paused,$13) +PBZ_UT_Code+2100: +PBZ_UT_Mailbox: + dd 0 + dd 0 + dq PROCESS_ID +PBZ_UT_Normal: + db FF 25 00 00 00 00 + dq PBZ_UT_NormalEntry + db 90 90 +PBZ_UT_Paused: + db FF 25 00 00 00 00 + dq PBZ_UT_PausedEntry + db 90 90 90 90 90 +]==] + local function hex(bytes) local out={};for _,b in ipairs(bytes) do out[#out+1]=('%02X'):format(b) end;return table.concat(out,' ') end + source='assert(PBZ_UT_Normal,'..hex(originalNormal)..')\nassert(PBZ_UT_Paused,'..hex(originalPaused)..')\n'..source + local values={PBZ_UT_Normal=normal,PBZ_UT_Paused=paused,WORLD_SLOT=state.worldSlot, + GI_OFFSET=offset(classOf(initial.world),'OwningGameInstance'),PLAYERS_OFFSET=offset(classOf(initial.gi),'LocalPlayers'), + CONTROLLER_OFFSET=offset(classOf(initial.lp),'PlayerController'),PAWN_OFFSET=offset(classOf(initial.pc),'Pawn'), + OBJECT_COUNT_SLOT=state.objectCountSlot,OBJECT_CHUNKS_SLOT=state.objectChunksSlot,PROCESS_ID=state.pid} + for n,v in pairs(values) do assert(type(v)=='number','Missing dispatch value '..n);source=('define(%s,%X)\n'):format(n,v)..source end + d={pid=state.pid,users={[key]=true},queue={},normal=normal,paused=paused,normalBytes=originalNormal,pausedBytes=originalPaused} + d.identity=identity;d.valid=valid + local function compare(a,b) + local x=readBytes(a,#b,true);return x and table.concat(x,',')==table.concat(b,',') + end + local function mail() + local p=getAddressSafe('PBZ_UT_Mailbox');if not p then return end + if readQword(p+8)~=d.pid then error('Utility mailbox PID mismatch') end;return p + end + local function writeID(p,id) + assert(writeQword(p,id.address));assert(writeQword(p+8,id.class));assert(writeQword(p+16,id.name));assert(writeInteger(p+24,id.index)) + end + d.validateHooks=function() + assert(mail(),'Utility dispatcher has not finished installing') + for _,c in ipairs({{d.normal,16,'Normal',d.normalBytes},{d.paused,19,'Paused',d.pausedBytes}}) do + local entry=assert(getAddressSafe('PBZ_UT_'..c[3]..'Entry'));local backup=assert(getAddressSafe('PBZ_UT_'..c[3]..'Backup')) + local head=readBytes(c[1],6,true) + assert(head and table.concat(head,',')=='255,37,0,0,0,0' and q(c[1]+6)==entry,'Utility hook ownership changed') + assert(compare(backup,c[4]),'Utility backup changed') + end + return true + end + d.enqueue=function(request) + assert(not d.closing and d.users[request.owner],'Utility dispatcher is not available to this entry') + d.queue[#d.queue+1]=request + end + d.pending=function(owner) + if d.current and d.current.owner==owner then return true end + for _,r in ipairs(d.queue) do if r.owner==owner then return true end end + return false + end + d.pump=function() + if d.pid~=getOpenedProcessID() then d.timer.Enabled=false;return end + if d.closing then + if compare(d.normal,d.normalBytes) and compare(d.paused,d.pausedBytes) then + d.timer.destroy();d.timer=nil;if rawget(_G,'PBZ_UtilityDispatch')==d then _G.PBZ_UtilityDispatch=nil end + end + return + end + local m=mail();if not m then return end + local status=readInteger(m) + if d.current then + if status==2 then return end + if status==1 then + local r=d.current;local stale=false + if r.validate and getTickCount()-(r.sentAt or 0)>=250 then local ok,valid=pcall(r.validate);stale=(not ok)or valid==false end + if not stale then return end + d.current=nil;assert(writeInteger(m,0));r.done=true;r.success=false;r.error='Request target changed before the game thread ran it' + if r.callback then r.callback(r) end + else + local r=d.current;d.current=nil + local result + if status==3 then result=r.resultKind=='bool' and readBytes(m+0x80+r.resultOffset,1) or readQword(m+0x80+r.resultOffset) end + assert(writeInteger(m,0));r.done=true;r.success=status==3;r.result=result + if r.callback then r.callback(r) end + end + elseif status~=0 then assert(writeInteger(m,0)) end + if #d.queue==0 then return end + local r=table.remove(d.queue,1) + if q(state.worldSlot)~=r.world or not valid(r.pcID) or not valid(r.receiver) or not valid(r.fn) or not valid(r.extra) then + r.done=true;r.success=false;r.error='World or object identity changed';if r.callback then r.callback(r) end;return + end + assert(writeQword(m+0x10,r.world));assert(writeQword(m+0x18,r.pcID.address)) + writeID(m+0x20,r.receiver);writeID(m+0x40,r.fn);writeID(m+0x60,r.extra) + assert(writeInteger(m+0x7C,r.currentPawnOnly and 1 or 0)) + local zeros={};for i=1,512 do zeros[i]=0 end;assert(writeBytes(m+0x80,table.unpack(zeros))) + for _,w in ipairs(r.writes) do + assert(w[1]>=0 and w[1]<0x200,'Parameter write outside mailbox') + if w[3]=='byte' then assert(writeBytes(m+0x80+w[1],w[2])) else assert(writeQword(m+0x80+w[1],w[2])) end + end + d.current=r;r.sentAt=getTickCount();assert(writeInteger(m,1)) + end + d.drain=function(owner) + local start=getTickCount();local attempts=0 + while d.pending(owner) and getTickCount()-start<2000 and attempts<200 do + attempts=attempts+1;d.pump();if d.pending(owner) then sleep(10) end + end + if d.pending(owner) then + local m=mail();local status=m and readInteger(m)or -1 + error(('游戏线程仍有未完成的请求(邮箱状态 %s,已等待 2000 毫秒)。请回到游戏画面、不要停在暂停或加载界面,再重试关闭'):format(tostring(status)),0) + end + end + d.release=function(owner) + if d.pid~=getOpenedProcessID() then + if d.timer then d.timer.destroy();d.timer=nil end + if rawget(_G,'PBZ_UtilityDispatch')~=d then return '' end + _G.PBZ_UtilityDispatch=nil;local out={};for _,n in ipairs(exports) do out[#out+1]='unregistersymbol(PBZ_UT_'..n..')' end + return table.concat(out,'\n') + end + assert(not d.pending(owner),'Finish utility cleanup before disabling') + local any=false;for k in pairs(d.users) do if k~=owner then any=true end end + if any then d.users[owner]=nil;return '' end + assert(#d.queue==0 and not d.current,'Another utility request is still running') + local checks={{d.normal,16,'Normal'},{d.paused,19,'Paused'}};local out={} + for _,c in ipairs(checks) do + local entry=assert(getAddressSafe('PBZ_UT_'..c[3]..'Entry'));local backup=assert(getAddressSafe('PBZ_UT_'..c[3]..'Backup')) + local head=readBytes(c[1],6,true) + assert(head and table.concat(head,',')=='255,37,0,0,0,0' and q(c[1]+6)==entry,'Utility hook ownership changed') + local saved=c[3]=='Normal' and d.normalBytes or d.pausedBytes + assert(compare(backup,saved),'Utility original instruction buffer changed') + if c[2]>14 then local padding=readBytes(c[1]+14,c[2]-14,true);assert(padding and #padding==c[2]-14,'Utility padding unreadable');for _,v in ipairs(padding) do assert(v==0x90,'Utility padding changed') end end + out[#out+1]=('%X:\n readmem(%X,$%X)'):format(c[1],backup,c[2]) + end + for _,n in ipairs(exports) do out[#out+1]='unregistersymbol(PBZ_UT_'..n..')' end + d.users[owner]=nil;d.closing=true + return table.concat(out,'\n') + end + d.timer=createTimer(nil,false);d.timer.Interval=20 + d.timer.OnTimer=function() local ok,e=pcall(d.pump);if not ok then d.lastError=tostring(e) end end + _G.PBZ_UtilityDispatch=d;d.timer.Enabled=true + return d,source +end +local old=rawget(_G,'PBZ_SaveMenuAnywhere') +if old and old.pid==state.pid then error('Save Menu Anywhere is already enabled') end +if old and old.hotkey then old.hotkey.destroy() end +local objects=objectInventory({CommonUIExtensions='Class',WB_SaveGame_C='WidgetBlueprintGeneratedClass'}) +local target=staticTarget(objects.CommonUIExtensions,'PushContentToLayer_ForPlayer',{ + LocalPlayer={0,8},LayerName={8,8},WidgetClass={0x10,8},ReturnValue={0x18,8}}) +local lpParam=field(target.fn.address,'LocalPlayer',true) +assert(fname(lpParam.type+0x18)=='LocalPlayer','Expected ULocalPlayer parameter, not a controller pointer') +local layer=findName('UI.Layer.GameSystem') +local saveClass=objects.WB_SaveGame_C +local active=field(saveClass,'bIsActive',true) +assert(active.size==1 and active.byte==0 and active.mask==1,'Save widget activation field changed') +local dispatcher,assembly=acquireDispatch('save') +local s={pid=state.pid,dispatcher=dispatcher,saveClass=saveClass} +s.open=function() + if s.stopping or s.pending then return end + local c=assert(context(),'No active local player') + if valid(s.widget) and flag(s.widget.address,active) then return end + local r={owner='save',world=c.world,pcID=identity(c.pc),receiver=target.receiver,fn=target.fn, + extra=identity(saveClass),currentPawnOnly=false,resultKind='object',resultOffset=0x18, + writes={{0,c.lp},{8,layer},{0x10,saveClass}}} + s.pending=r + r.callback=function(done) + s.pending=nil + if done.success and ptr(done.result) and classOf(done.result)==saveClass then s.widget=identity(done.result);s.lastError=nil + else s.lastError=done.error or 'The game could not push the Save Game widget to its UI layer' end + end + dispatcher.enqueue(r) +end +s.stop=function() + s.stopping=true + if s.pid==getOpenedProcessID() then dispatcher.drain('save') end + local restore=dispatcher.release('save') + if s.hotkey then s.hotkey.destroy();s.hotkey=nil end + if rawget(_G,'PBZ_SaveMenuAnywhere')==s then _G.PBZ_SaveMenuAnywhere=nil end;return restore +end +s.hotkey=createHotkey(function() + if getForegroundProcess()==s.pid then local ok,e=pcall(s.open);if not ok then s.lastError=tostring(e) end end +end,0x76) +_G.PBZ_SaveMenuAnywhere=s +local opened,e=pcall(s.open);if not opened then s.lastError=tostring(e) end +return assembly +{$asm} +[DISABLE] +{$lua} +if syntaxcheck then return end +local s=rawget(_G,'PBZ_SaveMenuAnywhere') +if s then return s.stop() end +local d=rawget(_G,'PBZ_UtilityDispatch');if d then return d.release('save') end +{$asm} diff --git a/runtime/resources/scripts/1337142257.aa b/runtime/resources/scripts/1337142257.aa new file mode 100644 index 0000000..bbacab5 --- /dev/null +++ b/runtime/resources/scripts/1337142257.aa @@ -0,0 +1,11 @@ +[ENABLE] +{$lua} +if syntaxcheck then return end +EnablePlayerMovementSpeed() +{$asm} +[DISABLE] +{$lua} +if syntaxcheck then return end +local s=assert(PBZ_PlayerMovementSpeed,'移动速度恢复管理器缺失') +s.stop() +{$asm} diff --git a/runtime/resources/scripts/1337142258.aa b/runtime/resources/scripts/1337142258.aa new file mode 100644 index 0000000..5804409 --- /dev/null +++ b/runtime/resources/scripts/1337142258.aa @@ -0,0 +1,11 @@ +[ENABLE] +{$lua} +if syntaxcheck then return end +EnablePlayerAnimationSpeed() +{$asm} +[DISABLE] +{$lua} +if syntaxcheck then return end +local s=assert(PBZ_PlayerAnimationSpeed,'动作速度恢复管理器缺失') +s.stop() +{$asm} diff --git a/runtime/resources/scripts/1337142260.aa b/runtime/resources/scripts/1337142260.aa new file mode 100644 index 0000000..3b8a3bf --- /dev/null +++ b/runtime/resources/scripts/1337142260.aa @@ -0,0 +1,11 @@ +[ENABLE] +{$lua} +if syntaxcheck then return end +EnablePerfectGuardWindow() +{$asm} +[DISABLE] +{$lua} +if syntaxcheck then return end +local s=assert(PBZ_PerfectGuardWindow,'格挡窗口恢复管理器缺失') +s.stop() +{$asm} diff --git a/runtime/resources/scripts/1337142261.aa b/runtime/resources/scripts/1337142261.aa new file mode 100644 index 0000000..3bcf2b1 --- /dev/null +++ b/runtime/resources/scripts/1337142261.aa @@ -0,0 +1,11 @@ +[ENABLE] +{$lua} +if syntaxcheck then return end +EnablePerfectDodgeWindow() +{$asm} +[DISABLE] +{$lua} +if syntaxcheck then return end +local s=assert(PBZ_PerfectDodgeWindow,'闪避窗口恢复管理器缺失') +s.stop() +{$asm} diff --git a/runtime/resources/scripts/1337142262.aa b/runtime/resources/scripts/1337142262.aa new file mode 100644 index 0000000..2a9ad2c --- /dev/null +++ b/runtime/resources/scripts/1337142262.aa @@ -0,0 +1,11 @@ +[ENABLE] +{$lua} +if syntaxcheck then return end +EnableExecutionThreshold() +{$asm} +[DISABLE] +{$lua} +if syntaxcheck then return end +local s=assert(PBZ_ExecutionThreshold,'处决阈值恢复管理器缺失') +s.stop() +{$asm} diff --git a/runtime/resources/scripts/1337142263.aa b/runtime/resources/scripts/1337142263.aa new file mode 100644 index 0000000..9c88d88 --- /dev/null +++ b/runtime/resources/scripts/1337142263.aa @@ -0,0 +1,12 @@ +[ENABLE] +{$lua} +if syntaxcheck then return end +return EnableNativeDamageNumbers() +{$asm} +[DISABLE] +{$lua} +if syntaxcheck then return end +local s=rawget(_G,'PBZ_DamageNumbers') +if s then return s.stop()end +local d=rawget(_G,'PBZ_UtilityDispatch');if d then return d.release('damage_numbers')end +{$asm} diff --git a/runtime/resources/scripts/1337142264.aa b/runtime/resources/scripts/1337142264.aa new file mode 100644 index 0000000..5e7adcf --- /dev/null +++ b/runtime/resources/scripts/1337142264.aa @@ -0,0 +1,10 @@ +[ENABLE] +{$lua} +if syntaxcheck then return end +return StartAccessorySelection() +{$asm} +[DISABLE] +{$lua} +if syntaxcheck then return end +return assert(PBZ_AccessorySelection,'饰品恢复管理器缺失').stop() +{$asm} diff --git a/runtime/resources/scripts/1337142265.aa b/runtime/resources/scripts/1337142265.aa new file mode 100644 index 0000000..f77bd3b --- /dev/null +++ b/runtime/resources/scripts/1337142265.aa @@ -0,0 +1,11 @@ +[ENABLE] +{$lua} +if syntaxcheck then return end +EnableAutoDodge() +{$asm} +[DISABLE] +{$lua} +if syntaxcheck then return end +local s=assert(PBZ_AutoDodge,'自动闪避恢复管理器缺失') +s.stop() +{$asm} diff --git a/runtime/resources/scripts/1337142267.aa b/runtime/resources/scripts/1337142267.aa new file mode 100644 index 0000000..d08db8a --- /dev/null +++ b/runtime/resources/scripts/1337142267.aa @@ -0,0 +1,10 @@ +[ENABLE] +{$lua} +if syntaxcheck then return end +return EnableHyperArmor() +{$asm} +[DISABLE] +{$lua} +if syntaxcheck then return end +return DisableHyperArmor() +{$asm} diff --git a/runtime/resources/scripts/1337142268.aa b/runtime/resources/scripts/1337142268.aa new file mode 100644 index 0000000..70e9913 --- /dev/null +++ b/runtime/resources/scripts/1337142268.aa @@ -0,0 +1,8 @@ +[ENABLE] +{$lua} +if not syntaxcheck then EnableDisableFlashStep() end +{$asm} +[DISABLE] +{$lua} +if not syntaxcheck then RestoreFlashStep() end +{$asm} diff --git a/runtime/resources/scripts/6.aa b/runtime/resources/scripts/6.aa new file mode 100644 index 0000000..8516cc9 --- /dev/null +++ b/runtime/resources/scripts/6.aa @@ -0,0 +1,550 @@ +[ENABLE] +{$lua} +local function inspectReturnHook() + local names={code='PBZ_RD_Code',hook='PBZ_RD_Hook',original='PBZ_RD_Original', + block='PBZ_RD_Block',parry='PBZ_RD_Parry',config='PBZ_RD_Config'} + local out={};local count=0 + for k,n in pairs(names) do local a=getAddressSafe(n);if a and a~=0 then out[k]=a;count=count+1 end end + if count==0 then return end + if count~=6 then error('Return Defense: restore symbols are incomplete') end + for _,k in ipairs({'original','block','parry','config'}) do + if out[k]=out.code+0x2000 then error('Return Defense: symbol outside its allocation') end + end + if readQword(out.config)~=0x50425A5245543033 then error('Return Defense: incompatible hook version') end + if readInteger(out.config+8)~=getOpenedProcessID() then error('Return Defense: process changed; refusing writes') end + local b=readBytes(out.hook,14,true) + if not b or #b~=14 or b[1]~=0xFF or b[2]~=0x25 or b[3]~=0 or b[4]~=0 or b[5]~=0 or b[6]~=0 + or readQword(out.hook+6)~=out.code then error('Return Defense: jump ownership changed') end + local original=readBytes(out.original,14,true) + local expected={0x48,0x8B,0x42,0x20,0x4D,0x8B,0xC8,0x48,0x8B,0x08,0x48,0x83,0xC0,0x08} + if not original or #original~=14 then error('Return Defense: saved bytes unreadable') end + for i=1,14 do if original[i]~=expected[i] then error('Return Defense: original bytes mismatch') end end + local tail=readBytes(out.hook+14,11,true) + local expectedTail={0x48,0x89,0x42,0x20,0x48,0x8B,0x82,0x80,0,0,0} + if not tail or #tail~=11 then error('Return Defense: continuation unreadable') end + for i=1,11 do if tail[i]~=expectedTail[i] then error('Return Defense: continuation changed') end end + out.blockValue=readBytes(out.block,1);out.parryValue=readBytes(out.parry,1) + if (out.blockValue~=0 and out.blockValue~=1) or (out.parryValue~=0 and out.parryValue~=1) then error('Return Defense: invalid mode flags') end + return out +end +local mode='block' +local existing=inspectReturnHook() +if existing then + if existing[mode..'Value']~=0 then error('This Auto Defense mode is already enabled') end + return ('%X:\n db 1\n'):format(existing[mode]) +end +if rawget(_G,'PBZ_AutoDefense') or (getAddressSafe('PBZ_AP_Code') or 0)~=0 or (getAddressSafe('PBZ_ID_Code') or 0)~=0 then + error('Disable the previous defense entries before using return-based v3') +end +local signatures={world="48 8B 05 ?? ?? ?? ?? 48 85 C0 75 ?? 80 3D ?? ?? ?? ?? 02 72 ?? 48 8D 15 ?? ?? ?? ?? 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? 33 C0 48 83 C4 20 5B C3",names="89 03 48 8B C3 89 7B 04 48 8B 5C 24 48 48 83 C4 30 5F C3 80 3D ?? ?? ?? ?? 00 74 09 48 8D 05 ?? ?? ?? ?? EB 13 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? C6 05 ?? ?? ?? ?? 01 0F 28 44 24 20",executor="48 8B 42 20 4D 8B C8 48 8B 08 48 83 C0 08 48 89 42 20 48 8B 82 80 00 00 00 48 89 4A 30 48 39 08 74 ?? 48 8B 40 10 48 39 08 75 ?? 4C 8B 40 08 4C 89 42 38 4D 85 C9"} +local state={pid=getOpenedProcessID(),nameCache={},classCache={}} +local function ptr(p) return type(p)=='number' and p>0x10000 and p<0x7FFFFFFFFFFF end +local function q(p) return ptr(p) and readQword(p) or nil end +local function finite(x) return type(x)=='number' and x==x and math.abs(x)<1e12 end +local function vector(p) + if not ptr(p) then return end + local x,y,z=readDouble(p),readDouble(p+8),readDouble(p+16) + if finite(x) and finite(y) and finite(z) then return {x,y,z} end +end +local function array(p,limit) + local data,num,cap=q(p),readInteger(p+8),readInteger(p+12) + if not num or not cap or num>limit or cap1000000 then return end + if num>0 and not ptr(data) then return end + return data,num +end +local function exactString(p,n,wide) + local bytes=readBytes(p,n*(wide and 2 or 1),true) + if not bytes or #bytes~=n*(wide and 2 or 1) then return '' end + if not wide then return string.char(table.unpack(bytes)) end + local chars={};local i=1 + while i<=#bytes do + local unit=bytes[i]+bytes[i+1]*256;i=i+2 + if unit>=0xD800 and unit<=0xDBFF and i<#bytes then + local low=bytes[i]+bytes[i+1]*256 + if low>=0xDC00 and low<=0xDFFF then unit=0x10000+(unit-0xD800)*1024+low-0xDC00;i=i+2 + else unit=0xFFFD end + elseif unit>=0xD800 and unit<=0xDFFF then unit=0xFFFD end + if unit==0 then break end + chars[#chars+1]=utf8.char(unit) + end + return table.concat(chars) +end +local function fname(p) + local id=readInteger(p) + if not id then return '' end + local text=state.nameCache[id] + if not text then + local block=id>>16 + if block>8191 then return '' end + local b=q(state.namePool+0x10+block*8) + if not ptr(b) then return '' end + local entry=b+(id&0xFFFF)*2 + local h=readSmallInteger(entry) + if not h then return '' end + local n=h>>6 + if n<1 or n>1023 then return '' end + text=exactString(entry+2,n,(h&1)~=0) + if not text then return '' end + state.nameCache[id]=text + end + local number=readInteger(p+4) + if number and number>0 then text=text..'_'..tostring(number-1) end + return text +end +local function fstring(p) + local data,n=array(p,1024) + if not data or n<2 then return '' end + return exactString(data,n-1,true) +end +local function meta(cl) + if not ptr(cl) then return end + local nameId=q(cl+0x18) + local super=q(cl+0x40) + if not nameId or super==nil then return end + local old=state.classCache[cl] + if old and old.nameId==nameId and old.super==super then return old end + local m={nameId=nameId,super=super,name=fname(cl+0x18)} + state.classCache[cl]=m + return m +end +local function properties(cl) + local m=meta(cl);if not m then return {} end + if m.fields then return m.fields end + local fields={};local f=q(cl+0x50);local seen={} + for i=1,512 do + if not ptr(f) or seen[f] then break end + seen[f]=true + local off,size=readInteger(f+0x44),readInteger(f+0x34) + if off and off<0x100000 and size and size<0x100000 then + fields[fname(f+0x20)]={address=f,offset=off,size=size,type=q(f+0x70), + byte=readBytes(f+0x71,1),mask=readBytes(f+0x72,1)} + end + f=q(f+0x10) + end + m.fields=fields;return fields +end +local function field(cl,name,required) + local seen={} + for i=1,32 do + if not ptr(cl) or seen[cl] then break end + seen[cl]=true + local p=properties(cl)[name];if p then return p end + local m=meta(cl);cl=m and m.super + end + if required then error('Missing reflected field: '..name) end +end +local function offset(cl,name) return field(cl,name,true).offset end +local function classOf(a) return q(a+0x10) end +local function nativeFunction(cl,name) + local visited={} + for i=1,32 do + if not ptr(cl) or visited[cl] then break end + visited[cl]=true + local f=q(cl+0x48);local seen={} + for j=1,1024 do + if not ptr(f) or seen[f] then break end + seen[f]=true + if fname(f+0x18)==name then return q(f+0x128) end + f=q(f+0x28) + end + local m=meta(cl);cl=m and m.super + end +end +local function flag(a,f) + if not f or not f.byte or not f.mask then return false end + local b=readBytes(a+f.offset+f.byte,1) + return b and (b&f.mask)~=0 +end +local function uniqueScan(pattern) + local scan=createMemScan();local found=createFoundList(scan) + local ok,result=pcall(function() + local base=getAddress('PBZ.exe') + scan.firstScan(soExactValue,vtByteArray,rtRounded,pattern,'',base,base+getModuleSize('PBZ.exe')-1, + '+X',fsmNotAligned,'1',true,false,false,false) + scan.waitTillDone();found.initialize() + if found.Count~=1 then error('ESP signature expected 1 match; found '..found.Count) end + return getAddress(found.Address[0]) + end) + found.destroy();scan.destroy() + if not ok then error(result) end + return result +end +local wr=uniqueScan(signatures.world) +local worldSlot=wr+7+readInteger(wr+3,true) +local nr=uniqueScan(signatures.names)+0x1C +state.namePool=nr+7+readInteger(nr+3,true) +local function derives(cl,name) + local seen={} + for i=1,32 do + if not ptr(cl) or seen[cl] then return end;seen[cl]=true + if fname(cl+0x18)==name then return cl end + cl=q(cl+0x40) + end +end +local function functionObject(cl,name) + local seen={} + for d=1,32 do + if not ptr(cl) or seen[cl] then return end;seen[cl]=true + local f=q(cl+0x48);local visited={} + for i=1,2048 do + if not ptr(f) or visited[f] then break end;visited[f]=true + if fname(f+0x18)==name then return f end + f=q(f+0x28) + end + cl=q(cl+0x40) + end +end +local world=q(worldSlot);assert(ptr(world),'Load a save before enabling Auto Defense') +local giOffset=offset(classOf(world),'OwningGameInstance') +local gi=q(world+giOffset);assert(ptr(gi),'No local game instance') +local playersOffset=offset(classOf(gi),'LocalPlayers') +local players,n=array(gi+playersOffset,8);assert(players and n>0,'No local player') +local lp=q(players);assert(ptr(lp),'No first local player') +local controllerOffset=offset(classOf(lp),'PlayerController') +local pc=q(lp+controllerOffset);assert(ptr(pc),'No local controller') +local pawnOffset=offset(classOf(pc),'Pawn');local pawn=q(pc+pawnOffset) +assert(ptr(pawn) and derives(classOf(pawn),'BP_Player_Base_C'),'No supported local pawn') +local asc=q(pawn+offset(classOf(pawn),'AbilitySystemComponent')) +assert(ptr(asc) and q(asc+0x20)==pawn,'No locally owned ability system') +local container=field(classOf(asc),'ActivatableAbilities',true) +local items=field(container.type,'Items',true) +local inner=q(items.address+0x78) +local specType=ptr(inner) and q(inner+0x70) +local stride=ptr(inner) and readInteger(inner+0x34) +assert(ptr(specType) and stride and stride>=0x40 and stride<=0x1000,'Unsupported ability spec layout') +local specs,count=array(asc+container.offset+items.offset,1024) +assert(specs and count>0,'No granted abilities') +local canClass,resultClass,canFunction,resultFunction,ownerOffset +for i=0,count-1 do + local ability=q(specs+i*stride+offset(specType,'Ability')) + local cl=ptr(ability) and classOf(ability) + if ptr(cl) then + local passive=derives(cl,'BP_PlayerDeflectPassive_C') + local stance=derives(cl,'BP_StanceAction_Base_Player_C') + if passive then canClass=passive;canFunction=functionObject(cl,'Can Activate Ability On Frame') end + if stance then resultClass=stance;resultFunction=functionObject(cl,'Get Deflect Result') end + if passive or stance then + local f=field(cl,'CharacterBase',true) + assert(f.size==8 and (not ownerOffset or ownerOffset==f.offset),'Incompatible ability owner layout') + ownerOffset=f.offset + end + end +end +assert(canClass and resultClass and canFunction and resultFunction,'Equip a supported stance weapon first') +local canReturn=field(canFunction,'ReturnValue',true) +local resultReturn=field(resultFunction,'ReturnValue',true) +assert(canReturn.size==1 and canReturn.byte==0 and canReturn.mask==1,'Incoming-frame return ABI changed') +assert(resultReturn.size==8 and ptr(resultReturn.type) and fname(resultReturn.type+0x18)=='GameplayTag','Deflect result ABI changed') +assert(q(canFunction+0x128)==q(resultFunction+0x128),'Defense queries no longer share the expected script dispatcher') +local script,num=array(resultFunction+0xB0,100000) +assert(script and num>13,'Missing deflect result bytecode') +local bytes=readBytes(script,num,true);local tags={} +for i=1,num-13 do + if bytes[i]==0x21 and q(script+i+4)==0 then + local name=fname(script+i) + if name=='Deflect.Result.Normal' or name=='Deflect.Result.Perfect' then tags[name]=readInteger(script+i) end + end +end +assert(tags['Deflect.Result.Normal'] and tags['Deflect.Result.Perfect'],'Expected normal/perfect result tags not found') +local hook=uniqueScan(signatures.executor) +local cfg={hook=hook,worldSlot=worldSlot,gi=giOffset,players=playersOffset, + controller=controllerOffset,pawn=pawnOffset,owner=ownerOffset, + canName=q(canFunction+0x18),resultName=q(resultFunction+0x18), + canClassName=q(canClass+0x18),resultClassName=q(resultClass+0x18), + normalTag=tags['Deflect.Result.Normal'],perfectTag=tags['Deflect.Result.Perfect']} +local returnName +for _,f in ipairs({canFunction,resultFunction}) do + local start,n=array(f+0xB0,100000) + assert(start and n>=11,'Missing defense query return expression') + local operand=start+n-9 + assert(readBytes(operand-2,1)==4 and readBytes(operand-1,1)==0x48 and readBytes(operand+8,1)==0x53,'Unsupported defense return expression') + local property=q(operand) + assert(ptr(property) and fname(property+0x20)=='ReturnValue','Defense return operand changed') + local name=q(property+0x20) + assert(not returnName or name==returnName,'Mismatched ReturnValue field names') + returnName=name +end +cfg.returnName=returnName +local definitions={} +local function define(k,v) definitions[#definitions+1]=('define(PBZ_RD_%s,%X)'):format(k,v) end +define('Hook',cfg.hook);define('WorldSlot',cfg.worldSlot);define('GI',cfg.gi) +define('Players',cfg.players);define('Controller',cfg.controller);define('Pawn',cfg.pawn) +define('Owner',cfg.owner);define('PID',state.pid);define('CanNameValue',cfg.canName) +define('ResultNameValue',cfg.resultName);define('CanClassValue',cfg.canClassName) +define('ResultClassValue',cfg.resultClassName);define('ReturnNameValue',cfg.returnName) +define('NormalValue',cfg.normalTag);define('PerfectValue',cfg.perfectTag) +define('BlockInitial',mode=='block' and 1 or 0);define('ParryInitial',mode=='parry' and 1 or 0) +return table.concat(definitions,'\n')..'\n'..[====[ +alloc(PBZ_RD_Code,$2000) +label(PBZ_RD_Original) +label(PBZ_RD_Block) +label(PBZ_RD_Parry) +label(PBZ_RD_Config) +label(PBZ_RD_CanName) +label(PBZ_RD_ResultName) +label(PBZ_RD_CanClass) +label(PBZ_RD_ResultClass) +label(PBZ_RD_ReturnName) +label(PBZ_RD_Normal) +label(PBZ_RD_Perfect) +label(PBZ_RD_Eligible) +label(PBZ_RD_Blocks) +label(PBZ_RD_Parries) +label(PBZ_RD_Pass) +label(PBZ_RD_Can) +label(PBZ_RD_Result) +label(PBZ_RD_Tail) +label(PBZ_RD_CheckResultSize) +label(PBZ_RD_Class) +label(PBZ_RD_ClassLoop) +label(PBZ_RD_ResultClassCheck) +label(PBZ_RD_NextClass) +label(PBZ_RD_Local) +label(PBZ_RD_OutLoop) +label(PBZ_RD_Value) +label(PBZ_RD_ResultValue) +label(PBZ_RD_UseNormal) +registersymbol(PBZ_RD_Hook) +registersymbol(PBZ_RD_Code) +registersymbol(PBZ_RD_Original) +registersymbol(PBZ_RD_Block) +registersymbol(PBZ_RD_Parry) +registersymbol(PBZ_RD_Config) +registersymbol(PBZ_RD_Eligible) +registersymbol(PBZ_RD_Blocks) +registersymbol(PBZ_RD_Parries) +PBZ_RD_Code: + pushfq + push rax + push r9 + push r10 + push r11 + cmp word ptr [PBZ_RD_Block],0 + je PBZ_RD_Pass + test rdx,rdx + je PBZ_RD_Pass + test r8,r8 + je PBZ_RD_Pass + cmp [rdx+18],rcx + jne PBZ_RD_Pass + mov rax,[rdx+10] + test rax,rax + je PBZ_RD_Pass + mov r10,[rax+18] + cmp r10,[PBZ_RD_CanName] + je PBZ_RD_Can + cmp r10,[PBZ_RD_ResultName] + je PBZ_RD_Result + jmp PBZ_RD_Pass +PBZ_RD_Can: + mov r9d,1 + jmp PBZ_RD_Tail +PBZ_RD_Result: + mov r9d,2 +PBZ_RD_Tail: + mov r10,[rdx+20] + mov r11,[rax+B0] + test r11,r11 + je PBZ_RD_Pass + mov eax,[rax+B8] + cmp eax,B + jb PBZ_RD_Pass + cmp eax,186A0 + ja PBZ_RD_Pass + add r11,rax + sub r11,9 + cmp r10,r11 + jne PBZ_RD_Pass + cmp word ptr [r10-2],4804 + jne PBZ_RD_Pass + cmp byte ptr [r10+8],53 + jne PBZ_RD_Pass + mov r11,[r10] + test r11,r11 + je PBZ_RD_Pass + mov rax,[r11+20] + cmp rax,[PBZ_RD_ReturnName] + jne PBZ_RD_Pass + cmp r9d,1 + jne PBZ_RD_CheckResultSize + cmp dword ptr [r11+34],1 + jne PBZ_RD_Pass + jmp PBZ_RD_Class +PBZ_RD_CheckResultSize: + cmp dword ptr [r11+34],8 + jne PBZ_RD_Pass +PBZ_RD_Class: + mov rax,[rcx+10] + mov r10d,20 +PBZ_RD_ClassLoop: + test rax,rax + je PBZ_RD_Pass + mov r11,[rax+18] + cmp r9d,1 + jne PBZ_RD_ResultClassCheck + cmp r11,[PBZ_RD_CanClass] + je PBZ_RD_Local + jmp PBZ_RD_NextClass +PBZ_RD_ResultClassCheck: + cmp r11,[PBZ_RD_ResultClass] + je PBZ_RD_Local +PBZ_RD_NextClass: + mov rax,[rax+40] + dec r10d + jne PBZ_RD_ClassLoop + jmp PBZ_RD_Pass +PBZ_RD_Local: + mov r11,PBZ_RD_WorldSlot + mov rax,[r11] + test rax,rax + je PBZ_RD_Pass + mov rax,[rax+PBZ_RD_GI] + test rax,rax + je PBZ_RD_Pass + cmp dword ptr [rax+PBZ_RD_Players+8],1 + jl PBZ_RD_Pass + cmp dword ptr [rax+PBZ_RD_Players+8],8 + ja PBZ_RD_Pass + mov rax,[rax+PBZ_RD_Players] + test rax,rax + je PBZ_RD_Pass + mov rax,[rax] + test rax,rax + je PBZ_RD_Pass + mov rax,[rax+PBZ_RD_Controller] + test rax,rax + je PBZ_RD_Pass + mov rax,[rax+PBZ_RD_Pawn] + test rax,rax + je PBZ_RD_Pass + cmp [rcx+PBZ_RD_Owner],rax + jne PBZ_RD_Pass + mov r11,[rdx+20] + mov r11,[r11] + mov r10,[rdx+80] + mov eax,40 +PBZ_RD_OutLoop: + test r10,r10 + je PBZ_RD_Pass + cmp [r10],r11 + je PBZ_RD_Value + mov r10,[r10+10] + dec eax + jne PBZ_RD_OutLoop + jmp PBZ_RD_Pass +PBZ_RD_Value: + mov r10,[r10+8] + test r10,r10 + je PBZ_RD_Pass + cmp r9d,1 + jne PBZ_RD_ResultValue + mov byte ptr [r10],1 + lock inc qword ptr [PBZ_RD_Eligible] + jmp PBZ_RD_Pass +PBZ_RD_ResultValue: + cmp byte ptr [PBZ_RD_Parry],0 + je PBZ_RD_UseNormal + mov rax,[PBZ_RD_Perfect] + mov [r10],rax + lock inc qword ptr [PBZ_RD_Parries] + jmp PBZ_RD_Pass +PBZ_RD_UseNormal: + mov rax,[PBZ_RD_Normal] + mov [r10],rax + lock inc qword ptr [PBZ_RD_Blocks] +PBZ_RD_Pass: + pop r11 + pop r10 + pop r9 + pop rax + popfq + readmem(PBZ_RD_Hook,$0E) + db FF 25 00 00 00 00 + dq PBZ_RD_Hook+0E +align 10 +PBZ_RD_Original: + readmem(PBZ_RD_Hook,$0E) +align 8 +PBZ_RD_Config: + dq 50425A5245543033 + dd PBZ_RD_PID + dd 0 +PBZ_RD_Block: + db PBZ_RD_BlockInitial +PBZ_RD_Parry: + db PBZ_RD_ParryInitial +align 8 +PBZ_RD_CanName: + dq PBZ_RD_CanNameValue +PBZ_RD_ResultName: + dq PBZ_RD_ResultNameValue +PBZ_RD_CanClass: + dq PBZ_RD_CanClassValue +PBZ_RD_ResultClass: + dq PBZ_RD_ResultClassValue +PBZ_RD_ReturnName: + dq PBZ_RD_ReturnNameValue +PBZ_RD_Normal: + dq PBZ_RD_NormalValue +PBZ_RD_Perfect: + dq PBZ_RD_PerfectValue +PBZ_RD_Eligible: + dq 0 +PBZ_RD_Blocks: + dq 0 +PBZ_RD_Parries: + dq 0 +PBZ_RD_Hook: + db FF 25 00 00 00 00 + dq PBZ_RD_Code +]====] +{$asm} +[DISABLE] +{$lua} +if syntaxcheck then return end +local function inspectReturnHook() + local names={code='PBZ_RD_Code',hook='PBZ_RD_Hook',original='PBZ_RD_Original', + block='PBZ_RD_Block',parry='PBZ_RD_Parry',config='PBZ_RD_Config'} + local out={};local count=0 + for k,n in pairs(names) do local a=getAddressSafe(n);if a and a~=0 then out[k]=a;count=count+1 end end + if count==0 then return end + if count~=6 then error('Return Defense: restore symbols are incomplete') end + for _,k in ipairs({'original','block','parry','config'}) do + if out[k]=out.code+0x2000 then error('Return Defense: symbol outside its allocation') end + end + if readQword(out.config)~=0x50425A5245543033 then error('Return Defense: incompatible hook version') end + if readInteger(out.config+8)~=getOpenedProcessID() then error('Return Defense: process changed; refusing writes') end + local b=readBytes(out.hook,14,true) + if not b or #b~=14 or b[1]~=0xFF or b[2]~=0x25 or b[3]~=0 or b[4]~=0 or b[5]~=0 or b[6]~=0 + or readQword(out.hook+6)~=out.code then error('Return Defense: jump ownership changed') end + local original=readBytes(out.original,14,true) + local expected={0x48,0x8B,0x42,0x20,0x4D,0x8B,0xC8,0x48,0x8B,0x08,0x48,0x83,0xC0,0x08} + if not original or #original~=14 then error('Return Defense: saved bytes unreadable') end + for i=1,14 do if original[i]~=expected[i] then error('Return Defense: original bytes mismatch') end end + local tail=readBytes(out.hook+14,11,true) + local expectedTail={0x48,0x89,0x42,0x20,0x48,0x8B,0x82,0x80,0,0,0} + if not tail or #tail~=11 then error('Return Defense: continuation unreadable') end + for i=1,11 do if tail[i]~=expectedTail[i] then error('Return Defense: continuation changed') end end + out.blockValue=readBytes(out.block,1);out.parryValue=readBytes(out.parry,1) + if (out.blockValue~=0 and out.blockValue~=1) or (out.parryValue~=0 and out.parryValue~=1) then error('Return Defense: invalid mode flags') end + return out +end +local mode='block' +local existing=inspectReturnHook() +if not existing then error('Return Defense: missing restore state; no code changed') end +if existing[mode..'Value']~=1 then error('Return Defense: this mode is not owned by the entry') end +local other=mode=='block' and 'parry' or 'block' +if existing[other..'Value']==1 then return ('%X:\n db 0\n'):format(existing[mode]) end +return ('%X:\n readmem(%X,$0E)\n'):format(existing.hook,existing.original)..[====[ +unregistersymbol(PBZ_RD_Hook) +unregistersymbol(PBZ_RD_Code) +unregistersymbol(PBZ_RD_Original) +unregistersymbol(PBZ_RD_Block) +unregistersymbol(PBZ_RD_Parry) +unregistersymbol(PBZ_RD_Config) +unregistersymbol(PBZ_RD_Eligible) +unregistersymbol(PBZ_RD_Blocks) +unregistersymbol(PBZ_RD_Parries) +dealloc(PBZ_RD_Code) +]====] +{$asm} diff --git a/runtime/resources/scripts/7.aa b/runtime/resources/scripts/7.aa new file mode 100644 index 0000000..fccaf17 --- /dev/null +++ b/runtime/resources/scripts/7.aa @@ -0,0 +1,550 @@ +[ENABLE] +{$lua} +local function inspectReturnHook() + local names={code='PBZ_RD_Code',hook='PBZ_RD_Hook',original='PBZ_RD_Original', + block='PBZ_RD_Block',parry='PBZ_RD_Parry',config='PBZ_RD_Config'} + local out={};local count=0 + for k,n in pairs(names) do local a=getAddressSafe(n);if a and a~=0 then out[k]=a;count=count+1 end end + if count==0 then return end + if count~=6 then error('Return Defense: restore symbols are incomplete') end + for _,k in ipairs({'original','block','parry','config'}) do + if out[k]=out.code+0x2000 then error('Return Defense: symbol outside its allocation') end + end + if readQword(out.config)~=0x50425A5245543033 then error('Return Defense: incompatible hook version') end + if readInteger(out.config+8)~=getOpenedProcessID() then error('Return Defense: process changed; refusing writes') end + local b=readBytes(out.hook,14,true) + if not b or #b~=14 or b[1]~=0xFF or b[2]~=0x25 or b[3]~=0 or b[4]~=0 or b[5]~=0 or b[6]~=0 + or readQword(out.hook+6)~=out.code then error('Return Defense: jump ownership changed') end + local original=readBytes(out.original,14,true) + local expected={0x48,0x8B,0x42,0x20,0x4D,0x8B,0xC8,0x48,0x8B,0x08,0x48,0x83,0xC0,0x08} + if not original or #original~=14 then error('Return Defense: saved bytes unreadable') end + for i=1,14 do if original[i]~=expected[i] then error('Return Defense: original bytes mismatch') end end + local tail=readBytes(out.hook+14,11,true) + local expectedTail={0x48,0x89,0x42,0x20,0x48,0x8B,0x82,0x80,0,0,0} + if not tail or #tail~=11 then error('Return Defense: continuation unreadable') end + for i=1,11 do if tail[i]~=expectedTail[i] then error('Return Defense: continuation changed') end end + out.blockValue=readBytes(out.block,1);out.parryValue=readBytes(out.parry,1) + if (out.blockValue~=0 and out.blockValue~=1) or (out.parryValue~=0 and out.parryValue~=1) then error('Return Defense: invalid mode flags') end + return out +end +local mode='parry' +local existing=inspectReturnHook() +if existing then + if existing[mode..'Value']~=0 then error('This Auto Defense mode is already enabled') end + return ('%X:\n db 1\n'):format(existing[mode]) +end +if rawget(_G,'PBZ_AutoDefense') or (getAddressSafe('PBZ_AP_Code') or 0)~=0 or (getAddressSafe('PBZ_ID_Code') or 0)~=0 then + error('Disable the previous defense entries before using return-based v3') +end +local signatures={world="48 8B 05 ?? ?? ?? ?? 48 85 C0 75 ?? 80 3D ?? ?? ?? ?? 02 72 ?? 48 8D 15 ?? ?? ?? ?? 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? 33 C0 48 83 C4 20 5B C3",names="89 03 48 8B C3 89 7B 04 48 8B 5C 24 48 48 83 C4 30 5F C3 80 3D ?? ?? ?? ?? 00 74 09 48 8D 05 ?? ?? ?? ?? EB 13 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? C6 05 ?? ?? ?? ?? 01 0F 28 44 24 20",executor="48 8B 42 20 4D 8B C8 48 8B 08 48 83 C0 08 48 89 42 20 48 8B 82 80 00 00 00 48 89 4A 30 48 39 08 74 ?? 48 8B 40 10 48 39 08 75 ?? 4C 8B 40 08 4C 89 42 38 4D 85 C9"} +local state={pid=getOpenedProcessID(),nameCache={},classCache={}} +local function ptr(p) return type(p)=='number' and p>0x10000 and p<0x7FFFFFFFFFFF end +local function q(p) return ptr(p) and readQword(p) or nil end +local function finite(x) return type(x)=='number' and x==x and math.abs(x)<1e12 end +local function vector(p) + if not ptr(p) then return end + local x,y,z=readDouble(p),readDouble(p+8),readDouble(p+16) + if finite(x) and finite(y) and finite(z) then return {x,y,z} end +end +local function array(p,limit) + local data,num,cap=q(p),readInteger(p+8),readInteger(p+12) + if not num or not cap or num>limit or cap1000000 then return end + if num>0 and not ptr(data) then return end + return data,num +end +local function exactString(p,n,wide) + local bytes=readBytes(p,n*(wide and 2 or 1),true) + if not bytes or #bytes~=n*(wide and 2 or 1) then return '' end + if not wide then return string.char(table.unpack(bytes)) end + local chars={};local i=1 + while i<=#bytes do + local unit=bytes[i]+bytes[i+1]*256;i=i+2 + if unit>=0xD800 and unit<=0xDBFF and i<#bytes then + local low=bytes[i]+bytes[i+1]*256 + if low>=0xDC00 and low<=0xDFFF then unit=0x10000+(unit-0xD800)*1024+low-0xDC00;i=i+2 + else unit=0xFFFD end + elseif unit>=0xD800 and unit<=0xDFFF then unit=0xFFFD end + if unit==0 then break end + chars[#chars+1]=utf8.char(unit) + end + return table.concat(chars) +end +local function fname(p) + local id=readInteger(p) + if not id then return '' end + local text=state.nameCache[id] + if not text then + local block=id>>16 + if block>8191 then return '' end + local b=q(state.namePool+0x10+block*8) + if not ptr(b) then return '' end + local entry=b+(id&0xFFFF)*2 + local h=readSmallInteger(entry) + if not h then return '' end + local n=h>>6 + if n<1 or n>1023 then return '' end + text=exactString(entry+2,n,(h&1)~=0) + if not text then return '' end + state.nameCache[id]=text + end + local number=readInteger(p+4) + if number and number>0 then text=text..'_'..tostring(number-1) end + return text +end +local function fstring(p) + local data,n=array(p,1024) + if not data or n<2 then return '' end + return exactString(data,n-1,true) +end +local function meta(cl) + if not ptr(cl) then return end + local nameId=q(cl+0x18) + local super=q(cl+0x40) + if not nameId or super==nil then return end + local old=state.classCache[cl] + if old and old.nameId==nameId and old.super==super then return old end + local m={nameId=nameId,super=super,name=fname(cl+0x18)} + state.classCache[cl]=m + return m +end +local function properties(cl) + local m=meta(cl);if not m then return {} end + if m.fields then return m.fields end + local fields={};local f=q(cl+0x50);local seen={} + for i=1,512 do + if not ptr(f) or seen[f] then break end + seen[f]=true + local off,size=readInteger(f+0x44),readInteger(f+0x34) + if off and off<0x100000 and size and size<0x100000 then + fields[fname(f+0x20)]={address=f,offset=off,size=size,type=q(f+0x70), + byte=readBytes(f+0x71,1),mask=readBytes(f+0x72,1)} + end + f=q(f+0x10) + end + m.fields=fields;return fields +end +local function field(cl,name,required) + local seen={} + for i=1,32 do + if not ptr(cl) or seen[cl] then break end + seen[cl]=true + local p=properties(cl)[name];if p then return p end + local m=meta(cl);cl=m and m.super + end + if required then error('Missing reflected field: '..name) end +end +local function offset(cl,name) return field(cl,name,true).offset end +local function classOf(a) return q(a+0x10) end +local function nativeFunction(cl,name) + local visited={} + for i=1,32 do + if not ptr(cl) or visited[cl] then break end + visited[cl]=true + local f=q(cl+0x48);local seen={} + for j=1,1024 do + if not ptr(f) or seen[f] then break end + seen[f]=true + if fname(f+0x18)==name then return q(f+0x128) end + f=q(f+0x28) + end + local m=meta(cl);cl=m and m.super + end +end +local function flag(a,f) + if not f or not f.byte or not f.mask then return false end + local b=readBytes(a+f.offset+f.byte,1) + return b and (b&f.mask)~=0 +end +local function uniqueScan(pattern) + local scan=createMemScan();local found=createFoundList(scan) + local ok,result=pcall(function() + local base=getAddress('PBZ.exe') + scan.firstScan(soExactValue,vtByteArray,rtRounded,pattern,'',base,base+getModuleSize('PBZ.exe')-1, + '+X',fsmNotAligned,'1',true,false,false,false) + scan.waitTillDone();found.initialize() + if found.Count~=1 then error('ESP signature expected 1 match; found '..found.Count) end + return getAddress(found.Address[0]) + end) + found.destroy();scan.destroy() + if not ok then error(result) end + return result +end +local wr=uniqueScan(signatures.world) +local worldSlot=wr+7+readInteger(wr+3,true) +local nr=uniqueScan(signatures.names)+0x1C +state.namePool=nr+7+readInteger(nr+3,true) +local function derives(cl,name) + local seen={} + for i=1,32 do + if not ptr(cl) or seen[cl] then return end;seen[cl]=true + if fname(cl+0x18)==name then return cl end + cl=q(cl+0x40) + end +end +local function functionObject(cl,name) + local seen={} + for d=1,32 do + if not ptr(cl) or seen[cl] then return end;seen[cl]=true + local f=q(cl+0x48);local visited={} + for i=1,2048 do + if not ptr(f) or visited[f] then break end;visited[f]=true + if fname(f+0x18)==name then return f end + f=q(f+0x28) + end + cl=q(cl+0x40) + end +end +local world=q(worldSlot);assert(ptr(world),'Load a save before enabling Auto Defense') +local giOffset=offset(classOf(world),'OwningGameInstance') +local gi=q(world+giOffset);assert(ptr(gi),'No local game instance') +local playersOffset=offset(classOf(gi),'LocalPlayers') +local players,n=array(gi+playersOffset,8);assert(players and n>0,'No local player') +local lp=q(players);assert(ptr(lp),'No first local player') +local controllerOffset=offset(classOf(lp),'PlayerController') +local pc=q(lp+controllerOffset);assert(ptr(pc),'No local controller') +local pawnOffset=offset(classOf(pc),'Pawn');local pawn=q(pc+pawnOffset) +assert(ptr(pawn) and derives(classOf(pawn),'BP_Player_Base_C'),'No supported local pawn') +local asc=q(pawn+offset(classOf(pawn),'AbilitySystemComponent')) +assert(ptr(asc) and q(asc+0x20)==pawn,'No locally owned ability system') +local container=field(classOf(asc),'ActivatableAbilities',true) +local items=field(container.type,'Items',true) +local inner=q(items.address+0x78) +local specType=ptr(inner) and q(inner+0x70) +local stride=ptr(inner) and readInteger(inner+0x34) +assert(ptr(specType) and stride and stride>=0x40 and stride<=0x1000,'Unsupported ability spec layout') +local specs,count=array(asc+container.offset+items.offset,1024) +assert(specs and count>0,'No granted abilities') +local canClass,resultClass,canFunction,resultFunction,ownerOffset +for i=0,count-1 do + local ability=q(specs+i*stride+offset(specType,'Ability')) + local cl=ptr(ability) and classOf(ability) + if ptr(cl) then + local passive=derives(cl,'BP_PlayerDeflectPassive_C') + local stance=derives(cl,'BP_StanceAction_Base_Player_C') + if passive then canClass=passive;canFunction=functionObject(cl,'Can Activate Ability On Frame') end + if stance then resultClass=stance;resultFunction=functionObject(cl,'Get Deflect Result') end + if passive or stance then + local f=field(cl,'CharacterBase',true) + assert(f.size==8 and (not ownerOffset or ownerOffset==f.offset),'Incompatible ability owner layout') + ownerOffset=f.offset + end + end +end +assert(canClass and resultClass and canFunction and resultFunction,'Equip a supported stance weapon first') +local canReturn=field(canFunction,'ReturnValue',true) +local resultReturn=field(resultFunction,'ReturnValue',true) +assert(canReturn.size==1 and canReturn.byte==0 and canReturn.mask==1,'Incoming-frame return ABI changed') +assert(resultReturn.size==8 and ptr(resultReturn.type) and fname(resultReturn.type+0x18)=='GameplayTag','Deflect result ABI changed') +assert(q(canFunction+0x128)==q(resultFunction+0x128),'Defense queries no longer share the expected script dispatcher') +local script,num=array(resultFunction+0xB0,100000) +assert(script and num>13,'Missing deflect result bytecode') +local bytes=readBytes(script,num,true);local tags={} +for i=1,num-13 do + if bytes[i]==0x21 and q(script+i+4)==0 then + local name=fname(script+i) + if name=='Deflect.Result.Normal' or name=='Deflect.Result.Perfect' then tags[name]=readInteger(script+i) end + end +end +assert(tags['Deflect.Result.Normal'] and tags['Deflect.Result.Perfect'],'Expected normal/perfect result tags not found') +local hook=uniqueScan(signatures.executor) +local cfg={hook=hook,worldSlot=worldSlot,gi=giOffset,players=playersOffset, + controller=controllerOffset,pawn=pawnOffset,owner=ownerOffset, + canName=q(canFunction+0x18),resultName=q(resultFunction+0x18), + canClassName=q(canClass+0x18),resultClassName=q(resultClass+0x18), + normalTag=tags['Deflect.Result.Normal'],perfectTag=tags['Deflect.Result.Perfect']} +local returnName +for _,f in ipairs({canFunction,resultFunction}) do + local start,n=array(f+0xB0,100000) + assert(start and n>=11,'Missing defense query return expression') + local operand=start+n-9 + assert(readBytes(operand-2,1)==4 and readBytes(operand-1,1)==0x48 and readBytes(operand+8,1)==0x53,'Unsupported defense return expression') + local property=q(operand) + assert(ptr(property) and fname(property+0x20)=='ReturnValue','Defense return operand changed') + local name=q(property+0x20) + assert(not returnName or name==returnName,'Mismatched ReturnValue field names') + returnName=name +end +cfg.returnName=returnName +local definitions={} +local function define(k,v) definitions[#definitions+1]=('define(PBZ_RD_%s,%X)'):format(k,v) end +define('Hook',cfg.hook);define('WorldSlot',cfg.worldSlot);define('GI',cfg.gi) +define('Players',cfg.players);define('Controller',cfg.controller);define('Pawn',cfg.pawn) +define('Owner',cfg.owner);define('PID',state.pid);define('CanNameValue',cfg.canName) +define('ResultNameValue',cfg.resultName);define('CanClassValue',cfg.canClassName) +define('ResultClassValue',cfg.resultClassName);define('ReturnNameValue',cfg.returnName) +define('NormalValue',cfg.normalTag);define('PerfectValue',cfg.perfectTag) +define('BlockInitial',mode=='block' and 1 or 0);define('ParryInitial',mode=='parry' and 1 or 0) +return table.concat(definitions,'\n')..'\n'..[====[ +alloc(PBZ_RD_Code,$2000) +label(PBZ_RD_Original) +label(PBZ_RD_Block) +label(PBZ_RD_Parry) +label(PBZ_RD_Config) +label(PBZ_RD_CanName) +label(PBZ_RD_ResultName) +label(PBZ_RD_CanClass) +label(PBZ_RD_ResultClass) +label(PBZ_RD_ReturnName) +label(PBZ_RD_Normal) +label(PBZ_RD_Perfect) +label(PBZ_RD_Eligible) +label(PBZ_RD_Blocks) +label(PBZ_RD_Parries) +label(PBZ_RD_Pass) +label(PBZ_RD_Can) +label(PBZ_RD_Result) +label(PBZ_RD_Tail) +label(PBZ_RD_CheckResultSize) +label(PBZ_RD_Class) +label(PBZ_RD_ClassLoop) +label(PBZ_RD_ResultClassCheck) +label(PBZ_RD_NextClass) +label(PBZ_RD_Local) +label(PBZ_RD_OutLoop) +label(PBZ_RD_Value) +label(PBZ_RD_ResultValue) +label(PBZ_RD_UseNormal) +registersymbol(PBZ_RD_Hook) +registersymbol(PBZ_RD_Code) +registersymbol(PBZ_RD_Original) +registersymbol(PBZ_RD_Block) +registersymbol(PBZ_RD_Parry) +registersymbol(PBZ_RD_Config) +registersymbol(PBZ_RD_Eligible) +registersymbol(PBZ_RD_Blocks) +registersymbol(PBZ_RD_Parries) +PBZ_RD_Code: + pushfq + push rax + push r9 + push r10 + push r11 + cmp word ptr [PBZ_RD_Block],0 + je PBZ_RD_Pass + test rdx,rdx + je PBZ_RD_Pass + test r8,r8 + je PBZ_RD_Pass + cmp [rdx+18],rcx + jne PBZ_RD_Pass + mov rax,[rdx+10] + test rax,rax + je PBZ_RD_Pass + mov r10,[rax+18] + cmp r10,[PBZ_RD_CanName] + je PBZ_RD_Can + cmp r10,[PBZ_RD_ResultName] + je PBZ_RD_Result + jmp PBZ_RD_Pass +PBZ_RD_Can: + mov r9d,1 + jmp PBZ_RD_Tail +PBZ_RD_Result: + mov r9d,2 +PBZ_RD_Tail: + mov r10,[rdx+20] + mov r11,[rax+B0] + test r11,r11 + je PBZ_RD_Pass + mov eax,[rax+B8] + cmp eax,B + jb PBZ_RD_Pass + cmp eax,186A0 + ja PBZ_RD_Pass + add r11,rax + sub r11,9 + cmp r10,r11 + jne PBZ_RD_Pass + cmp word ptr [r10-2],4804 + jne PBZ_RD_Pass + cmp byte ptr [r10+8],53 + jne PBZ_RD_Pass + mov r11,[r10] + test r11,r11 + je PBZ_RD_Pass + mov rax,[r11+20] + cmp rax,[PBZ_RD_ReturnName] + jne PBZ_RD_Pass + cmp r9d,1 + jne PBZ_RD_CheckResultSize + cmp dword ptr [r11+34],1 + jne PBZ_RD_Pass + jmp PBZ_RD_Class +PBZ_RD_CheckResultSize: + cmp dword ptr [r11+34],8 + jne PBZ_RD_Pass +PBZ_RD_Class: + mov rax,[rcx+10] + mov r10d,20 +PBZ_RD_ClassLoop: + test rax,rax + je PBZ_RD_Pass + mov r11,[rax+18] + cmp r9d,1 + jne PBZ_RD_ResultClassCheck + cmp r11,[PBZ_RD_CanClass] + je PBZ_RD_Local + jmp PBZ_RD_NextClass +PBZ_RD_ResultClassCheck: + cmp r11,[PBZ_RD_ResultClass] + je PBZ_RD_Local +PBZ_RD_NextClass: + mov rax,[rax+40] + dec r10d + jne PBZ_RD_ClassLoop + jmp PBZ_RD_Pass +PBZ_RD_Local: + mov r11,PBZ_RD_WorldSlot + mov rax,[r11] + test rax,rax + je PBZ_RD_Pass + mov rax,[rax+PBZ_RD_GI] + test rax,rax + je PBZ_RD_Pass + cmp dword ptr [rax+PBZ_RD_Players+8],1 + jl PBZ_RD_Pass + cmp dword ptr [rax+PBZ_RD_Players+8],8 + ja PBZ_RD_Pass + mov rax,[rax+PBZ_RD_Players] + test rax,rax + je PBZ_RD_Pass + mov rax,[rax] + test rax,rax + je PBZ_RD_Pass + mov rax,[rax+PBZ_RD_Controller] + test rax,rax + je PBZ_RD_Pass + mov rax,[rax+PBZ_RD_Pawn] + test rax,rax + je PBZ_RD_Pass + cmp [rcx+PBZ_RD_Owner],rax + jne PBZ_RD_Pass + mov r11,[rdx+20] + mov r11,[r11] + mov r10,[rdx+80] + mov eax,40 +PBZ_RD_OutLoop: + test r10,r10 + je PBZ_RD_Pass + cmp [r10],r11 + je PBZ_RD_Value + mov r10,[r10+10] + dec eax + jne PBZ_RD_OutLoop + jmp PBZ_RD_Pass +PBZ_RD_Value: + mov r10,[r10+8] + test r10,r10 + je PBZ_RD_Pass + cmp r9d,1 + jne PBZ_RD_ResultValue + mov byte ptr [r10],1 + lock inc qword ptr [PBZ_RD_Eligible] + jmp PBZ_RD_Pass +PBZ_RD_ResultValue: + cmp byte ptr [PBZ_RD_Parry],0 + je PBZ_RD_UseNormal + mov rax,[PBZ_RD_Perfect] + mov [r10],rax + lock inc qword ptr [PBZ_RD_Parries] + jmp PBZ_RD_Pass +PBZ_RD_UseNormal: + mov rax,[PBZ_RD_Normal] + mov [r10],rax + lock inc qword ptr [PBZ_RD_Blocks] +PBZ_RD_Pass: + pop r11 + pop r10 + pop r9 + pop rax + popfq + readmem(PBZ_RD_Hook,$0E) + db FF 25 00 00 00 00 + dq PBZ_RD_Hook+0E +align 10 +PBZ_RD_Original: + readmem(PBZ_RD_Hook,$0E) +align 8 +PBZ_RD_Config: + dq 50425A5245543033 + dd PBZ_RD_PID + dd 0 +PBZ_RD_Block: + db PBZ_RD_BlockInitial +PBZ_RD_Parry: + db PBZ_RD_ParryInitial +align 8 +PBZ_RD_CanName: + dq PBZ_RD_CanNameValue +PBZ_RD_ResultName: + dq PBZ_RD_ResultNameValue +PBZ_RD_CanClass: + dq PBZ_RD_CanClassValue +PBZ_RD_ResultClass: + dq PBZ_RD_ResultClassValue +PBZ_RD_ReturnName: + dq PBZ_RD_ReturnNameValue +PBZ_RD_Normal: + dq PBZ_RD_NormalValue +PBZ_RD_Perfect: + dq PBZ_RD_PerfectValue +PBZ_RD_Eligible: + dq 0 +PBZ_RD_Blocks: + dq 0 +PBZ_RD_Parries: + dq 0 +PBZ_RD_Hook: + db FF 25 00 00 00 00 + dq PBZ_RD_Code +]====] +{$asm} +[DISABLE] +{$lua} +if syntaxcheck then return end +local function inspectReturnHook() + local names={code='PBZ_RD_Code',hook='PBZ_RD_Hook',original='PBZ_RD_Original', + block='PBZ_RD_Block',parry='PBZ_RD_Parry',config='PBZ_RD_Config'} + local out={};local count=0 + for k,n in pairs(names) do local a=getAddressSafe(n);if a and a~=0 then out[k]=a;count=count+1 end end + if count==0 then return end + if count~=6 then error('Return Defense: restore symbols are incomplete') end + for _,k in ipairs({'original','block','parry','config'}) do + if out[k]=out.code+0x2000 then error('Return Defense: symbol outside its allocation') end + end + if readQword(out.config)~=0x50425A5245543033 then error('Return Defense: incompatible hook version') end + if readInteger(out.config+8)~=getOpenedProcessID() then error('Return Defense: process changed; refusing writes') end + local b=readBytes(out.hook,14,true) + if not b or #b~=14 or b[1]~=0xFF or b[2]~=0x25 or b[3]~=0 or b[4]~=0 or b[5]~=0 or b[6]~=0 + or readQword(out.hook+6)~=out.code then error('Return Defense: jump ownership changed') end + local original=readBytes(out.original,14,true) + local expected={0x48,0x8B,0x42,0x20,0x4D,0x8B,0xC8,0x48,0x8B,0x08,0x48,0x83,0xC0,0x08} + if not original or #original~=14 then error('Return Defense: saved bytes unreadable') end + for i=1,14 do if original[i]~=expected[i] then error('Return Defense: original bytes mismatch') end end + local tail=readBytes(out.hook+14,11,true) + local expectedTail={0x48,0x89,0x42,0x20,0x48,0x8B,0x82,0x80,0,0,0} + if not tail or #tail~=11 then error('Return Defense: continuation unreadable') end + for i=1,11 do if tail[i]~=expectedTail[i] then error('Return Defense: continuation changed') end end + out.blockValue=readBytes(out.block,1);out.parryValue=readBytes(out.parry,1) + if (out.blockValue~=0 and out.blockValue~=1) or (out.parryValue~=0 and out.parryValue~=1) then error('Return Defense: invalid mode flags') end + return out +end +local mode='parry' +local existing=inspectReturnHook() +if not existing then error('Return Defense: missing restore state; no code changed') end +if existing[mode..'Value']~=1 then error('Return Defense: this mode is not owned by the entry') end +local other=mode=='block' and 'parry' or 'block' +if existing[other..'Value']==1 then return ('%X:\n db 0\n'):format(existing[mode]) end +return ('%X:\n readmem(%X,$0E)\n'):format(existing.hook,existing.original)..[====[ +unregistersymbol(PBZ_RD_Hook) +unregistersymbol(PBZ_RD_Code) +unregistersymbol(PBZ_RD_Original) +unregistersymbol(PBZ_RD_Block) +unregistersymbol(PBZ_RD_Parry) +unregistersymbol(PBZ_RD_Config) +unregistersymbol(PBZ_RD_Eligible) +unregistersymbol(PBZ_RD_Blocks) +unregistersymbol(PBZ_RD_Parries) +dealloc(PBZ_RD_Code) +]====] +{$asm} diff --git a/runtime/resources/scripts/8.aa b/runtime/resources/scripts/8.aa new file mode 100644 index 0000000..b32834c --- /dev/null +++ b/runtime/resources/scripts/8.aa @@ -0,0 +1,295 @@ +[ENABLE] +{$lua} +local signatures={paint="48 89 5C 24 08 48 89 6C 24 10 48 89 74 24 18 57 41 54 41 55 41 56 41 57 48 83 EC 40 8B 84 24 98 00 00 00 49 8B F1 44 0F B6 BC 24 A8 00 00 00 49 8B E8 4C 8B A4 24 A0 00 00 00 4C 8B F2 4C 8B AC 24 90 00 00 00 48 8B F9 44 88 7C 24 38 4C 89 64 24 30 89 44 24 28 4C 89 6C 24 20 E8 ?? ?? ?? ?? 48 8B 8F ?? ?? ?? ?? 8B D8 48 85 C9 74 37 E8 ?? ?? ?? ??",objects="44 8B 49 04 45 85 C9 74 ?? 8B 01 85 C0 78 ?? 3B 05 ?? ?? ?? ?? 7D ?? 8B C8 0F B7 C0 48 C1 E9 10 48 8D 14 40 48 8B 05 ?? ?? ?? ?? 48 8B 0C C8 4C 8D 04 D1",world="48 8B 05 ?? ?? ?? ?? 48 85 C0 75 ?? 80 3D ?? ?? ?? ?? 02 72 ?? 48 8D 15 ?? ?? ?? ?? 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? 33 C0 48 83 C4 20 5B C3",names="89 03 48 8B C3 89 7B 04 48 8B 5C 24 48 48 83 C4 30 5F C3 80 3D ?? ?? ?? ?? 00 74 09 48 8D 05 ?? ?? ?? ?? EB 13 48 8D 0D ?? ?? ?? ?? E8 ?? ?? ?? ?? C6 05 ?? ?? ?? ?? 01 0F 28 44 24 20"} +local state={pid=getOpenedProcessID(),nameCache={},classCache={}} +local function ptr(p) return type(p)=='number' and p>0x10000 and p<0x7FFFFFFFFFFF end +local function q(p) return ptr(p) and readQword(p) or nil end +local function finite(x) return type(x)=='number' and x==x and math.abs(x)<1e12 end +local function vector(p) + if not ptr(p) then return end + local x,y,z=readDouble(p),readDouble(p+8),readDouble(p+16) + if finite(x) and finite(y) and finite(z) then return {x,y,z} end +end +local function array(p,limit) + local data,num,cap=q(p),readInteger(p+8),readInteger(p+12) + if not num or not cap or num>limit or cap1000000 then return end + if num>0 and not ptr(data) then return end + return data,num +end +local function exactString(p,n,wide) + local bytes=readBytes(p,n*(wide and 2 or 1),true) + if not bytes or #bytes~=n*(wide and 2 or 1) then return '' end + if not wide then return string.char(table.unpack(bytes)) end + local chars={};local i=1 + while i<=#bytes do + local unit=bytes[i]+bytes[i+1]*256;i=i+2 + if unit>=0xD800 and unit<=0xDBFF and i<#bytes then + local low=bytes[i]+bytes[i+1]*256 + if low>=0xDC00 and low<=0xDFFF then unit=0x10000+(unit-0xD800)*1024+low-0xDC00;i=i+2 + else unit=0xFFFD end + elseif unit>=0xD800 and unit<=0xDFFF then unit=0xFFFD end + if unit==0 then break end + chars[#chars+1]=utf8.char(unit) + end + return table.concat(chars) +end +local function fname(p) + local id=readInteger(p) + if not id then return '' end + local text=state.nameCache[id] + if not text then + local block=id>>16 + if block>8191 then return '' end + local b=q(state.namePool+0x10+block*8) + if not ptr(b) then return '' end + local entry=b+(id&0xFFFF)*2 + local h=readSmallInteger(entry) + if not h then return '' end + local n=h>>6 + if n<1 or n>1023 then return '' end + text=exactString(entry+2,n,(h&1)~=0) + if not text then return '' end + state.nameCache[id]=text + end + local number=readInteger(p+4) + if number and number>0 then text=text..'_'..tostring(number-1) end + return text +end +local function fstring(p) + local data,n=array(p,1024) + if not data or n<2 then return '' end + return exactString(data,n-1,true) +end +local function meta(cl) + if not ptr(cl) then return end + local nameId=q(cl+0x18) + local super=q(cl+0x40) + if not nameId or super==nil then return end + local old=state.classCache[cl] + if old and old.nameId==nameId and old.super==super then return old end + local m={nameId=nameId,super=super,name=fname(cl+0x18)} + state.classCache[cl]=m + return m +end +local function properties(cl) + local m=meta(cl);if not m then return {} end + if m.fields then return m.fields end + local fields={};local f=q(cl+0x50);local seen={} + for i=1,512 do + if not ptr(f) or seen[f] then break end + seen[f]=true + local off,size=readInteger(f+0x44),readInteger(f+0x34) + if off and off<0x100000 and size and size<0x100000 then + fields[fname(f+0x20)]={offset=off,size=size,type=q(f+0x70), + byte=readBytes(f+0x71,1),mask=readBytes(f+0x72,1)} + end + f=q(f+0x10) + end + m.fields=fields;return fields +end +local function field(cl,name,required) + local seen={} + for i=1,32 do + if not ptr(cl) or seen[cl] then break end + seen[cl]=true + local p=properties(cl)[name];if p then return p end + local m=meta(cl);cl=m and m.super + end + if required then error('Missing reflected field: '..name) end +end +local function offset(cl,name) return field(cl,name,true).offset end +local function classOf(a) return q(a+0x10) end +local function nativeFunction(cl,name) + local visited={} + for i=1,32 do + if not ptr(cl) or visited[cl] then break end + visited[cl]=true + local f=q(cl+0x48);local seen={} + for j=1,1024 do + if not ptr(f) or seen[f] then break end + seen[f]=true + if fname(f+0x18)==name then return q(f+0x128) end + f=q(f+0x28) + end + local m=meta(cl);cl=m and m.super + end +end +local function flag(a,f) + if not f or not f.byte or not f.mask then return false end + local b=readBytes(a+f.offset+f.byte,1) + return b and (b&f.mask)~=0 +end +local function uniqueScan(pattern) + local scan=createMemScan();local found=createFoundList(scan) + local ok,result=pcall(function() + local base=getAddress('PBZ.exe') + scan.firstScan(soExactValue,vtByteArray,rtRounded,pattern,'',base,base+getModuleSize('PBZ.exe')-1, + '+X',fsmNotAligned,'1',true,false,false,false) + scan.waitTillDone();found.initialize() + if found.Count~=1 then error('ESP signature expected 1 match; found '..found.Count) end + return getAddress(found.Address[0]) + end) + found.destroy();scan.destroy() + if not ok then error(result) end + return result +end +local paint=uniqueScan(signatures.paint) +local weak=uniqueScan(signatures.objects) +local worldRef=uniqueScan(signatures.world) +local worldSlot=worldRef+7+readInteger(worldRef+3,true) +local poolRef=uniqueScan(signatures.names)+0x1C +state.namePool=poolRef+7+readInteger(poolRef+3,true) +local chunksSlot=weak+0x2B+readInteger(weak+0x27,true) +local countSlot=weak+0x15+readInteger(weak+0x11,true) +local chunks,num=q(chunksSlot),readInteger(countSlot) +if not ptr(chunks) or not num or num<1 or num>8000000 then error('Map Fog: unsupported object-array layout') end +local rootClass;local names={};local chunkCache={} +for i=0,num-1 do + local block=i>>16;local base=chunkCache[block] + if not base then base=q(chunks+block*8);chunkCache[block]=base end + if ptr(base) then + local item=base+(i&0xFFFF)*24 + local flags=readInteger(item+4) + if flags and (flags&0x10200000)==0 then + local a=q(item+8) + if ptr(a) and readInteger(a+0xC)==i then + local cl=classOf(a) + if ptr(cl) then + local n=names[cl] + if not n then n=fname(cl+0x18);names[cl]=n end + if n=='WB_MapNew_C' then rootClass=cl;break end + end + end + end + end +end +if not rootClass then error('Open the in-game map once, then enable Disable Map Fog again') end +local region=field(rootClass,'MaskWidgetInstance',true) +local overview=field(rootClass,'W_MapMask_BigMap',true) +if region.size~=8 or overview.size~=8 or region.offset==overview.offset then error('Map Fog: unsupported fog widget fields') end +local world=q(worldSlot) +if not ptr(world) then error('Load a save before enabling Disable Map Fog') end +local giOffset=offset(classOf(world),'OwningGameInstance') +local gi=q(world+giOffset) +if not ptr(gi) then error('Map Fog: local game instance unavailable') end +local ownerOffset=readInteger(paint+0x63) +if not ownerOffset or ownerOffset<0x100 or ownerOffset>0x1000 then error('Map Fog: unsupported Slate owner layout') end +local bytes=readBytes(paint,15,true) +local expected={0x48,0x89,0x5C,0x24,8,0x48,0x89,0x6C,0x24,0x10,0x48,0x89,0x74,0x24,0x18} +if not bytes then error('Map Fog: paint entry is unreadable') end +for i=1,15 do if bytes[i]~=expected[i] then error('Map Fog: paint prologue changed') end end +local cfg={paint=paint,worldSlot=worldSlot,giOffset=giOffset,ownerOffset=ownerOffset, + rootName=q(rootClass+0x18),regionOffset=region.offset,overviewOffset=overview.offset} +local definitions={} +local function define(name,value) definitions[#definitions+1]=('define(%s,%X)'):format(name,value) end +define('PBZ_MF_Paint',cfg.paint);define('PBZ_MF_WorldSlot',cfg.worldSlot) +define('PBZ_MF_GI',cfg.giOffset);define('PBZ_MF_WidgetObject',cfg.ownerOffset) +define('PBZ_MF_MapRootName',cfg.rootName);define('PBZ_MF_RegionMask',cfg.regionOffset) +define('PBZ_MF_OverviewMask',cfg.overviewOffset) +return table.concat(definitions,'\n')..'\n'..[====[ +alloc(PBZ_MF_Code,$2000) +label(PBZ_MF_Original) +label(PBZ_MF_RootName) +label(PBZ_MF_HiddenPaints) +label(PBZ_MF_Pass) +label(PBZ_MF_Owner) +label(PBZ_MF_Walk) +label(PBZ_MF_Hide) +registersymbol(PBZ_MF_Code) +registersymbol(PBZ_MF_Original) +registersymbol(PBZ_MF_HiddenPaints) +registersymbol(PBZ_MF_Paint) +PBZ_MF_Code: + pushfq + push rax + push r10 + push r11 + mov r11,[rcx+PBZ_MF_WidgetObject] + test r11,r11 + je PBZ_MF_Pass + mov rax,[r11+20] + test rax,rax + je PBZ_MF_Pass + mov rax,[rax+20] + test rax,rax + je PBZ_MF_Pass + mov r10,[rax+10] + test r10,r10 + je PBZ_MF_Pass + mov r10,[r10+18] + cmp r10,[PBZ_MF_RootName] + jne PBZ_MF_Pass + cmp [rax+PBZ_MF_RegionMask],r11 + je PBZ_MF_Owner + cmp [rax+PBZ_MF_OverviewMask],r11 + jne PBZ_MF_Pass +PBZ_MF_Owner: + mov r10,PBZ_MF_WorldSlot + mov r10,[r10] + test r10,r10 + je PBZ_MF_Pass + mov r10,[r10+PBZ_MF_GI] + test r10,r10 + je PBZ_MF_Pass + mov r11d,20 +PBZ_MF_Walk: + cmp rax,r10 + je PBZ_MF_Hide + mov rax,[rax+20] + test rax,rax + je PBZ_MF_Pass + dec r11d + jne PBZ_MF_Walk + jmp PBZ_MF_Pass +PBZ_MF_Hide: + lock inc qword ptr [PBZ_MF_HiddenPaints] + pop r11 + pop r10 + pop rax + popfq + mov eax,[rsp+30] + ret +PBZ_MF_Pass: + pop r11 + pop r10 + pop rax + popfq + readmem(PBZ_MF_Paint,$0F) + db FF 25 00 00 00 00 + dq PBZ_MF_Paint+0F +align 10 +PBZ_MF_Original: + readmem(PBZ_MF_Paint,$0F) +align 8 +PBZ_MF_RootName: + dq PBZ_MF_MapRootName +PBZ_MF_HiddenPaints: + dq 0 +PBZ_MF_Paint: + db FF 25 00 00 00 00 + dq PBZ_MF_Code + nop +]====] +{$asm} +[DISABLE] +{$lua} +if syntaxcheck then return end +local hook=getAddressSafe('PBZ_MF_Paint') +local code=getAddressSafe('PBZ_MF_Code') +local original=getAddressSafe('PBZ_MF_Original') +if not hook or hook==0 or not code or code==0 or not original or original==0 then error('Map Fog restore symbols are missing; keep state for repair') end +local h=readBytes(hook,6,true) +if not h or h[1]~=0xFF or h[2]~=0x25 or h[3]~=0 or h[4]~=0 or h[5]~=0 or h[6]~=0 + or readQword(hook+6)~=code then error('Map Fog hook ownership changed; refusing an unverified restore') end +local expected={0x48,0x89,0x5C,0x24,8,0x48,0x89,0x6C,0x24,0x10,0x48,0x89,0x74,0x24,0x18} +local b=readBytes(original,15,true) +if not b or #b~=15 then error('Map Fog original instruction buffer is unreadable') end +for i=1,15 do if b[i]~=expected[i] then error('Map Fog saved instruction bytes do not match') end end +return ('%X:\n readmem(%X,$0F)\n'):format(hook,original)..[====[ +dealloc(PBZ_MF_Code) +unregistersymbol(PBZ_MF_Paint) +unregistersymbol(PBZ_MF_HiddenPaints) +unregistersymbol(PBZ_MF_Original) +unregistersymbol(PBZ_MF_Code) +]====] +{$asm} diff --git a/src/AccessorySelectionWindow.cs b/src/AccessorySelectionWindow.cs new file mode 100644 index 0000000..6270931 --- /dev/null +++ b/src/AccessorySelectionWindow.cs @@ -0,0 +1,72 @@ +using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Windows;using System.Windows.Controls;using System.Windows.Media;using System.Windows.Media.Imaging;using System.Windows.Threading; +namespace PBZ { + public sealed class AccessoryChoice { + public string Id,Name,Description;public bool Owned=true;public bool Equipped,Selected; + } + public sealed class AccessorySelectionWindow:Window,IDisposable { + readonly List choices;readonly HashSet selected=new HashSet(StringComparer.Ordinal),submitted=new HashSet(StringComparer.Ordinal); + readonly Action apply;readonly Func readStatus;readonly Func busy;readonly Func> refresh;DateTime nextRefresh=DateTime.MinValue; + readonly TextBox search;readonly ListBox list;readonly TextBlock count,status;readonly Button applyButton,clearButton,multiButton,selectVisibleButton;readonly Dictionary boxes=new Dictionary(StringComparer.Ordinal);bool multiMode,syncing;readonly DispatcherTimer timer=new DispatcherTimer();bool disposed; + public int OwnedCount{get{return choices.Count(x=>x.Owned);}} + public bool MultiSelectMode{get{return multiMode;}} + public int FilteredCount{get{return list.Items.Count;}} + public string[] SelectedIds{get{return selected.OrderBy(x=>x,StringComparer.Ordinal).ToArray();}} + public AccessorySelectionWindow(IEnumerable owned,Action submit,Func state,Func pending,bool preview,Func> rows=null){ + choices=owned.OrderBy(x=>x.Name,StringComparer.CurrentCulture).ToList(); + if(choices.Any(x=>String.IsNullOrEmpty(x.Id)||String.IsNullOrEmpty(x.Name))||choices.Select(x=>x.Id).Distinct(StringComparer.Ordinal).Count()!=choices.Count)throw new Exception("饰品列表有缺失或重复的ID"); + foreach(var item in choices)if(item.Selected){selected.Add(item.Id);submitted.Add(item.Id);} + multiMode=selected.Count>1; + refresh=rows;apply=submit;readStatus=state;busy=pending;Title=preview?"饰品多选 · 离线预览":"饰品多选";Width=920;Height=740;MinWidth=760;MinHeight=550;WindowStartupLocation=WindowStartupLocation.CenterOwner;Background=Theme.Background;Foreground=Theme.Text;FontFamily=new FontFamily("Microsoft YaHei UI");FontSize=13; + var grid=new Grid{Margin=new Thickness(26)};Content=grid;grid.RowDefinitions.Add(new RowDefinition{Height=GridLength.Auto});grid.RowDefinitions.Add(new RowDefinition{Height=GridLength.Auto});grid.RowDefinitions.Add(new RowDefinition{Height=new GridLength(1,GridUnitType.Star)});grid.RowDefinitions.Add(new RowDefinition{Height=GridLength.Auto}); + var heading=new StackPanel();grid.Children.Add(heading);heading.Children.Add(Theme.Label("选择同时生效的饰品",24,Theme.Text));heading.Children.Add(new TextBlock{Text="扫描完整饰品目录;点击“多选”后勾选多件,再点击“应用所选”。原本已装备的饰品保留。",Foreground=Theme.Muted,TextWrapping=TextWrapping.Wrap,Margin=new Thickness(0,10,0,14)}); + if(preview)heading.Children.Add(new Border{Background=Theme.Panel,BorderBrush=Theme.Accent,BorderThickness=new Thickness(1),Padding=new Thickness(12,9,12,9),Margin=new Thickness(0,0,0,12),Child=Theme.Label("离线界面预览:下方为示例饰品,不代表当前存档;不会向游戏写入。",12,Theme.Accent)}); + heading.Children.Add(new TextBlock{Text="未获得的饰品应用时会加入背包;取消选择只撤销额外效果;游戏内删除后不会自动补回。",Foreground=Theme.Accent,TextWrapping=TextWrapping.Wrap,FontSize=12,Margin=new Thickness(0,0,0,12)}); + var filter=new StackPanel{Margin=new Thickness(0,0,0,12)};Grid.SetRow(filter,1);grid.Children.Add(filter);search=new TextBox{Padding=new Thickness(10,8,10,8),Foreground=Theme.Text,Background=Theme.Panel,BorderBrush=Theme.Line,CaretBrush=Theme.Accent,ToolTip="按饰品中文名称或ID搜索"};filter.Children.Add(Theme.Label("搜索饰品中文名称或 ID",12,Theme.Muted));search.Margin=new Thickness(0,6,0,0);filter.Children.Add(search);count=Theme.Label("",12,Theme.Muted);count.Margin=new Thickness(0,9,0,0);filter.Children.Add(count);var modes=new StackPanel{Orientation=Orientation.Horizontal,Margin=new Thickness(0,10,0,0)};multiButton=Theme.Button(multiMode?"完成多选":"多选");selectVisibleButton=Theme.Button("全选当前结果");selectVisibleButton.Margin=new Thickness(10,0,0,0);modes.Children.Add(multiButton);modes.Children.Add(selectVisibleButton);filter.Children.Add(modes); + list=new ListBox{Background=Theme.Background,Foreground=Theme.Text,BorderBrush=Theme.Line,BorderThickness=new Thickness(1),HorizontalContentAlignment=HorizontalAlignment.Stretch,Padding=new Thickness(5)};ScrollViewer.SetHorizontalScrollBarVisibility(list,ScrollBarVisibility.Disabled);ScrollViewer.SetCanContentScroll(list,false);Grid.SetRow(list,2);grid.Children.Add(list); + var footer=new StackPanel{Margin=new Thickness(0,14,0,0)};Grid.SetRow(footer,3);grid.Children.Add(footer);status=new TextBlock{Text="尚未应用选择。",FontSize=12,Foreground=Theme.Accent,TextWrapping=TextWrapping.Wrap};footer.Children.Add(status); + var actions=new StackPanel{Orientation=Orientation.Horizontal,Margin=new Thickness(0,12,0,9)};footer.Children.Add(actions);applyButton=Theme.Button("应用所选");clearButton=Theme.Button("清空勾选");clearButton.Margin=new Thickness(10,0,0,0);actions.Children.Add(applyButton);actions.Children.Add(clearButton); + footer.Children.Add(new TextBlock{Text="取消勾选后再次应用可撤销额外效果。关闭窗口会保留选择;关闭主界面的功能才会清理额外效果。",FontSize=11,Foreground=Theme.Muted,TextWrapping=TextWrapping.Wrap}); + multiButton.Click+=delegate{ToggleMultiSelect();};selectVisibleButton.Click+=delegate{SelectVisible();}; + search.TextChanged+=delegate{RenderList();};applyButton.Click+=delegate{ApplySelection();};clearButton.Click+=delegate{if(IsBusy())return;selected.Clear();RenderList();}; + timer.Interval=TimeSpan.FromMilliseconds(250);timer.Tick+=delegate{UpdateStatus();};Closed+=delegate{disposed=true;timer.Stop();};RenderList();UpdateStatus();timer.Start(); + } + bool IsBusy(){return disposed||(busy!=null&&busy());} + void UpdateCount(){count.Text="完整目录 "+choices.Count+" 件 · 已拥有 "+choices.Count(x=>x.Owned)+" 件 · 显示 "+list.Items.Count+" 件 · 已勾选 "+selected.Count+" 件";} + void UpdateStatus(){if(disposed)return;try{bool waiting=IsBusy();foreach(var box in boxes.Values)box.IsEnabled=!waiting;applyButton.IsEnabled=!waiting&&apply!=null;clearButton.IsEnabled=!waiting;multiButton.IsEnabled=!waiting;selectVisibleButton.IsEnabled=!waiting&&multiMode;if(waiting)status.Text="正在处理,请稍候…";else{if(refresh!=null&&DateTime.UtcNow>=nextRefresh){RefreshCatalogue();nextRefresh=DateTime.UtcNow.AddSeconds(1);}if(readStatus!=null)status.Text=readStatus();}}catch(Exception e){status.Text=e.Message;applyButton.IsEnabled=false;}} + IEnumerable VisibleChoices(){var terms=(search.Text??"").Split((char[])null,StringSplitOptions.RemoveEmptyEntries);return choices.Where(x=>terms.All(t=>x.Name.IndexOf(t,StringComparison.OrdinalIgnoreCase)>=0||x.Id.IndexOf(t,StringComparison.OrdinalIgnoreCase)>=0));} + void SyncChecks(){syncing=true;try{foreach(var item in boxes)item.Value.IsChecked=selected.Contains(item.Key);}finally{syncing=false;}UpdateCount();} + public void ToggleMultiSelect(){if(IsBusy())return;multiMode=!multiMode;multiButton.Content=multiMode?"完成多选":"多选";UpdateStatus();} + public void SelectVisible(){if(IsBusy()||!multiMode)return;foreach(var item in VisibleChoices())selected.Add(item.Id);SyncChecks();} + public void SelectChoice(string id,bool check){if(!choices.Any(x=>x.Id==id))throw new Exception("饰品不在完整目录中");if(IsBusy()){SyncChecks();return;}if(check){if(!multiMode)selected.Clear();selected.Add(id);}else selected.Remove(id);SyncChecks();} + public void RefreshCatalogue(){ + if(IsBusy()||refresh==null)return;var items=refresh().OrderBy(x=>x.Name,StringComparer.CurrentCulture).ToList(); + if(items.Any(x=>String.IsNullOrEmpty(x.Id)||String.IsNullOrEmpty(x.Name))||items.Select(x=>x.Id).Distinct(StringComparer.Ordinal).Count()!=items.Count)throw new Exception("饰品刷新结果无效"); + bool selectionChanged=items.Any(x=>x.Selected!=submitted.Contains(x.Id)); + if(!selectionChanged&&items.Count==choices.Count&&items.Select((x,i)=>x.Id==choices[i].Id&&x.Owned==choices[i].Owned&&x.Equipped==choices[i].Equipped&&x.Name==choices[i].Name&&x.Description==choices[i].Description).All(x=>x))return; + foreach(var item in items)if(selected.Contains(item.Id)==submitted.Contains(item.Id)){if(item.Selected)selected.Add(item.Id);else selected.Remove(item.Id);} + submitted.Clear();foreach(var item in items)if(item.Selected)submitted.Add(item.Id); + choices.Clear();choices.AddRange(items);selected.IntersectWith(choices.Select(x=>x.Id));RenderList(); + } + void RenderList(){ + if(disposed)return;boxes.Clear();list.Items.Clear(); + foreach(var item in VisibleChoices()){ + var box=new CheckBox{IsChecked=selected.Contains(item.Id),Foreground=Theme.Text,VerticalContentAlignment=VerticalAlignment.Center,HorizontalAlignment=HorizontalAlignment.Stretch,HorizontalContentAlignment=HorizontalAlignment.Stretch,Margin=new Thickness(8,9,8,9),Tag=item.Id}; + var text=new StackPanel();text.Children.Add(new TextBlock{Text=item.Name,FontSize=15,Foreground=Theme.Text,TextWrapping=TextWrapping.Wrap});text.Children.Add(new TextBlock{Text=item.Id+(item.Equipped?" · 游戏内已装备":item.Owned?" · 已拥有":" · 未获得(应用时获取)"),Foreground=item.Equipped?Theme.Accent:Theme.Muted,FontSize=11,TextWrapping=TextWrapping.Wrap,Margin=new Thickness(0,4,0,4)}); + string description=item.Description??"";text.Children.Add(new TextBlock{Text=description,Foreground=Theme.Muted,FontSize=12,TextWrapping=TextWrapping.Wrap});box.Content=text;box.ToolTip=new TextBlock{Text=description,TextWrapping=TextWrapping.Wrap,MaxWidth=650}; + boxes[item.Id]=box;box.Checked+=delegate{if(!syncing)SelectChoice(item.Id,true);};box.Unchecked+=delegate{if(!syncing)SelectChoice(item.Id,false);}; + list.Items.Add(new ListBoxItem{Content=box,HorizontalContentAlignment=HorizontalAlignment.Stretch,Padding=new Thickness(5,1,5,1)}); + } + UpdateCount(); + } + public void SetFilter(string query){search.Text=query??"";} + public void SetSelected(IEnumerable ids){var next=new HashSet(ids,StringComparer.Ordinal);if(next.Any(id=>!choices.Any(x=>x.Id==id)))throw new Exception("选择包含目录中不存在的饰品");selected.Clear();selected.UnionWith(next);if(selected.Count>1)multiMode=true;multiButton.Content=multiMode?"完成多选":"多选";RenderList();UpdateStatus();} + public void ApplySelection(){if(IsBusy()||apply==null)return;try{var ids=SelectedIds;apply(ids);submitted.Clear();submitted.UnionWith(ids);UpdateStatus();}catch(Exception e){status.Text=e.Message;}} + public void SavePreview(string path){ + bool shown=IsVisible;if(!shown){WindowStartupLocation=WindowStartupLocation.Manual;Left=-10000;Top=-10000;ShowInTaskbar=false;Show();} + Dispatcher.Invoke(DispatcherPriority.ApplicationIdle,new Action(delegate{}));var content=(FrameworkElement)Content;content.UpdateLayout(); + if(content.ActualWidth<1||content.ActualHeight<1){double width=Math.Max(700,Width-70),height=Math.Max(500,Height-95);content.Measure(new Size(width,height));content.Arrange(new Rect(0,0,width,height));content.UpdateLayout();} + var bitmap=new RenderTargetBitmap((int)Math.Ceiling(content.ActualWidth)+52,(int)Math.Ceiling(content.ActualHeight)+52,96,96,PixelFormats.Pbgra32);var visual=new DrawingVisual();using(var dc=visual.RenderOpen()){dc.DrawRectangle(Theme.Background,null,new Rect(0,0,bitmap.PixelWidth,bitmap.PixelHeight));dc.DrawRectangle(new VisualBrush(content),null,new Rect(26,26,content.ActualWidth,content.ActualHeight));}bitmap.Render(visual);var png=new PngBitmapEncoder();png.Frames.Add(BitmapFrame.Create(bitmap));using(var file=File.Create(path))png.Save(file);if(!shown)Hide(); + } + public void Dispose(){if(disposed)return;disposed=true;timer.Stop();Close();} + } +} diff --git a/src/AccessorySettings.cs b/src/AccessorySettings.cs new file mode 100644 index 0000000..833b650 --- /dev/null +++ b/src/AccessorySettings.cs @@ -0,0 +1,22 @@ +using System;using System.Collections.Generic;using System.Linq;using System.Windows; +namespace PBZ {public sealed partial class MainWindow { + AccessorySelectionWindow accessoryWindow; + void CloseAccessorySettings(){var window=accessoryWindow;accessoryWindow=null;if(window!=null)window.Dispose();} + void AccessorySettings(){ + if(OperationBusy)return;var feature=features.First(x=>x.Id==1337142264);if(runtime==null||!feature.Active||feature.RecoveryRequired){MessageBox.Show("请先开启饰品多选并完成恢复操作。","饰品多选");return;} + if(accessoryWindow!=null){accessoryWindow.Activate();return;} + try{var window=new AccessorySelectionWindow(AccessoryCatalog.Read(runtime),delegate(string[] ids){if(OperationBusy||runtime==null||!feature.Active||feature.RecoveryRequired)throw new Exception("饰品功能未就绪");runtime.Call("SelectAccessoryIDs",String.Join("\n",ids));},delegate{return (string)runtime.Call("AccessoryUIMessage");},delegate{return OperationBusy||runtime==null||!feature.Active||(bool)runtime.Call("AccessoryPending");},false,delegate{return AccessoryCatalog.Read(runtime);}); + accessoryWindow=window;window.Owner=this;window.Closed+=delegate{if(Object.ReferenceEquals(accessoryWindow,window))accessoryWindow=null;};window.Show(); + }catch(Exception e){MessageBox.Show(e.Message,"无法读取饰品",MessageBoxButton.OK,MessageBoxImage.Warning);} + } + } + public static class AccessoryCatalog { + static string Text(IntPtr s,string key){L.lua_getfield(s,-1,key);string value=L.Text(s,-1);L.lua_settop(s,-2);return value;} + static bool Flag(IntPtr s,string key){L.lua_getfield(s,-1,key);bool value=L.lua_toboolean(s,-1)!=0;L.lua_settop(s,-2);return value;} + public static List Read(ScriptRuntime runtime){runtime.Call("RefreshAccessoryRows");IntPtr s=runtime.State;int top=L.lua_gettop(s);var result=new List();try{ + if(L.lua_getglobal(s,"PBZ_AccessoryRows")!=L.Table)throw new Exception("饰品列表尚未就绪");int count=checked((int)L.lua_rawlen(s,-1).ToUInt64());if(count>4096)throw new Exception("饰品列表数量异常"); + for(int i=1;i<=count;i++){L.lua_rawgeti(s,-1,i);result.Add(new AccessoryChoice{Id=Text(s,"id"),Name=Text(s,"name"),Description=Text(s,"description"),Owned=Flag(s,"owned"),Equipped=Flag(s,"equipped"),Selected=Flag(s,"selected")});L.lua_settop(s,-2);} + return result; + }finally{L.lua_settop(s,top);}} + } +} diff --git a/src/Assembler.cs b/src/Assembler.cs new file mode 100644 index 0000000..6461704 --- /dev/null +++ b/src/Assembler.cs @@ -0,0 +1,23 @@ +using System; +using System.IO; +using System.Runtime.InteropServices; +using System.Text; +namespace PBZ { + public sealed class Assembler { + [UnmanagedFunctionPointer(CallingConvention.StdCall)]delegate int AssembleDelegate(IntPtr source,IntPtr buffer,IntPtr size,int passes,IntPtr pipe); + readonly AssembleDelegate assemble;readonly object gate=new object(); + public Assembler(string directory){IntPtr dll=Native.LoadLibrary(Path.Combine(directory,"FASMX64.DLL"));if(dll==IntPtr.Zero)throw new Exception("无法加载独立汇编器:"+Marshal.GetLastWin32Error());IntPtr fn=Native.GetProcAddress(dll,"fasm_Assemble");if(fn==IntPtr.Zero)throw new Exception("汇编器入口不存在");assemble=(AssembleDelegate)Marshal.GetDelegateForFunctionPointer(fn,typeof(AssembleDelegate));} + public byte[] Compile(string source){lock(gate){ + byte[] text=Encoding.ASCII.GetBytes(source+"\0");IntPtr src=AllocateLow(text.Length);IntPtr buffer=AllocateLow(16*1024*1024); + try{Marshal.Copy(text,0,src,text.Length);int status=assemble(src,buffer,new IntPtr(16*1024*1024),100,IntPtr.Zero);if(status!=0){int code=Marshal.ReadInt32(buffer,4);long linePtr=(uint)Marshal.ReadInt32(buffer,8);int line=0;if(linePtr>=buffer.ToInt64()&&linePtr+12buffer.ToInt64()+16*1024*1024||count<0)throw new Exception("汇编器返回了无效缓冲区");byte[] data=new byte[count];Marshal.Copy(new IntPtr(p),data,0,count);return data; + }finally{Native.VirtualFreeEx(new IntPtr(-1),buffer,UIntPtr.Zero,0x8000);Native.VirtualFreeEx(new IntPtr(-1),src,UIntPtr.Zero,0x8000);} + }} + static IntPtr AllocateLow(int size){for(long at=0x10000000;at+size<0x7fff0000;at+=0x10000){Native.MBI info;if(Native.VirtualQueryEx(new IntPtr(-1),new IntPtr(at),out info,(UIntPtr)(uint)Marshal.SizeOf(typeof(Native.MBI)))==UIntPtr.Zero)break;if(info.State==0x10000&&info.RegionSize.ToUInt64()>=(ulong)size){IntPtr p=Native.VirtualAllocEx(new IntPtr(-1),new IntPtr(at),(UIntPtr)(uint)size,0x3000,4);if(p!=IntPtr.Zero)return p;}if(info.RegionSize.ToUInt64()>0x10000)at=Math.Max(at,((info.BaseAddress.ToInt64()+(long)info.RegionSize.ToUInt64()+0xffff)&~0xffffL)-0x10000);}throw new Exception("无法为汇编器分配低地址工作缓冲区");} + } + public static class AppPaths { + public static string Root=AppDomain.CurrentDomain.BaseDirectory; + public static string Logs{get{return Path.Combine(Root,"logs");}} + public static void Log(string text){try{Directory.CreateDirectory(Logs);File.AppendAllText(Path.Combine(Logs,"trainer.log"),DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff")+" "+text+Environment.NewLine);}catch{}} + } +} diff --git a/src/AssemblyInfo.cs b/src/AssemblyInfo.cs new file mode 100644 index 0000000..646feae --- /dev/null +++ b/src/AssemblyInfo.cs @@ -0,0 +1,6 @@ +using System.Reflection; +[assembly: AssemblyTitle("影之刃零独立修改器")] +[assembly: AssemblyDescription("本地离线单机工具;功能逻辑基于用户提供的 Send CT")] +[assembly: AssemblyProduct("Phantom Blade Zero Local Trainer")] +[assembly: AssemblyVersion("0.1.19.12")] +[assembly: AssemblyFileVersion("0.1.19.12")] diff --git a/src/BytePattern.cs b/src/BytePattern.cs new file mode 100644 index 0000000..f835948 --- /dev/null +++ b/src/BytePattern.cs @@ -0,0 +1,44 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +namespace PBZ { + public static class BytePattern { + public static string Normalize(string pattern) { + if(String.IsNullOrWhiteSpace(pattern))throw new FormatException("空的特征码"); + var bytes=new List(); + foreach(string token in pattern.Split((char[])null,StringSplitOptions.RemoveEmptyEntries)){ + string part=token=="?"||token=="*"?"??":token; + if(part.Length%2!=0)throw new FormatException("无效的特征码字节:"+token); + for(int i=0;i();int anchor=0; + for(int i=0;i(guard?120:100)||b>(guard?120:100)||(guard&&(a%1!=0||b%1!=0))){MessageBox.Show(guard?"请输入 1 到 120 之间的整数帧数。":"请输入 0 到 100 之间的有限数值,小数使用英文句点。");return;} + try{ + if(runtime==null||!memory.Alive||!feature.Active||feature.RecoveryRequired)throw new Exception("功能已停用或当前有待恢复操作。"); + runtime.Call(guard?"SetPerfectGuardFrames":"SetExecutionThresholds",a,b);notice.Text=feature.Name+"参数已应用;关闭功能可恢复。";window.Close(); + }catch(Exception e){MessageBox.Show(e.Message,"参数应用未完成",MessageBoxButton.OK,MessageBoxImage.Warning);} + }; + window.Show(); + } + void PerfectDodgeSettings(Feature feature){ + string current; + try{current=(string)runtime.Call("PerfectDodgeMilliseconds");}catch(Exception e){MessageBox.Show(e.Message,"暂不能读取窗口");return;} + var window=new Window{Title=feature.Name,Owner=this,Width=510,Height=380,ResizeMode=ResizeMode.NoResize,WindowStartupLocation=WindowStartupLocation.CenterOwner,Background=Theme.Background,Foreground=Theme.Text,FontFamily=FontFamily}; + var panel=new StackPanel{Margin=new Thickness(24)};window.Content=panel;panel.Children.Add(Theme.Label(feature.Name,20,Theme.Text)); + panel.Children.Add(new TextBlock{Text="调整普通闪避起手时的完美判定效果时长,使用共享效果配置。该效果带有闪避免伤标签,延长窗口可能同时延长免伤;动作结束也可能提前终止。特殊闪避未纳入。",TextWrapping=TextWrapping.Wrap,Foreground=Theme.Muted,Margin=new Thickness(0,10,0,14)}); + panel.Children.Add(Theme.Label("完美闪避窗口(50–1000 毫秒)",12,Theme.Text)); + var input=new TextBox{Text=current,Padding=new Thickness(9),Margin=new Thickness(0,7,0,14),Background=Theme.Panel,Foreground=Theme.Text,BorderBrush=Theme.Line,CaretBrush=Theme.Accent};panel.Children.Add(input); + panel.Children.Add(new TextBlock{Text="当前版本原始值为 150 毫秒。开启时沿用当前值,点击应用后才改变窗口;关闭时恢复开启前的值。",TextWrapping=TextWrapping.Wrap,Foreground=Theme.Muted,FontSize=11}); + var apply=Theme.Button("应用窗口时长");apply.Margin=new Thickness(0,18,0,0);panel.Children.Add(apply); + apply.Click+=delegate{ + if(OperationBusy)return;double value; + if(!Double.TryParse(input.Text,NumberStyles.Float,CultureInfo.InvariantCulture,out value)||Double.IsNaN(value)||Double.IsInfinity(value)||value<50||value>1000){MessageBox.Show("请输入 50 到 1000 之间的毫秒数,小数使用英文句点。");return;} + try{if(runtime==null||!memory.Alive||!feature.Active||feature.RecoveryRequired)throw new Exception("功能已停用或当前有待恢复操作。");runtime.Call("SetPerfectDodgeMilliseconds",value);notice.Text="完美闪避窗口已设为 "+value.ToString("0.##",CultureInfo.InvariantCulture)+" 毫秒。";window.Close();}catch(Exception e){MessageBox.Show(e.Message,"闪避窗口应用未完成",MessageBoxButton.OK,MessageBoxImage.Warning);} + }; + window.Show(); + } + } +} diff --git a/src/Feature.cs b/src/Feature.cs new file mode 100644 index 0000000..84132ee --- /dev/null +++ b/src/Feature.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +namespace PBZ { + public sealed class Feature { + public long Id;public string Name,English,Group,Hint,Key,HealthError;public uint KeyCode,Modifiers;public bool Active,RecoveryRequired; + public Feature(long id,string name,string english,string group,string hint,string key,uint vk,uint mods){Id=id;Name=name;English=english;Group=group;Hint=hint;Key=key;KeyCode=vk;Modifiers=mods;} + public static List All(){return new List{ + new Feature(1337142242,"无敌 / 忽略受击","God Mode / Ignore Hit","战斗","阻止针对玩家的受击伤害","Num 1",0x61,0), + new Feature(1337142267,"霸体","Hyper Armor","战斗","提高普通受击抗打断等级,保留掉血。已由用户实战验证。","Alt + Num 7",0x67,1), + new Feature(1337142268,"禁用瞬身","Disable Flash Step","战斗","停用格挡+闪避触发的瞬身效果,保留已点亮的天赋与前置条件。请在非战斗时切换。","Alt + Num 8",0x68,1), + new Feature(1337142248,"无摔落伤害","No Fall Damage","战斗","防止玩家受到高处坠落伤害","Num 2",0x62,0), + new Feature(1337142250,"伤害倍率","Damage Multiplier","战斗","分别设置玩家与敌人造成的伤害倍率","Num 8",0x68,0), + new Feature(1337142263,"伤害飘字","Damage Numbers","战斗","显示原生伤害与资源变化数字;“精”为精华回复,关闭恢复原状态","Alt + Num 4",0x64,1), + new Feature(6,"自动防御","Auto Guard","战斗","自动执行防御,可与自动弹反分别开启","Num 6",0x66,0), + new Feature(7,"自动弹反","Auto Parry","战斗","自动执行弹反","Num 7",0x67,0), + new Feature(1337142265,"自动闪避(待实测)","Auto Dodge","战斗","利用原生来袭攻击帧触发闪避;保留动作与冷却限制,当前仅离线验证","Alt + Num 6",0x66,1), + new Feature(1337142260,"完美格挡窗口","Perfect Guard Window","战斗","分别调整普通/破防状态的窗口帧数;使用当前难度共享配置,实际判定待实战验证","Alt + Num 1",0x61,1), + new Feature(1337142261,"完美闪避窗口","Perfect Dodge Window","战斗","调整普通闪避完美判定效果的持续时间;可能同时延长闪避免伤,动作结束可提前终止","Alt + Num 2",0x62,1), + new Feature(1337142262,"处决生命阈值","Execution Health Threshold","战斗","增加玩家普通/破防处决阈值的百分点;仍须满足游戏的处决条件,待实战验证","Alt + Num 3",0x63,1), + new Feature(1337142254,"隐身 / 敌人迟钝","Stealth Mode / Dumb Enemies","战斗","修改敌人感知相关行为","Num 9",0x69,0), + new Feature(1337142258,"行走动画速度","Walking Animation Speed","战斗","1–5 倍;实机仅确认行走动画变化,不能用于调整攻击或闪避速度","Ctrl + Num 8",0x68,2), + new Feature(1337142264,"饰品多选","Accessory Multiselection","资源","扫描完整饰品目录并多选;未获得的先获取再启用,关闭清理额外效果并保留原本装备","Alt + Num 5",0x65,1), + new Feature(1337142243,"杀气不减少","No Sha-Chi Decrease","资源","阻止玩家杀气资源消耗","Num 3",0x63,0), + new Feature(1337142244,"杀气精华充满","Full Sha-Chi Essence","资源","保持对应的玩家特殊资源","Num 4",0x64,0), + new Feature(1337142249,"消耗品不减少","Infinite Consumables","资源","阻止对应的物品消耗","Num 5",0x65,0), + new Feature(1337142253,"免费特性","Free Traits","资源","免除对应特性相关消耗\n开启前请先打开一次游戏内的特性/技能树菜单","Num 0",0x60,0), + new Feature(1337142247,"残尘编辑","Remnant Dust Editor","资源","查看当前数量,输入新数量后主动应用","Ctrl + Num 2",0x62,2), + new Feature(1337142245,"物品生成","Open Item Spawner","工具","分类浏览与名称/ID 搜索;选择物品和数量后主动提交","Ctrl + Num 1",0x61,2), + new Feature(1337142246,"物品与对象 ESP","Open ESP Menu","探索","选择显示类别与距离,叠加显示已加载对象","Ctrl + Num 3",0x63,2), + new Feature(8,"去除地图迷雾","Disable Map Fog","探索","修改地图绘制中的迷雾行为","Ctrl + Num 4",0x64,2), + new Feature(1337142255,"穿墙 / 飞行","NoClip / Fly","探索","WASD 移动,空格上升,Shift 下降;支持手柄","Ctrl + Num 5",0x65,2), + new Feature(1337142256,"随地保存","Save Anywhere (F7)","工具","开启时呼出保存界面;F7 再次呼出","Ctrl + Num 6",0x66,2), + new Feature(1337142257,"角色移动速度","Player Movement Speed","探索","步行、跑步、冲刺与蹲行倍率 1–5 倍;跑步效果待实机验证","Ctrl + Num 7",0x67,2) + };} + } +} diff --git a/src/ItemBrowserBridge.cs b/src/ItemBrowserBridge.cs new file mode 100644 index 0000000..39e87a5 --- /dev/null +++ b/src/ItemBrowserBridge.cs @@ -0,0 +1,30 @@ +using System; +using System.IO; +using System.Linq; +using System.Windows; +using System.Windows.Threading; +namespace PBZ { + public sealed partial class UIBridge { + ItemBrowserWindow itemBrowser;bool closingItemBrowser; + public void ShowItemBrowser(){ + if(itemBrowser==null){ + itemBrowser=new ItemBrowserWindow(ItemCatalog.Read(runtime), + delegate{return new ItemBrowserStatus{Ready=(bool)runtime.Call("StandaloneItemReady"),Pending=(bool)runtime.Call("StandaloneItemPending"),Message=Translate((string)runtime.Call("StandaloneItemMessage"))};}, + delegate(CatalogItem item,int quantity){return (string)runtime.Call("RequestStandaloneItems",item.Ordinal,quantity);}, + delegate{return runtime.IsBusy;}); + itemBrowser.IsEnabled=!runtime.IsBusy; + itemBrowser.Closing+=delegate(object sender,System.ComponentModel.CancelEventArgs e){ + if(closingItemBrowser)return;e.Cancel=true;if(runtime.IsBusy)return; + itemBrowser.Dispatcher.BeginInvoke(DispatcherPriority.Background,new Action(delegate{ + if(itemBrowser==null||runtime.IsBusy)return; + try{runtime.Call("CancelStandaloneItemBatch");var feature=runtime.Features.FirstOrDefault(f=>f.Id==1337142245);if(feature!=null&&feature.Active)runtime.Toggle(feature.Id,false);else CloseItemBrowser();} + catch(Exception error){MessageBox.Show(error.Message,"物品生成暂不能关闭",MessageBoxButton.OK,MessageBoxImage.Warning);} + })); + }; + } + if(!Headless){itemBrowser.Show();itemBrowser.Activate();} + } + void CloseItemBrowser(){if(itemBrowser==null)return;closingItemBrowser=true;try{itemBrowser.Dispose();itemBrowser=null;}finally{closingItemBrowser=false;}} + void SaveItemBrowserPreview(string directory){if(itemBrowser!=null)itemBrowser.SavePreview(Path.Combine(directory,"1337142245-catalog.png"));} + } +} diff --git a/src/ItemBrowserWindow.cs b/src/ItemBrowserWindow.cs new file mode 100644 index 0000000..ff17265 --- /dev/null +++ b/src/ItemBrowserWindow.cs @@ -0,0 +1,56 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.IO; +using System.Linq; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Markup; +using System.Windows.Interop; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Threading; +namespace PBZ { + public sealed class ItemBrowserStatus {public bool Ready,Pending;public string Message;} + public sealed class ItemBrowserWindow:Window,IDisposable { + readonly List items;readonly ListCollectionView view;readonly ListBox list,categories;readonly TextBox search,quantity;readonly TextBlock count,title,identity,description,limits,status,glyph,empty;readonly Button generate;readonly DispatcherTimer timer=new DispatcherTimer(); + readonly Func readStatus;readonly Func submit;readonly Func isBusy;string category="全部";bool disposed; + public CatalogItem SelectedItem{get{return list.SelectedItem as CatalogItem;}}public int FilteredCount{get{return view.Count;}} + public ItemBrowserWindow(List catalog,Func state,Func request,Func busy){ + items=catalog;readStatus=state;submit=request;isBusy=busy;Title="影之刃零 — 物品生成";Width=1240;Height=810;MinWidth=1010;MinHeight=650;Background=Theme.Background;Foreground=Theme.Text;FontFamily=new FontFamily("Microsoft YaHei UI");FontSize=13;WindowStartupLocation=WindowStartupLocation.CenterScreen; + Resources["ItemForeground"]=Theme.Text;Resources["ItemMuted"]=Theme.Muted;Resources["ItemSurface"]=Theme.Panel;Resources["ItemSelection"]=Theme.Line;Resources["ItemAccent"]=Theme.Accent; + var root=new Grid{Margin=new Thickness(24)};Content=new Border{Background=Theme.Background,Child=root};root.RowDefinitions.Add(new RowDefinition{Height=GridLength.Auto});root.RowDefinitions.Add(new RowDefinition());root.RowDefinitions.Add(new RowDefinition{Height=GridLength.Auto}); + var header=new Grid{Margin=new Thickness(0,0,0,20)};header.ColumnDefinitions.Add(new ColumnDefinition());header.ColumnDefinitions.Add(new ColumnDefinition{Width=GridLength.Auto});root.Children.Add(header);header.Children.Add(Theme.Label("物品生成",26,Theme.Text));var brand=Theme.Label("影之刃零 Ctrl + Num 1",12,Theme.Muted);Grid.SetColumn(brand,1);header.Children.Add(brand); + var body=new Grid();Grid.SetRow(body,1);root.Children.Add(body);body.ColumnDefinitions.Add(new ColumnDefinition{Width=new GridLength(168)});body.ColumnDefinitions.Add(new ColumnDefinition{Width=new GridLength(20)});body.ColumnDefinitions.Add(new ColumnDefinition{Width=new GridLength(1.05,GridUnitType.Star)});body.ColumnDefinitions.Add(new ColumnDefinition{Width=new GridLength(26)});body.ColumnDefinitions.Add(new ColumnDefinition{Width=new GridLength(1,GridUnitType.Star)}); + categories=List();categories.Margin=new Thickness(0,8,0,0);body.Children.Add(categories); + foreach(string name in ItemCatalog.Categories){int n=name=="全部"?items.Count:items.Count(x=>x.Category==name);categories.Items.Add(new ListBoxItem{Content=name+" "+n,Tag=name,Padding=new Thickness(12,9,3,9)});} + var middle=new Grid();Grid.SetColumn(middle,2);body.Children.Add(middle);middle.RowDefinitions.Add(new RowDefinition{Height=GridLength.Auto});middle.RowDefinitions.Add(new RowDefinition{Height=GridLength.Auto});middle.RowDefinitions.Add(new RowDefinition()); + var searchRow=new DockPanel{Margin=new Thickness(0,0,0,9)};middle.Children.Add(searchRow);var clear=Theme.Button("清空");clear.Padding=new Thickness(10,7,10,7);clear.Margin=new Thickness(8,0,0,0);DockPanel.SetDock(clear,Dock.Right);searchRow.Children.Add(clear);search=Input();search.ToolTip="搜索中文名称或物品 ID";searchRow.Children.Add(search); + count=Theme.Label("搜索名称 / ID",11,Theme.Muted);count.Margin=new Thickness(0,0,0,10);Grid.SetRow(count,1);middle.Children.Add(count); + var results=new Grid();Grid.SetRow(results,2);middle.Children.Add(results);list=List();list.ItemTemplate=(DataTemplate)XamlReader.Parse(@"");results.Children.Add(list); + empty=Theme.Label("没有匹配的物品\n试试其他名称或 ID",14,Theme.Muted);empty.HorizontalAlignment=HorizontalAlignment.Center;empty.VerticalAlignment=VerticalAlignment.Center;empty.Visibility=Visibility.Collapsed;results.Children.Add(empty); + var detail=new Grid();Grid.SetColumn(detail,4);body.Children.Add(detail);detail.RowDefinitions.Add(new RowDefinition{Height=GridLength.Auto});detail.RowDefinitions.Add(new RowDefinition());detail.RowDefinitions.Add(new RowDefinition{Height=GridLength.Auto}); + var heading=new Grid{Margin=new Thickness(0,12,0,20)};heading.ColumnDefinitions.Add(new ColumnDefinition{Width=new GridLength(84)});heading.ColumnDefinitions.Add(new ColumnDefinition());detail.Children.Add(heading);glyph=Theme.Label("物",42,Theme.Accent);glyph.HorizontalAlignment=HorizontalAlignment.Center;heading.Children.Add(glyph);var names=new StackPanel{Margin=new Thickness(10,0,0,0)};Grid.SetColumn(names,1);heading.Children.Add(names);title=Theme.Label("请选择物品",23,Theme.Text);names.Children.Add(title);identity=Theme.Label("",11,Theme.Muted);identity.Margin=new Thickness(0,12,0,0);names.Children.Add(identity); + description=Theme.Label("从左侧选择分类,按名称或 ID 搜索,点选条目查看说明。",14,Theme.Text);description.LineHeight=25;description.VerticalAlignment=VerticalAlignment.Top;var descScroll=new ScrollViewer{Content=description,VerticalScrollBarVisibility=ScrollBarVisibility.Auto,HorizontalScrollBarVisibility=ScrollBarVisibility.Disabled,Padding=new Thickness(0,18,8,18)};var descFrame=new Border{Child=descScroll,BorderBrush=Theme.Line,BorderThickness=new Thickness(0,1,0,1)};Grid.SetRow(descFrame,1);detail.Children.Add(descFrame); + var actions=new StackPanel{Margin=new Thickness(0,16,0,0)};Grid.SetRow(actions,2);detail.Children.Add(actions);limits=Theme.Label("背包数量:未读取",11,Theme.Muted);actions.Children.Add(limits);var amountRow=new Grid{Margin=new Thickness(0,12,0,0)};amountRow.ColumnDefinitions.Add(new ColumnDefinition{Width=GridLength.Auto});amountRow.ColumnDefinitions.Add(new ColumnDefinition{Width=new GridLength(94)});amountRow.ColumnDefinitions.Add(new ColumnDefinition());actions.Children.Add(amountRow);var amountLabel=Theme.Label("数量",13,Theme.Text);amountLabel.Margin=new Thickness(0,0,14,0);amountRow.Children.Add(amountLabel);quantity=Input();quantity.Text="1";Grid.SetColumn(quantity,1);amountRow.Children.Add(quantity);generate=Theme.Button("生成物品");generate.Margin=new Thickness(14,0,0,0);generate.IsEnabled=false;Grid.SetColumn(generate,2);amountRow.Children.Add(generate); + status=Theme.Label("等待物品生成接口就绪;不会自动生成物品。",11,Theme.Muted);status.Margin=new Thickness(0,20,0,0);Grid.SetRow(status,2);root.Children.Add(status); + view=new ListCollectionView(items.OrderBy(x=>x.Name,StringComparer.CurrentCulture).ThenBy(x=>x.Ordinal).ToList());view.Filter=x=>ItemCatalog.Matches((CatalogItem)x,category,search.Text);list.ItemsSource=view; + categories.SelectionChanged+=delegate{var selected=categories.SelectedItem as ListBoxItem;category=selected==null?"全部":(string)selected.Tag;Filter();};search.TextChanged+=delegate{Filter();};clear.Click+=delegate{search.Clear();search.Focus();};list.SelectionChanged+=delegate{Selection();};generate.Click+=delegate{Generate();};categories.SelectedIndex=0;if(view.Count>0)list.SelectedIndex=0;Filter(); + Width=Math.Min(Width,Math.Max(MinWidth,SystemParameters.WorkArea.Width-32));Height=Math.Min(Height,Math.Max(MinHeight,SystemParameters.WorkArea.Height-32)); + SourceInitialized+=delegate{try{int dark=1;Native.DwmSetWindowAttribute(new WindowInteropHelper(this).Handle,20,ref dark,4);}catch{}}; + timer.Interval=TimeSpan.FromMilliseconds(150);timer.Tick+=delegate{RefreshStatus();};if(readStatus!=null)timer.Start();Closed+=delegate{timer.Stop();}; + } + TextBox Input(){return new TextBox{Foreground=Theme.Text,Background=Theme.Panel,BorderBrush=Theme.Line,CaretBrush=Theme.Accent,Padding=new Thickness(10,9,10,9),VerticalContentAlignment=VerticalAlignment.Center,FontSize=13};} + ListBox List(){var list=new ListBox{Foreground=Theme.Text,Background=Brushes.Transparent,BorderThickness=new Thickness(0),HorizontalContentAlignment=HorizontalAlignment.Stretch,Padding=new Thickness(0)};ScrollViewer.SetHorizontalScrollBarVisibility(list,ScrollBarVisibility.Disabled);VirtualizingStackPanel.SetIsVirtualizing(list,true);VirtualizingStackPanel.SetVirtualizationMode(list,VirtualizationMode.Recycling);list.ItemContainerStyle=(Style)XamlReader.Parse(@"");return list;} + void Filter(){if(view==null)return;var selected=SelectedItem;view.Refresh();list.SelectedItem=selected!=null&&view.Contains(selected)?selected:null;count.Text="搜索名称 / ID "+view.Count+" / "+items.Count+" 物品";empty.Visibility=view.Count==0?Visibility.Visible:Visibility.Collapsed;Selection();} + void Selection(){var i=SelectedItem;title.Text=i==null?"请选择物品":i.Name;glyph.Text=i==null?"物":i.Glyph;identity.Text=i==null?"":i.Id+"\n"+i.Category;description.Text=i==null?"点选搜索结果查看中文说明。":i.Description+(i.Legacy?"\n\n旧版条目:当前游戏可能拒绝此物品 ID。":"");limits.Text=i==null?"背包数量:未读取":"背包数量:未读取\n"+(i.Kind==1?"本次可请求 1–99 份,实际入包由游戏规则决定。":"装备、药瓶和外观每次请求 1 份。");quantity.Text="1";quantity.IsEnabled=i!=null&&i.Kind==1;generate.IsEnabled=false;} + void RefreshStatus(){if(disposed||(isBusy!=null&&isBusy()))return;try{var s=readStatus==null?null:readStatus();generate.IsEnabled=SelectedItem!=null&&s!=null&&s.Ready&&!s.Pending;status.Text=s==null?"等待游戏连接":s.Message;}catch(Exception e){generate.IsEnabled=false;status.Text=e.Message;}} + void Generate(){if(submit==null||(isBusy!=null&&isBusy()))return;var item=SelectedItem;int value;if(!Int32.TryParse(quantity.Text,NumberStyles.Integer,CultureInfo.InvariantCulture,out value)||!ItemCatalog.ValidQuantity(item,value)){MessageBox.Show(item!=null&&item.Kind==1?"请输入 1 到 99 的整数。":"此类物品每次请求 1 份。",Title);return;}try{status.Text=submit(item,value);generate.IsEnabled=false;}catch(Exception e){status.Text=e.Message;}} + public void SetFilter(string name,string query){var entry=categories.Items.Cast().FirstOrDefault(x=>(string)x.Tag==name);categories.SelectedItem=entry;search.Text=query;Filter();} + public void SelectOrdinal(int ordinal){list.SelectedItem=items.FirstOrDefault(x=>x.Ordinal==ordinal&&view.Contains(x));} + public void SavePreview(string path){var content=(FrameworkElement)Content;double width=Width-18,height=Height-44;content.Measure(new Size(width,height));content.Arrange(new Rect(0,0,width,height));content.UpdateLayout();var image=new RenderTargetBitmap((int)width,(int)height,96,96,PixelFormats.Pbgra32);image.Render(content);var encoder=new PngBitmapEncoder();encoder.Frames.Add(BitmapFrame.Create(image));using(var stream=File.Create(path))encoder.Save(stream);} + public void Dispose(){if(disposed)return;disposed=true;timer.Stop();Close();} + } +} diff --git a/src/ItemCatalog.cs b/src/ItemCatalog.cs new file mode 100644 index 0000000..5b36b40 --- /dev/null +++ b/src/ItemCatalog.cs @@ -0,0 +1,50 @@ +using System; +using System.Collections.Generic; +using System.Linq; +namespace PBZ { + public sealed class CatalogItem { + public int Ordinal{get;set;}public int Kind{get;set;}public string Id{get;set;}public string Name{get;set;}public string Source{get;set;}public string Description{get;set;}public string Category{get;set;}public string SearchAliases{get;set;}public bool Legacy{get;set;} + public string Summary{get{return (Description??"").Replace("\r"," ").Replace("\n"," ");}} + public string Glyph{get{switch(Category){case "武器":return "兵";case "影之武装":return "影";case "药瓶":return "药";case "饰品":return "饰";case "饰品碎片":return "片";case "养成材料":return "材";case "宝藏":return "宝";case "书籍":return "册";case "记忆之花":return "花";case "记忆花瓣":return "瓣";case "外观":return "衣";case "剧情道具":return "钥";default:return "物";}}} + } + public static class ItemCatalog { + public static readonly string[] Categories={"全部","武器","影之武装","药瓶","饰品","剧情道具","饰品碎片","养成材料","宝藏","书籍","记忆花瓣","记忆之花","外观","其他物品"}; + static bool Prefix(string value,string prefix){return value.StartsWith(prefix,StringComparison.OrdinalIgnoreCase);} + public static string Category(CatalogItem i){ + switch(i.Kind){case 2:return "武器";case 3:return "影之武装";case 4:return "饰品";case 5:return "药瓶";case 6:case 7:return "外观";} + if(Prefix(i.Id,"AC_")&&!Prefix(i.Id,"Ac_Material_"))return "饰品碎片"; + if(Prefix(i.Id,"FA_")||(Prefix(i.Id,"F_")&&i.Name.Contains("记忆之花")))return "记忆之花"; + if(Prefix(i.Id,"F_")||Prefix(i.Id,"FS_"))return "记忆花瓣"; + if(Prefix(i.Id,"Weapon_Material_")||Prefix(i.Id,"Ac_Material_")||Prefix(i.Id,"Medi_Material_")||Prefix(i.Id,"I_")||Prefix(i.Id,"Item_")||Prefix(i.Id,"Return_")||i.Id=="ShaqiHexin")return "养成材料"; + if(Prefix(i.Id,"K_"))return "剧情道具"; + if(Prefix(i.Id,"R_")||Prefix(i.Id,"Page_")||Prefix(i.Id,"Book_")||Prefix(i.Id,"B_"))return "书籍"; + if(Prefix(i.Id,"TU_")||Prefix(i.Id,"T_"))return "宝藏"; + return "其他物品"; + } + public static bool Matches(CatalogItem i,string category,string query){ + if(category!="全部"&&category!=i.Category)return false; + return (query??"").Split((char[])null,StringSplitOptions.RemoveEmptyEntries).All(q=>i.Name.IndexOf(q,StringComparison.OrdinalIgnoreCase)>=0||i.Id.IndexOf(q,StringComparison.OrdinalIgnoreCase)>=0||(i.SearchAliases??"").IndexOf(q,StringComparison.OrdinalIgnoreCase)>=0); + } + public static bool ValidQuantity(CatalogItem i,int quantity){return i!=null&&quantity>=1&&quantity<=(i.Kind==1?99:1);} + static string Text(IntPtr s,string key){L.lua_getfield(s,-1,key);string v=L.Text(s,-1);L.lua_settop(s,-2);return v;} + static long Number(IntPtr s,string key){L.lua_getfield(s,-1,key);long v=L.lua_tointegerx(s,-1,IntPtr.Zero);L.lua_settop(s,-2);return v;} + static bool Flag(IntPtr s,string key){L.lua_getfield(s,-1,key);bool v=L.lua_toboolean(s,-1)!=0;L.lua_settop(s,-2);return v;} + public static List Read(ScriptRuntime runtime){ + IntPtr s=runtime.State;int top=L.lua_gettop(s);var items=new List(); + try{ + if(L.lua_getglobal(s,"PBZ_ItemBrowser")!=L.Table||L.lua_getfield(s,-1,"catalog")!=L.Table)throw new Exception("物品目录尚未就绪"); + int groups=checked((int)L.lua_rawlen(s,-1).ToUInt64());if(groups>100)throw new Exception("物品分类数量异常"); + for(int g=1;g<=groups;g++){ + L.lua_rawgeti(s,-1,g);if(L.lua_getfield(s,-1,"items")!=L.Table)throw new Exception("物品分类不可读"); + int count=checked((int)L.lua_rawlen(s,-1).ToUInt64());if(count>10000)throw new Exception("物品数量异常"); + for(int k=1;k<=count;k++){ + L.lua_rawgeti(s,-1,k);var item=new CatalogItem{Ordinal=items.Count+1,Id=Text(s,"id"),Name=Text(s,"name"),Kind=checked((int)Number(s,"kind")),Source=Text(s,"source"),Description=Text(s,"description"),SearchAliases=Text(s,"aliases"),Legacy=Flag(s,"legacy")}; + if(String.IsNullOrEmpty(item.Id))throw new Exception("物品 ID 缺失");if(String.IsNullOrEmpty(item.Name))item.Name=item.Id;item.Category=Category(item);items.Add(item);L.lua_settop(s,-2); + } + L.lua_settop(s,-3); + } + }finally{L.lua_settop(s,top);} + return items; + } + } +} diff --git a/src/LuaNative.cs b/src/LuaNative.cs new file mode 100644 index 0000000..9ec3b95 --- /dev/null +++ b/src/LuaNative.cs @@ -0,0 +1,49 @@ +using System; +using System.Runtime.InteropServices; +using System.Text; +namespace PBZ { + internal static class L { + internal const int Registry=-1001000,Function=6,Table=5; + [UnmanagedFunctionPointer(CallingConvention.Cdecl)]internal delegate int Callback(IntPtr state); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl)]internal static extern IntPtr luaL_newstate(); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl)]internal static extern void luaL_openlibs(IntPtr s); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl)]internal static extern void lua_close(IntPtr s); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl)]internal static extern int lua_gettop(IntPtr s); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl)]internal static extern void lua_settop(IntPtr s,int top); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl)]internal static extern int lua_type(IntPtr s,int index); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl)]internal static extern long lua_tointegerx(IntPtr s,int index,IntPtr valid); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl)]internal static extern double lua_tonumberx(IntPtr s,int index,IntPtr valid); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl)]internal static extern int lua_toboolean(IntPtr s,int index); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl)]internal static extern IntPtr lua_tolstring(IntPtr s,int index,out UIntPtr size); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl)]internal static extern void lua_pushinteger(IntPtr s,long value); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl)]internal static extern void lua_pushnumber(IntPtr s,double value); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl)]internal static extern void lua_pushboolean(IntPtr s,int value); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl)]internal static extern void lua_pushnil(IntPtr s); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl)]internal static extern IntPtr lua_pushlstring(IntPtr s,byte[] value,UIntPtr size); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl)]internal static extern void lua_pushcclosure(IntPtr s,Callback callback,int n); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl,CharSet=CharSet.Ansi)]internal static extern void lua_setglobal(IntPtr s,string name); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl,CharSet=CharSet.Ansi)]internal static extern int lua_getglobal(IntPtr s,string name); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl)]internal static extern void lua_createtable(IntPtr s,int array,int records); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl,CharSet=CharSet.Ansi)]internal static extern void lua_setfield(IntPtr s,int index,string key); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl,CharSet=CharSet.Ansi)]internal static extern int lua_getfield(IntPtr s,int index,string key); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl)]internal static extern void lua_rawseti(IntPtr s,int index,long key); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl)]internal static extern int lua_rawgeti(IntPtr s,int index,long key); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl)]internal static extern UIntPtr lua_rawlen(IntPtr s,int index); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl)]internal static extern void lua_pushvalue(IntPtr s,int index); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl)]internal static extern int luaL_ref(IntPtr s,int index); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl)]internal static extern void luaL_unref(IntPtr s,int index,int reference); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl)]internal static extern int luaL_loadbufferx(IntPtr s,byte[] data,UIntPtr size,string name,string mode); + [DllImport("lua54.dll",CallingConvention=CallingConvention.Cdecl)]internal static extern int lua_pcallk(IntPtr s,int nargs,int results,int err,long context,IntPtr continuation); + internal static string Text(IntPtr s,int i){return Encoding.UTF8.GetString(Bytes(s,i)??new byte[0]);} + internal static byte[] Bytes(IntPtr s,int i){UIntPtr size;IntPtr p=lua_tolstring(s,i,out size);if(p==IntPtr.Zero)return null;int n=checked((int)size.ToUInt64());byte[] data=new byte[n];Marshal.Copy(p,data,0,n);return data;} + internal static void Push(IntPtr s,object value){ + if(value==null){lua_pushnil(s);return;}if(value is bool){lua_pushboolean(s,(bool)value?1:0);return;} + if(value is byte[]){var bytes=(byte[])value;lua_pushlstring(s,bytes,(UIntPtr)(uint)bytes.Length);return;} + if(value is string){Push(s,Encoding.UTF8.GetBytes((string)value));return;} + if(value is float||value is double){lua_pushnumber(s,Convert.ToDouble(value));return;} + if(value is System.Collections.IDictionary){var d=(System.Collections.IDictionary)value;lua_createtable(s,0,d.Count);foreach(System.Collections.DictionaryEntry e in d){Push(s,e.Value);lua_setfield(s,-2,e.Key.ToString());}return;} + if(value is System.Collections.IEnumerable){lua_createtable(s,0,0);int j=0;foreach(object v in (System.Collections.IEnumerable)value){Push(s,v);lua_rawseti(s,-2,++j);}return;} + lua_pushinteger(s,Convert.ToInt64(value)); + } + } +} diff --git a/src/MainWindow.cs b/src/MainWindow.cs new file mode 100644 index 0000000..36ff46a --- /dev/null +++ b/src/MainWindow.cs @@ -0,0 +1,110 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Globalization; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Input; +using System.Windows.Interop; +using System.Windows.Media; +using System.Windows.Threading; +namespace PBZ { + public sealed partial class MainWindow:Window { + readonly List features=Feature.All();GameMemory memory=new GameMemory();readonly Dictionary toggles=new Dictionary();readonly Dictionary rows=new Dictionary();readonly List registered=new List();readonly DispatcherTimer timer=new DispatcherTimer();readonly TextBlock status,details,notice,activeCount;ScriptRuntime runtime;IntPtr hwnd;string group="全部功能";bool closing,busy,connecting;readonly bool preview; + const string WaitingDetails="直接打开游戏即可,修改器会自动识别并连接。"; + readonly Dictionary retryAfter=new Dictionary(); + readonly Func,Process> findGame; + readonly Action attachGame; + public MainWindow(bool previewMode):this(previewMode,GameMemory.FindGame,delegate(GameMemory game,Process process){game.Attach(process,false);}){} + internal MainWindow(bool previewMode,Func,Process> findGame,Action attachGame){ + this.findGame=findGame;this.attachGame=attachGame; + preview=previewMode;Title="影之刃零 · 独立修改器";Width=1080;Height=790;MinWidth=940;MinHeight=650;Background=Theme.Background;Foreground=Theme.Text;FontFamily=new FontFamily("Microsoft YaHei UI");FontSize=13;WindowStartupLocation=WindowStartupLocation.CenterScreen; + var root=new Grid();root.ColumnDefinitions.Add(new ColumnDefinition{Width=new GridLength(206)});root.ColumnDefinitions.Add(new ColumnDefinition());Content=root; + var side=new Grid{Background=Theme.Panel};side.RowDefinitions.Add(new RowDefinition{Height=new GridLength(148)});side.RowDefinitions.Add(new RowDefinition());side.RowDefinitions.Add(new RowDefinition{Height=new GridLength(148)});root.Children.Add(side); + var brand=new StackPanel{Margin=new Thickness(25,28,20,0)};brand.Children.Add(Theme.Label("影之刃零",27,Theme.Text));brand.Children.Add(new TextBlock{Text="独立单机修改器",FontSize=12,Foreground=Theme.Accent,Margin=new Thickness(1,9,0,0)});brand.Children.Add(new Border{Height=2,Width=38,Background=Theme.Accent,HorizontalAlignment=HorizontalAlignment.Left,Margin=new Thickness(0,20,0,0)});side.Children.Add(brand); + var nav=new StackPanel{Margin=new Thickness(12,12,12,0)};Grid.SetRow(nav,1);side.Children.Add(nav); + foreach(string name in new[]{"全部功能","战斗","资源","探索","工具"}){var b=Theme.Button(name);b.HorizontalContentAlignment=HorizontalAlignment.Left;b.Margin=new Thickness(0,0,0,9);b.Padding=new Thickness(16,12,10,12);b.BorderThickness=new Thickness(0);b.Tag=name;b.Click+=delegate(object sender,RoutedEventArgs e){group=(string)((Button)sender).Tag;ApplyFilter();};nav.Children.Add(b);} + var foot=new StackPanel{Margin=new Thickness(25,0,18,22),VerticalAlignment=VerticalAlignment.Bottom};Grid.SetRow(foot,2);side.Children.Add(foot);activeCount=Theme.Label("0 项功能已开启",14,Theme.Accent);foot.Children.Add(activeCount);foot.Children.Add(new TextBlock{Text="核心逻辑来源:Send CT\n独立运行,无需启动 CE\n仅用于离线单机",Foreground=Theme.Muted,FontSize=11,Margin=new Thickness(0,14,0,0),LineHeight=21}); + var area=new Grid{Margin=new Thickness(28,24,28,18)};Grid.SetColumn(area,1);root.Children.Add(area);area.RowDefinitions.Add(new RowDefinition{Height=GridLength.Auto});area.RowDefinitions.Add(new RowDefinition{Height=GridLength.Auto});area.RowDefinitions.Add(new RowDefinition());area.RowDefinitions.Add(new RowDefinition{Height=GridLength.Auto}); + var title=new Grid{Margin=new Thickness(0,0,0,20)};title.ColumnDefinitions.Add(new ColumnDefinition());title.ColumnDefinitions.Add(new ColumnDefinition{Width=GridLength.Auto});area.Children.Add(title);var t=new StackPanel();t.Children.Add(Theme.Label("掌控这一场交锋",23,Theme.Text));t.Children.Add(new TextBlock{Text="功能按需开启,停用时恢复对应补丁。",FontSize=12,Foreground=Theme.Muted,Margin=new Thickness(0,7,0,0)});title.Children.Add(t);var allOff=Theme.Button("全部关闭并恢复");allOff.Click+=delegate{Restore();};Grid.SetColumn(allOff,1);title.Children.Add(allOff); + var connection=new Border{Background=Theme.Panel,BorderBrush=Theme.Line,BorderThickness=new Thickness(1),CornerRadius=new CornerRadius(8),Padding=new Thickness(17,13,17,13),Margin=new Thickness(0,0,0,16)};Grid.SetRow(connection,1);area.Children.Add(connection);var c=new StackPanel();status=Theme.Label("等待游戏运行",16,Theme.Accent);details=Theme.Label(WaitingDetails,11,Theme.Muted);details.Margin=new Thickness(0,7,0,0);c.Children.Add(status);c.Children.Add(details);connection.Child=c; + var scroll=new ScrollViewer{VerticalScrollBarVisibility=ScrollBarVisibility.Auto,HorizontalScrollBarVisibility=ScrollBarVisibility.Disabled};Grid.SetRow(scroll,2);area.Children.Add(scroll);var list=new StackPanel();scroll.Content=list; + foreach(var f in features){var row=new Border{Padding=new Thickness(13,12,13,12),BorderBrush=Theme.Line,BorderThickness=new Thickness(0,0,0,1),MinHeight=74};rows[f.Id]=row;list.Children.Add(row);var g=new Grid();row.Child=g;g.ColumnDefinitions.Add(new ColumnDefinition());g.ColumnDefinitions.Add(new ColumnDefinition{Width=new GridLength(132)});g.ColumnDefinitions.Add(new ColumnDefinition{Width=GridLength.Auto});var text=new StackPanel{VerticalAlignment=VerticalAlignment.Center};var line=new StackPanel{Orientation=Orientation.Horizontal};line.Children.Add(Theme.Label(f.Name,15,Theme.Text));if(f.Id==1337142264||f.Id==1337142250||f.Id==1337142257||f.Id==1337142258||f.Id==1337142260||f.Id==1337142261||f.Id==1337142262){var config=Theme.Button(f.Id==1337142264?"选择饰品":f.Id==1337142250?"设置倍率":f.Id==1337142260||f.Id==1337142261||f.Id==1337142262?"设置参数":"设置速度");config.FontSize=11;config.Padding=new Thickness(9,3,9,3);config.MinHeight=24;config.Margin=new Thickness(12,0,0,0);config.Click+=delegate{if(f.Id==1337142264)AccessorySettings();else if(f.Id==1337142250)DamageSettings();else if(f.Id==1337142260||f.Id==1337142261||f.Id==1337142262)CombatSettings(f);else SpeedSettings(f);};line.Children.Add(config);}text.Children.Add(line);text.Children.Add(new TextBlock{Text=f.Hint,Foreground=Theme.Muted,FontSize=11,TextWrapping=TextWrapping.Wrap,Margin=new Thickness(0,5,8,0)});g.Children.Add(text);var key=Theme.Label(f.Key,11,Theme.Muted);key.HorizontalAlignment=HorizontalAlignment.Right;key.Margin=new Thickness(4,0,15,0);Grid.SetColumn(key,1);g.Children.Add(key);var toggle=Theme.Button("OFF");toggle.MinWidth=64;toggle.IsEnabled=false;toggle.Foreground=Theme.Muted;toggle.Tag=f;toggle.Click+=delegate(object sender,RoutedEventArgs e){var feature=(Feature)((Button)sender).Tag;SetFeature(feature,!feature.Active);};Grid.SetColumn(toggle,2);g.Children.Add(toggle);toggles[f.Id]=toggle;} + var bottom=new StackPanel{Margin=new Thickness(0,17,0,0)};Grid.SetRow(bottom,3);area.Children.Add(bottom);notice=Theme.Label("独立版的游戏内兼容性需要逐项联调。不会自动开启任何功能。",11,Theme.Muted);bottom.Children.Add(notice);var commands=new StackPanel{Orientation=Orientation.Horizontal,Margin=new Thickness(0,12,0,0)};var report=Theme.Button("复制诊断报告");report.Click+=delegate{CopyReport();};commands.Children.Add(report);var logs=Theme.Button("打开日志目录");logs.Margin=new Thickness(8,0,0,0);logs.Click+=delegate{Directory.CreateDirectory(AppPaths.Logs);Process.Start("explorer.exe",AppPaths.Logs);};commands.Children.Add(logs);var admin=Theme.Button("以管理员身份重启");admin.Margin=new Thickness(8,0,0,0);admin.Click+=delegate{RestartAdmin();};commands.Children.Add(admin);bottom.Children.Add(commands); + SourceInitialized+=delegate{hwnd=new WindowInteropHelper(this).Handle;HwndSource.FromHwnd(hwnd).AddHook(WindowMessage);try{int dark=1;Native.DwmSetWindowAttribute(hwnd,20,ref dark,4);}catch{}if(!preview)RegisterKeys();};Closing+=OnClosing; + timer.Interval=TimeSpan.FromMilliseconds(100);int tick=0;timer.Tick+=delegate{if(OperationBusy)return;if(runtime!=null)runtime.PollKeys();if(++tick%(runtime==null?10:20)==0)ConnectTick();};if(!preview){timer.Start();Loaded+=delegate{ConnectTick();};} + } + bool OperationBusy{get{return busy||(runtime!=null&&runtime.IsBusy);}} + void RegisterKeys(){int id=1;foreach(var f in features){if(Native.RegisterHotKey(hwnd,id,0x4000|f.Modifiers,f.KeyCode))registered.Add(id);else AppPaths.Log("[WARN] 快捷键被其他程序占用:"+f.Key);id++;}} + IntPtr WindowMessage(IntPtr h,int msg,IntPtr w,IntPtr l,ref bool handled){if(msg==0x312){int i=w.ToInt32()-1;if(i>=0&&i!String.IsNullOrEmpty(f.HealthError));if(failed!=null)notice.Text=failed.Name+"出现运行异常,请关闭后重新开启;详情见诊断报告。";return;} + Disconnect();foreach(var f in features){f.Active=false;f.RecoveryRequired=false;f.HealthError=null;} + Refresh();status.Text="游戏已退出,等待下次启动";details.Text="所有功能已清为关闭;下次连接后不会自动重新启用。"; + } + bool hadRetries=retryAfter.Count!=0; + DateTime now=DateTime.UtcNow; + if(hadRetries)foreach(int expired in retryAfter.Where(pair=>pair.Value<=now).Select(pair=>pair.Key).ToArray())retryAfter.Remove(expired); + var process=findGame(pidToTry=>!retryAfter.ContainsKey(pidToTry)); + if(process==null){ + if(hadRetries&&retryAfter.Count==0){status.Text="等待游戏运行";details.Text=WaitingDetails;} + return; + } + int pid=process.Id; + connecting=true; + status.Text="已检测到游戏,正在核验版本…"; + details.Text="PID "+pid+",核验完成后会自动连接。"; + var candidate=new GameMemory(); + try{ + await Task.Run(delegate{attachGame(candidate,process);}); + if(closing)return; + if(!candidate.Alive)throw new InvalidOperationException("游戏进程已退出,正在等待重新启动。"); + runtime=new ScriptRuntime(candidate,features); + runtime.UI=new UIBridge(runtime);runtime.Changed+=Refresh; + memory=candidate;candidate=null; + status.Text="游戏已连接";details.Text="PID "+pid+" / "+memory.Version+"\n"+memory.PathName; + notice.Text="进入可操作的单机场景后按需开启功能;F7 用于已开启的随地保存。"; + AppPaths.Log("[INFO] Connected "+pid+" "+memory.Version); + }catch(Exception e){ + if(closing)return; + Disconnect(); + retryAfter[pid]=DateTime.UtcNow.AddSeconds(e is NotSupportedException?15:2); + status.Text=e is NotSupportedException?"游戏版本或进程不受支持":"连接未完成,正在自动重试"; + var nativeError=e as System.ComponentModel.Win32Exception; + if(nativeError!=null&&nativeError.NativeErrorCode==5)status.Text="已找到游戏,访问被拒绝"; + details.Text="PID "+pid+(nativeError==null?"":" · Windows 错误 "+nativeError.NativeErrorCode)+"\n"+e.Message; + AppPaths.Log("[ERROR] Connect PID "+pid+(nativeError==null?"":" Win32 "+nativeError.NativeErrorCode)+": "+e.Message); + }finally{ + if(candidate!=null){candidate.Dispose();process.Dispose();} + connecting=false;if(!closing)Refresh(); + } + } + void Disconnect(){ + if(runtime!=null){runtime.Dispose();runtime=null;} + var process=memory.Process;memory.Dispose();if(process!=null)process.Dispose(); + } + void SetFeature(Feature f,bool enabled){if(OperationBusy||runtime==null)return;try{busy=true;notice.Text="正在"+(enabled?"开启:":"恢复:")+f.Name;Cursor=Cursors.Wait;Refresh();Dispatcher.Invoke(DispatcherPriority.Render,new Action(delegate{}));runtime.Toggle(f.Id,enabled);notice.Text=f.Name+(enabled?"已开启。":"已关闭并恢复。");if(enabled&&f.Id==1337142250)DamageSettings();} + catch(Exception e){notice.Text="操作失败,状态保留:"+f.Name;MessageBox.Show(e.Message,"无法"+(enabled?"开启":"关闭")+f.Name,MessageBoxButton.OK,MessageBoxImage.Warning);}finally{busy=false;Cursor=Cursors.Arrow;Refresh();}if(f.Id==1337142264){if(enabled&&f.Active&&!f.RecoveryRequired)AccessorySettings();else if(!f.Active)CloseAccessorySettings();}if(enabled&&f.Active&&!f.RecoveryRequired&&(f.Id==1337142257||f.Id==1337142258))SpeedSettings(f);if(enabled&&f.Active&&!f.RecoveryRequired&&(f.Id==1337142260||f.Id==1337142261||f.Id==1337142262))CombatSettings(f);} + void Refresh(){if(accessoryWindow!=null&&(runtime==null||!features.Any(f=>f.Id==1337142264&&f.Active)))CloseAccessorySettings();foreach(var f in features){var b=toggles[f.Id];bool error=!String.IsNullOrEmpty(f.HealthError);b.Content=f.RecoveryRequired?"待恢复":error?"异常":f.Active?"ON":"OFF";b.ToolTip=error?f.HealthError:f.Hint;b.Foreground=f.Active?Theme.Background:Theme.Muted;b.Background=f.RecoveryRequired||error?Theme.Danger:f.Active?Theme.Accent:Theme.Panel;b.IsEnabled=runtime!=null&&memory.Alive&&!OperationBusy;}activeCount.Text=features.Count(x=>x.Active&&!x.RecoveryRequired&&String.IsNullOrEmpty(x.HealthError))+" 项功能已开启";} + void Restore(){if(OperationBusy||runtime==null)return;try{busy=true;var errors=runtime.RestoreAll();Refresh();notice.Text=errors.Count==0?"所有已开启功能均已关闭并恢复。":"部分功能未能恢复,请保留游戏与修改器并查看错误。";if(errors.Count>0)MessageBox.Show(String.Join("\n\n",errors),"恢复未完成",MessageBoxButton.OK,MessageBoxImage.Warning);}finally{busy=false;Refresh();}} + void CopyReport(){string text="影之刃零独立修改器\r\n程序目录:"+AppPaths.Root+"\r\n游戏:"+(memory.Alive?memory.PathName:"未连接")+"\r\n版本:"+memory.Version+"\r\n待恢复事务:"+(runtime==null?0:runtime.PendingRecoveryCount)+"\r\n"+String.Join("\r\n",features.Select(x=>x.Name+":"+(x.RecoveryRequired?"待恢复":!String.IsNullOrEmpty(x.HealthError)?"异常 "+x.HealthError:x.Active?"ON":"OFF")));Clipboard.SetText(text);notice.Text="诊断报告已复制到剪贴板。";} + void DamageSettings(){ + if(runtime!=null&&runtime.IsBusy)return; + var f=features.First(x=>x.Id==1337142250);if(runtime==null||!f.Active){MessageBox.Show("请先开启伤害倍率功能。","伤害倍率");return;} + var w=new Window{Title="伤害倍率",Owner=this,Width=420,Height=295,ResizeMode=ResizeMode.NoResize,WindowStartupLocation=WindowStartupLocation.CenterOwner,Background=Theme.Background,Foreground=Theme.Text,FontFamily=FontFamily};var panel=new StackPanel{Margin=new Thickness(24)};w.Content=panel;panel.Children.Add(Theme.Label("分别调整双方造成的伤害",18,Theme.Text));panel.Children.Add(Theme.Label("1 = 原始伤害;0 = 不造成伤害;范围 0–100。",11,Theme.Muted));panel.Children.Add(new TextBlock{Text="玩家造成伤害的倍率",Margin=new Thickness(0,16,0,5),Foreground=Theme.Text});var player=new TextBox{Text=ReadFactor("PBZ_DM_FromPlayer"),Padding=new Thickness(8)};panel.Children.Add(player);panel.Children.Add(new TextBlock{Text="敌人造成伤害的倍率",Margin=new Thickness(0,10,0,5),Foreground=Theme.Text});var enemy=new TextBox{Text=ReadFactor("PBZ_DM_FromEnemy"),Padding=new Thickness(8)};panel.Children.Add(enemy);var apply=Theme.Button("应用倍率");apply.Margin=new Thickness(0,15,0,0);panel.Children.Add(apply);apply.Click+=delegate{ + if(OperationBusy)return; + float p,e;if(!Single.TryParse(player.Text,NumberStyles.Float,CultureInfo.InvariantCulture,out p)||!Single.TryParse(enemy.Text,NumberStyles.Float,CultureInfo.InvariantCulture,out e)||Single.IsNaN(p)||Single.IsNaN(e)||p<0||p>100||e<0||e>100){MessageBox.Show("请输入 0 到 100 之间的有限数值,小数使用英文句点。");return;} + try{if(runtime==null||!f.Active)throw new Exception("功能已经停用");long a=Convert.ToInt64(runtime.Call("getAddress","PBZ_DM_FromPlayer")),b=Convert.ToInt64(runtime.Call("getAddress","PBZ_DM_FromEnemy"));byte[] before=memory.Read(a,4);if(before==null||!memory.Write(a,BitConverter.GetBytes(p),false))throw new Exception("玩家倍率写入失败");if(!memory.Write(b,BitConverter.GetBytes(e),false)){memory.Write(a,before,false);throw new Exception("敌人倍率写入失败,已尝试恢复玩家倍率");}notice.Text="伤害倍率已更新:玩家 "+p+",敌人 "+e;w.Close();}catch(Exception ex){MessageBox.Show(ex.Message,"倍率设置失败");} + };w.Show(); + } + string ReadFactor(string name){try{long a=Convert.ToInt64(runtime.Call("getAddress",name));byte[] b=memory.Read(a,4);return b==null?"1":BitConverter.ToSingle(b,0).ToString(CultureInfo.InvariantCulture);}catch{return "1";}} + void RestartAdmin(){if(OperationBusy)return;if(features.Any(f=>f.Active)){MessageBox.Show("请先全部关闭并恢复,再重新启动。");return;}try{Process.Start(new ProcessStartInfo(Process.GetCurrentProcess().MainModule.FileName){UseShellExecute=true,Verb="runas",WorkingDirectory=AppPaths.Root});Close();}catch(Exception e){notice.Text="重启未完成:"+e.Message;}} + void OnClosing(object sender,System.ComponentModel.CancelEventArgs e){if(closing)return;if(OperationBusy){e.Cancel=true;return;}if(runtime!=null&&memory.Alive){var errors=runtime.RestoreAll();if(errors.Count>0){e.Cancel=true;Refresh();MessageBox.Show("以下功能尚未恢复,修改器会保持打开:\n\n"+String.Join("\n\n",errors),"暂不能退出",MessageBoxButton.OK,MessageBoxImage.Warning);return;}}closing=true;timer.Stop();foreach(int id in registered)Native.UnregisterHotKey(hwnd,id);Disconnect();AppPaths.Log("[INFO] Closed");} + } +} diff --git a/src/Memory.cs b/src/Memory.cs new file mode 100644 index 0000000..4fdcbbd --- /dev/null +++ b/src/Memory.cs @@ -0,0 +1,126 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Diagnostics; +using System.IO; +using System.Runtime.InteropServices; +using System.Security.Cryptography; +using System.Text; +namespace PBZ { + public sealed class GameMemory:IDisposable { + public const string SupportedHash="4415933CE33476F14C837ABB61A1B60AF8B78CD81783896501913A7AAC69E423"; + public IntPtr Handle;public Process Process;public long BaseAddress,ModuleSize;public string PathName,Version;public bool TestMode; + readonly Dictionary scanCache=new Dictionary(); + public Action ScanCheckpoint; + UnrealObjectLookup objectLookup;ModuleSignatureIndex moduleIndex;bool supportedImageVerified; + internal long IndexedScanCount,FullScanCount; + public long[] FindNamedObjects(long chunksSlot,long countSlot,long namePool,string specification){if(objectLookup==null)objectLookup=new UnrealObjectLookup(this);return objectLookup.Find(chunksSlot,countSlot,namePool,specification);} + public bool Alive{get{try{return Process!=null&&!Process.HasExited;}catch{return false;}}} + public static Process FindGame(){return FindGame(null);} + internal static Process FindGame(Predicate eligible){ + Process selected=null; + foreach(var p in Process.GetProcessesByName("PBZ")){ + try{ + if(selected==null&&(eligible==null||eligible(p.Id)))selected=p; + }catch(Win32Exception){}catch(InvalidOperationException){} + finally{if(p!=selected)p.Dispose();} + } + if(selected!=null)return selected; + + var title=new StringBuilder(64); + Native.EnumWindows(delegate(IntPtr hwnd,IntPtr unused){ + if(Native.GetWindowText(hwnd,title,title.Capacity)==0||!String.Equals(title.ToString().TrimEnd(),"Phantom Blade Zero",StringComparison.OrdinalIgnoreCase))return true; + uint pid; + if(Native.GetWindowThreadProcessId(hwnd,out pid)==0||pid==0||(eligible!=null&&!eligible((int)pid)))return true; + try{selected=Process.GetProcessById((int)pid);} + catch(ArgumentException){}catch(Win32Exception){}catch(InvalidOperationException){} + return selected==null; + },IntPtr.Zero); + return selected; + } + public void Attach(Process p,bool test){ + if(Handle!=IntPtr.Zero)throw new InvalidOperationException("请先恢复并断开已有进程"); + IntPtr handle=Native.OpenProcess(0x438,false,p.Id); + if(handle==IntPtr.Zero)throw new Win32Exception(Marshal.GetLastWin32Error(),"无法访问游戏;请确认权限与游戏保护状态,必要时以管理员身份启动本程序。"); + try{ + bool wow; + if(!Native.IsWow64Process(handle,out wow))throw new Win32Exception(Marshal.GetLastWin32Error(),"暂时无法读取游戏进程架构。"); + if(wow)throw new NotSupportedException("目标不是有效的 64 位进程。"); + var main=p.MainModule; + if(main==null)throw new InvalidOperationException("游戏主模块尚未就绪,正在等待初始化。"); + string path=main.FileName; + ModuleSignatureIndex index=null; + if(!test){ + using(var sha=SHA256.Create())using(var file=File.OpenRead(path)){ + string hash=BitConverter.ToString(sha.ComputeHash(file)).Replace("-",""); + if(hash!=SupportedHash)throw new NotSupportedException("不支持此游戏版本:文件指纹发生变化,请先更新并验证特征码。"); + } + string indexPath=System.IO.Path.Combine(AppPaths.Root,"resources","ModuleSignatures.tsv"); + try{if(File.Exists(indexPath))index=ModuleSignatureIndex.Parse(File.ReadAllText(indexPath),SupportedHash);} + catch(IOException){}catch(UnauthorizedAccessException){} + } + string version=FileVersionInfo.GetVersionInfo(path).FileVersion; + if(p.HasExited)throw new InvalidOperationException("游戏进程已退出,正在等待重新启动。"); + Process=p;PathName=path;BaseAddress=main.BaseAddress.ToInt64();ModuleSize=main.ModuleMemorySize; + Version=version;TestMode=test;supportedImageVerified=!test;moduleIndex=index; + Handle=handle;handle=IntPtr.Zero; + }finally{if(handle!=IntPtr.Zero)Native.CloseHandle(handle);} + } + public byte[] Read(long address,int count){ + if(!Alive)return null;return ReadAttached(address,count); + } + // The bounded object-table walk checks liveness between batches. The OS + // rejects reads if this already-open process handle exits in between. + internal byte[] ReadAttached(long address,int count){ + if(Handle==IntPtr.Zero||address<0x10000||count<0||count>64*1024*1024)return null; + byte[] data=new byte[count];UIntPtr got;if(!Native.ReadProcessMemory(Handle,new IntPtr(address),data,(UIntPtr)(uint)count,out got)||got.ToUInt64()!=(ulong)count)return null;return data; + } + public bool Write(long address,byte[] data,bool patch){ + if(!Alive||address<0x10000||data==null||data.Length==0)return false; + Native.MBI info;UIntPtr size=(UIntPtr)(uint)Marshal.SizeOf(typeof(Native.MBI)); + if(Native.VirtualQueryEx(Handle,new IntPtr(address),out info,size)==UIntPtr.Zero||info.State!=0x1000||(info.Protect&0x101)!=0)return false; + ulong end=(ulong)address+(ulong)data.Length;if(end>(ulong)info.BaseAddress.ToInt64()+info.RegionSize.ToUInt64())return false; + uint old=0;bool change=patch&&(info.Protect&0xCC)==0; + if(!patch&&(info.Protect&0xCC)==0)return false; + if(change&&!Native.VirtualProtectEx(Handle,new IntPtr(address),(UIntPtr)(uint)data.Length,0x40,out old))return false; + try{UIntPtr written;bool ok=Native.WriteProcessMemory(Handle,new IntPtr(address),data,(UIntPtr)(uint)data.Length,out written)&&written.ToUInt64()==(ulong)data.Length;if(patch)Native.FlushInstructionCache(Handle,new IntPtr(address),(UIntPtr)(uint)data.Length);return ok;} + finally{if(change){uint unused; if(!Native.VirtualProtectEx(Handle,new IntPtr(address),(UIntPtr)(uint)data.Length,old,out unused))throw new Win32Exception(Marshal.GetLastWin32Error(),"恢复内存页权限失败");}} + } + public long Allocate(int bytes,long near){ + if(!Alive||bytes<1||bytes>16*1024*1024)throw new InvalidOperationException("无效的分配请求"); + if(near==0)near=BaseAddress; + long origin=near&~0xffffL; + for(long delta=0x10000;delta<0x70000000;delta+=0x10000){ + long at=origin+delta;Native.MBI mbi; + if(Native.VirtualQueryEx(Handle,new IntPtr(at),out mbi,(UIntPtr)(uint)Marshal.SizeOf(typeof(Native.MBI)))==UIntPtr.Zero)break; + if(mbi.State==0x10000&&mbi.RegionSize.ToUInt64()>=(ulong)bytes){IntPtr found=Native.VirtualAllocEx(Handle,new IntPtr(at),(UIntPtr)(uint)bytes,0x3000,0x40);if(found!=IntPtr.Zero)return found.ToInt64();} + if(mbi.RegionSize.ToUInt64()>0x10000){long next=(mbi.BaseAddress.ToInt64()+(long)mbi.RegionSize.ToUInt64()+0xffff)&~0xffffL;delta=Math.Max(delta,next-origin-0x10000);} + } + IntPtr fallback=Native.VirtualAllocEx(Handle,IntPtr.Zero,(UIntPtr)(uint)bytes,0x3000,0x40);if(fallback==IntPtr.Zero)throw new Win32Exception(Marshal.GetLastWin32Error(),"无法分配功能内存");return fallback.ToInt64(); + } + public bool Free(long address){return Alive&&Native.VirtualFreeEx(Handle,new IntPtr(address),UIntPtr.Zero,0x8000);} + public long[] Scan(string pattern,long start,long end,bool executable){ + if(!Alive)throw new InvalidOperationException("游戏未运行"); + pattern=BytePattern.Normalize(pattern); + string key=pattern+":"+start+":"+end+":"+executable; + long[] cached;if(scanCache.TryGetValue(key,out cached)){bool valid=true;foreach(long a in cached){byte[] b=Read(a,pattern.Split(new[]{' '},StringSplitOptions.RemoveEmptyEntries).Length);if(b==null||BytePattern.Find(b,pattern).Length!=1){valid=false;break;}}if(valid)return cached;scanCache.Remove(key);} + long[] indexed; + if(supportedImageVerified&&moduleIndex!=null&&moduleIndex.TryFind(pattern,BaseAddress,ModuleSize,start,end,executable,Read,ImageCodePage,out indexed)){ + IndexedScanCount++;scanCache[key]=indexed;AppPaths.Log("[SCAN] verified module RVA index "+indexed.Length+" hits");return indexed; + } + FullScanCount++; + var found=new List();int overlap=Math.Max(0,pattern.Split(new[]{' '},StringSplitOptions.RemoveEmptyEntries).Length-1);long p=start;Native.MBI info;UIntPtr sz=(UIntPtr)(uint)Marshal.SizeOf(typeof(Native.MBI)); + while(p<=end){if(Native.VirtualQueryEx(Handle,new IntPtr(p),out info,sz)==UIntPtr.Zero)break;long regionEnd=Math.Min(end+1,info.BaseAddress.ToInt64()+(long)info.RegionSize.ToUInt64()); + if(info.State==0x1000&&(info.Protect&0x101)==0&&(!executable||(info.Protect&0xF0)!=0)){ + for(long chunk=p;chunk10000)throw new InvalidOperationException("特征码过于宽泛,已拒绝继续扫描");}} + } + if(regionEnd<=p)break;p=regionEnd; + } + long[] result=found.ToArray();if(result.Length>0)scanCache[key]=result;return result; + } + bool ImageCodePage(long address){ + Native.MBI page;return Native.VirtualQueryEx(Handle,new IntPtr(address),out page,(UIntPtr)(uint)Marshal.SizeOf(typeof(Native.MBI)))!=UIntPtr.Zero&&page.State==0x1000&&page.Type==0x1000000&&page.AllocationBase.ToInt64()==BaseAddress&&(page.Protect&0x101)==0&&(page.Protect&0xF0)!=0; + } + public void Dispose(){if(Handle!=IntPtr.Zero)Native.CloseHandle(Handle);Handle=IntPtr.Zero;Process=null;scanCache.Clear();objectLookup=null;moduleIndex=null;supportedImageVerified=false;IndexedScanCount=0;FullScanCount=0;} + } +} diff --git a/src/ModuleSignatureIndex.cs b/src/ModuleSignatureIndex.cs new file mode 100644 index 0000000..87f6ed1 --- /dev/null +++ b/src/ModuleSignatureIndex.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +namespace PBZ { + // The index contains module-relative offsets only. The caller must first + // verify the executable's SHA256; every hit is re-read from the live image. + internal sealed class ModuleSignatureIndex { + readonly Dictionary entries=new Dictionary(StringComparer.Ordinal); + internal static ModuleSignatureIndex Parse(string text,string expectedHash){ + try{ + string[] lines=text.Replace("\r","").Split('\n'); + if(lines.Length<1||lines[0]!="PBZ-STATIC-SIGNATURES\t"+expectedHash)return null; + var result=new ModuleSignatureIndex(); + foreach(string line in lines.Skip(1)){ + if(line.Length==0)continue;string[] parts=line.Split('\t');if(parts.Length!=2)return null; + string pattern=BytePattern.Normalize(parts[0]).ToUpperInvariant();var offsets=new List(); + foreach(string item in parts[1].Split(',')){long rva;if(!Int64.TryParse(item,NumberStyles.AllowHexSpecifier,CultureInfo.InvariantCulture,out rva)||rva<0||rva>Int32.MaxValue)return null;offsets.Add(rva);} + if(offsets.Count<1||offsets.Count>64||offsets.Distinct().Count()!=offsets.Count||result.entries.ContainsKey(pattern))return null; + result.entries.Add(pattern,offsets.ToArray()); + } + return result; + }catch(FormatException){return null;}catch(OverflowException){return null;} + } + internal bool TryFind(string pattern,long imageBase,long imageSize,long start,long end,bool executable,Func read,Func imageCodePage,out long[] hits){ + hits=null;if(!executable||imageBase<0x10000||imageSize<1||imageSize>Int32.MaxValue||start!=imageBase||end-imageBase!=imageSize-1)return false; + string normalized=BytePattern.Normalize(pattern).ToUpperInvariant();long[] offsets;if(!entries.TryGetValue(normalized,out offsets))return false; + int length=normalized.Split(' ').Length;var found=new long[offsets.Length]; + for(int i=0;iimageSize-length||rva<0)return false;long address=imageBase+rva; + if(!imageCodePage(address)||!imageCodePage(address+length-1))return false; + byte[] bytes=read(address,length);if(bytes==null||bytes.Length!=length||!BytePattern.Find(bytes,normalized).SequenceEqual(new[]{0}))return false; + found[i]=address; + } + hits=found;return true; + } + } +} \ No newline at end of file diff --git a/src/Native.cs b/src/Native.cs new file mode 100644 index 0000000..a0814ee --- /dev/null +++ b/src/Native.cs @@ -0,0 +1,41 @@ +using System; +using System.Runtime.InteropServices; +using System.Text; +namespace PBZ { + internal static class Native { + [StructLayout(LayoutKind.Sequential)] internal struct MBI {public IntPtr BaseAddress,AllocationBase;public uint AllocationProtect;public ushort PartitionId;public UIntPtr RegionSize;public uint State,Protect,Type;} + [DllImport("kernel32.dll",SetLastError=true)]internal static extern IntPtr OpenProcess(uint access,bool inherit,int pid); + [DllImport("kernel32.dll",SetLastError=true)]internal static extern bool CloseHandle(IntPtr handle); + [DllImport("kernel32.dll",SetLastError=true)]internal static extern bool ReadProcessMemory(IntPtr process,IntPtr address,byte[] data,UIntPtr size,out UIntPtr read); + [DllImport("kernel32.dll",SetLastError=true)]internal static extern bool WriteProcessMemory(IntPtr process,IntPtr address,byte[] data,UIntPtr size,out UIntPtr written); + [DllImport("kernel32.dll",SetLastError=true)]internal static extern UIntPtr VirtualQueryEx(IntPtr process,IntPtr address,out MBI info,UIntPtr size); + [DllImport("kernel32.dll",SetLastError=true)]internal static extern bool VirtualProtectEx(IntPtr process,IntPtr address,UIntPtr size,uint protect,out uint oldProtect); + [DllImport("kernel32.dll",SetLastError=true)]internal static extern IntPtr VirtualAllocEx(IntPtr process,IntPtr address,UIntPtr size,uint type,uint protect); + [DllImport("kernel32.dll",SetLastError=true)]internal static extern bool VirtualFreeEx(IntPtr process,IntPtr address,UIntPtr size,uint type); + [DllImport("kernel32.dll")]internal static extern bool FlushInstructionCache(IntPtr process,IntPtr address,UIntPtr size); + [DllImport("kernel32.dll")]internal static extern bool IsWow64Process(IntPtr process,out bool wow); + [DllImport("user32.dll")]internal static extern short GetAsyncKeyState(int key); + [DllImport("user32.dll")]internal static extern IntPtr GetForegroundWindow(); + [DllImport("user32.dll")]internal static extern IntPtr GetWindow(IntPtr hwnd,uint command); + [DllImport("user32.dll")]internal static extern uint GetWindowThreadProcessId(IntPtr hwnd,out uint pid); + internal delegate bool WindowVisitor(IntPtr hwnd,IntPtr parameter); + [DllImport("user32.dll")]internal static extern bool EnumWindows(WindowVisitor visitor,IntPtr parameter); + [DllImport("user32.dll",CharSet=CharSet.Unicode)]internal static extern int GetWindowText(IntPtr hwnd,StringBuilder text,int length); + [DllImport("user32.dll",CharSet=CharSet.Unicode)]internal static extern int GetClassName(IntPtr hwnd,StringBuilder name,int length); + [DllImport("user32.dll")]internal static extern bool IsWindowVisible(IntPtr hwnd); + [DllImport("user32.dll")]internal static extern bool IsIconic(IntPtr hwnd); + [DllImport("user32.dll")]internal static extern bool GetClientRect(IntPtr hwnd,IntPtr rect); + [DllImport("user32.dll")]internal static extern bool ClientToScreen(IntPtr hwnd,IntPtr point); + [DllImport("user32.dll",EntryPoint="GetWindowLongPtrW")]internal static extern IntPtr GetWindowLongPtr(IntPtr hwnd,int index); + [DllImport("user32.dll",EntryPoint="SetWindowLongPtrW")]internal static extern IntPtr SetWindowLongPtr(IntPtr hwnd,int index,IntPtr value); + [DllImport("user32.dll")]internal static extern bool SetWindowPos(IntPtr hwnd,IntPtr after,int x,int y,int width,int height,uint flags); + [DllImport("user32.dll")]internal static extern bool ShowWindow(IntPtr hwnd,int command); + [DllImport("user32.dll",SetLastError=true)]internal static extern bool RegisterHotKey(IntPtr hwnd,int id,uint mods,uint key); + [DllImport("user32.dll")]internal static extern bool UnregisterHotKey(IntPtr hwnd,int id); + [DllImport("xinput1_4.dll")]internal static extern uint XInputGetState(uint index,out XState state); + [StructLayout(LayoutKind.Sequential)]internal struct XState { public uint Packet;public ushort Buttons;public byte LeftTrigger,RightTrigger;public short LX,LY,RX,RY;} + [DllImport("kernel32.dll",CharSet=CharSet.Unicode,SetLastError=true)]internal static extern IntPtr LoadLibrary(string path); + [DllImport("kernel32.dll",CharSet=CharSet.Ansi,SetLastError=true)]internal static extern IntPtr GetProcAddress(IntPtr module,string name); + [DllImport("dwmapi.dll")]internal static extern int DwmSetWindowAttribute(IntPtr hwnd,int attribute,ref int value,int size); + } +} diff --git a/src/Program.cs b/src/Program.cs new file mode 100644 index 0000000..4f5ba5e --- /dev/null +++ b/src/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.IO; +using System.Windows; +using System.Windows.Markup; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Threading; +namespace PBZ { + internal static class Program { + [STAThread]static int Main(string[] args){ + try{ + Directory.CreateDirectory(AppPaths.Logs);Environment.SetEnvironmentVariable("TEMP",Path.Combine(AppPaths.Root,"temp"));Environment.SetEnvironmentVariable("TMP",Path.Combine(AppPaths.Root,"temp"));Directory.CreateDirectory(Path.Combine(AppPaths.Root,"temp")); + var app=new Application{ShutdownMode=ShutdownMode.OnMainWindowClose}; + app.DispatcherUnhandledException+=delegate(object s,DispatcherUnhandledExceptionEventArgs e){AppPaths.Log("[UNHANDLED] "+e.Exception);MessageBox.Show(e.Exception.Message,"修改器错误",MessageBoxButton.OK,MessageBoxImage.Error);e.Handled=true;}; + app.Resources=(ResourceDictionary)XamlReader.Parse(File.ReadAllText(Path.Combine(AppPaths.Root,"resources","Theme.xaml"))); + bool preview=Array.IndexOf(args,"--preview")>=0;var window=new MainWindow(preview);app.MainWindow=window; + if(preview){window.Loaded+=delegate{window.Dispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle,new Action(delegate{var content=(FrameworkElement)window.Content;var image=new RenderTargetBitmap((int)content.ActualWidth,(int)content.ActualHeight,96,96,PixelFormats.Pbgra32);image.Render(content);var png=new PngBitmapEncoder();png.Frames.Add(BitmapFrame.Create(image));using(var stream=File.Create(Path.Combine(AppPaths.Root,"preview.png")))png.Save(stream);window.Close();}));};} + return app.Run(window); + }catch(Exception e){AppPaths.Log("[FATAL] "+e);MessageBox.Show(e.ToString(),"启动失败",MessageBoxButton.OK,MessageBoxImage.Error);return 1;} + } + } +} diff --git a/src/Runtime.cs b/src/Runtime.cs new file mode 100644 index 0000000..19fa62c --- /dev/null +++ b/src/Runtime.cs @@ -0,0 +1,173 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.IO; +using System.Linq; +using System.Runtime.InteropServices; +using System.Text; +using System.Threading; +using System.Windows; +using System.Windows.Threading; +namespace PBZ { + public sealed class ScriptRuntime:IDisposable { + public readonly GameMemory Memory;public readonly List Features;public UIBridge UI;public IntPtr State;public long Owner;public event Action Changed; + UnrealWidgetLookup espObjects;readonly Assembler assembler;readonly L.Callback hostCallback;readonly Dictionary timers=new Dictionary();readonly Dictionary keys=new Dictionary();readonly Dictionary localBuffers=new Dictionary();int serial;bool disposed; + readonly Dispatcher dispatcher=Dispatcher.CurrentDispatcher;readonly Stopwatch uiClock=Stopwatch.StartNew();bool operationBusy,pumping; + public bool IsBusy{get{return operationBusy;}} + void Checkpoint(){ + if(!operationBusy||pumping||uiClock.ElapsedMilliseconds<20||dispatcher.HasShutdownStarted)return; + pumping=true;try{dispatcher.Invoke(DispatcherPriority.Background,new Action(delegate{}));}finally{uiClock.Restart();pumping=false;} + } + sealed class WriteBackup{public long Address;public byte[] Bytes,After;} + sealed class FeatureTransaction { + public bool Enabling,BeforeActive;public readonly List Writes=new List();public readonly HashSet Captured=new HashSet();public HashSet PreviousAllocations; + public readonly Dictionary> TimerStates=new Dictionary>(); + public readonly List CommitActions=new List(),CancelActions=new List(); + } + readonly Dictionary ownedAllocations=new Dictionary();readonly Dictionary recoveryJournals=new Dictionary();FeatureTransaction transaction; + public bool DeferCleanup{get{return transaction!=null&&!transaction.Enabling;}} + public int PendingRecoveryCount{get{return recoveryJournals.Count;}} + public void Defer(Action action,Action cancel){if(!DeferCleanup){action();return;}transaction.CommitActions.Add(action);if(cancel!=null)transaction.CancelActions.Add(cancel);} + sealed class TimerInfo{public DispatcherTimer Timer;public int Callback;public long Owner;} + sealed class KeyInfo{public int Callback;public int[] Keys;public bool Down;public long Owner;} + public ScriptRuntime(GameMemory memory,List features){ + Memory=memory;Features=features;assembler=new Assembler(AppPaths.Root);State=L.luaL_newstate();if(State==IntPtr.Zero)throw new Exception("Lua 初始化失败");L.luaL_openlibs(State);hostCallback=Host;L.lua_pushcclosure(State,hostCallback,0);L.lua_setglobal(State,"host"); + Execute(File.ReadAllText(Path.Combine(AppPaths.Root,"resources","Runtime.lua"),Encoding.UTF8),"runtime");Execute(File.ReadAllText(Path.Combine(AppPaths.Root,"resources","Assembler.lua"),Encoding.UTF8),"assembler");Execute(File.ReadAllText(Path.Combine(AppPaths.Root,"resources","UI.lua"),Encoding.UTF8),"ui"); + Execute(File.ReadAllText(Path.Combine(AppPaths.Root,"resources","ItemNames.zh-CN.lua"),Encoding.UTF8),"item-names-zh-CN"); + Execute(File.ReadAllText(Path.Combine(AppPaths.Root,"resources","ItemBrowser.lua"),Encoding.UTF8),"item-browser"); + string reflection=AdaptUtilityScript(File.ReadAllText(ScriptPath(1337142256),Encoding.UTF8)).Replace("fields[fname(f+0x20)]={offset=off,size=size", "fields[fname(f+0x20)]={address=f,offset=off,size=size");int reflectionStart=reflection.IndexOf("local signatures=",StringComparison.Ordinal),reflectionEnd=reflection.IndexOf("local wr=uniqueScan",StringComparison.Ordinal); + if(reflectionStart<0||reflectionEnd<=reflectionStart)throw new Exception("玩家速度反射助手结构不匹配"); + Execute("do\n"+reflection.Substring(reflectionStart,reflectionEnd-reflectionStart)+File.ReadAllText(Path.Combine(AppPaths.Root,"resources","PlayerSpeed.lua"),Encoding.UTF8)+File.ReadAllText(Path.Combine(AppPaths.Root,"resources","CombatParameters.lua"),Encoding.UTF8)+File.ReadAllText(Path.Combine(AppPaths.Root,"resources","AutoDodge.lua"),Encoding.UTF8)+"\nend","player-speed-and-combat"); + Execute(File.ReadAllText(Path.Combine(AppPaths.Root,"resources","DamageNumbers.lua"),Encoding.UTF8),"damage-numbers"); + foreach(string resource in new[]{"AccessorySelection.lua","AccessoryReadOnly.lua","AccessoryNative.lua"})Execute(File.ReadAllText(Path.Combine(AppPaths.Root,"resources",resource),Encoding.UTF8),resource); + int utilityEnd=reflection.IndexOf("local old=rawget(_G,'PBZ_SaveMenuAnywhere')",StringComparison.Ordinal); + if(utilityEnd<=reflectionEnd)throw new Exception("游戏线程调度助手结构不匹配"); + Execute("function NativeDamageNumberDependencies()\n"+reflection.Substring(reflectionStart,utilityEnd-reflectionStart)+"\nreturn {namePool=state.namePool,objectSlots=function()return state.objectChunksSlot,state.objectCountSlot end,context=context,objectInventory=objectInventory,staticTarget=staticTarget,acquireDispatch=acquireDispatch,q=q,ptr=ptr,uniqueScan=uniqueScan,exactString=exactString,identity=identity,valid=valid,weakReference=function(id) if not valid(id)then return end;local count=assert(readInteger(state.objectCountSlot),'对象数量不可读');if id.index<0 or id.index>=count then return end;local chunks=assert(q(state.objectChunksSlot),'对象表不可读');local chunk=assert(q(chunks+(id.index>>16)*8),'对象块不可读');local item=chunk+(id.index&0xFFFF)*24;local flags=assert(readInteger(item+4),'对象状态不可读');local object=assert(q(item+8),'对象引用不可读');if flags&0x10200000~=0 or object~=id.address then return end;local serial=assert(readInteger(item+16),'对象序列号不可读');if serial==0 then return end;return (serial<<32)|id.index end,field=field,properties=properties,fname=fname,offset=offset,classOf=classOf,array=array,functions=functions,nativeFunction=nativeFunction,prepareObjects=function() local ref=uniqueScan(signatures.objects);state.objectChunksSlot=ref+0x2B+readInteger(ref+0x27,true);state.objectCountSlot=ref+0x15+readInteger(ref+0x11,true)end,worldSlot=state.worldSlot}\nend\nfunction EnableNativeDamageNumbers()return StartInitializedNativeDamageNumbers(NativeDamageNumberDependencies())end\nfunction DamageNumbersPreflight()return PreflightNativeDamageNumbers(NativeDamageNumberDependencies())end","native-damage-number-helpers"); + foreach(string resource in new[]{"EspSupport.lua","EspNativeProjection.lua","HyperArmor.lua","FlashStep.lua"})Execute(File.ReadAllText(Path.Combine(AppPaths.Root,"resources",resource),Encoding.UTF8),resource); + foreach(var f in features)Define(f.Id,f.English,File.ReadAllText(ScriptPath(f.Id),Encoding.UTF8));Define(1337142241,"复制诊断报告",File.ReadAllText(ScriptPath(1337142241),Encoding.UTF8)); + Memory.ScanCheckpoint=Checkpoint; + } + string ScriptPath(long id){return Path.Combine(AppPaths.Root,"resources","scripts",id+".aa");} + public void Execute(string source,string name){int top=L.lua_gettop(State);try{byte[] data=Encoding.UTF8.GetBytes(source);if(L.luaL_loadbufferx(State,data,(UIntPtr)(uint)data.Length,name,"t")!=0||L.lua_pcallk(State,0,0,0,0,IntPtr.Zero)!=0)throw new Exception(L.Text(State,-1));}finally{L.lua_settop(State,top);}} + public object Call(string name,params object[] values){int top=L.lua_gettop(State);try{L.lua_getglobal(State,name);foreach(var v in values)L.Push(State,v);if(L.lua_pcallk(State,values.Length,1,0,0,IntPtr.Zero)!=0)throw new Exception(L.Text(State,-1));int type=L.lua_type(State,-1);if(type==1)return L.lua_toboolean(State,-1)!=0;if(type==3)return L.lua_tointegerx(State,-1,IntPtr.Zero);if(type==4)return L.Text(State,-1);return null;}finally{L.lua_settop(State,top);}} + string AdaptUtilityScript(string script){ + script=script.Replace("\r\n","\n"); + const string inventoryStart="local function objectInventory(wanted)";const string inventoryEnd="local function setBit"; + int inventoryAt=script.IndexOf(inventoryStart,StringComparison.Ordinal),inventoryTo=script.IndexOf(inventoryEnd,inventoryAt,StringComparison.Ordinal); + if(inventoryAt<0||inventoryTo<=inventoryAt)throw new Exception("对象查找接口结构不匹配"); + script=script.Substring(0,inventoryAt)+File.ReadAllText(Path.Combine(AppPaths.Root,"resources","ObjectInventory.lua"),Encoding.UTF8)+"\n"+script.Substring(inventoryTo); + const string check=" cmp dword ptr [rbx+7C],1"; + if(!script.Contains(check))throw new Exception("游戏线程动画保护接口结构不匹配"); + const string eventCall=" mov rcx,[rbx+20]\n mov rdx,[rbx+40]\n lea r8,[rbx+80]\n mov rax,[rcx]\n call qword ptr [rax+260]"; + if(!script.Contains(eventCall))throw new Exception("伤害数字初始化调度接口结构不匹配"); + string nativeDispatch=File.ReadAllText(Path.Combine(AppPaths.Root,"resources","AccessoryNativeDispatch.aa"),Encoding.UTF8).Replace("__ORIGINAL__",File.ReadAllText(Path.Combine(AppPaths.Root,"resources","DamageInitializeDispatch.aa"),Encoding.UTF8)); + nativeDispatch=File.ReadAllText(Path.Combine(AppPaths.Root,"resources","EspProjectionDispatch.aa"),Encoding.UTF8).Replace("__ORIGINAL__",nativeDispatch); + nativeDispatch=File.ReadAllText(Path.Combine(AppPaths.Root,"resources","DamageSwitchDispatch.aa"),Encoding.UTF8).Replace("__ORIGINAL__",nativeDispatch); + return script.Replace(eventCall,nativeDispatch).Replace("for n,v in pairs(values) do","values.PBZ_DN_SwitchRoot=getAddress('PBZ.exe')+0xe0cdea0\nvalues.PBZ_DN_SwitchVtable=getAddress('PBZ.exe')+0xa6c61a8\nvalues.PBZ_DN_SwitchSetter=getAddress('PBZ.exe')+0x12c0bf0\nvalues.PBZ_DN_InitializeNative=getAddress('PBZ.exe')+0x7e461c0\nvalues.PBZ_AC_Apply=getAddress('PBZ.exe')+0x697fe40\nvalues.PBZ_AC_RemoveNative=getAddress('PBZ.exe')+0x69a84b0\nvalues.PBZ_AC_FindEffects=getAddress('PBZ.exe')+0x1319690\nvalues.PBZ_AC_FindOwned=getAddress('PBZ.exe')+0x12ae020\n for n,v in pairs(values) do").Replace("d={pid=state.pid,users=","d={nativeDamageSwitchVersion=1,nativeEspProjectionVersion=1,nativeAccessoryVersion=1,nativeDamageInitializationVersion=1,pid=state.pid,users="); + } + void Define(long id,string description,string script){ + if(id==1337142254||id==1337142256){ + script=AdaptUtilityScript(script); + const string stop="s.stop=function()",release=" local restore=dispatcher.release("; + int start=script.IndexOf(stop,StringComparison.Ordinal),end=script.IndexOf(release,start,StringComparison.Ordinal); + if(start<0||end<0)throw new Exception("共享功能恢复准备接口结构不匹配"); + script=script.Insert(end,"end\ns.stop=function()\n s.prepareStop()\n"); + script=script.Remove(start,stop.Length).Insert(start,"s.prepareStop=function()"); + } + if(id==1337142245){ + const string marker="local signatures = {";int position=script.IndexOf(marker,StringComparison.Ordinal); + if(position<0)throw new Exception("物品目录结构不匹配,无法加载中文名称。"); + script=script.Insert(position,"LocalizeItemCatalog(catalog)\n"); + script=script.Replace("'Item ID: '","'物品 ID:'").Replace("'Legacy collection definition. The current inventory registry may reject this ID.'","'旧版收集物定义:当前游戏的背包注册表可能拒绝此 ID。'"); + script=script.Replace("\r\n","\n"); + const string resultMarker="local result=readInteger(state.mailbox)",attachMarker="_G.PBZ_ItemBrowser=state\nstate.timer.Enabled=true"; + if(!script.Contains(resultMarker)||!script.Contains(attachMarker))throw new Exception("物品生成状态接口结构不匹配"); + script=script.Replace(resultMarker,resultMarker+";state.lastResult=result").Replace(attachMarker,"_G.PBZ_ItemBrowser=state\nAttachStandaloneItemBrowser(state)\nstate.timer.Enabled=true"); + } + Call("DefineFeature",id,description,script); + } + public void Toggle(long id,bool enabled){ + if(operationBusy)throw new Exception("另一个功能正在处理,请稍后重试。"); + operationBusy=true;uiClock.Restart();var elapsed=Stopwatch.StartNew(); + try{if(UI!=null)UI.SetBusy(true);if(enabled&&(id==1337142267||id==1337142246||id==1337142254||id==1337142256||id==1337142263||id==1337142264))Call("PrepareSharedUtilityEnable");if(id==1337142267&&!enabled)Call("PrepareHyperArmorDisable");if(id==1337142246&&!enabled)Call("PrepareEspProjectionDisable");if(id==1337142263&&!enabled)Call("PrepareNativeDamageNumberDisable");if(id==1337142264&&!enabled)Call("PrepareNativeAccessoryDisable");if((id==1337142254||id==1337142256)&&!enabled)Call("PrepareSharedUtilityDisable",id);ToggleCore(id,enabled);} + finally{operationBusy=false;if(UI!=null)UI.SetBusy(false);AppPaths.Log("[TIMING] "+id+" "+(enabled?"enable":"disable")+" "+elapsed.ElapsedMilliseconds+" ms");if(Changed!=null)Changed();} + } + void ToggleCore(long id,bool enabled){ + if(!Memory.Alive)throw new Exception("游戏已退出,无法操作功能"); + FeatureTransaction pending;if(recoveryJournals.TryGetValue(id,out pending)){if(enabled)throw new Exception("该功能有待恢复事务,请先关闭并恢复。");RetryRecovery(id,pending);if(!pending.BeforeActive){if(Changed!=null)Changed();return;}} + long previous=Owner;Owner=id; + if(transaction!=null)throw new Exception("另一个功能事务尚未结束,请稍后重试"); + var currentFeature=Features.FirstOrDefault(x=>x.Id==id);var tx=new FeatureTransaction{Enabling=enabled,BeforeActive=currentFeature!=null&¤tFeature.Active,PreviousAllocations=new HashSet(ownedAllocations.Keys)};foreach(var pair in timers)tx.TimerStates[pair.Key]=Tuple.Create(pair.Value.Timer.IsEnabled,pair.Value.Timer.Interval);transaction=tx; + try{Call("BeginFeatureTransaction",id);Call("ToggleFeature",id,enabled);Call("CommitFeatureTransaction",id);transaction=null; + foreach(var action in tx.CommitActions){try{action();}catch(Exception cleanupError){AppPaths.Log("[CLEANUP WARNING] "+cleanupError.Message);}} + recoveryJournals.Remove(id);Feature f=Features.FirstOrDefault(x=>x.Id==id);if(f!=null){f.Active=enabled;f.RecoveryRequired=false;}AppPaths.Log("[INFO] "+id+" "+(enabled?"ON":"OFF"));if(Changed!=null)Changed();} + catch(Exception e){ + bool recovered=true;transaction=null; + for(int i=tx.Writes.Count-1;i>=0;i--){try{if(!Memory.Write(tx.Writes[i].Address,tx.Writes[i].Bytes,true))recovered=false;}catch{recovered=false;}} + if(recovered)RestoreTransactionState(id,tx); + else{recoveryJournals[id]=tx;Feature f=Features.FirstOrDefault(x=>x.Id==id);if(f!=null){f.Active=true;f.RecoveryRequired=true;}Call("MarkRecovery",id);foreach(var t in timers.Values.Where(t=>t.Owner==id))t.Timer.Stop();AppPaths.Log("[RECOVERY REQUIRED] "+id+" before-byte journal retained: "+tx.Writes.Count);throw new Exception("功能事务失败,且有内存写入未能恢复。原字节记录已保留。请保持程序打开,尝试关闭该功能;若仍失败,请正常退出游戏后再关闭修改器。\n"+e.Message,e);} + AppPaths.Log("[ERROR] "+id+" "+e.Message);throw; + } + finally{Owner=previous;transaction=null;} + } + void RestoreTransactionState(long id,FeatureTransaction tx){Call("RollbackFeatureTransaction",id);if(tx.Enabling)CleanupOwner(id);foreach(long a in ownedAllocations.Keys.Where(a=>!tx.PreviousAllocations.Contains(a)).ToArray()){if(Memory.Free(a))ownedAllocations.Remove(a);}foreach(var pair in tx.TimerStates){TimerInfo t;if(timers.TryGetValue(pair.Key,out t)){t.Timer.Interval=pair.Value.Item2;if(pair.Value.Item1)t.Timer.Start();else t.Timer.Stop();}}foreach(var cancel in tx.CancelActions)cancel();} + void RetryRecovery(long id,FeatureTransaction tx){ + foreach(var w in tx.Writes){bool stable=w.Address>=Memory.BaseAddress&&w.Address+w.Bytes.Length<=Memory.BaseAddress+Memory.ModuleSize||ownedAllocations.Any(a=>w.Address>=a.Key&&w.Address+w.Bytes.Length<=a.Key+a.Value);if(!stable)throw new Exception("待恢复记录涉及动态游戏对象,无法确认对象是否仍属于原玩家,已拒绝盲目覆盖。请正常退出游戏,原字节记录会保留到进程结束。");byte[] current=Memory.Read(w.Address,w.Bytes.Length);if(current==null)throw new Exception("待恢复目标不可读,请保持修改器打开并正常退出游戏。");for(int i=0;i=0;i--)if(!Memory.Write(tx.Writes[i].Address,tx.Writes[i].Bytes,true))throw new Exception("恢复重试仍未成功;原始数据继续保留,请正常退出游戏。"); + RestoreTransactionState(id,tx);recoveryJournals.Remove(id);Feature feature=Features.FirstOrDefault(f=>f.Id==id);if(feature!=null){feature.Active=tx.BeforeActive;feature.RecoveryRequired=false;}AppPaths.Log("[INFO] Recovery journal restored "+id); + } + public void PollFeatureHealth(){foreach(var f in Features){string next=f.Active&&!f.RecoveryRequired?Call("FeatureProblem",f.Id) as string:null;if(next!=f.HealthError){f.HealthError=next;if(!String.IsNullOrEmpty(next))AppPaths.Log("[FEATURE WARNING] "+f.Id+" "+next);}}} + public List RestoreAll(){var errors=new List();for(int i=Features.Count-1;i>=0;i--){var f=Features[i];if(!f.Active)continue;try{Toggle(f.Id,false);}catch(Exception e){errors.Add(f.Name+":"+e.Message);}}return errors;} + public void Invoke(int reference,long owner){if(disposed||operationBusy||reference==0)return;int top=L.lua_gettop(State);long previous=Owner;Owner=owner;try{L.lua_rawgeti(State,L.Registry,reference);if(L.lua_pcallk(State,0,0,0,0,IntPtr.Zero)!=0)throw new Exception(L.Text(State,-1));}catch(Exception e){AppPaths.Log("[CALLBACK ERROR] "+e.Message);}finally{L.lua_settop(State,top);Owner=previous;}} + public int Ref(int index){L.lua_pushvalue(State,index);return L.luaL_ref(State,L.Registry);} + public void Unref(int reference){if(!disposed&&reference>0)L.luaL_unref(State,L.Registry,reference);} + long N(int i){return L.lua_tointegerx(State,i,IntPtr.Zero);}string S(int i){return L.Text(State,i);}bool B(int i){return L.lua_toboolean(State,i)!=0;} + public object Value(int i){switch(L.lua_type(State,i)){case 0:return null;case 1:return B(i);case 3:return L.lua_tonumberx(State,i,IntPtr.Zero);case 4:return S(i);case 6:return Ref(i);default:return null;}} + int Host(IntPtr s){try{Checkpoint();object result=Dispatch(S(1));L.lua_pushboolean(s,1);L.Push(s,result);return 2;}catch(Exception e){L.lua_pushboolean(s,0);L.Push(s,e.Message);return 2;}} + object Dispatch(string op){switch(op){ + case "pid":return Memory.Process==null?0:Memory.Process.Id;case "base":return Memory.BaseAddress;case "size":return Memory.ModuleSize;case "path":return Memory.PathName; + case "read":return Memory.Read(N(2),checked((int)N(3)));case "write":{long address=N(2);byte[] bytes=L.Bytes(State,3);if(transaction!=null&&!ownedAllocations.Any(a=>!transaction.PreviousAllocations.Contains(a.Key)&&address>=a.Key&&address+bytes.Length<=a.Key+a.Value)){byte[] before=Memory.Read(address,bytes.Length);if(before==null)throw new Exception("无法备份事务写入的原始数据");for(int i=0;i{{"ThumbLeftX",x.LX},{"ThumbLeftY",x.LY},{"ThumbRightX",x.RX},{"ThumbRightY",x.RY},{"GAMEPAD_LEFT_SHOULDER",(x.Buttons&0x100)!=0},{"GAMEPAD_RIGHT_SHOULDER",(x.Buttons&0x200)!=0},{"wButtons",x.Buttons},{"bLeftTrigger",x.LeftTrigger},{"bRightTrigger",x.RightTrigger}};} + case "timerCreate":{int id=++serial;var t=new TimerInfo{Timer=new DispatcherTimer(DispatcherPriority.Background),Owner=Owner};t.Timer.Interval=TimeSpan.FromMilliseconds(100);t.Timer.Tick+=delegate{if(t.Callback>0)Invoke(t.Callback,t.Owner);};timers[id]=t;return id;} + case "timerGet":{TimerInfo t;if(!timers.TryGetValue((int)N(2),out t))return null;return S(3)=="Enabled"?(object)t.Timer.IsEnabled:t.Timer.Interval.TotalMilliseconds;} + case "timerSet":{TimerInfo t;if(!timers.TryGetValue((int)N(2),out t))return null;string k=S(3);if(k=="Interval")t.Timer.Interval=TimeSpan.FromMilliseconds(Math.Max(10,N(4)));else if(k=="OnTimer"){int reference=L.lua_type(State,4)==L.Function?Ref(4):0;Defer(delegate{Unref(t.Callback);t.Callback=reference;},delegate{Unref(reference);});}else if(k=="Enabled"){if(B(4))t.Timer.Start();else t.Timer.Stop();}else throw new Exception("Unknown timer property "+k);return true;} + case "timerDestroy":{int id=(int)N(2);Defer(delegate{TimerInfo t;if(timers.TryGetValue(id,out t)){t.Timer.Stop();Unref(t.Callback);timers.Remove(id);}},null);return true;} + case "hotkeyCreate":{var list=new List();int count=(int)L.lua_rawlen(State,3).ToUInt64();for(int i=1;i<=count;i++){L.lua_rawgeti(State,3,i);list.Add((int)N(-1));L.lua_settop(State,-2);}int id=++serial;keys[id]=new KeyInfo{Callback=Ref(2),Keys=list.ToArray(),Owner=Owner};return id;} + case "hotkeyDestroy":{int id=(int)N(2);Defer(delegate{KeyInfo k;if(keys.TryGetValue(id,out k)){Unref(k.Callback);keys.Remove(id);}},null);return true;} + case "localAlloc":{int size=(int)N(2);if(size<1||size>65536)throw new Exception("Invalid scratch allocation");IntPtr p=Marshal.AllocHGlobal(size);localBuffers[p.ToInt64()]=size;Marshal.Copy(new byte[size],0,p,size);return p.ToInt64();} + case "localFree":{long p=N(2);if(localBuffers.Remove(p))Marshal.FreeHGlobal(new IntPtr(p));return true;} + case "localRead":{long p=N(2);int size=(int)N(3);CheckLocal(p,size);byte[] b=new byte[size];Marshal.Copy(new IntPtr(p),b,0,size);return b;} + case "localWrite":{long p=N(2);byte[] b=L.Bytes(State,3);CheckLocal(p,b.Length);Marshal.Copy(b,0,new IntPtr(p),b.Length);return true;} + case "localCall":return LocalCall(); + default:if(UI!=null&&op.StartsWith("ui",StringComparison.Ordinal))return UI.Dispatch(op);if(UI!=null&&op.StartsWith("canvas",StringComparison.Ordinal))return UI.Dispatch(op);throw new Exception("独立运行时尚未支持的操作:"+op); + }} + void CheckLocal(long p,int n){foreach(var b in localBuffers)if(p>=b.Key&&n>=0&&p+n<=b.Key+b.Value)return;throw new Exception("Scratch address is outside owned memory");} + object LocalCall(){string name=S(2);IntPtr h=new IntPtr(N(3));switch(name){ + case "gdi32.CreateRoundRectRgn":return 1L;case "gdi32.DeleteObject":return 1L;case "user32.SetWindowRgn":return 1L; + case "user32.ShowWindow":return Native.ShowWindow(h,(int)N(4))?1:0; + case "user32.IsWindowVisible":return Native.IsWindowVisible(h)?1:0;case "user32.IsIconic":return Native.IsIconic(h)?1:0; + case "user32.GetClientRect":CheckLocal(N(4),16);return Native.GetClientRect(h,new IntPtr(N(4)))?1:0; + case "user32.ClientToScreen":CheckLocal(N(4),8);return Native.ClientToScreen(h,new IntPtr(N(4)))?1:0; + case "user32.GetWindowLongPtrW":return Native.GetWindowLongPtr(h,(int)N(4)).ToInt64(); + case "user32.SetWindowLongPtrW":return Native.SetWindowLongPtr(h,(int)N(4),new IntPtr(N(5))).ToInt64(); + case "user32.SetWindowPos":return Native.SetWindowPos(h,new IntPtr(N(4)),(int)N(5),(int)N(6),(int)N(7),(int)N(8),(uint)N(9))?1:0; + default:throw new Exception("拒绝执行未列入白名单的本地函数:"+name); + }} + public void PollKeys(){foreach(var k in keys.Values.ToArray()){bool down=k.Keys.Length>0&&k.Keys.All(v=>(Native.GetAsyncKeyState(v)&0x8000)!=0);if(down&&!k.Down)Invoke(k.Callback,k.Owner);k.Down=down;}} + void CleanupOwner(long owner){foreach(var pair in timers.Where(p=>p.Value.Owner==owner).ToArray()){pair.Value.Timer.Stop();Unref(pair.Value.Callback);timers.Remove(pair.Key);}foreach(var pair in keys.Where(p=>p.Value.Owner==owner).ToArray()){Unref(pair.Value.Callback);keys.Remove(pair.Key);}if(UI!=null)UI.Cleanup(owner);} + public void Dispose(){if(disposed)return;Memory.ScanCheckpoint=null;foreach(var t in timers.Values)t.Timer.Stop();timers.Clear();keys.Clear();if(UI!=null)UI.Dispose();foreach(long p in localBuffers.Keys)Marshal.FreeHGlobal(new IntPtr(p));localBuffers.Clear();L.lua_close(State);State=IntPtr.Zero;disposed=true;} + } +} diff --git a/src/SpeedSettings.cs b/src/SpeedSettings.cs new file mode 100644 index 0000000..93c1799 --- /dev/null +++ b/src/SpeedSettings.cs @@ -0,0 +1,28 @@ +using System; +using System.Globalization; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Media; +namespace PBZ { + public sealed partial class MainWindow { + void SpeedSettings(Feature feature){ + if(OperationBusy)return; + if(runtime==null||!feature.Active||feature.RecoveryRequired){MessageBox.Show("请先确保对应速度功能已开启且没有待恢复操作。",feature.Name);return;} + double current=Double.Parse((string)runtime.Call("PlayerSpeedFactor",feature.Id),CultureInfo.InvariantCulture); + var window=new Window{Title=feature.Name,Owner=this,Width=465,Height=360,ResizeMode=ResizeMode.NoResize,WindowStartupLocation=WindowStartupLocation.CenterOwner,Background=Theme.Background,Foreground=Theme.Text,FontFamily=FontFamily}; + var panel=new StackPanel{Margin=new Thickness(24)};window.Content=panel;panel.Children.Add(Theme.Label(feature.Name,20,Theme.Text)); + panel.Children.Add(new TextBlock{Text=feature.Id==1337142258?"仅调整行走动画播放倍率;实机未实现攻击、闪避加速。":"调整当前玩家的步行、跑步、冲刺与蹲行;跑步效果待实机验证。",TextWrapping=TextWrapping.Wrap,Foreground=Theme.Muted,Margin=new Thickness(0,10,0,14)}); + panel.Children.Add(Theme.Label("速度倍率(1–5 倍)",12,Theme.Text)); + var input=new TextBox{Text=current.ToString("0.0",CultureInfo.InvariantCulture),Padding=new Thickness(9),Margin=new Thickness(0,7,0,8),Background=Theme.Panel,Foreground=Theme.Text,BorderBrush=Theme.Line,CaretBrush=Theme.Accent};panel.Children.Add(input); + var slider=new Slider{Minimum=1,Maximum=5,Value=current,TickFrequency=0.1,IsSnapToTickEnabled=true,Margin=new Thickness(0,5,0,12),Foreground=Theme.Accent};slider.ValueChanged+=delegate{input.Text=slider.Value.ToString("0.0",CultureInfo.InvariantCulture);};panel.Children.Add(slider); + panel.Children.Add(Theme.Label("1 倍为正常速度;关闭功能时恢复原值。",11,Theme.Muted)); + Action apply=delegate(double value){ + if(OperationBusy)return; + try{if(runtime==null||!memory.Alive||!feature.Active||feature.RecoveryRequired)throw new Exception("对应速度功能未开启或当前需要恢复。");runtime.Call("SetPlayerSpeedFactor",feature.Id,value);notice.Text=feature.Name+"已设置为 "+value.ToString("0.0",CultureInfo.InvariantCulture)+" 倍。";window.Close();}catch(Exception e){MessageBox.Show(e.Message,"速度设置未完成",MessageBoxButton.OK,MessageBoxImage.Warning);} + }; + var buttons=new StackPanel{Orientation=Orientation.Horizontal,Margin=new Thickness(0,18,0,0)};panel.Children.Add(buttons); + var confirm=Theme.Button("应用倍率");confirm.Click+=delegate{double value;if(!Double.TryParse(input.Text,NumberStyles.Float,CultureInfo.InvariantCulture,out value)||Double.IsNaN(value)||Double.IsInfinity(value)||value<1||value>5){MessageBox.Show("请输入 1 到 5 之间的倍率,小数使用英文句点。");return;}apply(value);};buttons.Children.Add(confirm); + var reset=Theme.Button("恢复 1 倍");reset.Margin=new Thickness(10,0,0,0);reset.Click+=delegate{apply(1);};buttons.Children.Add(reset);window.Show(); + } + } +} diff --git a/src/UIBridge.cs b/src/UIBridge.cs new file mode 100644 index 0000000..f559d6e --- /dev/null +++ b/src/UIBridge.cs @@ -0,0 +1,136 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using System.IO; +using System.Runtime.InteropServices; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Controls.Primitives; +using System.Windows.Input; +using System.Windows.Interop; +using System.Windows.Media; +using System.Windows.Media.Imaging; +namespace PBZ { + public static class Theme { + public static readonly Brush Background=Brush("#111416"),Panel=Brush("#191E21"),Line=Brush("#30383C"),Text=Brush("#EDEBE5"),Muted=Brush("#9DA6AA"),Accent=Brush("#D6B47A"),Danger=Brush("#E69389"); + public static Brush Brush(string s){return (Brush)new BrushConverter().ConvertFromString(s);} + public static Button Button(string text){return new Button{Content=text,Foreground=Text,Background=Panel,BorderBrush=Line,BorderThickness=new Thickness(1),Padding=new Thickness(14,8,14,8),Cursor=Cursors.Hand,FontSize=13,MinHeight=34};} + public static TextBlock Label(string text,double size,Brush color){return new TextBlock{Text=text,FontSize=size,Foreground=color,VerticalAlignment=VerticalAlignment.Center,TextWrapping=TextWrapping.Wrap};} + } + public sealed partial class UIBridge:IDisposable { + readonly ScriptRuntime runtime;readonly Dictionary nodes=new Dictionary();int serial;bool disposing;public bool Headless; + sealed class Node { + public int Id;public string Kind;public long Owner;public FrameworkElement Element;public Canvas Canvas;public Window Window;public bool Closing,Overlay;public readonly Dictionary Props=new Dictionary();public readonly Dictionary Events=new Dictionary();public readonly List Draw=new List(); + } + sealed class TextDraw{public double X,Y;public string Text;public Brush Color;} + sealed class PaintSurface:FrameworkElement { + public Action Draw; + protected override void OnRender(DrawingContext dc){base.OnRender(dc);if(Draw!=null)Draw(dc);} + } + public UIBridge(ScriptRuntime rt){runtime=rt;} + public void SetBusy(bool busy){foreach(var n in nodes.Values)if(n.Window!=null)n.Window.IsEnabled=!busy;if(itemBrowser!=null)itemBrowser.IsEnabled=!busy;} + string S(int i){return L.Text(runtime.State,i);}long N(int i){return L.lua_tointegerx(runtime.State,i,IntPtr.Zero);}double D(int i){return L.lua_tonumberx(runtime.State,i,IntPtr.Zero);} + Node Get(int id){Node n;if(!nodes.TryGetValue(id,out n))throw new Exception("工具窗口已关闭");return n;} + public object Dispatch(string op){ + int id=(int)N(2);switch(op){ + case "uiCreate":return Create(S(2),(int)N(3)); + case "uiSet":{Node node=Get(id);string key=S(3);object value=runtime.Value(4);runtime.Defer(delegate{Set(node,key,value);},key.StartsWith("On",StringComparison.Ordinal)&&value!=null?(Action)delegate{runtime.Unref(Convert.ToInt32(value));}:null);return true;} + case "uiGet":return Read(Get(id),S(3)); + case "uiItem":((ComboBox)Get(id).Element).Items.Add(S(3));return true; + case "uiItemsClear":((ComboBox)Get(id).Element).Items.Clear();return true; + case "uiDestroy":runtime.Defer(delegate{Destroy(id);},null);return true; + case "uiShow":{var n=Get(id);if(n.Window!=null){if(n.Owner==1337142245)ShowItemBrowser();else if(!Headless)n.Window.Show();}return true;} + case "uiCenter":{var n=Get(id);if(n.Window!=null)n.Window.WindowStartupLocation=WindowStartupLocation.CenterScreen;return true;} + case "uiDrag":{var n=Get(id);if(n.Window!=null&&Mouse.LeftButton==MouseButtonState.Pressed)n.Window.DragMove();return true;} + case "uiPaint":{var n=Get(id);n.Draw.Clear();Fire(n,"OnPaint");n.Element.InvalidateVisual();return true;} + case "canvasClear":Get(id).Draw.Clear();return true; + case "canvasText":{var n=Get(id);object color;n.Props.TryGetValue("Canvas.Font.Color",out color);n.Draw.Add(new TextDraw{X=D(3),Y=D(4),Text=S(5),Color=Color(color)});return true;} + case "canvasWidth":return Formatted(S(3),Theme.Text).Width; + default:throw new Exception("Unknown UI operation: "+op); + } + } + public int Create(string kind,int parent){ + var n=new Node{Id=++serial,Kind=kind,Owner=runtime.Owner};nodes[n.Id]=n; + if(kind=="form"){ + var w=new Window{Title="影之刃零",Width=500,Height=400,Background=Theme.Background,Foreground=Theme.Text,FontFamily=new FontFamily("Microsoft YaHei UI"),FontSize=13,WindowStyle=WindowStyle.None,ResizeMode=ResizeMode.NoResize,AllowsTransparency=true,ShowInTaskbar=true,IsEnabled=!runtime.IsBusy}; + var canvas=new Canvas{Background=Theme.Background};var border=new Border{CornerRadius=new CornerRadius(12),BorderBrush=Theme.Line,BorderThickness=new Thickness(1),Background=Theme.Background,Child=canvas};w.Content=border;n.Window=w;n.Canvas=canvas;n.Element=canvas; + w.Closing+=delegate(object sender,System.ComponentModel.CancelEventArgs e){if(!n.Closing&&!disposing&&n.Events.ContainsKey("OnClose")){e.Cancel=true;Fire(n,"OnClose");}}; + w.SizeChanged+=delegate{foreach(var child in nodes.Values.Where(x=>x.Props.ContainsKey("Parent")&&Convert.ToInt32(x.Props["Parent"])==n.Id).ToArray()){object align;if(child.Props.TryGetValue("Align",out align)&&Convert.ToString(align)=="alClient"){child.Element.Width=Math.Max(1,w.ActualWidth);child.Element.Height=Math.Max(1,w.ActualHeight);}}}; + }else{ + if(kind=="label")n.Element=Theme.Label("",13,Theme.Text); + else if(kind=="button")n.Element=Theme.Button(""); + else if(kind=="edit"||kind=="memo")n.Element=new TextBox{Foreground=Theme.Text,Background=Theme.Panel,BorderBrush=Theme.Line,Padding=new Thickness(8,5,8,5),FontFamily=new FontFamily("Microsoft YaHei UI"),FontSize=13,AcceptsReturn=kind=="memo",TextWrapping=kind=="memo"?TextWrapping.Wrap:TextWrapping.NoWrap,VerticalScrollBarVisibility=kind=="memo"?ScrollBarVisibility.Auto:ScrollBarVisibility.Hidden}; + else if(kind=="combo")n.Element=new ComboBox{Foreground=Theme.Text,Background=Theme.Panel,FontSize=13,Padding=new Thickness(6),IsTextSearchEnabled=true}; + else if(kind=="slider")n.Element=new Slider{Minimum=1,Maximum=10000,Foreground=Theme.Accent,IsSnapToTickEnabled=true,TickFrequency=1}; + else if(kind=="paint"){ + var paint=new PaintSurface();paint.Draw=delegate(DrawingContext dc){var dpi=VisualTreeHelper.GetDpi(paint);dc.PushTransform(new ScaleTransform(1/dpi.DpiScaleX,1/dpi.DpiScaleY));foreach(var d in n.Draw)dc.DrawText(Formatted(d.Text,d.Color),new Point(d.X,d.Y));dc.Pop();};n.Element=paint; + }else throw new Exception("Unsupported control "+kind); + if(n.Element is Button)((Button)n.Element).Click+=delegate{Fire(n,"OnClick");}; + if(n.Element is TextBox)((TextBox)n.Element).TextChanged+=delegate{Fire(n,"OnChange");}; + if(n.Element is ComboBox)((ComboBox)n.Element).SelectionChanged+=delegate{Fire(n,"OnChange");}; + if(n.Element is Slider)((Slider)n.Element).ValueChanged+=delegate{Fire(n,"OnChange");}; + n.Element.MouseLeftButtonDown+=delegate{Fire(n,"OnMouseDown");}; + if(parent!=0)Set(n,"Parent",(double)parent); + } + return n.Id; + } + void Fire(Node n,string name){int callback;if(n.Events.TryGetValue(name,out callback)&&callback>0)runtime.Invoke(callback,n.Owner);} + void Set(Node n,string key,object value){ + n.Props[key]=value;double number=value is double?(double)value:0; + if(key.StartsWith("On",StringComparison.Ordinal)){int old;if(n.Events.TryGetValue(key,out old))runtime.Unref(old);n.Events[key]=value==null?0:Convert.ToInt32(value);return;} + switch(key){ + case "Parent":{int p=Convert.ToInt32(value);Panel old=n.Element.Parent as Panel;if(old!=null)old.Children.Remove(n.Element);if(p!=0)Get(p).Canvas.Children.Add(n.Element);break;} + case "Left":if(n.Window!=null)n.Window.Left=number;else Canvas.SetLeft(n.Element,number);break; + case "Top":if(n.Window!=null)n.Window.Top=number;else Canvas.SetTop(n.Element,number);break; + case "ClientWidth":case "Width":if(n.Window!=null)n.Window.Width=number;else n.Element.Width=Math.Max(1,number);break; + case "ClientHeight":case "Height":if(n.Window!=null)n.Window.Height=number;else n.Element.Height=Math.Max(1,number);break; + case "Enabled":n.Element.IsEnabled=Convert.ToBoolean(value);break; + case "Visible":n.Element.Visibility=Convert.ToBoolean(value)?Visibility.Visible:Visibility.Hidden;break; + case "Caption":{ + string text=Translate(Convert.ToString(value));if(n.Window!=null)n.Window.Title=text;else if(n.Element is TextBlock)((TextBlock)n.Element).Text=text;else if(n.Element is Button)((Button)n.Element).Content=text;break; + } + case "Text":if(n.Element is TextBox)((TextBox)n.Element).Text=Translate(Convert.ToString(value));break; + case "ItemIndex":((ComboBox)n.Element).SelectedIndex=Convert.ToInt32(value);break; + case "Min":((Slider)n.Element).Minimum=number;break;case "Max":((Slider)n.Element).Maximum=number;break;case "Position":((Slider)n.Element).Value=number;break; + case "ReadOnly":((TextBox)n.Element).IsReadOnly=Convert.ToBoolean(value);break; + case "Font.Size":case "Font.Height":{double size=key=="Font.Height"?Math.Abs(number):number*1.2;if(size<1)break;Control c=n.Element as Control;if(c!=null)c.FontSize=size;TextBlock t=n.Element as TextBlock;if(t!=null)t.FontSize=size;break;} + case "Font.Style":{bool bold=Convert.ToString(value).Contains("Bold");Control c=n.Element as Control;if(c!=null)c.FontWeight=bold?FontWeights.SemiBold:FontWeights.Normal;TextBlock t=n.Element as TextBlock;if(t!=null)t.FontWeight=bold?FontWeights.SemiBold:FontWeights.Normal;break;} + case "Overlay":{ + if(n.Window==null)break;n.Overlay=true;n.Window.Background=Brushes.Transparent;n.Canvas.Background=Brushes.Transparent;Border border=n.Window.Content as Border;if(border!=null){border.Background=Brushes.Transparent;border.BorderThickness=new Thickness(0);}n.Window.Topmost=true;n.Window.ShowInTaskbar=false;n.Window.ShowActivated=false;n.Window.IsHitTestVisible=false;break; + } + case "Align":if(Convert.ToString(value)=="alClient"&&n.Element.Parent is Canvas){var parent=(Canvas)n.Element.Parent;n.Element.Width=Math.Max(1,parent.ActualWidth);n.Element.Height=Math.Max(1,parent.ActualHeight);}break; + // Cosmetic CE-specific flags are replaced by the native WPF theme. + case "Name":case "DoNotSaveInTable":case "BorderStyle":case "DoubleBuffered":case "AutoSize":case "Color":case "Font.Name":case "Font.Color":case "ScrollBars":case "WordWrap":case "Style":break; + default:if(key.StartsWith("Canvas.",StringComparison.Ordinal)||key.StartsWith("Brush.",StringComparison.Ordinal))break;throw new Exception("Unsupported UI property: "+key); + } + } + object Read(Node n,string key){switch(key){ + case "Handle":{var window=n.Window??Window.GetWindow(n.Element);return window==null?0L:new WindowInteropHelper(window).EnsureHandle().ToInt64();} + case "Text":return n.Element is TextBox?((TextBox)n.Element).Text:""; + case "ItemIndex":return ((ComboBox)n.Element).SelectedIndex; + case "Position":return ((Slider)n.Element).Value; + case "Width":return n.Window!=null?n.Window.Width:(!Double.IsNaN(n.Element.Width)?n.Element.Width:n.Element.ActualWidth); + case "Height":return n.Window!=null?n.Window.Height:(!Double.IsNaN(n.Element.Height)?n.Element.Height:n.Element.ActualHeight); + default:object v;return n.Props.TryGetValue(key,out v)?v:null; + }} + static Brush Color(object value){if(value==null)return Theme.Text;uint bgr=Convert.ToUInt32(value);return new SolidColorBrush(System.Windows.Media.Color.FromRgb((byte)bgr,(byte)(bgr>>8),(byte)(bgr>>16)));} + static FormattedText Formatted(string text,Brush brush){return new FormattedText(text,CultureInfo.CurrentUICulture,FlowDirection.LeftToRight,new Typeface("Microsoft YaHei UI"),14,brush,1.0);} + void Destroy(int id){Node n;if(!nodes.TryGetValue(id,out n))return;if(n.Window!=null&&n.Owner==1337142245)CloseItemBrowser();foreach(var child in nodes.Values.Where(x=>x.Props.ContainsKey("Parent")&&Convert.ToInt32(x.Props["Parent"])==id).ToArray())Destroy(child.Id);foreach(int reference in n.Events.Values)runtime.Unref(reference);if(n.Window!=null){n.Closing=true;n.Window.Close();}else{Panel parent=n.Element.Parent as Panel;if(parent!=null)parent.Children.Remove(n.Element);}nodes.Remove(id);} + public void Cleanup(long owner){foreach(var n in nodes.Values.Where(x=>x.Owner==owner).ToArray())Destroy(n.Id);} + public void SavePreviews(string directory){Directory.CreateDirectory(directory);SaveItemBrowserPreview(directory);foreach(var n in nodes.Values.Where(n=>n.Window!=null&&!n.Overlay&&(n.Owner!=1337142245||itemBrowser==null))){FrameworkElement content=(FrameworkElement)n.Window.Content;double width=n.Window.Width,height=n.Window.Height;content.Measure(new Size(width,height));content.Arrange(new Rect(0,0,width,height));content.UpdateLayout();var image=new RenderTargetBitmap((int)width,(int)height,96,96,PixelFormats.Pbgra32);image.Render(content);var encoder=new PngBitmapEncoder();encoder.Frames.Add(BitmapFrame.Create(image));using(var stream=File.Create(Path.Combine(directory,n.Owner+"-"+n.Id+".png")))encoder.Save(stream);}} + public void Dispose(){disposing=true;CloseItemBrowser();foreach(var n in nodes.Values.ToArray())Destroy(n.Id);} + public static string Translate(string s){ + if(s=="Ready. Adds one item through the game inventory functions.")return "目录已就绪。选择物品与数量,再点击生成。"; + var map=new Dictionary{{"PHANTOM BLADE ZERO","影之刃零"},{"ITEM BROWSER","物品生成"},{"ITEM & OBJECT ESP","物品与对象 ESP"},{"REMNANT DUST","残尘编辑"},{"Minimize","最小化"},{"Close","关闭"},{"Apply","应用数量"},{"Add Item","生成物品"},{"New amount","新数量"},{"Inventory","背包物品"},{"Melee Weapons","近战武器"},{"Phantom Edges","副武器"},{"Accessories","饰品"},{"Medicine","药品"},{"Books","书籍"},{"Outfits","服饰"},{"Weapons","武器"},{"Equipment","装备"},{"Items","物品"},{"Chests","宝箱"},{"Bells","钟"},{"Ladders","梯子"},{"Memory Flowers","记忆之花"},{"Interaction Actors","交互对象"},{"Enemies","敌人"},{"NPCs","NPC"},{"Interactables","交互对象"},{"Collectibles","收集物"},{"Enter an amount, then select Apply.","输入新数量,然后点击应用。"},{"Scanning loaded objects...","正在扫描已加载对象…"},{"Load into the game first.","请先进入可操作的游戏场景。"},{"Select an item to read its English description","选择物品查看中文名称与说明"},{"Preparing inventory functions...","正在验证物品生成接口…"},{"Current amount: unavailable","当前数量:暂不可用"},{"Choose a category dropdown, then click Add Item to request one copy.\r\n\r\nEnglish descriptions are unofficial translated summaries. Entries with no recovered description are marked explicitly.","先在分类下拉框中选择物品,再点击生成物品,每次生成一份。\r\n\r\n名称优先使用游戏简体中文文本;未配置显示名称时,使用中文数据行名或保留内部 ID,并在详情中注明。"}}; + string v;if(map.TryGetValue(s,out v))return v; + foreach(var item in map)if(s.StartsWith(item.Key+" (",StringComparison.Ordinal))return item.Value+s.Substring(item.Key.Length); + if(s.StartsWith("Phantom Blade Zero - "))return "影之刃零 — "+s.Substring(21); + if(s.StartsWith("Queued: "))return "已提交:"+s.Substring(8); + if(s.StartsWith("Select an item in ")&&s.EndsWith(" first."))return "请先在"+Translate(s.Substring(18,s.Length-25))+"中选择物品。"; + if(s.StartsWith("Current amount: "))return "当前数量:"+s.Substring(16); + if(s.StartsWith("Range: "))return "显示距离:"+s.Substring(7); + return s; + } + } +} diff --git a/src/UnrealObjectLookup.cs b/src/UnrealObjectLookup.cs new file mode 100644 index 0000000..acc8fc0 --- /dev/null +++ b/src/UnrealObjectLookup.cs @@ -0,0 +1,145 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Text; +using System.Globalization; +namespace PBZ { + // Read-only lookup over the supported UE object/name layouts. No UObject + // addresses survive GameMemory.Dispose or a different object-array root. + internal sealed class UnrealObjectLookup { + readonly GameMemory memory; + internal int LastParsedObjects {get;private set;} + internal int LastHeaderReadCalls {get;private set;} + internal int LastDecodedNames {get;private set;} + sealed class Entry {public long Address,Slot,Chunk,Class;public byte[] Header;public string Name;public int Serial;public ulong ClassName;public int Index;} + sealed class NameNeedle {public byte[] Bytes;public uint Number;public string Name;} + sealed class SlotBlock {public long Address;public byte[] Bytes;} + sealed class Cached {public long Chunks;public int Count;public List Entries;public Dictionary Slots;public HashSet Unresolved;} + readonly Dictionary cache=new Dictionary(); + public UnrealObjectLookup(GameMemory memory){this.memory=memory;} + static bool Ptr(long v){return v>=0x10000&&v<0x7FFFFFFFFFFF;} + long Q(long at){byte[] b=memory.ReadAttached(at,8);return b==null?0:BitConverter.ToInt64(b,0);} + int I(long at){byte[] b=memory.ReadAttached(at,4);if(b==null)throw new Exception("对象表状态不可读,请等待场景加载完成");return BitConverter.ToInt32(b,0);} + void Checkpoint(){if(!memory.Alive)throw new Exception("游戏已退出,对象查找已停止");if(memory.ScanCheckpoint!=null)memory.ScanCheckpoint();} + bool Valid(Entry e,long chunks){ + if(Q(chunks+(e.Index>>16)*8)!=e.Chunk)return false; + byte[] slot=memory.ReadAttached(e.Slot,24),h=memory.ReadAttached(e.Address,40); + if(slot==null||h==null||(BitConverter.ToUInt32(slot,4)&0x10200000)!=0||BitConverter.ToInt64(slot,8)!=e.Address||BitConverter.ToInt32(slot,16)!=e.Serial)return false; + if(BitConverter.ToInt32(h,12)!=e.Index||BitConverter.ToInt64(h,16)!=e.Class||BitConverter.ToUInt64(h,24)!=BitConverter.ToUInt64(e.Header,24)||BitConverter.ToUInt64(h,32)!=BitConverter.ToUInt64(e.Header,32))return false; + byte[] cl=memory.ReadAttached(e.Class+24,8);return cl!=null&&BitConverter.ToUInt64(cl,0)==e.ClassName; + } + public long[] Find(long chunksSlot,long countSlot,long pool,string specification){ + LastParsedObjects=0;LastHeaderReadCalls=0;LastDecodedNames=0; + if(!memory.Alive)throw new Exception("游戏未运行"); + var wanted=new Dictionary(StringComparer.Ordinal); + foreach(string line in specification.Split(new[]{'\n'},StringSplitOptions.RemoveEmptyEntries)){ + string[] parts=line.Split('\t');if(parts.Length!=2||parts[0].Length<1||parts[0].Length>1023||parts[1].Length<1||parts[1].Length>1023||wanted.ContainsKey(parts[0]))throw new Exception("对象查找参数无效");wanted.Add(parts[0],parts[1]); + } + if(wanted.Count<1||wanted.Count>64)throw new Exception("对象查找数量无效"); + long chunks=Q(chunksSlot);int count=I(countSlot); + if(!Ptr(chunks)||!Ptr(pool)||count<1||count>=2000000)throw new Exception("对象表布局不可用,请等待场景加载完成"); + string key=chunksSlot+":"+countSlot+":"+pool+":"+String.Join("\n",wanted.OrderBy(v=>v.Key,StringComparer.Ordinal).Select(v=>v.Key+"\t"+v.Value)); + var clock=Stopwatch.StartNew();Cached old; + // A growing object count is normal. Keep the previous slot snapshot and + // parse only changed/new slots; still validate every returned object's identity. + if(!cache.TryGetValue(key,out old)||old.Chunks!=chunks||old.Count>count||!old.Entries.All(e=>Valid(e,chunks)))old=null; + cache.Remove(key); + // FName entries share 128 KiB blocks: read each needed block once rather + // than making several cross-language reads for every individual object. + byte[] allocator=memory.ReadAttached(pool,16);if(allocator==null)throw new Exception("名称池不可读"); + int current=BitConverter.ToInt32(allocator,8),cursor=BitConverter.ToInt32(allocator,12); + if(current<0||current>=8192||cursor<0||cursor>0x20000)throw new Exception("名称池布局不符"); + byte[] blockPointers=memory.ReadAttached(pool+0x10,(current+1)*8);if(blockPointers==null)throw new Exception("名称块列表不可读"); + var blocks=new Dictionary();var names=new Dictionary(); + Func nameBlock=delegate(int block){ + if(block<0||block>current)return null;byte[] bytes; + if(!blocks.TryGetValue(block,out bytes)){long pointer=BitConverter.ToInt64(blockPointers,block*8);bytes=Ptr(pointer)?memory.ReadAttached(pointer,block==current?cursor:0x20000):null;blocks[block]=bytes;} + return bytes; + }; + // Resolve just the requested FNames from the compact pool. Do not allocate + // and decode a string for every unrelated live UObject. + var needles=new Dictionary>();var wantedNumbers=new HashSet(); + Action addNeedle=delegate(string name,uint number,string wantedName){ + foreach(bool wide in new[]{false,true}){ + byte[] encoded=(wide?Encoding.Unicode:Encoding.UTF8).GetBytes(name);int characters=wide?encoded.Length/2:encoded.Length; + if(characters<1||characters>1023)continue;ulong needleKey=((ulong)number<<32)|(uint)((characters<<1)|(wide?1:0));wantedNumbers.Add(number);List list; + if(!needles.TryGetValue(needleKey,out list)){list=new List();needles.Add(needleKey,list);}list.Add(new NameNeedle{Bytes=encoded,Number=number,Name=wantedName}); + } + }; + foreach(string name in wanted.Keys){ + addNeedle(name,0,name);int underscore=name.LastIndexOf('_');uint number; + if(underscore>0&&UInt32.TryParse(name.Substring(underscore+1),NumberStyles.None,CultureInfo.InvariantCulture,out number)&&number nameOf=delegate(ulong raw){ + uint id=(uint)raw,number=(uint)(raw>>32);string text; + if(!names.TryGetValue(id,out text)){ + int block=(int)(id>>16),offset=(int)(id&0xFFFF)*2; + if(block>current)return null; + byte[] bytes=nameBlock(block); + if(bytes==null||offset+2>bytes.Length)return null; + int header=BitConverter.ToUInt16(bytes,offset),length=header>>6;bool wide=(header&1)!=0;int size=length*(wide?2:1); + if(length<1||length>1023||offset+2+size>bytes.Length)return null; + LastDecodedNames++;text=(wide?Encoding.Unicode:Encoding.UTF8).GetString(bytes,offset+2,size);names[id]=text; + } + return number==0?text:text+"_"+(number-1); + }; + // Read nearby UObject headers from a bounded page cache during this one + // lookup only. Returned targets are still revalidated through fresh reads. + var headerPages=new Dictionary();var headerOrder=new Queue(); + Func> readHeader=delegate(long address){ + const int pageSize=8192;long page=address&~8191L;int offset=(int)(address-page); + if(offset<=pageSize-40){ + byte[] data; + if(!headerPages.TryGetValue(page,out data)){ + LastHeaderReadCalls++;data=memory.ReadAttached(page,pageSize); + if(headerPages.Count>=256)headerPages.Remove(headerOrder.Dequeue()); + headerPages.Add(page,data);headerOrder.Enqueue(page); + } + if(data!=null)return new ArraySegment(data,offset,40); + } + LastHeaderReadCalls++;byte[] direct=memory.ReadAttached(address,40);return direct==null?default(ArraySegment):new ArraySegment(direct); + }; + var found=old==null?new List():new List(old.Entries); + var snapshots=new Dictionary();var unresolved=new HashSet(); + for(int first=0;first>16)*8);int n=Math.Min(65536,count-first); + if(!Ptr(chunk))continue;byte[] slots=memory.ReadAttached(chunk,n*24);if(slots==null)throw new Exception("对象块不可读,请等待场景加载完成"); + SlotBlock previous=null;if(old!=null)old.Slots.TryGetValue(first>>16,out previous); + snapshots[first>>16]=new SlotBlock{Address=chunk,Bytes=slots}; + for(int i=0;i=0;existing--)if(found[existing].Index==index)found.RemoveAt(existing); + if((BitConverter.ToUInt32(slots,at+4)&0x10200000)!=0)continue; + long a=BitConverter.ToInt64(slots,at+8);if(!Ptr(a))continue; + LastParsedObjects++;var view=readHeader(a);byte[] page=view.Array;int headerAt=view.Offset; + if(page==null||BitConverter.ToInt32(page,headerAt+12)!=index||!Ptr(BitConverter.ToInt64(page,headerAt+16))){unresolved.Add(index);continue;} + ulong rawName=BitConverter.ToUInt64(page,headerAt+24);uint rawNumber=(uint)(rawName>>32);if(!wantedNumbers.Contains(rawNumber))continue; + uint nameId=(uint)rawName;int nameOffset=(int)(nameId&0xFFFF)*2;byte[] entry=nameBlock((int)(nameId>>16)); + if(entry==null||nameOffset+2>entry.Length){unresolved.Add(index);continue;} + int nameHeader=entry[nameOffset]|(entry[nameOffset+1]<<8),characters=nameHeader>>6;bool wide=(nameHeader&1)!=0;int nameBytes=characters*(wide?2:1); + if(characters<1||characters>1023||nameOffset+2+nameBytes>entry.Length){unresolved.Add(index);continue;} + ulong needleKey=((ulong)rawNumber<<32)|(uint)((characters<<1)|(wide?1:0));List candidates;if(!needles.TryGetValue(needleKey,out candidates))continue; + string name=null;foreach(var candidate in candidates){bool same=true;for(int j=0;jValid(e,chunks)))throw new Exception("查找期间游戏对象发生变化,请重试"); + if(found.Select(e=>e.Name).Distinct(StringComparer.Ordinal).Count()==wanted.Count){ + // Keep snapshot storage bounded (at most eight lookup specifications). + if(cache.Count>=8)cache.Remove(cache.Keys.First()); + cache[key]=new Cached{Chunks=chunks,Count=count,Entries=found,Slots=snapshots,Unresolved=unresolved}; + } + AppPaths.Log("[LOOKUP] "+(old==null?"scanned":"incremental")+" "+count+" slots; parsed "+LastParsedObjects+" object headers / "+LastHeaderReadCalls+" header reads for "+wanted.Count+" names "+clock.ElapsedMilliseconds+" ms");return found.Select(e=>e.Address).ToArray(); + } + } +} diff --git a/src/UnrealWidgetLookup.cs b/src/UnrealWidgetLookup.cs new file mode 100644 index 0000000..6cbceb5 --- /dev/null +++ b/src/UnrealWidgetLookup.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +namespace PBZ { + // Read-only incremental discovery. Only requested class hierarchies are returned; Lua rechecks identities. + internal sealed class UnrealWidgetLookup { + readonly GameMemory memory; + sealed class Block {public long Address;public byte[] Bytes;} + sealed class Entry {public int Index,Serial;public long Address,Class,Chunk;} + Dictionary blocks=new Dictionary(); + Dictionary matches=new Dictionary(); + HashSet unresolved=new HashSet();long oldChunks,oldFirst,oldSecond;int oldCount; + public UnrealWidgetLookup(GameMemory memory){this.memory=memory;} + static bool Ptr(long p){return p>=0x10000&&p<0x7FFFFFFFFFFF;} + long Q(long p){var b=memory.ReadAttached(p,8);return b==null?0:BitConverter.ToInt64(b,0);} + int I(long p){var b=memory.ReadAttached(p,4);if(b==null)throw new Exception("ESP对象表不可读");return BitConverter.ToInt32(b,0);} + public long[] Find(long chunksSlot,long countSlot,long first,long second){ + if(!memory.Alive||!Ptr(first)||!Ptr(second))throw new Exception("ESP控件查找上下文无效"); + long chunks=Q(chunksSlot);int count=I(countSlot); + if(!Ptr(chunks)||count<1||count>=2000000)throw new Exception("ESP对象表布局变化"); + if(oldChunks!=chunks||oldFirst!=first||oldSecond!=second||count(); + Func isWidget=delegate(long cl){ + bool found;if(classCache.TryGetValue(cl,out found))return found; + long original=cl;var seen=new HashSet();found=false; + for(int depth=0;depth<32&&Ptr(cl)&&seen.Add(cl);depth++){if(cl==first||cl==second){found=true;break;}cl=Q(cl+0x40);} + classCache[original]=found;return found; + }; + foreach(var e in matches.Values.ToArray()){ + byte[] slot=memory.ReadAttached(e.Chunk+(e.Index&65535)*24,24),h=memory.ReadAttached(e.Address,40); + if(Q(chunks+(e.Index>>16)*8)!=e.Chunk||slot==null||h==null||(BitConverter.ToUInt32(slot,4)&0x10200000)!=0||BitConverter.ToInt64(slot,8)!=e.Address||BitConverter.ToInt32(slot,16)!=e.Serial||BitConverter.ToInt32(h,12)!=e.Index||BitConverter.ToInt64(h,16)!=e.Class||(BitConverter.ToUInt32(h,8)&0x30)!=0||!isWidget(e.Class)){ + matches.Remove(e.Index);unresolved.Add(e.Index); + } + } + var pages=new Dictionary(); + Func header=delegate(long a){ + long page=a&~16383L;int offset=(int)(a-page);byte[] bytes; + if(offset<=16384-40){ + if(!pages.TryGetValue(page,out bytes)){bytes=memory.ReadAttached(page,16384);if(pages.Count>=256)pages.Clear();pages[page]=bytes;} + if(bytes!=null){var h=new byte[40];Array.Copy(bytes,offset,h,0,40);return h;} + } + return memory.ReadAttached(a,40); + }; + var nextBlocks=new Dictionary();var nextUnresolved=new HashSet();var clock=Stopwatch.StartNew(); + try{ + for(int start=0;start2500)throw new Exception("ESP控件查找超时或游戏已退出;请关闭后重试"); + if(memory.ScanCheckpoint!=null)memory.ScanCheckpoint(); + long chunk=Q(chunks+(start>>16)*8);int n=Math.Min(65536,count-start); + if(!Ptr(chunk))throw new Exception("ESP对象块不可读"); + byte[] slots=memory.ReadAttached(chunk,n*24);if(slots==null)throw new Exception("ESP对象块不可读"); + Block previous;blocks.TryGetValue(start>>16,out previous);nextBlocks[start>>16]=new Block{Address=chunk,Bytes=slots}; + for(int k=0;k2500)throw new Exception("ESP控件查找超时或游戏已退出");if(memory.ScanCheckpoint!=null)memory.ScanCheckpoint();} + int at=k*24,index=start+k; + if(previous!=null&&!unresolved.Contains(index)&&previous.Address==chunk&&at+24<=previous.Bytes.Length&&BitConverter.ToUInt32(slots,at+4)==BitConverter.ToUInt32(previous.Bytes,at+4)&&BitConverter.ToInt64(slots,at+8)==BitConverter.ToInt64(previous.Bytes,at+8)&&BitConverter.ToInt32(slots,at+16)==BitConverter.ToInt32(previous.Bytes,at+16))continue; + matches.Remove(index); + if((BitConverter.ToUInt32(slots,at+4)&0x10200000)!=0)continue; + long a=BitConverter.ToInt64(slots,at+8);int serial=BitConverter.ToInt32(slots,at+16);if(!Ptr(a)||serial<=0)continue; + byte[] h=header(a);if(h==null){nextUnresolved.Add(index);continue;} + long cl=BitConverter.ToInt64(h,16); + if(BitConverter.ToInt32(h,12)!=index||(BitConverter.ToUInt32(h,8)&0x30)!=0||!Ptr(cl)||!isWidget(cl))continue; + matches[index]=new Entry{Index=index,Serial=serial,Address=a,Class=cl,Chunk=chunk}; + if(matches.Count>64)throw new Exception("已加载ESP控件过多,拒绝绘制"); + } + } + if(Q(chunksSlot)!=chunks||I(countSlot)e.Index).Select(e=>e.Address).ToArray(); + }catch{blocks.Clear();matches.Clear();unresolved.Clear();throw;} + } + } +}