[Archive] Questions about duels, player portrait and level ??
[Archive] Questions about duels, player portrait and level ??
Archived author: Athris • Posted: 2016-06-22T20:02:10+00:00
Original source
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!
Quote: 7 minutes ago, Athris said:If you want the PvP mode always on, you could set your realm to FFA_PVP
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.
Quote: 10 minutes ago, Athris said:There are rbac permissions like that. Use ".rbac list permission" to see
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?
Archived author: Смердокрыл • Posted: 2016-06-22T20:13:58+00:00
Original source
Quote: 7 minutes ago, Athris said:If you want the PvP mode always on, you could set your realm to FFA_PVP
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.
Quote: 10 minutes ago, Athris said:There are rbac permissions like that. Use ".rbac list permission" to see
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?
Quote: QuoteI want to deactivate it, because play fights only allow in duel format. I want to disable other pvp actions.
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
Quote: QuoteMhm 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?
There are rbac permissions like that. Use ".rbac list permission" to see
Archived author: Athris • Posted: 2016-06-22T21:12:29+00:00
Original source
Quote: QuoteI want to deactivate it, because play fights only allow in duel format. I want to disable other pvp actions.
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
Quote: QuoteMhm 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?
There are rbac permissions like that. Use ".rbac list permission" to see
Quote: 50 minutes ago, Athris 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.
I want to deactivate it, because play fights only allow in duel format. I want to disable other pvp actions.
Archived author: Смердокрыл • Posted: 2016-06-22T22:05:08+00:00
Original source
Quote: 50 minutes ago, Athris 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.
I want to deactivate it, because play fights only allow in duel format. I want to disable other pvp actions.
Quote: 7 hours ago, Смердокрыл said:Yup, you can toggle that option with /pvp too.
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?
Archived author: Kaev • Posted: 2016-06-23T05:49:36+00:00
Original source
Quote: 7 hours ago, Смердокрыл said:Yup, you can toggle that option with /pvp too.
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?
Archived author: Athris • Posted: 2016-06-23T17:17:33+00:00
Original source
I found nothing in trinity core... like a pvp toggle function or something like that.
Archived author: Athris • Posted: 2016-06-23T18:42:07+00:00
Original source
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 June 23, 2016 by Athris
Archived author: Athris • Posted: 2016-06-27T16:44:00+00:00
Original source
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 June 27, 2016 by Athris
More information