Android 台灣中文網
標題:
落物修改:InGameManager.CatchItem
[打印本頁]
作者:
Sparkemon
時間:
2016-9-24 10:47
標題:
落物修改:InGameManager.CatchItem
ldloc.s和
stloc.s的後面開啟類型應該是什麼,
它不許
我光填數字
I
L語言:
IL_0000: ldc.i4.0
IL_0001: stloc.s 1 //儲存0到變數1
// loop start (head: IL_01a0)
IL_01a0: ldarg.0
IL_01a1: ldfld class InGameManager/Result InGameManager::result
IL_01a6: ldfld class [mscorlib]System.Collections.Generic.List`1<class XorInt> InGameManager/Result::itemIds
IL_01ab: ldarg.1
IL_01ac: ldfld int32 Item::id
IL_01b1: call class XorInt XorInt::op_Implicit(int32)
IL_01b6: callvirt instance void class [mscorlib]System.Collections.Generic.List`1<class XorInt>::Add(!0)
IL_01bb: ldloc.s 1 //讀取變數1
IL_01bd: ldc.i4.1
IL_01be: add //變數1 + 整數1
IL_01bf: stloc.s 1 //儲存變數1
IL_01c1: ldloc.s 1 //讀取變數1
IL_01c3: ldc.i4 5 //讀取整數5
IL_01c8: blt.s IL_01a0 //若變數1小於整數5相等則跳至01a0位置
// end loop
[color=rgb(99, 152, 5) !important]
複製代碼
[color=rgb(99, 152, 5) !important]
作者:
KC-001
時間:
2016-9-24 11:22
ldloc.s和stloc.s 為什麼你覺得是就這樣填數字?
作者:
Sparkemon
時間:
2016-9-24 12:05
KC-001 發表於 2016-9-24 11:22
ldloc.s和stloc.s 為什麼你覺得是就這樣填數字?
那應該怎樣修改數值???
作者:
mn1
時間:
2016-9-24 13:12
不用謝了
https://msdn.microsoft.com/zh-tw/library/system.reflection.emit.opcodes
作者:
prickly
時間:
2016-9-24 17:20
謝謝分享。
歡迎光臨 Android 台灣中文網 (https://apk.tw/)
Powered by Discuz! X3.1