Quantcast WoWInterface - View Single Post - Sorting Tooltip for money by Faction
View Single Post
12-21-18, 07:19 AM   #2
cokedrivers
A Rage Talon Dragon Guard
 
cokedrivers's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 305
So noone knows anyway to get this info?

im trying to do it this way:
Code:
			local myPlayerName  = UnitName("player")
			local myPlayerFaction = UnitFactionGroup("player");
			if not BasicDB.Currency then BasicDB.Currency = {} end
			if not BasicDB.Currency[myPlayerRealm] then BasicDB.Currency[myPlayerRealm]={} end
			BasicDB.Currency[myPlayerRealm][myPlayerFaction][myPlayerName] = GetMoney()
but it keeps thowing up and error:
Code:
34x BasicUI\Modules\Datapanel.lua:558: attempt to index field '?' (a nil value)
BasicUI\Modules\Datapanel.lua:558: in function <BasicUI\Modules\Datapanel.lua:510>

Locals:
self = <unnamed> {
 0 = <userdata>
}
event = "PLAYER_ENTERING_WORLD"
totalSlots = 120
freeSlots = 68
itemLink = "|cffffffff|Hitem:160452::::::::114:581::::::|h[]|h|r"
subtype = nil
isBag = true
NewMoney = 122614145
Change = 0
myPlayerName = "ěsmosis"
myPlayerFaction = "Alliance"
(*temporary) = nil
(*temporary) = 122614145
(*temporary) = 122614145
(*temporary) = "Alliance"
(*temporary) = "Alliance"
(*temporary) = <userdata>
(*temporary) = "/"
(*temporary) = "120"
(*temporary) = "attempt to index field '?' (a nil value)"
Text = <unnamed> {
 0 = <userdata>
}
OldMoney = 122614145
Spent = 0
Profit = 0
myPlayerRealm = "Fenris"
But im not on Osmosis im ona different toon
  Reply With Quote