• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Getting security level

Status
Not open for further replies.

Reck

Emulation Addict
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)
 

Tommy

Founder
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

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)

You can do pretty much anything with Eluna except core edits, yes.
 

Reck

Emulation Addict
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.

Since compiling everytime you edit is an extreme pain, I'll definently try out Eluna then. Also, thanks for the help :)
 
Status
Not open for further replies.
Top