以前找的人寫的EXE程式·因不懂原始碼就不需要了·誰知道加了密的·昨天找人破解了··運行程式顯示《注冊腳本API出錯—未將物件參考設定到物件的實體》 請問哪位知道什么問題 給出的原始碼如下請問是哪里出錯:

// Token: 0x06000D74 RID: 3444 RVA: 0x00302180 File Offset: 0x00302180
public void method_38()
{
try
{
this.pLuaVM = new Lua();
this.pLuaVM.RegisterFunction("SendMissionMsg", this, base.GetType().GetMethod("任務提示資料發送"));
this.pLuaVM.RegisterFunction("SendSysMsg", this, base.GetType().GetMethod("系統提示"));
this.pLuaVM.RegisterFunction("SendKongfuMsg", this, base.GetType().GetMethod("學習技能提示"));
this.pLuaVM.RegisterFunction("SendNoticeMsg", this, base.GetType().GetMethod("發送公告"));
this.pLuaVM.RegisterFunction("AddQuest", this, base.GetType().GetMethod("設定任務資料"));
this.pLuaVM.RegisterFunction("AddStKongfu", this, base.GetType().GetMethod("學習升天武功書"));
this.pLuaVM.RegisterFunction("AddQigong", this, base.GetType().GetMethod("新學氣功"));
this.pLuaVM.RegisterFunction("AddSkill", this, base.GetType().GetMethod("學習技能"));
this.pLuaVM.RegisterFunction("AddItme", this, base.GetType().GetMethod("增加物品Script"));
this.pLuaVM.RegisterFunction("AddItmeProp", this, base.GetType().GetMethod("增加物品帶屬性"));
this.pLuaVM.RegisterFunction("DelItme", this, base.GetType().GetMethod("洗掉物品"));
this.pLuaVM.RegisterFunction("AddQuestItme", this, base.GetType().GetMethod("增加任務物品"));
this.pLuaVM.RegisterFunction("GetWorldItme", this, base.GetType().GetMethod("GetWorldItme"));
this.pLuaVM.RegisterFunction("GetPlayer", this, base.GetType().GetMethod("GetPlayerThis"));
this.pLuaVM.RegisterFunction("GetQuestLevel", this, base.GetType().GetMethod("Get任務階段"));
this.pLuaVM.RegisterFunction("GetPackage", this, base.GetType().GetMethod("得到包裹空位位置"));
this.pLuaVM.RegisterFunction("GetPackages", this, base.GetType().GetMethod("得到包裹空位位置組"));
this.pLuaVM.RegisterFunction("GetPakItme", this, base.GetType().GetMethod("得到包裹物品"));
this.pLuaVM.RegisterFunction("GetQuestItme", this, base.GetType().GetMethod("得到任務物品"));
this.pLuaVM.RegisterFunction("SetPlayerTransfer", this, base.GetType().GetMethod("人物轉職業"));
this.pLuaVM.RegisterFunction("SetQigong", this, base.GetType().GetMethod("新學氣功"));
this.pLuaVM.RegisterFunction("SetPlayerLevel", this, base.GetType().GetMethod("設定玩家等級"));
this.pLuaVM.RegisterFunction("SetPlayerVIP", this, base.GetType().GetMethod("設定人物會員"));
this.pLuaVM.RegisterFunction("SetPlayerRxpiont", this, base.GetType().GetMethod("設定人物元寶"));
this.pLuaVM.RegisterFunction("UpGongFu", this, base.GetType().GetMethod("更新武功和狀態"));
this.pLuaVM.RegisterFunction("UpMoney", this, base.GetType().GetMethod("更新金錢和負重"));
this.pLuaVM.RegisterFunction("UpExp", this, base.GetType().GetMethod("更新經驗和歷練"));
this.pLuaVM.RegisterFunction("UpYzbItme", this, base.GetType().GetMethod("初始話已裝備物品"));
this.pLuaVM.RegisterFunction("UpUseItme", this, base.GetType().GetMethod("物品使用"));
this.pLuaVM.RegisterFunction("TEstMsg", this, base.GetType().GetMethod("TEstMsg"));
this.pLuaVM.RegisterFunction("GetPakItemNum", this, base.GetType().GetMethod("得到包裹物品數量"));
this.pLuaVM.RegisterFunction("GetPakItembool", this, base.GetType().GetMethod("查詢包裹物品數量"));
this.pLuaVM.RegisterFunction("DelPakItme", this, base.GetType().GetMethod("del包裹物品"));
this.pLuaVM.RegisterFunction("SetQingludu", this, base.GetType().GetMethod("設定情侶愛情度"));
this.pLuaVM.RegisterFunction("SetAddExp", this, base.GetType().GetMethod("增加人物經驗值"));
this.pLuaVM.RegisterFunction("SetPlayerRxpiontx", this, base.GetType().GetMethod("設定人物百寶積分"));
this.pLuaVM.RegisterFunction("AddItemTs", this, base.GetType().GetMethod("增加物品提示"));
this.pLuaVM.RegisterFunction("UpQuestData", this, base.GetType().GetMethod("更新任務資訊"));
this.pLuaVM.RegisterFunction("SetPetTransfer", this, base.GetType().GetMethod("靈獸申請轉職"));
this.pLuaVM.RegisterFunction("GetPetLevel", this, base.GetType().GetMethod("查詢靈獸等級"));
this.pLuaVM.RegisterFunction("GetQuestStatus", this, base.GetType().GetMethod("查詢任務狀態"));
this.pLuaVM.RegisterFunction("AddMission", this, base.GetType().GetMethod("設定任務資料N"));
}
catch (Exception ex)
{
Form1.smethod_2(2, "注冊腳本API出錯-" + ex.Message);
}
}
// Token: 0x06000D75 RID: 3445 RVA: 0x0027703E File Offset: 0x0027703E
public void method_39()
{
this.luaFunction_0 = this.pLuaVM.GetFunction("OpenItmeTrigGer");
this.luaFunction_1 = this.pLuaVM.GetFunction("DestroyMonster");
}
// Token: 0x06000D76 RID: 3446 RVA: 0x0027706C File Offset: 0x0027706C
public void Close()
{
this.dictionary_0.Clear();
this.luaFunction_1.Dispose();
this.luaFunction_0.Dispose();
this.pLuaVM.Close();
GClass63.scriptClass_0 = null;
}
uj5u.com熱心網友回復:
這是外掛把
uj5u.com熱心網友回復:
base.GetType().GetMethod("任務提示資料發送")這個函式回傳 null ,有兩種可能缺少一個資訊記錄的腳本(記錄有"任務提示資料發送"相關資訊)或者是,缺少動態庫uj5u.com熱心網友回復:
這反編譯的沒什么用,根本沒法修改的轉載請註明出處,本文鏈接:https://www.uj5u.com/net/152568.html
標籤:C#
