Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


ILSpy Unity game function on ASM?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
KalasDev
Master Cheater
Reputation: 1

Joined: 29 May 2016
Posts: 311

PostPosted: Fri Nov 10, 2017 3:26 pm    Post subject: ILSpy Unity game function on ASM? Reply with quote

Code:
// TheForest.DebugConsole
private void _addAllItems(object o)
{
   Item[] items = ItemDatabase.Items;
   for (int i = 0; i < items.Length; i++)
   {
      Item item = items[i];
      try
      {
         if (item._maxAmount >= 0 && !item.MatchType(Item.Types.Story) && LocalPlayer.Inventory.InventoryItemViewsCache.ContainsKey(item._id))
         {
            LocalPlayer.Inventory.AddItem(item._id, 100000, true, false, null);
         }
      }
      catch (Exception var_3_65)
      {
      }
   }
   Debug.Log("$> Added all non-story items");
}


How do I call this function on ASM, I asked this before but got no answer Razz
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites