Emblems, badges?

Download, Present, and receive support for third party WoWRoster AddOns and modifications
WoWRoster AddOns and Mods are supported by the author only
Please understand that some AddOns and Mods may require advanced skills to employ

Emblems, badges?

Postby Kaylaura » Thu Sep 17, 2009 10:00 pm

I looked around the roster and on the forums and I don't see this - is there something I'm missing, or is there a future change planned for displaying a character's available emblems, etc?
Kaylaura
WR.net Apprentice
WR.net Apprentice
 
Posts: 38
Joined: Wed Jul 05, 2006 9:36 pm

Re: Emblems, badges?

Postby zanix » Thu Sep 17, 2009 10:03 pm

Emblems?
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Emblems, badges?

Postby Kaylaura » Thu Sep 17, 2009 10:18 pm

like emblems of triumph...? That can be used to buy gear...

/pinches self to make sure she's talking about the right game
Kaylaura
WR.net Apprentice
WR.net Apprentice
 
Posts: 38
Joined: Wed Jul 05, 2006 9:36 pm

Re: Emblems, badges?

Postby zanix » Fri Sep 18, 2009 2:48 am

Are these in the currency tab?
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Emblems, badges?

Postby Kaylaura » Fri Sep 18, 2009 4:02 am

In the game, yes - I don't see a currency tab in my roster though. I installed 2.0.2. Am i missing an addon?
Kaylaura
WR.net Apprentice
WR.net Apprentice
 
Posts: 38
Joined: Wed Jul 05, 2006 9:36 pm

Re: Emblems, badges?

Postby zanix » Fri Sep 18, 2009 11:43 am

Yeah, I meant in-game
Roster currently doesn't get these, and I'm not sure if CharacterProfiler does either
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Emblems, badges?

Postby Nefuh » Fri Sep 18, 2009 12:39 pm

Hi,

yes CharacterProfiler is tracking the emblems.

Here´s a snippet of my german characterprofiler.lua

Code: Select all
myProfile = {
   ["Anetheron"] = {
      ["Character"] = {
         ["Néfuh"] = {
            ["Currency"] = {
               ["Verschiedenes"] = {
                  ["Kochpreis von Dalaran"] = {
                     ["Type"] = 0,
                     ["Name"] = "Kochpreis von Dalaran",
                     ["Tooltip"] = "Kochpreis von Dalaran<br>\"Beim Kochbedarfhändler von Dalaran einlösen.\"",
                     ["Icon"] = "INV_Misc_Ribbon_01",
                     ["Count"] = 70,
                  },
                  ["Siegel des Champions"] = {
                     ["Type"] = 0,
                     ["Name"] = "Siegel des Champions",
                     ["Tooltip"] = "Siegel des Champions",
                     ["Icon"] = "Ability_Paladin_ArtofWar",
                     ["Count"] = 26,
                  },
                  ["Abzeichen der Gerechtigkeit"] = {
                     ["Type"] = 0,
                     ["Name"] = "Abzeichen der Gerechtigkeit",
                     ["Tooltip"] = "Abzeichen der Gerechtigkeit<br>Benötigt Stufe 70",
                     ["Icon"] = "Spell_Holy_ChampionsBond",
                     ["Count"] = 97,
                  },
               },
               ["Spieler gegen Spieler"] = {
                  ["Ehrenpunkte"] = {
                     ["Type"] = 2,
                     ["Name"] = "Ehrenpunkte",
                     ["Tooltip"] = "Ehrenpunkte<br>Wird beim Aufheben gebunden<br>Benötigt Stufe 60<br>\"Ehre wird durch das Töten gegnerischer Spieler im PvP-Kampf gewonnen. Ehrenpunkte können genutzt werden, um spezielle Gegenstände zu kaufen.\"",
                     ["Icon"] = "UI-PVP-Horde",
                     ["Count"] = 6452,
                  },
                  ["Arenapunkte"] = {
                     ["Type"] = 1,
                     ["Name"] = "Arenapunkte",
                     ["Tooltip"] = "Arenapunkte<br>\"Arenapunkte werden durch Siege in Arenakämpfen erworben. Sie können gegen fantastische Preise eingetauscht werden!\"",
                     ["Icon"] = "PVP-ArenaPoints-Icon",
                     ["Count"] = 0,
                  },
                  ["Splitter eines Steinbewahrers"] = {
                     ["Type"] = 0,
                     ["Name"] = "Splitter eines Steinbewahrers",
                     ["Tooltip"] = "Splitter eines Steinbewahrers",
                     ["Icon"] = "INV_Misc_Platnumdisks",
                     ["Count"] = 354,
                  },
                  ["Ehrenabzeichen des Arathibeckens"] = {
                     ["Type"] = 0,
                     ["Name"] = "Ehrenabzeichen des Arathibeckens",
                     ["Tooltip"] = "Ehrenabzeichen des Arathibeckens<br>\"Auszeichnung für den Kampf im Arathibecken\"",
                     ["Icon"] = "INV_Jewelry_Amulet_07",
                     ["Count"] = 3,
                  },
                  ["Ehrenabzeichen vom Auge des Sturms"] = {
                     ["Type"] = 0,
                     ["Name"] = "Ehrenabzeichen vom Auge des Sturms",
                     ["Tooltip"] = "Ehrenabzeichen vom Auge des Sturms<br>\"Auszeichnung für den Kampf im Auge des Sturms\"",
                     ["Icon"] = "Spell_Nature_EyeOfTheStorm",
                     ["Count"] = 5,
                  },
               },
               ["Dungeon und Schlachtzug"] = {
                  ["Emblem der Ehre"] = {
                     ["Type"] = 0,
                     ["Name"] = "Emblem der Ehre",
                     ["Tooltip"] = "Emblem der Ehre<br>Benötigt Stufe 80",
                     ["Icon"] = "Spell_Holy_ProclaimChampion_02",
                     ["Count"] = 11,
                  },
                  ["Emblem der Eroberung"] = {
                     ["Type"] = 0,
                     ["Name"] = "Emblem der Eroberung",
                     ["Tooltip"] = "Emblem der Eroberung<br>Benötigt Stufe 80",
                     ["Icon"] = "Spell_Holy_ChampionsGrace",
                     ["Count"] = 32,
                  },
                  ["Emblem des Heldentums"] = {
                     ["Type"] = 0,
                     ["Name"] = "Emblem des Heldentums",
                     ["Tooltip"] = "Emblem des Heldentums<br>Benötigt Stufe 80",
                     ["Icon"] = "Spell_Holy_ProclaimChampion",
                     ["Count"] = 85,
                  },
                  ["Emblem des Triumphs"] = {
                     ["Type"] = 0,
                     ["Name"] = "Emblem des Triumphs",
                     ["Tooltip"] = "Emblem des Triumphs<br>Benötigt Stufe 80",
                     ["Icon"] = "spell_holy_summonchampion",
                     ["Count"] = 14,
                  },
               },
            },
         },
      },
   },
}


