Fix to stripos

Helps with Argent Dawn's "Craftsman's Writ" quests

Moderator: Rihlsul

Re: A Challenge to Coders: Argent Dawn Writ Calculator

Postby Rihlsul » Tue Jul 25, 2006 5:25 am

Download link:

http://wowroster.net/Downloads/details/id=36.html

Translations wanted:

Code: Select all
$wordings['enUS']['WritCalc'] = 'Writ Calculator';
$wordings['enUS']['writname'] = 'Writ Name';
$wordings['enUS']['qty'] = 'Quantity';
$wordings['enUS']['calc'] = 'Calculate';
$wordings['enUS']['writ'] = 'Writ';
$wordings['enUS']['writs'] = 'Writs';
$wordings['enUS']['rawmats'] = 'Raw Materials';
$wordings['enUS']['plans'] = 'Plans';
$wordings['enUS']['perwritdetails'] = 'Per Writ Details';
$wordings['enUS']['norecipefound'] = 'No recipe found.';

$wordings['enUS']['ruggedleather'] = 'Rugged Leather';
$wordings['enUS']['thickleather'] = 'Thick Leather';
$wordings['enUS']['heavyleather'] = 'Heavy Leather';
$wordings['enUS']['mediumleather'] = 'Medium Leather';
$wordings['enUS']['lightleather'] = 'Light Leather';


Feel free to reply here, I'll include and update to v1.10.
Rihlsul,
Guild Leader of The Dirty Hordes
User avatar
Rihlsul
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 125
Joined: Tue Jul 04, 2006 8:27 pm

Fix to stripos

Postby Bricklethumb » Tue Jul 25, 2006 10:36 pm

What file do we put this code into?

Thanks.

UPDATE

I checked the localization.php and these vars are there.

I am getting the error here.

Code: Select all
Fatal error: Call to undefined function: stripos() in /home/wow/public_html/roster/addons/writcalc/writList.php on line 241
Last edited by Bricklethumb on Tue Jul 25, 2006 10:41 pm, edited 1 time in total.
User avatar
Bricklethumb
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Mon Jul 10, 2006 10:55 pm

Re: Fix to stripos

Postby Rihlsul » Tue Jul 25, 2006 10:59 pm

Yuppers. Anyone with earlier than PHP5 is getting this error message. Within the next couple hours I'm releasing 1.1, which will completely remove that entire section of code anyway.

:thumleft:
Rihlsul,
Guild Leader of The Dirty Hordes
User avatar
Rihlsul
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 125
Joined: Tue Jul 04, 2006 8:27 pm

Re: Fix to stripos

Postby Rihlsul » Tue Jul 25, 2006 11:00 pm

(btw, this thread was accidentally started by me instead of a reply to the other stripos thread)

:cyclops2: ops
Last edited by Rihlsul on Tue Jul 25, 2006 11:01 pm, edited 1 time in total.
Rihlsul,
Guild Leader of The Dirty Hordes
User avatar
Rihlsul
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 125
Joined: Tue Jul 04, 2006 8:27 pm

Fix to stripos

Postby SethDeBlade » Tue Jul 25, 2006 11:33 pm

german translation:
Code: Select all
$wordings['deDE']['WritCalc'] = 'Handwerksverf.';
$wordings['deDE']['professionfilter'] = 'Fertigkeit:';
$wordings['deDE']['itemdescription'] = 'Beschreibung';
$wordings['deDE']['whocanmakeit'] = 'Wird hergestellt von';
$wordings['deDE']['dnotpopulatelist'] = 'Leider nichts gefunden';
$wordings['deDE']['applybutton']= 'Start';
$wordings['deDE']['writname'] = 'Name';
$wordings['deDE']['qty'] = 'Anzahl';
$wordings['deDE']['calc'] = 'Berechnen';
$wordings['deDE']['writ'] = 'Verfügung';
$wordings['deDE']['writs'] = 'Verügungen';
$wordings['deDE']['rawmats'] = 'Rohmaterialien';
$wordings['deDE']['plans'] = 'Pläne';
$wordings['deDE']['perwritdetails'] = 'Verfüungsdetails';
$wordings['deDE']['norecipefound'] = 'Kein Rezept gefunden';

