Athris Posted June 22, 2016 Share Posted June 22, 2016 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! Link to comment Share on other sites More sharing options...
Смердокрыл Posted June 22, 2016 Share Posted June 22, 2016 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 or not Link to comment Share on other sites More sharing options...
Athris Posted June 22, 2016 Author Share Posted June 22, 2016 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? Link to comment Share on other sites More sharing options...
Смердокрыл Posted June 22, 2016 Share Posted June 22, 2016 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? or not Link to comment Share on other sites More sharing options...
Kaev Posted June 23, 2016 Share Posted June 23, 2016 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. Link to comment Share on other sites More sharing options...
Athris Posted June 23, 2016 Author Share Posted June 23, 2016 I found nothing in trinity core... like a pvp toggle function or something like that. Link to comment Share on other sites More sharing options...
Athris Posted June 23, 2016 Author Share Posted June 23, 2016 (edited) 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 Link to comment Share on other sites More sharing options...
Athris Posted June 27, 2016 Author Share Posted June 27, 2016 (edited) 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 Link to comment Share on other sites More sharing options...
Questions about duels, player portrait and level ??
By Athrisin Miscellaneous
Recommended Posts