WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   BadBoy X-Realm OR... (https://www.wowinterface.com/forums/showthread.php?t=52348)

jlrm365 05-31-15 09:21 PM

BadBoy X-Realm OR...
 
Can BadBoy be tweaked, to apply x-realm?

I currently have it tweaked, to be able to use 3 digits (you couldn't block lv 100, otherwise).
I have noticed that it applies to players on my own realm but those who were ported in, as other realms merged, are able to whisper me. They exist on the server but with names like "name-originalserver".

Is there perhaps a line or a few lines of code I could add, to BadBoy, to have my block conditions apply to those people / everyone?

Otherwise, does something like Give Me Peace still exist?

Thanks.
:cool:

Cidrei 06-02-15 03:21 PM

Assuming you're referring to BadBoy_Levels (going from the level 100 mention), search for "Ambiguate" in BadBoy_Levels.lua and two lines down replace
Code:

if good[trimmedPlayer] or trimmedPlayer:find("%-") or UnitIsInMyGuild(trimmedPlayer) then return end
with
Code:

if good[trimmedPlayer] or UnitIsInMyGuild(trimmedPlayer) then return end

That should allow blocking of cross-realm players as well, though I haven't tested this. There may be a reason cross-realm players are explicitly allowed.

jlrm365 06-02-15 04:51 PM

The question concerns BadBoy in general, rather than a part in particular.
It might not even be cross-realm, as we all exist on the same realm.

We now all have "name-realm" tags, some of which come from other realms.
While players might now be on the current realm, if their names did not originate here, it seems that BadBoy cannot block whispers from them.

It would be nice if it could.
I'll give your alteration a shot and report back, when it has been naturally tested (without prompting).
Thanks.

funkydude 06-03-15 07:10 AM

It doesn't work with X-Realm because you can't add X-Realm to your friends list. You have 2 options:
  • Bug Blizzard to add x-realm support to the standard friends list
  • Bug Blizzard to add level information to GetPlayerInfoByGUID()

The former is more probable.

jlrm365 06-03-15 01:54 PM

Well, as I mentioned in a subsequent post, it might not actually be cross realm.
Though the names originated elsewhere, the people are present on the server.
It seems that the name format, for example "name-other realm", is the problem.


All times are GMT -6. The time now is 04:25 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI