New settings.lua and map config options to adjust game content between current retail and old 2004 style:

2nd Limit breaker quest, Land kings, Mission BCNM level caps. Also fixed a few typos.

They way I did G2 doesn't require a variable, does hide the npc target like retail used to using a function. I only knew a few other ways to do that and was told this was preferable to those. Willing to change it if offered a better method.


settinsg.lua:

OldSchoolG2 - If false current retail behavior will be used. Set true to require the NMs for "Atop the Highest Mountains" be dead to get KI like before SE changed it.

FrigiciteDuration - will set how long the '???' is there after killing the NMs if OldSchoolG2 is set true.

LandKingSystem_NQ and LandKingSystem_HQ modify the spawn systems for Behemoth, Fafnir, Adamantoise, King Behemoth, Nidhogg, Aspidochelone. Use 0 for timed spawns, 1 for force pop only, 2 for both (default because thats how it was already behaving).


map config:

Setting CoP_Battle_cap to zero will cause the SQL entries for level cap to be ignored. Default obeys the SQL.


Also included, but not oldschool related:

Updated some TextIDs.lua used by the scripts in these changes.

(settings.lua) DIMENSIONAL_PORTAL_UNLOCK - Set to true if you want to use the dimensional portals for sea/limbus access without meeting the normal requirements.

(map config) Battle_cap_tweak simply adjust the level cap applied to every battle in the entire table. Set it to five and all caps will be 5 levels higher than is normal. Negative values might work too.

Some checks I put inside instance.cpp probably weren't needed, but I didn't want to find out the hard way what would happen if a cap wound up being out of the 0-99 range.
Fixed typos.
Merge pull request #100 from Euda/master

Corrected comments in various files.
SCRIPT: Fixed fame issue with non-existing fame region. (Mhaura uses Windy fame.)
Attempt to script the Devotion Ability for White Mage

Notes:
-Converts 25% of Player's HP to MP for the taret
-Merits add +5% MP recovers (but HP taken stays at 25%)
-Maximum Distance is 10
-Player Cannot Cast on Self
-Stoneskin can absorb the damage if its up

References:
http://wiki.ffxiclopedia.org/wiki/Devotion
http://www.ffxivpro.com/forum/topic/36540/on-healing-hands-a-comprehensive-whm-guide/
Add merit bonuses for Protectra V & Shellra V

Protectra V: Each additional merit point beyond the 1st is supposed to boost the power by 5

Shellra V: Each additional merit point beyond the 1st is supposed to boost the power by 1
These leeches had an incorrect behavior/link setting - they spawned already in an aggressive state.

Only change I made was to spawn them non agro'd. If the player is low enough lv and does not have sneak effect on, they will still agro.

They will also still link, I have not changed that in the SQL. But I am not sure the Korroloka Leeches for NIN unlock quest really do link in retail despite what wiki says. I've helped many people get their ninja unlock over the years, and we always sneak popped and pulled a single leach.

It may be that they do link, but the they were far enough a part to pull safely. I've left it alone in any case.

One of the multiple examples from ffxiclopedia's talk page:
"Soloable by BST 40/ WHM 20. Caled pet (Tiger familiar) and used sneak. When I popped the leaches they didn't aggro. I then continued to use my pet to kill the first one. They do not link. After the first one was dead I sent my tiger to kill another while I soloed the last leech. Relatively easy, had to cast a few cures. -Heillon-Fairy(Sylph) Server."
Adjust script per teschnei's suggestions

-Use stoneskin utils instead of manually coding that (thats a useful function!)
-Don't redudantly check for max mp heal. Add MP should do this

Note: Still needs to check targeting or I can cast it on myself, which shouldn't be allowed
Fix mistake in Shellra bonus

Also cleaned up the code per maxtherabbit's suggestions
Fix targeting/distance issues in the SQL instead of Lua

Lua script cleaned up to reflect this. Note: there appears
to be a bug in core where TARGET_PLAYER_PARTY lets you target
yourself as long as you're in a party. Per teschnei that will be handled outside of the scope of this request.
Merge pull request #104 from starlightknight/protectra-shellra-merits

Add merit bonuses for Protectra V & Shellra V
Merge pull request #102 from TeoTwawki/mobfix2

These leeches had an incorrect behavior/link setting - they spawned already in an aggressive state.
Merge pull request #101 from starlightknight/devotion

SCRIPTS: Devotion JA
CORE: sync timestamps used in zone-in packet, this fixes auto-hp bug
SQL: Change audit_chat to store messages in blobs to avoid issues with auto-translate strings.
SQL: Change linkshell message to use BLOB to properly handle auto-translate messages in the lsmes.
SQL: Changed bazaar message to use BLOB to allow auto-translate strings.
Merge pull request #107 from maxtherabbit/master

CORE: sync timestamps used in zone-in packet, this fixes auto-hp bug
Fix issue with merit bonus for Devotion

You only get an extra 5% bonus for each merit point after the first. The script was giving you a 5% bonus for the first point as well. Thanks to @maxtherabbit for pointing this out.
Refactor 9db62ec5d8d485c5a937d68e6028f57e764569c0