View Single Post
01-12-08, 08:31 AM   #12
Shirik
Blasphemer!
Premium Member
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2007
Posts: 818
Originally Posted by Polarina
Then there's another solution. Just add some lines in the begining turning global functions into local:
Code:
local GetItemInfo = GetItemInfo  -- Example
and then make the functions return values like you were a member of the Horde instead of the Alliance.

This actually won't work either. Problem is there are several uses of loadstring() and loadstring does not remember upvalues. Therefore the global version of UnitFactionGroup (the major function in question) will be used, not the local one.
__________________
たしかにひとつのじだいがおわるのお
ぼくはこのめでみたよ
だけどつぎがじぶんおばんだってことわ
しりたくなかったんだ
It's my turn next.

Shakespeare liked regexes too!
/(bb|[^b]{2})/
  Reply With Quote