User:Matthew.zellmer: Difference between revisions

From Lotro-Wiki.com
Jump to navigation Jump to search
Line 277: Line 277:
* three-step process, query to get current data and get edit token, modify data locally, POST data ([https://www.mediawiki.org/wiki/API:Edit API:Edit]) back to server  
* three-step process, query to get current data and get edit token, modify data locally, POST data ([https://www.mediawiki.org/wiki/API:Edit API:Edit]) back to server  
** perform query and get token happen at the same time (use <code>intoken=edit</code> in the query)
** perform query and get token happen at the same time (use <code>intoken=edit</code> in the query)
** API tokens can only be asked for using specific queries <code>prop=info&titles=FindThisExactTitle</code> is one of them
***  example: <code>http://en.wikipedia.org/w/api.php?action=query&titles=Foo&prop=info&intoken=edit</code>  for obtaining edit token
***  example: <code>http://en.wikipedia.org/w/api.php?action=query&titles=Foo&prop=info&intoken=edit</code>  for obtaining edit token
*** the edit token looks like this "a6376ba5c8284f218c935aec5a038032+\\"
*** the edit token looks like this "a6376ba5c8284f218c935aec5a038032+\\"

Revision as of 15:24, 30 January 2014


My pages

User:Matthew.zellmer/testpage

LOTRO Characters

Character Class Level Horse Main Stat Armor Weapons Jewellery Resources needed Cash needed Crafting Guild Adventuring
Leadweight Guardian 50 Horse Might, Vitality 1st Heavy + Heavy Shield
40 + all
1H, 2H, +(lvl:30) Bow
40+
40+ rich iron ore, prestine leather, glazed med leather max Master Metalsmith
Artisan Tailor
Artisan Prospector
Brick and Mordor Misty Mountains
LeadMable Champion 8 Might 2nd Heavy (no shield)
med 15-19 all
1H,2H+bow (Lvl:20), +dual wield
30+ purple or blue only
light, med leather
copper ore, barrow iron ore
5gp 2nd Expert Forester
App. Tailor
2nd Journayman Prospector
WhiteArizona (T) Captain 7 Might 3rd Heavy+Shield
med 10-19 all, 30+ all, shield 30,40
1H, 2H, (no bow) + Halbert
USE 2H
2gp 3rd App. Forester
App. Tailor
3rd App. Prospector
WhiteColorado (T) Champion 7 Might 4th Heavy (no shield)
all
1H,2H+bow (Lvl:20), +dual wield
all
Mule 1gp
Suitup Burglar 20 Horse Agility 1st Med
25-30+ all, 40+ all
1H (Not Hammers)
40+
20+ all, 30+ all look for Yew planks
all ores
500sp 1st Master Forester
Expert Tailor
1st Artisan Prospector
Brotherhood of Shadow
Waitforit (T) Hunter 20 Horse Agility 2nd Med
unknown, 30+ all
1H+Bow
21+
30+ needs Barrow Iron, Rich Iron, Dwarf iron
Yew planks
adamant, sahppire, ruby, shards
solid ash,hew planks
max Expert Weaponsmith
Expert Woodworkers
Expert Prospector
Tangelia (T) Hunter 20 Horse Agility 3rd Med
26+, 40+ all
1H+Bow
30+
26+, 30+, 40+ Rich Iron, dwarf Irom
have chest needs keys
needs sapphire shards
needs adamant shards
max Master Jeweller
Artisan Prospector
Expert Cook
LeadBirtha Warden 7 Agility, Vitality 4th Med+ Warden Shield
20+ all, 30+ all
1H+Javlin
all
? 4.5g
Piepjay (T) Hunter 10 Horse Agility 5th Med
all
1H+Bow
all
all Mule 1gp
WhiteAlaska Lore-master 21 Horse Will 1st Light
28-30 all, 30+ all
Staff Only
30+
30+ neck and ear shards
various components
max App. Weapons
Artisan Scholar
App. Farmer
Brotherhood of Shadow
Hearthrob Mistrial 20 Horse Will 2nd Light+shield
23-30 gloves, shoulders, 30+ all
1H (not hammers)
30+
10+, 20+, 30( 1 wrist, 1 ear) 4.5g Artisan Cook
Artisan Farmer
Expert Tailor
Brotherhood of Shadow


WhiteVirginia Rune-Keeper 7 Will 3rd Light
20+ all (not head or feet)
Runes/1H Ax Only
30+
20+ all 4.5g change to scholar

Where to Collect Materials

Currently Working List

Odd pages that need to be fixed

Bring Moria zones out of the shadows

Main page links are missing Items

  • Settlements page is missing anything past Moria
  • Area page is missing anything past Moria, needs to have the Cateegories added to it no manual links
  • Categories are missing all the towns and settlements as well
  • Category Rare Signature is missing tons of baddies
  • What is this? Item:Apprentice Scroll Case this should be removed I think

Fixing Wiki-code Lootbox, Lootitems Templates and and updating creatures and Item Drops

Wiki API for using HTTP to edit the wiki

API action=query

To get more information distilled from the wikitext at parse time (links, categories, sections, etc.), use the API parse module: http://en.wikipedia.org/w/api.php?action=parse&page=Main_Page . See also the documentation for the API:Parsing wikitext#parse action=parse module.

API action=edit

  • Changing wiki content using the action=edit to edit a page
  • three-step process, query to get current data and get edit token, modify data locally, POST data (API:Edit) back to server
    • perform query and get token happen at the same time (use intoken=edit in the query)
    • API tokens can only be asked for using specific queries prop=info&titles=FindThisExactTitle is one of them
    • manipulate the data locally on your computer
    • POST back to wiki, POST requests only: Diff between GET and POST
    • POST and PHP
    • Only way to send POST data is to use a web form
    • So you have to have a local webpage that will accept the action=query data into a form then use the form to POST it back to the wiki
    • This is what the python scripts do but they do most of the heavy lifting for you
    • read the API documentation about action=edit here

Bots and Robots access the API to perform actions

AJAX fail

Bot Script Solution Progress

  • AJAX has limited use given the cross-domain restrictions, I cant get around them
  • building PHP script to perform API query only
    • initial coding done, have a working, single use API query script
    • design:
      • PHP webpage with textbox and form, must know API query language yourself, limited help
      • form submits to PHP backend, which performs API query, makes a local copy of the returned XML results
      • new page displays the results but you can checkmark the ones you want for further API query
      • working here

test wiki site

  • test scripts here
  • testwiki.skunark.net
  • lotroadmin will have to give you bot rights on that.
  • I also don't know the status of the test-wiki currently, as it was "munged" as part of the Server switch/upgrade last month.(Dec2013)

adding Regions Named Creatures map and list and adding the maps to the Creature Category Pages

cleaning up the region pages, for people who want easy shard hunting

adding maps with POI and a list of them with locs

  • Trollshaws

updating the crafting pages and for Game Update 12

  • Prospector - done
    • changed recipes, ore, ingots etc.
  • Metalsmith - started
    • Appretience already done
      • need to verify product stats
    • Journayman - done
      • need to verify product stats
    • Expert - done
      • need to verify product stats
    • Artisan - done
      • need to verify product stats
    • Master - done
      • need to verify product stats
      • There is a problem with the icons not sure they are right
    • DONT change table header Components to anything! The work components is embedded in everything
    • update this page Lotro-Wiki.com:Crafting
      • add new obsolete item recipes nad their multi-input - done
        • use the Other Ingredients Template to make it easier example below
        • this can be tricky need to verify all links still work to the new page
        • Categorize put into category these new item - done
    • there are additional pages

updating the crafting recipes and items Game Update 12

  • need to fix deposits pages -
    • item and ore pages
    • item ingot
    • item recipe pages
    • lots to do
    • Prospector_Recipe_Index page Apprentice section
    • Ore update the ore page
    • update each individual ore, deposit, ingot and other pages
  • chang to Khazad - done
    • remove and adding fixes for Khazad now:
    • fixed the Ore page
    • fixed all the individual Deposit pages
    • working on Prospector_Recipe_Index page Supreme section
    • do the teir 6 receipts that call for Kazad Tin ingots now need just Tin ingots? no Do vendors sell Khazad Tin Ingots? yes
    • need to find a way to redirect Kazad to Khazâd for the search tool. Will hold off for now
    • added Item:Piece of Khazâd Metal but it needs an icon - added by someone great!
    • added new Item:Khazâd Skarn Deposit but then moved it to just Khazâd Skarn Deposit. not sure how to delete the item page I created - now know how to delete

NOT DONE

  • A Log of Mallorn Wood is now a Gnarled Ilex Branch that can be used to make Thin Ilex Planks.
  • A Treated Mallorn Plank is now a Treated Ilex Wood that can be used to make Solid Ilex Planks.
  • An Extraordinary Hide is now an Aged Extraordinary Hide and can be used to make Brushed Extraordinary Leather.

Expertise Tolkens and how they work

  • Every crafting job and Tier has a Crafting Expertise recipe that uses crafting expertise tokens
  • Skirmish-Crafting
  • does this still work? - yes
  • why were only the apprentice recipes added? Verify in-game if I can buy these recipes and then use one of them - this works ingame
  • problem is I don't remember the exact name need to write down and then add missing content here