Thread Tools Display Modes
05-31-15, 09:21 PM   #1
jlrm365
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 113
Question 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.
  Reply With Quote
06-02-15, 03:21 PM   #2
Cidrei
A Fallenroot Satyr
 
Cidrei's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 21
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.
  Reply With Quote
06-02-15, 04:51 PM   #3
jlrm365
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 113
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.
  Reply With Quote
06-03-15, 07:10 AM   #4
funkydude
A Deviate Faerie Dragon
 
funkydude's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 14
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.
  Reply With Quote
06-03-15, 01:54 PM   #5
jlrm365
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 113
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.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » BadBoy X-Realm OR...

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off