Comments (7)
自己实现魔法书就行了,没必要用魔兽的
from moehero.
自己实现魔法书是什么原理,用选择其他单位来模拟?这样有缺陷
from moehero.
惠惠的天赋升级就是这样做
from moehero.
惠惠的天赋升级使用后会打断当前指令,我希望是瞬态的,我就是模仿你的惠惠写的(= ̄ω ̄=)
from moehero.
message能有解决方案吗
我尝试去看了下message.order_immediate的参数第二个参数默认为0
static int limmediate(lua_State* L)
{
if (!get_select_unit()){
lua_pushboolean(L, 0);
return 1;
}
search();
uint32_t order = lua_tointeger(L, 1);
uint32_t flags = lua_tointeger(L, 2);
base::fast_call(real::immediate_order, order, 0, flags); --就是这里
lua_pushboolean(L, 1);
return 1;
}
而我用鼠标或键盘释放魔法书里的技能,发现第二个参数(unk)是有输出值的
namespace fake {
int __fastcall immediate_order(uint32_t order, uint32_t unk, uint32_t flags)
{
if (order >= 'A000')
{
printf("immediate_order, %c%c%c%c, %X, %X\n", ((char*)&order)[3], ((char*)&order)[2], ((char*)&order)[1], ((char*)&order)[0], unk, flags);
}
else
{
printf("immediate_order, %X, %X, %X\n", order, unk, flags);--就是这里
}
return base::fast_call(real::immediate_order, order, unk, flags);
}
from moehero.
打断或者不打断只是一个技能的属性
from moehero.
message.order_immediate只提供了两个参数,客户端发送信息的时候无法对魔法书里的通魔技能生效,我测试出来的现象发现与unk参数有关,因为我在英雄单位本身的3X4技能窗口里释放技能,immediate_order输出unk为0,但是在不同的魔法书的3X4技能窗口里释放技能,immediate_order输出unk为12CCB6D4(不同的魔法书拥有不同的输出),但是我无法修改。
我的目的是实现释放魔法书里的通魔技能而且不打断当前命令,是不是无法实现
from moehero.
Related Issues (20)
- 关于dll签名dll.sign的问题 HOT 3
- 求助如何调试地图 HOT 1
- 希望能补全一下文件 HOT 8
- 当unit作为表的key被pairs遍历时会掉线的bug HOT 6
- 出现0血怪或无敌怪的bug问题 HOT 2
- git submodule update --init --recursive 执行完毕还是有问题 HOT 8
- 模拟投射物会造成异步吗 HOT 1
- 在哪里看打包的错误日志
- rsa签名,绝了 HOT 1
- 句柄检测一直在增长,游戏越来越慢 HOT 15
- Slk。打包Slk格式的地图,用于发布的版本。 HOT 3
- call Cheat("exec-lua:lua.currentpath")'
- 项目和w3x2lni版本不兼容 HOT 1
- 请问如何在项目中使用vscode打断点?
- 正常模式无法加载到lni.dll模块 HOT 1
- 老图中使用lua调用cj部分关键函数魔兽程序崩溃 HOT 5
- 部分引用找不到
- 同步函数问题 HOT 2
- 使用lua引擎的问题 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moehero.