C#-Flash游戏培训师.需要一些额外的帮助! [英] C# - Flash game trainer. Need some extra help!
问题描述
所以我最近一直在破解一些Flash游戏.
我反编译它们,找到诸如"_level0.mcGame.mcHud.mcTxtScore.txtScore"之类的变量.
我使用c#创建了训练器,到目前为止,更改变量仍然有效,但是最近我试图破解Avatar Arena,对于我来说,这看起来像是一个简单的游戏,但是我被卡住了!
我可以对其进行反编译,以解决问题,但是找不到合适的变量.
我看到类似"Variable _global.LifeBar = [function``LifeBar'']"的内容.
当我进一步搜索生活"时,我发现了以下内容:
So i''ve been hacking several flash games lately.
I decompile them, find the variables such as "_level0.mcGame.mcHud.mcTxtScore.txtScore".
I use c# to create the trainer, changing variables works so far however i tried to hack Avatar Arena lately, looked like a simple game to hack for me however im stuck!
I can decompile it so that isnt the problem, however i can''t find good variables.
I see stuff like "Variable _global.LifeBar = [function ''LifeBar'']".
And when i search further about "Life" i found the following:
"oPlayer:[object #62] {
mcRef:[movieclip:_level0.mcGame.mcBg.mcPlayer],
sName:"oPlayer",
nPosX:-128,
nPosY:266,
bPausable:true,
...blablabla...
<b>nMaxlife:100</b>,
...blablamorestuff...
"
我现在如何更改nMaxlife?
因为当我想更改"_level0.mcGame.mcHud.mcTxtScore.txtScore"时,我只需键入以下内容:
axShockwaveFlash.SetVariable("_ level0.mcGame.mcHud.mcTxtScore.txtScore","1337");
其中"1337"是值,所以我的分数是1337.
我已经对其进行了测试,我发现我的分数更改为1337,所以我认为它可以正常工作.
但是我的问题是关于nMaxlife的,我真的想在网上搜索,但是现在我已经放弃了,所以我来这里寻求帮助.
所以现在简而言之:
如何在C#中将"nMaxlife:100"更改为示例"nMaxlife:999"?
真的非常感谢!
How do i change nMaxlife now?
Because when i want to change "_level0.mcGame.mcHud.mcTxtScore.txtScore" i simply type in the following:
axShockwaveFlash.SetVariable("_level0.mcGame.mcHud.mcTxtScore.txtScore", "1337");
Where ''1337'' is the value, so my score would be 1337.
I''ve tested it and i see my score changing to 1337 so it works i guess.
But my problem is about nMaxlife, i really tried to search along the web but i''m giving up now so i''ve come here to ask help.
So in short now:
How do i change ''nMaxlife:100'' to example ''nMaxlife:999'' in C#?
Really thanks in advance!
推荐答案
您尝试了什么?据我所知,nMaxLife似乎是mcPlayer的子级,因此我相信解决方案是这样的:
What have you tried? From what I can tell it looks like nMaxLife is a child of mcPlayer and so I believe the solution would be this:
axShockwaveFlash.SetVariable("_level0.mcGame.mcBg.mcPlayer.nMaxLife", "999");
这篇关于C#-Flash游戏培训师.需要一些额外的帮助!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!