根号三工作笔记
Chinodaisuki(讨论 | 贡献)2021年6月7日 (一) 19:34的版本
<syntaxhighlight lang="Java"> var unittype = wread(unitptr + 0x64);
var player = bread(unitptr + 0x4C);
if(
Command((player), (0), 1, (unittype)) &&
wread(unitptr + 0xA2) <= (250 - gainmp - 1) * 0x100
){
wwrite(unitptr + 0xA2, wread(unitptr + 0xA2) + gainmp * 0x100);
}
else if(
Command((player), (0), 1, (unittype)) &&
wread(unitptr + 0xA2) > (250 - gainmp - 1) * 0x100
)
{
wwrite(unitptr + 0xA2, 250 * 0x100);
}