View Full Version : [Lua] Enchant visual system and gossip

04-21-2013, 01:27 PM

I think it was Nerc who asked me about something and I got this idea of adding enchant visuals to items.
It would make noob items and others look a lot more epic if they had epic enchant visuals :P

So I started thinking what I would need and how it would work.
I knew it would probably be like the transmogrification system, but I didnt really want to start messing around with C++ and compiling and patches and all that.
I decided to use Eluna as it was already compiled to the server and had almost all functions needed.
Cause I am lazy like that, I also used player gossip to skip making an NPC or using hearthstone :)

I thought I would make it a system where when you get a weapon, it would automatically select one enchant visual randomly and add that to the item. (or none)
But I decided just to make a plain system and gossip to test it.

What it does:
You can use a chat command to open a menu (asd by default)
In this menu you can select main or off hand and then select an enchant.
All the enchant visuals are different and can be applied to most weapons.
The enchant is saved to database and you can re equip the items and relog and so on and the visual stays on.
*Note This script contains all unique enchant visuals.

There are a few variables in the script that you can modify and the script is built so that you can register the HELLO and SELECT functions for any unit gossip.

Get It:
Execute the SQL to your characters database
Add the code to scripts folder with .lua extention

Menu images:

04-21-2013, 06:35 PM
Aweoms, no words!

04-22-2013, 08:37 PM
Made what I originally intended:

Items now have a possibility to have the visual effects if you loot them.
If you enchant the item, the visual will be lost and replaced with the enchant visual.

04-24-2013, 01:43 PM
Nice one Rochet it is a good idea. :P

01-25-2014, 06:11 PM
Just testing some forum magic, sorry :)
(as not bumping : |, srsly)

01-26-2014, 11:27 PM
I really love it. Thanks!

01-26-2014, 11:31 PM
I really love it. Thanks!

Which one do you mean :)
The one with gossip or the one with random chance on loot?

01-27-2014, 12:09 AM
Which one do you mean :)
The one with gossip or the one with random chance on loot?

I have tried both; The one with random chance on loot is my favorite.
That is not in any way implying that I do not like the interface :smile:

Regards, DarkAngel

01-27-2014, 12:24 AM
:bump: friggin sweeeeeeeeeeeeeet ty

01-27-2014, 09:20 AM
Incase anyone is interested, I made a version with a small config setting (dont know if I made other changes..)
So now you can easily tweak the chance.

It was hard to test the script originally weapons seem like a rare drop d:

05-30-2014, 12:10 AM
Rochet2, Script not work in last trinitycore.
You can help me?

05-30-2014, 12:28 AM
Rochet2, Script not work in last trinitycore.
You can help me?

You need to be more specific. If you're downloading TrinityCore/other from their repo, then you're downloading the wrong source for Eluna. Which ever emulator you want to download, you need to download the source from one of these links:

[Eluna TrinityCore WotLK](https://github.com/ElunaLuaEngine/ElunaTrinityWotlk)
[Eluna TrinityCore Cataclysm](https://github.com/ElunaLuaEngine/ElunaTrinityCata)
[Eluna cMaNGOS Classic](https://github.com/ElunaLuaEngine/ElunaMangosClassic)
[Eluna cMaNGOS TBC](https://github.com/ElunaLuaEngine/ElunaMangosTbc)
[Eluna cMaNGOS WotLK](https://github.com/ElunaLuaEngine/ElunaMangosWotlk)

However, if you're using one of Eluna's emulator sources, then you'll need to be more specific about which error you are getting. Paste the error or take a screenshot and show us.

05-30-2014, 02:02 AM
Ohh my god... Emulator topic error... Sorry

I get script this source https://gist.github.com/Rochet2/8693564 it's for trinitycore, but not compile.
I'll try again complile to catch the error.

07-20-2014, 01:55 AM
please, create for TrinityCore NPC+Gossip

07-23-2014, 09:46 AM

07-23-2014, 10:43 AM
please, create for TrinityCore NPC+Gossip

Are you talking about C++ version with gossip?
Since the release here is already with gossip and working for TC (Eluna)