What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

How do I obtain the pet type?

Each pet has a unique entry, you need to match Me.Pet.Entry to a dictionary of pet entries to see what type it is.
 
Another question, I would like to access a lua function and have it return its output to my plugin, in which way should I go about this? example lua function would be like...GetMapContinents() (Just an example)
 
Ok so I think I found the answer but it doesnt seem to be working, can anyone clarify this for me?
Code:
                    List<string> FoodTypes = Lua.LuaGetReturnValue("GetPetFoodTypes()", "AzA.lua");
			foreach (string diet in FoodTypes) 
		        {
			        Logging.Write(diet);
		        }
 
Back
Top