Azathoth1 New Member Joined Oct 14, 2010 Messages 202 Reaction score 0 Nov 17, 2010 #1 I.e. Bear/Spider/Boar etc, tearing my hair out here.
CodenameG New Member Joined Jan 15, 2010 Messages 38,364 Reaction score 231 Nov 17, 2010 #2 Azathoth1 said: I.e. Bear/Spider/Boar etc, tearing my hair out here. Click to expand... dam, i remember vaguely seeing something like that when i made my dev tools. idk maybe it will pop into my head later sorry.
Azathoth1 said: I.e. Bear/Spider/Boar etc, tearing my hair out here. Click to expand... dam, i remember vaguely seeing something like that when i made my dev tools. idk maybe it will pop into my head later sorry.
ski Well-Known Member Joined Feb 12, 2010 Messages 3,720 Reaction score 48 Nov 17, 2010 #3 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.
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.
Azathoth1 New Member Joined Oct 14, 2010 Messages 202 Reaction score 0 Nov 18, 2010 #5 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)
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)
Azathoth1 New Member Joined Oct 14, 2010 Messages 202 Reaction score 0 Nov 18, 2010 #6 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); }
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); }