$wordings['deDE']['ruggedleather'] = 'Unverwüstliches Leder';
$wordings['deDE']['thickleather'] = 'Dickes Leder';
$wordings['deDE']['heavyleather'] = 'Schweres Leder';
$wordings['deDE']['mediumleather'] = 'Mittleres Leder';
$wordings['deDE']['lightleather'] = 'Leichtes Leder';


a translation of wirts.php would be needed as well ;)
User avatar
SethDeBlade
WR.net Expert
WR.net Expert
 
Posts: 192
Joined: Thu Jul 06, 2006 1:02 am
Location: Germany

Re: Fix to stripos

Postby Rihlsul » Tue Jul 25, 2006 11:51 pm

Definitely. Want to tackle the v1.1 writs.php?

Code: Select all
$writArray['enUS']['Craftsmans Writ - Brightcloth Pants']['item']='Brightcloth Pants';
$writArray['enUS']['Craftsmans Writ - Brightcloth Pants']['qty']=6;
$writArray['enUS']['Craftsmans Writ - Brightcloth Pants']['shortname']='BrightclothPants';
$writArray['enUS']['Craftsmans Writ - Dense Weightstone']['item']='Dense Weightstone';
$writArray['enUS']['Craftsmans Writ - Dense Weightstone']['qty']=120;
$writArray['enUS']['Craftsmans Writ - Dense Weightstone']['shortname']='DenseWeightstone';
$writArray['enUS']['Craftsmans Writ - Flask of Petrification']['item']='Flask of Petrification';
$writArray['enUS']['Craftsmans Writ - Flask of Petrification']['qty']=1;
$writArray['enUS']['Craftsmans Writ - Flask of Petrification']['shortname']='FlaskofPetrification';
$writArray['enUS']['Craftsmans Writ - Gnomish Battle Chicken']['item']='Gnomish Battle Chicken';
$writArray['enUS']['Craftsmans Writ - Gnomish Battle Chicken']['qty']=4;
$writArray['enUS']['Craftsmans Writ - Gnomish Battle Chicken']['shortname']='GnomishBattleChicken';
$writArray['enUS']['Craftsmans Writ - Goblin Sapper Charge']['item']='Goblin Sapper Charge';
$writArray['enUS']['Craftsmans Writ - Goblin Sapper Charge']['qty']=20;
$writArray['enUS']['Craftsmans Writ - Goblin Sapper Charge']['shortname']='GoblinSapperCharge';
$writArray['enUS']['Craftsmans Writ - Greater Arcane Protection Potion']['item']='Greater Arcane Protection Potion';
$writArray['enUS']['Craftsmans Writ - Greater Arcane Protection Potion']['qty']=15;
$writArray['enUS']['Craftsmans Writ - Greater Arcane Protection Potion']['shortname']='GreaterArcaneProtectionPotion';
$writArray['enUS']['Craftsmans Writ - Huge Thorium Battleaxe']['item']='Huge Thorium Battleaxe';
$writArray['enUS']['Craftsmans Writ - Huge Thorium Battleaxe']['qty']=3;
$writArray['enUS']['Craftsmans Writ - Huge Thorium Battleaxe']['shortname']='HugeThoriumBattleaxe';
$writArray['enUS']['Craftsmans Writ - Imperial Plate Chest']['item']='Imperial Plate Chest';
$writArray['enUS']['Craftsmans Writ - Imperial Plate Chest']['qty']=3;
$writArray['enUS']['Craftsmans Writ - Imperial Plate Chest']['shortname']='ImperialPlateChest';
$writArray['enUS']['Craftsmans Writ - Lightning Eel']['item']='Lightning Eel';
$writArray['enUS']['Craftsmans Writ - Lightning Eel']['qty']=30;
$writArray['enUS']['Craftsmans Writ - Lightning Eel']['shortname']='LightningEel';
$writArray['enUS']['Craftsmans Writ - Major Healing Potion']['item']='Major Healing Potion';
$writArray['enUS']['Craftsmans Writ - Major Healing Potion']['qty']=20;
$writArray['enUS']['Craftsmans Writ - Major Healing Potion']['shortname']='MajorHealingPotion';
$writArray['enUS']['Craftsmans Writ - Major Mana Potion']['item']='Major Mana Potion';
$writArray['enUS']['Craftsmans Writ - Major Mana Potion']['qty']=10;
$writArray['enUS']['Craftsmans Writ - Major Mana Potion']['shortname']='MajorManaPotion';
$writArray['enUS']['Craftsmans Writ - Plated Armorfish']['item']='Plated Armorfish';
$writArray['enUS']['Craftsmans Writ - Plated Armorfish']['qty']=30;
$writArray['enUS']['Craftsmans Writ - Plated Armorfish']['shortname']='PlatedArmorfish';
$writArray['enUS']['Craftsmans Writ - Radiant Circlet']['item']='Radiant Circlet';
$writArray['enUS']['Craftsmans Writ - Radiant Circlet']['qty']=3;
$writArray['enUS']['Craftsmans Writ - Radiant Circlet']['shortname']='RadiantCirclet';
$writArray['enUS']['Craftsmans Writ - Rugged Armor Kit']['item']='Rugged Armor Kit';
$writArray['enUS']['Craftsmans Writ - Rugged Armor Kit']['qty']=25;
$writArray['enUS']['Craftsmans Writ - Rugged Armor Kit']['shortname']='RuggedArmorKit';
$writArray['enUS']['Craftsmans Writ - Runecloth Bag']['item']='Runecloth Bag';
$writArray['enUS']['Craftsmans Writ - Runecloth Bag']['qty']=8;
$writArray['enUS']['Craftsmans Writ - Runecloth Bag']['shortname']='RuneclothBag';
$writArray['enUS']['Craftsmans Writ - Runecloth Boots']['item']='Runecloth Boots';
$writArray['enUS']['Craftsmans Writ - Runecloth Boots']['qty']=8;
$writArray['enUS']['Craftsmans Writ - Runecloth Boots']['shortname']='RuneclothBoots';
$writArray['enUS']['Craftsmans Writ - Runecloth Robe']['item']='Runecloth Robe';
$writArray['enUS']['Craftsmans Writ - Runecloth Robe']['qty']=8;
$writArray['enUS']['Craftsmans Writ - Runecloth Robe']['shortname']='RuneclothRobe';
$writArray['enUS']['Craftsmans Writ - Runic Leather Pants']['item']='Runic Leather Pants';
$writArray['enUS']['Craftsmans Writ - Runic Leather Pants']['qty']=4;
$writArray['enUS']['Craftsmans Writ - Runic Leather Pants']['shortname']='RunicLeatherPants';
$writArray['enUS']['Craftsmans Writ - Stonescale Eel']['item']='Stonescale Eel';
$writArray['enUS']['Craftsmans Writ - Stonescale Eel']['qty']=40;
$writArray['enUS']['Craftsmans Writ - Stonescale Eel']['shortname']='StonescaleEel';
$writArray['enUS']['Craftsmans Writ - Thorium Grenade']['item']='Thorium Grenade';
$writArray['enUS']['Craftsmans Writ - Thorium Grenade']['qty']=20;
$writArray['enUS']['Craftsmans Writ - Thorium Grenade']['shortname']='ThoriumGrenade';
$writArray['enUS']['Craftsmans Writ - Thorium Tube']['item']='Thorium Tube';
$writArray['enUS']['Craftsmans Writ - Thorium Tube']['qty']=14;
$writArray['enUS']['Craftsmans Writ - Thorium Tube']['shortname']='ThoriumTube';
$writArray['enUS']['Craftsmans Writ - Volcanic Hammer']['item']='Volcanic Hammer';
$writArray['enUS']['Craftsmans Writ - Volcanic Hammer']['qty']=3;
$writArray['enUS']['Craftsmans Writ - Volcanic Hammer']['shortname']='VolcanicHammer';
$writArray['enUS']['Craftsmans Writ - Wicked Leather Belt']['item']='Wicked Leather Belt';
$writArray['enUS']['Craftsmans Writ - Wicked Leather Belt']['qty']=9;
$writArray['enUS']['Craftsmans Writ - Wicked Leather Belt']['shortname']='WickedLeatherBelt';
$writArray['enUS']['Craftsmans Writ - Wicked Leather Headband']['item']='Wicked Leather Headband';
$writArray['enUS']['Craftsmans Writ - Wicked Leather Headband']['qty']=10;
$writArray['enUS']['Craftsmans Writ - Wicked Leather Headband']['shortname']='WickedLeatherHeadband';

