Jump to content

I need a new command like .tele for the players


Recommended Posts

Posted

well i want do do new command with the same efect than .tele but, with diferent table of places to tele.

ex .teleport

with this i can decide the players can go to somewhere and continue with my command .tele for the gms onle

thanks for the help.

Zangetsu

Posted

See how the command itself is implemented, then find a way to duplicate part of the implementation (or modify it).

.tele -> Level1.cpp -> ChatHandler::HandleTeleCommand -> extractGameTeleFromLink -> Chat.cpp -> return objmgr.GetGameTele() -> ObjectMgr.cpp -> ObjectMgr::GetGameTele -> ...

or did I miss something?

Posted

You could go into the `command` table in the database `mangos` and set the field with "tele" to security 0 to allow everyone to use teles. Then of course they could teleport everywhere you can.

Also a command as custom as this would be a core modification and probably not be implemented into MaNGOS.

Posted

Or set the command to security 0, and create a new row in the game_tele table that represents the required security level..

Then add ingame check when using the command for combat, if gmlevel > 0 he can port in combat, else he cannot.

The rest should speak for itself.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use