Adding Naxxramas loot?

Categorizes items in your guildbank(s)

Moderator: Mathos

Adding Naxxramas loot?

Postby Naryn » Fri Aug 18, 2006 10:49 am

I updated the localization.php and searcharrays.php to add Naxxramas loot ("Wartorn" items). How do I get the Naxx section to display at the top after the Molten Core, AQ and ZG loot?
Naryn
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Wed Jul 26, 2006 4:27 pm

Re: Adding Naxxramas loot?

Postby ethyde » Fri Aug 18, 2006 5:07 pm

Hi

You must update conf.php ;)
ethyde
WR.net Apprentice
WR.net Apprentice
 
Posts: 6
Joined: Tue Jul 11, 2006 4:53 pm

Adding Naxxramas loot?

Postby Naryn » Fri Aug 18, 2006 7:11 pm

D'oh! Thanks!
Naryn
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Wed Jul 26, 2006 4:27 pm

Adding Naxxramas loot?

Postby AnthonyB » Sun Aug 20, 2006 4:16 pm

Please post the code changes so the rest of the community can benefit. :)
Roster 2.0.2 svn [latest] latest trunk SVN svn [latest] running on IIS7/Windows Server 2008 SP2 | MySQL 5.0.85 | PHP 5.2.10 | Yes, Roster and PHP rocks on IIS! Even run as FastCGI extension!
User avatar
AnthonyB
Gimpy Developer
Gimpy Developer
 
Posts: 346
Joined: Tue Jul 04, 2006 2:44 pm
Location: Sydney, Australia

Re: Adding Naxxramas loot?

Postby Djuwal » Sat Sep 16, 2006 12:38 am

I went ahead and tried coding it myself, seems to work ... but can't really tell since my guild is nowhere near doing Naxx. Here are the changes I've made:

All files are found in \addons\guildbank

Open localization.php

Find:
Code: Select all
$wordings['enUS']["bankitem_32"] = "Darkmoon Faire Items"


After Add:
Code: Select all
$wordings['enUS']["bankitem_33"] = "Naxxramas Loot"// Naxxramas 


Find:
Code: Select all
$wordings['cards']['enUS'] =
array(
"of Portals""of Beasts""of Elementals""of Warlords""Deck"); 


After Add:
Code: Select all
$wordings['naxx']['enUS'] =
array(
"Frozen Rune""Wartorn Chain Scrap""Wartorn Cloth Scrap""Wartorn Leather Scrap",
"Wartorn Plate Scrap"); 


(Added in Frozen Rune, not just the Warntorn stuff - can take this out if you want)

I don't know German so I just made the next part in English, if anyone knows the translation please post it

Find:
Code: Select all
$wordings["deDE"]["bankitem_32"] = "Dunkelmond Basar Gegenstände"


After Add:
Code: Select all
$wordings["deDE"]["bankitem_33"] = "Naxxramas Loot"// Naxxramas Loot 


Find:
Code: Select all
$wordings['quest']['deDE'] =
array(
"Quest""Questgegenstand""Morgenkorn""Blutsplitter"); 


After Add:
Code: Select all
$wordings['naxx']['deDE'] =
array(
"Gefrorene Rune""Kampfzerschlissenes Kettenstück""Kampfzerschlissenes Stoffstück""Kampfzerschlissenes Lederstück",
"Kampfzerschlissenes Plattenstück"); 


Save, Close, Upload


Open searcharrays.php

Find:
Code: Select all
$search_order = array(3,4,5,6,7,8,18,9,27,1,2,31,28,25,10,12,11,13,14,
              
26,20,21,22,15,16,17,19,24,23,30,32); 


Replace with:
Code: Select all
$search_order = array(3,4,5,6,7,8,18,9,27,1,2,31,28,25,10,12,11,13,14,
              
26,20,21,22,33,15,16,17,19,24,23,30,32); 


Find:
Code: Select all
$bankitem[32]["arg"]= 'darkmoon'


After Add:
Code: Select all
$bankitem[33]["arg"]= 'naxx'// Naxxramas 


Save, Close, Upload


Open conf.php

