Maintenance for the week of July 27:
• NA megaservers for maintenance – July 27, 6:00AM EDT (10:00 UTC) -11:00AM EDT (15:00 UTC)
• EU megaservers for maintenance – July 27, 10:00 UTC (6:00AM EDT) - 15:00 UTC (11:00AM EDT)

Slash command to run a script ?

Bodo
Bodo
Soul Shriven
Hello there !

I have been looking for a slash command to type in the chat to specify that lua code will follow, for the addons are lua-based. I tried things like '/run', but without success.
By the way, I tried them followed with 'print("a")', (e.g. '/run print("a")' ), I think the print() function is intrinsic to the lua language, but I can be wrong.

Thanks for your help !
  • Smaxx
    Smaxx
    ✭✭✭✭✭
    The command you're looking for is /script. Everything that follows will be executed as Lua script. For example, you could do something such as /script d(50 + 5 * 2) and it will print 60 to your chat window.
  • Bodo
    Bodo
    Soul Shriven
    Indeed, I didn't think to try this one. Thank you very much !
Sign In or Register to comment.