Skip to content

Commit

Permalink
added Rojan as merchant, added option to parse all merchants
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensayshi committed Jan 20, 2014
1 parent 6d2b609 commit 6d0ed52
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tools/import-karma-from-wiki.php
Expand Up @@ -200,14 +200,24 @@ function get_items($url) {
return null;
}


$urls = array_merge(
get_page_urls('http://wiki.guildwars2.com/index.php?title=Category:Renown_heart_NPCs'),
get_page_urls('http://wiki.guildwars2.com/index.php?title=Category:Renown_heart_NPCs&from=Magister%20Kathryn'),
get_page_urls2('http://wiki.guildwars2.com/wiki/Karma_merchant'),
get_page_urls('http://wiki.guildwars2.com/wiki/Category:Vendor_inventory_tables')
get_page_urls('http://wiki.guildwars2.com/wiki/Category:Vendor_inventory_tables'),
array('http://wiki.guildwars2.com/wiki/Rojan_the_Penitent')
);

if (in_array('--all', $argv)) {
$urls = array_merge(
get_page_urls('http://wiki.guildwars2.com/index.php?title=Category:Merchants'),
get_page_urls('http://wiki.guildwars2.com/index.php?title=Category:Merchants&pagefrom=Hajo'),
get_page_urls('http://wiki.guildwars2.com/index.php?title=Category:Merchants&pagefrom=Radarr Boommaker')
);
}

$urls = array_unique($urls);

var_dump($urls);

$stmt_coin = Propel::getConnection()->prepare("UPDATE item SET
Expand Down

0 comments on commit 6d0ed52

Please sign in to comment.