azerothcore / catalogue

Catalogue of AC Modules, Tools, Scripts
https://www.azerothcore.org/catalogue/
GNU Affero General Public License v3.0
4 stars 18 forks source link

Add Command+.lua #33

Closed ghost closed 4 years ago

ghost commented 4 years ago

I share my Command+. Command+ it's a script for create news command for AC.

This script adding a few commands :

In developpment :

Helias commented 4 years ago

Nice! I will test this in these days.

P-Kito commented 4 years ago

Question: You are doing Live DB Queries - Is it not possible to fetch it out of the existing containers?

ghost commented 4 years ago

Yes i's possible i make it ;)

ghost commented 4 years ago

It's now update :D With Request on start & Reload Server for Teleport :)

table.insert(CheatCommands.TpList, {name, map, position_x, position_y, position_z, orientation});

Helias commented 4 years ago

Hope to find the time today or tomorrow to test this and merge ;-)

P.S. = if you don't mind, use repo/releases/ as download link instead of the single release

P-Kito commented 4 years ago

Hmmm... it's not what I meant unfortunately :-X

I never did a lua extension script, but if I would do all of this in the core itself, I would NOT use "SELECT FROM", since there is already all the containers with all the information in the core.

So I would rather just fetch all the data from it: selectedCreature->get...() and use that.

ghost commented 4 years ago

Yes I see.. I already do.. When you select a creature I ask Eluna to return the result via the functions that allow me to do so, but if you don't select a creature and you enter an entry, I ask Eluna to make a SQL query to get me some information about the entry, it is not possible to do otherwise for the moment ^^

P-Kito commented 4 years ago

Ahh. I thought Eluna was able to access the existing containers. Well, then you need live-sql fetching...

Helias commented 4 years ago

Everything works! Cool!

immagine

Helias commented 4 years ago

Asap I will make a repository only for that lua_command+.lua script, to add it in the catalogue, because actually you have everything in a repo (?)

What should be the best solution to do that in your point of view?

ghost commented 4 years ago

We can do the same as with the rate exp modifier with the interface, we only send to this script on my repo as well as on the releases.

BarbzYHOOL commented 4 years ago

one repository for one release like for modules/tools, that is the best way and the most manageable

it's never good to compile everything into one big repo

ghost commented 4 years ago

Ok, everything is avaible here : https://github.com/iThorgrim-hub/lua-command-plus

Helias commented 4 years ago

Create an icon if you can :P, anyway, forked! I added you as mantainer of the repo, hope you can keep the updates in the AC repo Next time we can avoid the fork and just create the lua scirpt in a new AC repo

BarbzYHOOL commented 4 years ago

Ithorgrim has his own repo, we can use his repo as a base?