This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: lua scripting: basics?  (Read 567 times)

Tpiom

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 9
    • View Profile
lua scripting: basics?
« on: May 28, 2017, 06:13:30 pm »
Hello!

I'm trying to get into lua scripting to command NPCs to move to locations, attack and so on... my end goal is to be able to create short cinematic snippets like those fancy Blizzard quests.

Now, I've seen a couple of scripts and I'm starting to get the hang of lua (I've dealt with other script languages before)

But I need help with other basics. I've my own private trinitycore server... and let's pretend I had a script ready at this moment:
How would I go about executing it in-game? Is it the macro/spells thingy? All of the code in there or just a name that executes the corresponding script in the script folder?

Any tutorials/guides, links or help on the matter would be extremely helpful. Thanks.