Find:
Code: Select all
$display_order = array(20,21,22,18,3,4,5,6,7,8,31,19,1,2,11,12,15,17,16,14,13,32


Change to:
Code: Select all
$display_order = array(33,20,21,22,18,3,4,5,6,7,8,31,19,1,2,11,12,15,17,16,14,13,32


Added the 33 at the beginning of the list

Find:
Code: Select all
$bankitem[31]['msg'] = $wordings[$roster_conf['roster_lang']]['bankitem_31']; 


After Add:
Code: Select all
$bankitem[33]['msg'] = $wordings[$roster_conf['roster_lang']]['bankitem_33']; 


Save, Close, Upload


Naxx should now be added to your roster.

EDIT: Added in the German translation.
Last edited by Djuwal on Wed Oct 11, 2006 7:37 pm, edited 3 times in total.
User avatar
Djuwal
WR.net Apprentice
WR.net Apprentice
 
Posts: 13
Joined: Fri Jul 14, 2006 8:51 pm

Adding Naxxramas loot?

Postby NurMut » Thu Sep 28, 2006 1:22 pm

Translations for German and French (hope everythings right, cause I'm not Naxx myself)

English : German : French

Frozen Rune : Gefrorene Rune : Rune de givre

Wartorn Chain Scrap : Kampfzerschlissenes Kettenstück : Débris d'armure en mailles

Wartorn Cloth Scrap : Kampfzerschlissenes Stoffstück : Débris d'armure en tissu

Wartorn Leather Scrap : Kampfzerschlissenes Lederstück : Débris d'armure en cuir

Wartorn Plate Scrap : Kampfzerschlissenes Plattenstück : Débris d'armure en plaques

Perhaps you'll need to enter ü instead of the ü

Greetings
NurMut
Last edited by NurMut on Thu Sep 28, 2006 1:43 pm, edited 2 times in total.
User avatar
NurMut
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Wed Jul 12, 2006 7:15 pm
Location: Germany

Re: Adding Naxxramas loot?

Postby Djuwal » Tue Oct 03, 2006 5:08 pm

Thanks for the language update, I'll make the code changes.
User avatar
Djuwal
WR.net Apprentice
WR.net Apprentice
 
Posts: 13
Joined: Fri Jul 14, 2006 8:51 pm

Adding Naxxramas loot?

Postby Sahasrahla » Thu Oct 05, 2006 7:31 pm

I'm gonna double-check my changes, but I made these changes to the code and our 3 (count them three!) pieces of Naxx scraps are still listed under "Misc loot". The Naxx category was created properly at the top, but the items ain't there.

Linky: http://www.sahasrahla.net/7sins/addon.p ... =guildbank
Last edited by Sahasrahla on Thu Oct 05, 2006 7:34 pm, edited 1 time in total.
User avatar
Sahasrahla
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 46
Joined: Tue Jul 04, 2006 1:53 pm
Location: Branson, MO, USA

Re: Adding Naxxramas loot?

Postby Djuwal » Wed Oct 11, 2006 7:24 pm

I think I may have found the missing part:

Open /addons/guildbank/searcharrays.php

Find:

Code: Select all
$search_order = array(3,4,5,6,7,8,18,9,27,1,2,31,28,25,10,12,11,13,14,
              
26,20,21,22,15,16,17,19,24,23,30,32); 


Replace with:

Code: Select all
$search_order = array(3,4,5,6,7,8,18,9,27,1,2,31,28,25,10,12,11,13,14,
              
26,20,21,22,33,15,16,17,19,24,23,30,32); 


This will include Naxx in the list. Hopefully this will do the trick, as it's the only thing that I can see that's missing.

EDIT: I'm not sure what order this is pulling from. There is a warning in the file not to change the order of this, so this may be the way it searches for the items. I've added the Naxx (33) after the other instance loot, but that may not be the right location. If it isn't, I would try moving it to the end and testing it again. Sorry I have no way of testing this ;;
Last edited by Djuwal on Wed Oct 11, 2006 7:36 pm, edited 3 times in total.
User avatar
Djuwal
WR.net Apprentice
WR.net Apprentice
 
Posts: 13
Joined: Fri Jul 14, 2006 8:51 pm

Re: Adding Naxxramas loot?

Postby Sahasrahla » Wed Oct 18, 2006 9:43 pm

Djuwal wrote:I think I may have found the missing part:


Yep, that seems to have done the trick :thumleft: Thanks!
User avatar
Sahasrahla
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 46
Joined: Tue Jul 04, 2006 1:53 pm
Location: Branson, MO, USA

Re: Adding Naxxramas loot?

Postby Djuwal » Fri Oct 20, 2006 12:47 am

Coolness, I've already changed my original post to include the missing info. Thanks for testing ^^
User avatar
Djuwal
WR.net Apprentice
WR.net Apprentice
 
Posts: 13
Joined: Fri Jul 14, 2006 8:51 pm

Re: Adding Naxxramas loot?

Postby Djuwal » Tue Oct 24, 2006 11:26 pm

Here are all three files. Just unzip them and put them in your /addons/guildbank folder. This should add Naxx to your bank.
Attachments
naxxfiles.zip
conf.php, localization.php & searcharrays.php
(13.74 KiB) Downloaded 67 times
User avatar
Djuwal
WR.net Apprentice
WR.net Apprentice
 
Posts: 13
Joined: Fri Jul 14, 2006 8:51 pm


Return to Categorized Guild Bank

Who is online

Users browsing this forum: No registered users and 0 guests

cron