Athris

Questions about duels, player portrait and level ??

Client: 3.3.5a
Core: Trinity Core

Hello everybody,

i have a few qustions about the duel system, the playerframe and the level display.

1. Playerframe
In player frame (I mean right click on your character portrait) there is a option names Player vs player (Activate / Deactivate), but i dont find the lua file which create this option. I want to hide the option, because i dont want that somebody can change the pvp status.

2. Is it possible to add a new option to this player portrait names "Cancel duel"?
If your character is in a duel, then the character can only finish the duel by leaving the area or die. I want to create a third option. The duel willl be cancel by clicking on this new option.

3. I set my realm to PVE and activate all interaction options between horde and alliance, but if i inspect a character from the other faction i only see "Level ??" and a skull. If the enemy characters level is under my level or at most 10 level above my level, then i see the level.
Does anyone know how i can modify this to see always the level from other characters?

Thank you for reading. I hope you can help me!

  • Like 1

Share this post


Link to post
Share on other sites
7 minutes ago, Athris said:

In player frame (I mean right click on your character portrait) there is a option names Player vs player (Activate / Deactivate), but i dont find the lua file which create this option. I want to hide the option, because i dont want that somebody can change the pvp status.

If you want the PvP mode always on, you could set your realm to FFA_PVP

I guess it shoulg be in CharacterFrame, but I'm not sure

10 minutes ago, Athris said:

3. I set my realm to PVE and activate all interaction options between horde and alliance, but if i inspect a character from the other faction i only see "Level ??" and a skull. If the enemy characters level is under my level or at most 10 level above my level, then i see the level.
Does anyone know how i can modify this to see always the level from other characters?

There are rbac permissions like that. Use ".rbac list permission" to see

Share this post


Link to post
Share on other sites
Quote

If you want the PvP mode always on, you could set your realm to FFA_PVP

I guess it shoulg be in CharacterFrame, but I'm not sure

I want to deactivate it, because play fights only allow in duel format. I want to disable other pvp actions.

 

Quote

There are rbac permissions like that. Use ".rbac list permission" to see

Mhm i look into the permission table, but i dont find a permission which modify the "level range". Do you know the name of the permission?

Share this post


Link to post
Share on other sites
50 minutes ago, Athris said:

I want to deactivate it, because play fights only allow in duel format. I want to disable other pvp actions.

I don't know how to remove that thing in lua, but even if you do, they could still switch it using a macro, I think.

You could set all areas in the game to be Sanctuaries, but that would also disable duels, wouldn't it?

Share this post


Link to post
Share on other sites
7 hours ago, Смердокрыл said:

I don't know how to remove that thing in lua, but even if you do, they could still switch it using a macro, I think.

You could set all areas in the game to be Sanctuaries, but that would also disable duels, wouldn't it?

Yup, you can toggle that option with /pvp too.

Share this post


Link to post
Share on other sites

I found nothing in trinity core... like a pvp toggle function or something like that.

Share this post


Link to post
Share on other sites

Okay i found the UnitPopup.lua. But you're right... marco functions allow to change the pvp mode. Does anyone know how trinity core manage this functions or how i can deactivate them?

 

/edit
Okay remove the strings in the global strings... so easy. So problem 1 and 2 is solved. Problem 3 still be exists....

3. I set my realm to PVE and activate all interaction options between horde and alliance, but if i inspect a character from the other faction i only see "Level ??" and a skull. If the enemy characters level is under my level or at most 10 level above my level, then i see the level.
Does anyone know how i can modify this to see always the level from other characters?

Edited by Athris

Share this post


Link to post
Share on other sites

I found my code line:

local targetLevel = UnitLevel(self.unit);

UnitLevel returns -1 by high level target. That is the problem...

UnitLevel is a internal function, right?

Can i modify or override the function?

Edited by Athris
More information

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now