// Any item name in this array will be treated as a raw material directly
$rawMatOverrideArray = array();
$rawMatOverrideArray['enUS']['fish1'] = 'Plated Armorfish';
$rawMatOverrideArray['enUS']['fish2'] = 'Lightning Eel';
$rawMatOverrideArray['enUS']['fish3'] = 'Stonescale Eel';


And there's the tips from localization:

Code: Select all
$wordings['enUS']['tipwritname'] = 'The name of the Writs you have selected.';
$wordings['enUS']['tipwritqty'] = 'How many writs of that type.<br />For example, you might have two Craftsman Writ - Runecloth Bag and want to see the materials for two of them';
$wordings['enUS']['tipqty'] = 'Each writ requires an item, for example Brightcloth Pants. The Quantity is how many of that item <i>per writ</i> are needed.';
$wordings['enUS']['tipreagents'] = 'Per 1 item, how many of each reagent is needed';
$wordings['enUS']['tipcanmakeit'] = 'Characters in the roster with that recipe';
$wordings['enUS']['tiprawmats'] = 'The calculator delves 3 levels deep to try to rule out all Profession Made items (with special handling for leather) and give a listing of the gatherables';
Last edited by Rihlsul on Tue Jul 25, 2006 11:52 pm, edited 1 time in total.
Rihlsul,
Guild Leader of The Dirty Hordes
User avatar
Rihlsul
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 125
Joined: Tue Jul 04, 2006 8:27 pm

