Forums WoW Modding Discussion Miscellaneous [Archive] Questions about duels, player portrait and level ??

[Archive] Questions about duels, player portrait and level ??

[Archive] Questions about duels, player portrait and level ??

rektbyfaith
Administrator
0
06-22-2016, 08:02 PM
#1
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!
rektbyfaith
06-22-2016, 08:02 PM #1

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!

rektbyfaith
Administrator
0
06-22-2016, 08:13 PM
#2
Archived author: Смердокрыл • Posted: 2016-06-22T20:13:58+00:00
Original source

Quote: 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
Quote: 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
rektbyfaith
06-22-2016, 08:13 PM #2

Archived author: Смердокрыл • Posted: 2016-06-22T20:13:58+00:00
Original source

Quote: 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
Quote: 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

rektbyfaith
Administrator
0
06-22-2016, 09:12 PM
#3
Archived author: Athris • Posted: 2016-06-22T21:12:29+00:00
Original source

Quote: 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: 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?
rektbyfaith
06-22-2016, 09:12 PM #3

Archived author: Athris • Posted: 2016-06-22T21:12:29+00:00
Original source

Quote: 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: 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?

rektbyfaith
Administrator
0
06-22-2016, 10:05 PM
#4
Archived author: Смердокрыл • Posted: 2016-06-22T22:05:08+00:00
Original source

Quote: 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?
rektbyfaith
06-22-2016, 10:05 PM #4

Archived author: Смердокрыл • Posted: 2016-06-22T22:05:08+00:00
Original source

Quote: 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?

rektbyfaith
Administrator
0
06-23-2016, 05:49 AM
#5
Archived author: Kaev • Posted: 2016-06-23T05:49:36+00:00
Original source

Quote: 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.
rektbyfaith
06-23-2016, 05:49 AM #5

Archived author: Kaev • Posted: 2016-06-23T05:49:36+00:00
Original source

Quote: 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.

rektbyfaith
Administrator
0
06-23-2016, 05:17 PM
#6
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.
rektbyfaith
06-23-2016, 05:17 PM #6

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.

rektbyfaith
Administrator
0
06-23-2016, 06:42 PM
#7
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
rektbyfaith
06-23-2016, 06:42 PM #7

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

rektbyfaith
Administrator
0
06-27-2016, 04:44 PM
#8
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
rektbyfaith
06-27-2016, 04:44 PM #8

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

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)