// wikiUtils.php
// last updated: Jan 10, 2012
// ravhin
include("wikiCore.php");
if (!$_POST["itemName"] && !$_POST["NPCName"] && !$_POST["NPC_ID1"] && !$_POST["NPC_ID2"] && !$_POST["QuestName"] && !$_POST["SpellName"]
&& !$_POST["FactionName"] && !$_POST["commaList"] && !$_POST["hoverList"])
{ ?>
Project 1999 Wiki - Ravhin's Scraping Utilities
Last Updated:
For any questions or improvements please contact me on the wiki.
Note: Making some pages page can take a long time. Please be patient.
Download: Scraper Source,
Custom Extensions Source (please drop me a note if you would like to contribute!)
} elseif ($_POST["itemName"]) {
$itemName = stripslashes($_POST["itemName"]);
$lucyID = getLucyID($itemName);
if ($lucyID)
{
print "\n";
list($itemPage,$lucy_img_id) = itemPage($itemName);
print "
\n";
$imgLink = "http://everquest.allakhazam.com/pgfx/item_" . $lucy_img_id . ".png";
$numRows = count(explode("\n",$itemPage));
?>
Found: (ID = ) - SUCCESS! (go back)
Step 1: (Rarely Necessary) Copy this linked image (the item icon) and reupload to the wiki (keep the same filename):
Step 2: Select All, Copy the whole page in the text box below.
Paste into the new item page (use the exact item name as the page name).
Please review what you get, add any notes, make any needed corrections:
} else {
echo "Error: Item not found in DB.
Go Back";
}
} elseif ($_POST["NPCName"]) {
$npcName = stripslashes($_POST["NPCName"]);
list($illiaID,$illiaName) = getIlliaID($npcName,$_POST["nameexact"]);
if ($illiaID)
{
print "\n";
list($npcPage,$illiaImgLink) = npcPage($npcName,$_POST["nameexact"]);
print "
\n";
$numRows = count(explode("\n",$npcPage));
?>
Found: (Illia ID = ) - SUCCESS! (go back)
Step 1: Copy this linked image (the npc screenshot) and reupload to the wiki:
Step 2: Select All, Copy the whole page in the text box below.
Paste into the new NPC page (use the exact NPC name as the page name).
Please review what you get, add any notes, make any needed corrections:
} else {
echo "Error: Mob not found in DB.
Go Back";
}
} elseif ($_POST["NPC_ID1"] || $_POST["NPC_ID2"]) {
print "\n";
list($npcPage,$npcName,$illiaImgLink) = npcPageByID(stripslashes($_POST["NPC_ID1"]),stripslashes($_POST["NPC_ID2"]));
print "
\n";
$numRows = count(explode("\n",$npcPage));
?>
Found: (Illia ID = ) - SUCCESS! (go back)
Step 1: Copy this linked image (the npc screenshot) and reupload to the wiki:
Step 2: Select All, Copy the whole page in the text box below.
Paste into the new NPC page (use the exact NPC name as the page name).
Please review what you get, add any notes, make any needed corrections:
} elseif ($_POST["QuestName"]) {
$questName = stripslashes($_POST["QuestName"]);
print "\n";
list($questPage,$npc_img_link) = questPage($questName);
print "
\n";
$numRows = count(explode("\n",$questPage));
?>
Found: - SUCCESS! (go back)
Step 1: Copy this linked image (the npc/quest giver screenshot) and reupload to the wiki:
Step 2: Select All, Copy the whole page in the text box below.
Paste into the new quest page (use the exact quest name as the page name).
Please review what you get, add any notes, make any needed corrections:
}
elseif ($_POST["SpellName"]) {
$spellName = stripslashes($_POST["SpellName"]);
print "\n";
$spellPage = spellPage($spellName);
print "
\n";
$numRows = count(explode("\n",$spellPage));
?>
Found: SUCCESS! (go back)
Step 1: Select All, Copy the whole page in the text box below.
Paste into the new spell page (use the exact spell name as the page name).
Please review what you get, add any notes, make any needed corrections:
} elseif ($_POST["FactionName"]) {
$factionName = stripslashes($_POST["FactionName"]);
print "\n";
$factionPage = factionPage($factionName);
print "
\n";
$numRows = count(explode("\n",$factionPage));
?>
Found: SUCCESS! (go back)
Step 1: Select All, Copy the whole page in the text box below.
Paste into the new spell page (use the exact spell name as the page name).
Please review what you get, add any notes, make any needed corrections:
} elseif ($_POST["commaList"] || $_POST["hoverList"]) {
if ($_POST["commaList"]) {
$commaList = $_POST["commaList"];
$linkedList = "[[" . $commaList . "]]";
$linkedList = str_replace(", ","]], [[",$linkedList);
}
if ($_POST["hoverList"]) {
$hoverList = $_POST["hoverList"];
$linkedList = "{{:" . $hoverList . "}}";
$linkedList = str_replace(", ","}}, {{:",$linkedList);
}
?>
(go back)
}
?>