How can I add a script to an Item? I have already tried to insert the name of the script into the “ScriptName” column, but nothing happens if I right-click the item then.
I am trying to make an Item change the players Display ID if he right clicks on it (so a pretty easy script)
I mean, I already tried to make a SpellScript and add it then to a new row in “spell_script_names” and added the new spell to the item then, but didnt work either. Then I tried to modify the AuraEffects.cpp (something like this) to handle a new effect and assigned it then to the item, but still nothing. So the only thing that I can think of now is to edit the spell.dbc, but I didnt try that yet.