Emblem Translation german to english:

Kochpreis von Dalaran => Dalaran Cooking Award
Siegel des Champions => Champion's Seal
Abzeichen der Gerechtigkeit => Badge of Justice
Emblem der Ehre => Emblem of Valor
Emblem der Eroberung => Emblem of Conquest
Emblem des Heldentums => Emblem of Heroism
Emblem des Triumphs => Emblem of Triumph
Splitter eines Steinbewahrers => Stone Keeper's Shard

Used CharacterProfiler Version: 3.1.0
User avatar
Nefuh
WoWRoster.net Dev Team
WoWRoster.net Dev Team
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 213
Joined: Fri Sep 15, 2006 8:34 pm
Location: Krefeld Germany

Re: Emblems, badges?

Postby zanix » Fri Sep 18, 2009 7:11 pm

Nice, I was wondering if CP did get this info
It is now on my list of things to add to Roster

Thanks!
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Emblems, badges?

Postby Kaylaura » Fri Sep 18, 2009 8:25 pm

Ah, I just started messing with it myself.

I added this to update.lib.php after the do_reputation function:

Code: Select all
    * Handles formating and insertion of currency data
    *
    * @param array $data
    * @param int $memberId
    */
   function do_currency( $data, $memberId )
   {
      global $roster;

      if(isset($data['Currency']))
      {
         $currencyData = $data['Currency'];
      }

      if( !empty($currencyData) && is_array($currencyData) )
      {
         $messages = '<li>Updating Currency ';

         //first delete the stale data
         $querystr = "DELETE FROM `" . $roster->db->table('currency') . "` WHERE `member_id` = '$memberId'";

         $messages .= 'deleted stale data\n';

         if( !$roster->db->query($querystr) )
         {
            $this->setError('Currency could not be deleted',$roster->db->error());
            return;
         }

         foreach( array_keys( $currencyData ) as $categories )// eg. 'Miscellaneous, Player vs. Player, Dungeon and Raid
         {
            $category = $currencyData[$categories];

            //if ($category_name != $count)
            //{
               foreach( array_keys( $category ) as $currency )// eg. Arena Points, Badge of Justice, Emblem of Valor
               {
                  $this->reset_values();
                  if( !empty($memberId) )
                  {
                     $this->add_value('member_id', $memberId );
                  }
                  if( !empty($categories) )
                  {
                     $this->add_value('currency_category', $categories );
                  }
                  if( !empty($currency) )
                  {
                     $this->add_value('name', $currency );
                  }
                  if( !empty($currencyData[$categories][$currency]['Count']) )
                  {
                     $this->add_value('count', $currencyData[$categories][$currency]['Count'] );
                  }

                  if( !empty($currencyData[$categories][$currency]['Type']) )
                  {
                     $this->add_value('type', $currencyData[$categories][$currency]['Type'] );
                  }

                  $messages .= '.';

                  $querystr = "INSERT INTO `" . $roster->db->table('currency') . "` SET " . $this->assignstr;

                  $result = $roster->db->query($querystr);
                  if( !$result )
                  {
                     $this->setError('Currency for ' . $currency . ' could not be inserted',$roster->db->error());
                  }
               }
            //}
         }
         $this->setMessage($messages . '</li>');
      }
      else
      {
         $this->setMessage('<li>No Currency Data</li>');
      }
   }