Fix to stripos

Postby SethDeBlade » Thu Jul 27, 2006 1:34 am

first part :D
Code: Select all
$writArray['deDE']['Handwerksverfügung - Hellstoffhose']['item']='Hellstoffhose';
$writArray['deDE']['Handwerksverfügung - Hellstoffhose']['qty']=6;
$writArray['deDE']['Handwerksverfügung - Hellstoffhose']['shortname']='Hellstoffhose';
$writArray['deDE']['Handwerksverfügung - Verdichteter Gewichtsstein']['item']='Verdichteter Gewichtsstein';
$writArray['deDE']['Handwerksverfügung - Verdichteter Gewichtsstein']['qty']=120;
$writArray['deDE']['Handwerksverfügung - Verdichteter Gewichtsstein']['shortname']='VerdichteterGewichtsstein';
$writArray['deDE']['Handwerksverfügung - Fläschchen der Versteinerung']['item']='Fläschchen der Versteinerung';
$writArray['deDE']['Handwerksverfügung - Fläschchen der Versteinerung']['qty']=1;
$writArray['deDE']['Handwerksverfügung - Fläschchen der Versteinerung']['shortname']='FläschchenderVersteinerung';
$writArray['deDE']['Handwerksverfügung - Gnomen-Kampfhuhn']['item']='Gnomen-Kampfhuhn';
$writArray['deDE']['Handwerksverfügung - Gnomen-Kampfhuhn']['qty']=4;
$writArray['deDE']['Handwerksverfügung - Gnomen-Kampfhuhn']['shortname']='GnomenKampfhuhn';
$writArray['deDE']['Handwerksverfügung - Goblin-Randalieraufladung']['item']='Goblin-Randalieraufladung';
$writArray['deDE']['Handwerksverfügung - Goblin-Randalieraufladung']['qty']=20;
$writArray['deDE']['Handwerksverfügung - Goblin-Randalieraufladung']['shortname']='GGoblinRandalieraufladung';
$writArray['deDE']['Handwerksverfügung - Großer Arkanschutztrank']['item']='Großer Arkanschutztrank';
$writArray['deDE']['Handwerksverfügung - Großer Arkanschutztrank']['qty']=15;
$writArray['deDE']['Handwerksverfügung - Großer Arkanschutztrank']['shortname']='GroßerArkanschutztrank';
$writArray['deDE']['Handwerksverfügung - Gewaltige Thoriumstreitaxt']['item']='Gewaltige Thoriumstreitaxt';
$writArray['deDE']['Handwerksverfügung - Gewaltige Thoriumstreitaxt']['qty']=3;
$writArray['deDE']['Handwerksverfügung - Gewaltige Thoriumstreitaxt']['shortname']='GewaltigeThoriumstreitaxt';
$writArray['deDE']['Handwerksverfügung - Imperiale Plattenrüstung']['item']='Imperiale Plattenrüstung';
$writArray['deDE']['Handwerksverfügung - Imperiale Plattenrüstung']['qty']=3;
$writArray['deDE']['Handwerksverfügung - Imperiale Plattenrüstung']['shortname']='ImperialePlattenrüstung';
$writArray['deDE']['Handwerksverfügung - Zitteraal']['item']='Zitteraal';
$writArray['deDE']['Handwerksverfügung - Zitteraal']['qty']=30;
$writArray['deDE']['Handwerksverfügung - Zitteraal']['shortname']='Zitteraal';
$writArray['deDE']['Handwerksverfügung - Erheblicher Heiltrank']['item']='Erheblicher Heiltrank';
$writArray['deDE']['Handwerksverfügung - Erheblicher Heiltrank']['qty']=20;
$writArray['deDE']['Handwerksverfügung - Erheblicher Heiltrank']['shortname']='ErheblicherHeiltrank';
$writArray['deDE']['Handwerksverfügung - Erheblicher Manatrank']['item']='Erheblicher Heiltrank';
$writArray['deDE']['Handwerksverfügung - Erheblicher Manatrank']['qty']=10;
$writArray['deDE']['Handwerksverfügung - Erheblicher Manatrank']['shortname']='ErheblicherHeiltrank';
$writArray['deDE']['Handwerksverfügung - Panzerfisch']['item']='Panzerfisch';
$writArray['deDE']['Handwerksverfügung - Panzerfisch']['qty']=30;
$writArray['deDE']['Handwerksverfügung - Panzerfisch']['shortname']='Panzerfisch';
$writArray['deDE']['Handwerksverfügung - Strahlender Reif']['item']='Strahlender Reif';
$writArray['deDE']['Handwerksverfügung - Strahlender Reif']['qty']=3;
$writArray['deDE']['Handwerksverfügung - Strahlender Reif']['shortname']='StrahlenderReif';
$writArray['deDE']['Handwerksverfügung - Unverwüstliches Rüstungsset']['item']='Unverwüstliches Rüstungsset';
$writArray['deDE']['Handwerksverfügung - Unverwüstliches Rüstungsset']['qty']=25;
$writArray['deDE']['Handwerksverfügung - Unverwüstliches Rüstungsset']['shortname']='UnverwüstlichesRüstungsset';
$writArray['deDE']['Handwerksverfügung - Runenstofftasche']['item']='Runenstofftasche';
$writArray['deDE']['Handwerksverfügung - Runenstofftasche']['qty']=8;
$writArray['deDE']['Handwerksverfügung - Runenstofftasche']['shortname']='Runenstofftasche';
$writArray['deDE']['Handwerksverfügung - Runenstoffstiefel']['item']='Runenstoffstiefel';
$writArray['deDE']['Handwerksverfügung - Runenstoffstiefel']['qty']=8;
$writArray['deDE']['Handwerksverfügung - Runenstoffstiefel']['shortname']='Runenstoffstiefel';
$writArray['deDE']['Handwerksverfügung - Runenstoffrobe']['item']='Runenstoffrobe';
$writArray['deDE']['Handwerksverfügung - Runenstoffrobe']['qty']=8;
$writArray['deDE']['Handwerksverfügung - Runenstoffrobe']['shortname']='Runenstoffrobe';
$writArray['deDE']['Handwerksverfügung - Runenverzierte Lederhose']['item']='Runenverzierte Lederhose';
$writArray['deDE']['Handwerksverfügung - Runenverzierte Lederhose']['qty']=4;
$writArray['deDE']['Handwerksverfügung - Runenverzierte Lederhose']['shortname']='RunenverzierteLederhose';
$writArray['deDE']['Handwerksverfügung - Steinschuppenaal']['item']='Steinschuppenaal';
$writArray['deDE']['Handwerksverfügung - Steinschuppenaal']['qty']=40;
$writArray['deDE']['Handwerksverfügung - Steinschuppenaal']['shortname']='Steinschuppenaal';
$writArray['deDE']['Handwerksverfügung - Thoriumgranate']['item']='Thoriumgranate';
$writArray['deDE']['Handwerksverfügung - Thoriumgranate']['qty']=20;
$writArray['deDE']['Handwerksverfügung - Thoriumgranate']['shortname']='Thoriumgranate';
$writArray['deDE']['Handwerksverfügung - Thoriumröhre']['item']='Thoriumröhre';
$writArray['deDE']['Handwerksverfügung - Thoriumröhre']['qty']=14;
$writArray['deDE']['Handwerksverfügung - Thoriumröhre']['shortname']='Thoriumröhre';
$writArray['deDE']['Handwerksverfügung - Vulkanischer Hammer']['item']='Vulkanischer Hammer';
$writArray['deDE']['Handwerksverfügung - Vulkanischer Hammer']['qty']=3;
$writArray['deDE']['Handwerksverfügung - Vulkanischer Hammer']['shortname']='VulkanischerHammer';
$writArray['deDE']['Handwerksverfügung - Tückischer Ledergürtel']['item']='Tückischer Ledergürtel';
$writArray['deDE']['Handwerksverfügung - Tückischer Ledergürtel']['qty']=9;
$writArray['deDE']['Handwerksverfügung - Tückischer Ledergürtel']['shortname']='TückischerLedergürtel';
$writArray['deDE']['Handwerksverfügung - Tückisches Lederstirnband']['item']='Tückisches Lederstirnband';
$writArray['deDE']['Handwerksverfügung - Tückisches Lederstirnband']['qty']=10;
$writArray['deDE']['Handwerksverfügung - Tückisches Lederstirnband']['shortname']='TückischesLederstirnband';

// Any item name in this array will be treated as a raw material directly
$rawMatOverrideArray = array();
$rawMatOverrideArray['deDE']['fish1'] = 'Panzerfisch';
$rawMatOverrideArray['deDE']['fish2'] = 'Zitteraal';
$rawMatOverrideArray['deDE']['fish3'] = 'Steinschuppenaal';
User avatar
SethDeBlade
WR.net Expert
WR.net Expert
 
Posts: 192
Joined: Thu Jul 06, 2006 1:02 am
Location: Germany


Return to Writ Calculator

Who is online

Users browsing this forum: No registered users and 1 guest

cron