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

Eluna for TBC Mangos

Status
Not open for further replies.

Tommy

Founder
I ahve it working. Will any lua script work for this?

Some methods are unavailable at the moment. So, no, not any Lua script will work at the moment. The methods that works are the ones that aren't commented out in the Method script files. I did a big update the other day, which includes a lot of hooks that are now available to use, here's the script with all the working (some are untested) hooks. http://pastebin.com/J1WTs3MC.

If you go into UnitMethods.cpp or any of the other method files and you see a method with commented out code, that means the method is probably not working.

For example (UnitMethods.cpp): https://github.com/eluna-dev-mangos...ster/src/game/LuaEngine/UnitMethods.cpp#L4693

And yes, record. I do gameplay videos every week on games. :D
 

Tommy

Founder
Looks like the scripts I'd like are out of the questiong - Transmog and a teleporter.

I wouldn't say that. Gossip works fine. There's only at least 15 (more or less) methods that aren't working right now. A teleporter will work just fine. I don't know about Transmog, because if it uses DB queries, we don't have that setup just yet.
 

Barebones

BETA Tester
Do I do anything other than create whatever NPC, put the tele.lua file into the \lua_scripts folder, and change the npcid in the tele.lua file?

Do I need to do anything specific with the npc?
 

Barebones

BETA Tester
I took Deputy Willem (entry id = 823), the starter quest npc for humans and duplicated him. The duplications entry id is 900(,)000. I changed LOCAL NPC_ID = 900(,)000 in the .lua file. So far, it doesn't work.

~I'm sorry for having you go step by step with me
 
Last edited:

Tommy

Founder
Does it show any errors in the console? Also, when it loads the script, make sure it doesn't have any errors when loading it.

For the npc, you need to set the npcflags to 1 for gossip.
 

Barebones

BETA Tester
Initializing Scripts...
2013-11-30 21:34:18 ERROR:Scripting library not found or not accessible.
2013-11-30 21:34:18 ERROR:Eluna: LuaEngine is Disabled
 

Tommy

Founder
There's an option in your world config file to enable the Lua Engine. It is located at the very bottom.
 
Status
Not open for further replies.
Top