Table structure:

Code: Select all
CREATE TABLE `roster_currency` (
  `member_id` int(10) unsigned NOT NULL default '0',
  `currency_category` varchar(32) NOT NULL default '',
  `name` varchar(32) NOT NULL default '',
  `type` tinyint(3) unsigned NOT NULL default '0',
  `count` int(8) unsigned NOT NULL default '0',
  PRIMARY KEY  (`member_id`,`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;


That seems to work so far. Not sure if I have all the table settings right though.

Oh, and I had to add this to the update_char function in update.lib.php:

After this line:

Code: Select all
      $this->do_buffs( $data, $memberId );

Code: Select all
      $this->do_currency( $data, $memberId );


Also added this to deleteMembers function in update.lib.php after this section:

Code: Select all
      $messages .= 'Reputation..';
      $querystr = "DELETE FROM `" . $roster->db->table('reputation') . "` WHERE `member_id` IN ($inClause)";
      if( !$roster->db->query($querystr) )
      {
         $this->setError('Reputation Data could not be deleted',$roster->db->error());
      }




Code: Select all
      $messages .= 'Currency..';
      $querystr = "DELETE FROM `" . $roster->db->table('currency') . "` WHERE `member_id` IN ($inClause)";
      if( !$roster->db->query($querystr) )
      {
         $this->setError('Currency Data could not be deleted',$roster->db->error());
      }




Need to look at the other functions to and make sure the cleanup includes this, probably...

edited 4:28 pm Central Time - had to fix the value insertion
Last edited by Kaylaura on Sat Sep 19, 2009 12:33 am, edited 3 times in total.
Kaylaura
WR.net Apprentice
WR.net Apprentice
 
Posts: 38
Joined: Wed Jul 05, 2006 9:36 pm

Re: Emblems, badges?

Postby Ulminia » Fri Sep 18, 2009 9:55 pm

i have display code for this kicken arround too some where and lua phaser coding lol
Ulminia of Zangarmarsh
Zonous of Zangarmarsh
Author of Roster Gallery
WoWRoster-Profiler Redesigner
User avatar
Ulminia
WoWRoster.net Dev Team
WoWRoster.net Dev Team
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 1223
Joined: Tue Jul 04, 2006 4:41 pm
Location: New Brunswick, Canada
Realm: Zangarmarsh (PvE) - US
gmail/gtalk: ulminia@gmail.com

Re: Emblems, badges?

Postby zanix » Sat Sep 19, 2009 2:20 am

oooo code!
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Emblems, badges?

Postby zanix » Sat Sep 19, 2009 2:36 am

And now it's in the SVN
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Emblems, badges?

Postby Kaylaura » Sat Sep 19, 2009 4:10 am

That was the easy part :D everything's so nicely coded and commented it wasn't hard.

Now figuring out the char.lib.php ...
Kaylaura
WR.net Apprentice
WR.net Apprentice
 
Posts: 38
Joined: Wed Jul 05, 2006 9:36 pm

Re: Emblems, badges?

Postby zanix » Sat Sep 19, 2009 5:18 am

Ulminia seems to be doing that part right now
Attachments
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Emblems, badges?

Postby zanix » Sat Sep 19, 2009 5:22 am

Kaylaura wrote:That was the easy part :D everything's so nicely coded and commented it wasn't hard.

Now figuring out the char.lib.php ...

Yeah, I spent a good amount of time on update.lib.php, making comments
char.lib.php on the other hand, is still quite horrible
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Next

Return to AddOns and Mods

Who is online

Users browsing this forum: No registered users and 0 guests

cron