• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

Trying to convert one script

Status
Not open for further replies.

Rochet2

Moderator / Eluna Dev
https://github.com/ElunaLuaEngine/Eluna-TC-Wotlk/blob/master/src/LuaEngine/LuaFunctions.cpp#L389

I recommend using the LuaFunctions source file to find methods.
All methods and functions are there & they have a small description.
(except :GetObjectType(), which is a special function available to all player,creature,item,quest... and returns the type as string: IE Player)

At the bottom of the file you can even see the inherited methods.
For example items inherit object methods:
Code:
    ElunaTemplate<Item>::Register(L, "Item");
    ElunaTemplate<Item>::SetMethods(L, ObjectMethods);
    ElunaTemplate<Item>::SetMethods(L, ItemMethods);
Corpse inherits object & worldobject methods:
Code:
    ElunaTemplate<Corpse>::Register(L, "Corpse");
    ElunaTemplate<Corpse>::SetMethods(L, ObjectMethods);
    ElunaTemplate<Corpse>::SetMethods(L, WorldObjectMethods);
    ElunaTemplate<Corpse>::SetMethods(L, CorpseMethods);


Additionally all hooks can be found in HookMgr.h
https://github.com/ElunaLuaEngine/Eluna-TC-Wotlk/blob/master/src/LuaEngine/HookMgr.h#L83
 
Last edited:
Status
Not open for further replies.
Top