the player:GetGmRank() method
http://eluna.emudevs.com/Player/GetGMRank.html
if (player->GetSession()->HasPermission(rbac::[URL="https://github.com/TrinityCore/TrinityCore/blob/3.3.5/src/server/game/Accounts/RBAC.h#L51"]DATA_TYPE[/URL]))
// Code here
if (player->GetSession()->GetSecurity() == [URL="https://github.com/TrinityCore/TrinityCore/blob/3.3.5/src/common/Common.h#L100-L107"]SEC_GAMEMASTER[/URL])
// Code here
No worries, buddy.
I'm thinking a bit about adding Eluna, but I'm not quite sure if the same things are possible in Eluna as in hard-coded scripts. Are there any limits to Eluna that there isn't to the core? (Obviously changing the core itself can't be done with Eluna)
It's pretty simple actually. You can easily search the source code too for examples, if you didn't know that.
Examples:
Rbac:
Code:if (player->GetSession()->HasPermission(rbac::[URL="https://github.com/TrinityCore/TrinityCore/blob/3.3.5/src/server/game/Accounts/RBAC.h#L51"]DATA_TYPE[/URL])) // Code here
account_access:
Code:if (player->GetSession()->GetSecurity() == [URL="https://github.com/TrinityCore/TrinityCore/blob/3.3.5/src/common/Common.h#L100-L107"]SEC_GAMEMASTER[/URL]) // Code here
You can do pretty much anything with Eluna except core edits, yes.