/
} |
function converttext($text) { |
$text = str_replace("Ã", "Ã", $text); |
$text = str_replace("Â", "Ã", $text); |
$text = str_replace("â", "â", $text); |
$text = str_replace("¡", "¡", $text); |
$text = str_replace("ª", "ª", $text); |
$text = str_replace("¿", "¿", $text); |
$text = str_replace("À", "Ã", $text); |
$text = str_replace("Á", "Ã?", $text); |
$text = str_replace("Â", "Ã", $text); |
$text = str_replace("Ã", "Ã", $text); |
$text = str_replace("Å", "Ã ", $text); |
$text = str_replace("Ç", "Ã", $text); |
$text = str_replace("È", "Ã", $text); |
$text = str_replace("Ú", "Ã", $text); |
$text = str_replace("Û", "Ã", $text); |
$text = str_replace("Ý", "Ã?", $text); |
$text = str_replace("à", "Ã ", $text); |
$text = str_replace("à", "Ã", $text); |
$text = str_replace("á", "á", $text); |
$text = str_replace("ã", "ã", $text); |
$text = str_replace("å", "Ã¥", $text); |
$sql = "SHOW TABLES FROM $eqdkp LIKE '" . $table_prefix . "plus_config'"; |
//echo $sql; |
$result = mysql_query($sql); |
if (empty($result)) return false; |
$row = mysql_fetch_array($result); |
if ($row) return true; |
} |
poolusedesc = "Choose DKP pool to use for this item roll.", |
pools = "Currently loaded DKP pools....", |
raiddbfunc = "Import DKP standings", |
raiddbfuncdesc = "Import DKP string from website. Note: UI will be reloaded.", |
raids = "Raids", |
raidtrack = "Raid Tracking", |
raidtrackdesc = "Opens the raid tracking functions window.", |
MorgDKP = AceLibrary("AceAddon-2.0"):new("AceEvent-2.0", "AceHook-2.1", "AceConsole-2.0","AceComm-2.0", "AceDB-2.0") |
MorgDKP.version = "6.92" |
MorgDKP.version = "6.93" |
MorgDKP.commPrefix = "MorgDKP" |
MorgDKP.commVersion = 6.2 |
return |
end |
local POOL = self.db.account.defaults.raid |
twinkmain = string.upper(string.sub(twink1,1,1))..string.sub(twink1,2,-1) |
twinkalt = string.upper(string.sub(twink2,1,1))..string.sub(twink2,2,-1) |
twinkmain = twink1 |
twinkalt = twink2 |
mainpoints = 0 |
if self.db.account.info[twinkmain] then mainpoints = self.db.account.info[twinkmain][POOL].points |
else DEFAULT_CHAT_FRAME:AddMessage(L["nomain"]) return end |
## Interface: 20400 |
## Author: Morgalm & Fryguy |
## Title: MorgDKP - |cffffffffv|r|cff00ff006.92|r |
## Title: MorgDKP - |cffffffffv|r|cff00ff006.93|r |
## Notes: Inspects all members of raid and saves in database, as well as lists people's dkp values |
## DefaultState: 1 |
## SavedVariables: MorgDKPDB, MorgDKPFuBarDB |
function MorgDKP:AddAlias() |
local alt = MorgDKP_RaidsPage4Alias:GetText() |
local main = MorgDKP_RaidsPage4Member:GetText() |
alt = string.upper(string.sub(alt,1,1))..string.lower(string.sub(alt,2,-1)) |
main = string.upper(string.sub(main,1,1))..string.lower(string.sub(main,2,-1)) |
if not self.db.account.info[main] then DEFAULT_CHAT_FRAME:AddMessage(L["nomain"]) return end |
if not self.db.account.raidlog.aliases then self.db.account.raidlog.aliases = { } end |
if not self.db.account.raidlog.aliases[self.editpool] then self.db.account.raidlog.aliases[self.editpool] = { } end |
for pool, data in pairs(self.db.account.defaults.eqDKP) do |
if data.eqDKPsite == self.db.account.raidlog[raidid].eqdkp then return pool end |
end |
return false |
return self.db.account.defaults.raid |
end |
function MorgDKP:AwardDKP(new, old, pool, attendees, wait, quiet) |