MQ2PiggyZone & Underfoot

htw

Developer
Joined
Aug 27, 2006
Messages
13,193
Reaction score
374
Points
83
Location
Albuquerque, NM
Time for some data collection. Anyone who wants to grab the default ZI locs, connections, whatever, post em here and I'll update the INI as we go. Please don't post the entire INI, we don't need all that. Thanks. ;)

htw

Code:
;------Underfoot
479=crafthalls "Ngreth's Den"
480=brellsrest "Brell's Rest"
481=fungalforest "Fungal Forest"
482=underquarry "The Underquarry"
483=coolingchamber "The Cooling Chamber"
484=shiningcity "Kernagir, The Shining City"
485=arthicrex "Arthicrex"
486=foundation "The Foundation"
487=lichencreep "Lichen Creep"
488=pellucid "Pellucid Grotto"
489=stonesnake "Volska's Husk"
490=brellstemple "Brell's Temple"
491=convorteum "The Convorteum"
492=brellsarena "Brell's Arena"
493=weddingchapel "Wedding Chapel"
494=weddingchapeldark "Wedding Chapel"
495=dragoncrypt "Lair of the Fallen"
700=feerrott2 "The Feerrott"
701=thulehouse1 "Thule House 1"
702=thulehouse2 "Thule House 2"
703=housegarden "House Garden"
704=houselibrary "House Library"
705=well "Well"
706=fallen "Fallen"
707=morellcastle "Morell's Castle"
708=morelltower "Morell's Tower"
709=alkabormare "Al'Kabor's Nightmare"
710=miragulmare "Miragul's Nightmare"
711=thuledream "Thule's Dream"

Code:
;------Underfoot
[crafthalls]

[brellsrest]

[fungalforest]

[underquarry]

[coolingchamber]

[shiningcity]

[arthicrex]

[foundation]

[lichencreep]

[pellucid]

[stonesnake]

[brellstemple]

[convorteum]

[brellsarena]

[weddingchapel]

[weddingchapeldark]

[dragoncrypt]

[feerrott2]

[thulehouse1]

[thulehouse2]

[housegarden]

[houselibrary]

[well]

[fallen]

[morellcastle]

[morelltower]

[alkabormare]

[miragulmare]

[thuledream]
 
Little plugin I wrote which should help any who are interested in updating the ini. All you have to do is type /zonehelper on and then zone normally, locs will be in your MQ2 folder in MQ2PiggyZoneHelper.ini.
Code:
#include "../MQ2Plugin.h"

PreSetup("MQ2PiggyZoneHelper");

bool bZoneHelper	= true;
bool bZoned			= false;
unsigned int delay	= 0;
char szPreviousZoneName[MAX_STRING];

VOID LoadINI(VOID) 
{ 
	char szTemp[MAX_STRING]; 
	GetPrivateProfileString("Settings","Enabled","NotFound",szTemp,MAX_STRING,INIFileName); 
	if (!strcmp(szTemp,"NotFound")) 
	{ 
		WritePrivateProfileString("Settings","Enabled","False",INIFileName); 
	} else if (!strcmp(strlwr(szTemp),"true"))
	{
		bZoneHelper = true;
	} else {
		bZoneHelper = false;
	}
}

int FindS(string strMain, string strWord)
{          
	int pos;
	if (strMain.find(strWord) == 'npos') 
	{                     
		return -1;            
	} else {  
		pos = strMain.find(strWord); 
		return pos;      
	}       
}

void SaveLoc()
{
	PZONEINFO pZone = (PZONEINFO)pZoneInfo;
	PSPAWNINFO pChar = GetCharInfo()->pSpawn;
	char szTemp[MAX_STRING];
	char szLoc[MAX_STRING];
	sprintf(szTemp,"from%s",szPreviousZoneName);
	sprintf(szLoc,"%3.2f %3.2f %3.2f %3.2f",pChar->Y, pChar->X, pChar->Z, pChar->Heading);
	WritePrivateProfileString(pZone->ShortName,szTemp,szLoc,INIFileName); 
}

void ZoneHelperCMD(PSPAWNINFO pChar, PCHAR szLine)
{
	char szTemp[MAX_STRING];
	GetArg(szTemp, szLine, 1);
	strlwr(szTemp);
	if (!stricmp(szTemp, "on"))
	{
		bZoneHelper = true;
	} else if (!stricmp(szTemp, "off")) 
	{
		bZoneHelper = false;
	} else {
		bZoneHelper = !bZoneHelper;
	}
	WritePrivateProfileString("Settings","Enabled",bZoneHelper?"True":"False",INIFileName); 
	WriteChatf("\ayMQ2PiggyZoneHelper\ax \ar::\ax \atZone Helper is now\ax \ay[\ax%s\ay]\ax", bZoneHelper?"\agEnabled\ax":"\arDisabled\ax");
}

PLUGIN_API VOID InitializePlugin(VOID)
{
	DebugSpewAlways("Initializing MQ2PiggyZoneHelper");
	AddCommand("/zonehelper", ZoneHelperCMD);
	LoadINI();
}

PLUGIN_API VOID ShutdownPlugin(VOID)
{
	DebugSpewAlways("Shutting down MQ2PiggyZoneHelper");
	RemoveCommand("/zonehelper");
}

PLUGIN_API VOID OnPulse(VOID)
{
	if (bZoneHelper && GetTickCount() > delay)
	{
		if (!bZoned)
		{ 
			PZONEINFO pZone = (PZONEINFO)pZoneInfo;
			sprintf(szPreviousZoneName,"%s",pZone->ShortName); 
			delay = GetTickCount() + 50;
		}
	}
}

PLUGIN_API DWORD OnIncomingChat(PCHAR Line, DWORD Color)
{
	if (bZoneHelper) 
	{
		if (FindS(Line, "You have entered")==0) 
		{
			bZoned = false;
			SaveLoc();
		} else if (!stricmp(Line, "LOADING, PLEASE WAIT..."))
		{
			bZoned = true;
		}
	}
	return 0;
}
 

Attachments

  • MQ2PiggyZoneHelper.dll
    174 KB · Views: 6
Last edited:
Thanks man. Our piggy has some helper functions, but like a tard, I let time run out before 12/01 and did not do the access quests on my account. I shoulda checked them before they nerfed out saying in those zones haha.

htw
 
Sorry to bump, does that mean that MQ2PiggyZone should now be working in Underfoot, or does it mean that there is now a way for us to help in the standard DL?
 
has anyone got a updated ini for the new zones?
 
It's on the server, been there for days. :p

Run auto-update & select it.

htw
 
It's on the server, been there for days. :p

Run auto-update & select it.

htw

Found it. was looking in the wrong section on the INI
 
Last edited:
UPDATE

Changes to Mq2PiggyZone.ini for Underfoot Expansion:
______________________________________________


I used Mq2PiggyZoneHelper.dll to obtain the coordinates for every waypoint listing.


NOTE: ALL CHANGES ARE REFLECTED IN THE ATTACHED UPDATED
MQ2PiggyZone.ini FILE, THE FOLLOWING IS SIMPLY A LIST
OF CHANGES AND CORRECTIONS.

Attachment is listed 2 posts below .... needed corrections for Brells Rest connections.


I have asked HTW to correct these issues in the last compile but it seems
it may have slipped through the cracks. They are busy people and I don't
fault anyone for not being as anal as I am abouot these updated.. lol


I: Corrections:
Code:
1) BlightFire Moors(395) had no connection to PoKnowledge(202)

395=moors "Blightfire Moors",202,394,396,397,407

[Moors]
fromPoKnowledge=-593.00 -1364.00 4.00 66.00



2) Plane of Time-a(219) was not linked to PoKnowledge(202)
as it should be after introduction of Herald of Druzzil Ro / Vice Versa.
And PoKnoeldge waypoint did not contain a reference foe PoTimea

202=poknowledge "The Plane of Knowledge",2,25,30,47,50,54,68,78,84,93,118,151,152,165,187,203,219,224,344,383,395,413,414,415,448

219=potimea "Plane of Time",202,203,219,459,460,461,462,463,464,465

[PoKnowledge]
fromPotimea=-241.00 226.00 -124.00 230.00

______________________________________________

II: Additions for Underfoot.

The following Old Zone connections and waypoint markers 
have been updated to reflect the new zone connections
in Underfoot expansion.


1) Addition of Brells Rest(480) to The Hole(39):

39=hole "The Hole",75,480

[hole]
frombrellsrest=744.00 209.00 -889.00 240.00


2) Addition of Lichen Creep(487): to Corathus Creep(365):

365=corathus "Corathus Creep",25,362,487

[Corathus]
fromlichencreep=394.00 793.00 -46.00 230.00


______________________________________________

III: New Zone connections (up to Tier8 progression).


;------Underfoot
479=crafthalls "Ngreth's Den"
480=brellsrest "Brell's Rest"39,482,483,484,488,490,492
481=fungalforest "Fungal Forest",485,488
482=underquarry "The Underquarry",480,485,486,488
483=coolingchamber "The Cooling Chamber",480,488
484=shiningcity "Kernagir, The Shining City",480,490
485=arthicrex "Arthicrex",481,482,487
486=foundation "The Foundation",482
487=lichencreep "Lichen Creep",365,485
488=pellucid "Pellucid Grotto",480,482,483,488
489=stonesnake "Volska's Husk"
490=brellstemple "Brell's Temple",480
491=convorteum "The Convorteum"
492=brellsarena "Brell's Arena",480
493=weddingchapel "Wedding Chapel"
494=weddingchapeldark "Wedding Chapel"
495=dragoncrypt "Lair of the Fallen"
700=feerrott2 "The Feerrott"
701=thulehouse1 "Thule House 1"
702=thulehouse2 "Thule House 2"
703=housegarden "House Garden"
704=houselibrary "House Library"
705=well "Well"
706=fallen "Fallen"
707=morellcastle "Morell's Castle"
708=morelltower "Morell's Tower"
709=alkabormare "Al'Kabor's Nightmare"
710=miragulmare "Miragul's Nightmare"
711=thuledream "Thule's Dream"

______________________________________________

IV: Connection waypoints (up to Tier8 progression).

[crafthalls]

[brellsrest]
fromhole=-781.00 114.00 60.00 485.00
fromunderquarry=-1193.25 -670.25 -13.25 30.00
frompellucid=-1171.75 346.13 33.38 31.00
fromshiningcity=487.00 29.00 154.00 385.00
frombrellstemple=591.00 42.00 178.00 255.00

[fungalforest]
frompellucid=206.00 2798.00 340.00 350.00
fromarthicrex=627.00 -2160.00 221.00 120.00

[underquarry]
frombrellsrest=218.13 25.63 -195.75 239.00
frompellucid=237.38 -557.13 -186.00 243.00
fromarthicrex=25.00 261.00 -196.00 380.00
fromfoundation=-128.00 64.00 -194.00 0.00

[coolingchamber]
frombrellsrest=-192.00 0.00 110.00 45.00
frompellucid=-680.00 585.00 -212.00 332.00

[shiningcity]
frombrellsrest=-7.00 -3.00 -44.00 62.00
frombrellstemple=10.00 14.00 -45.00 65.00

[arthicrex]
fromfungalforest=-204.00 1169.00 7.00 388.00
fromunderquarry=-1633.75 521.13 200.00 270.00
fromlichencreep=-2069.00 -245.00 108.00 30.00

[foundation]
fromunderquarry=-1111.38 1163.00 -207.25 18.00

[lichencreep]
fromarthicrex=-1290.00 95.00 -6.00 104.00
fromCorathus=-404.00 -734.00 -8.00 134.00

[pellucid]
frombrellsrest=-290.63 -908.38 -44.63 152.00
fromcoolingchamber=-558.25 523.50 -2.38 288.00
fromunderquarry=782.88 -655.50 -24.88 123.00
fromfungalforest=1759.00 350.00 8.00 185.00

[stonesnake]

[brellstemple]
frombrellsrest=4.00 0.00 -23.00 0.00

[convorteum]

[brellsarena]

[weddingchapel]

[weddingchapeldark]

[dragoncrypt]

[feerrott2]

[thulehouse1]

[thulehouse2]

[housegarden]

[houselibrary]

[well]

[fallen]

[morellcastle]

[morelltower]

[alkabormare]

[miragulmare]

[thuledream]
______________________________________________
 
Last edited:
Forgot the File !

Use the updated one below this post.......
Needed corrections to Brells Rest . . .
 
Last edited:
1) BlightFire Moors(395) had no connection to PoKnowledge(202)

They used to have a distance check on using this book. So when you zoned in you could not access the book to zone to pok, being why it was not listed as an accessible zone. You would need to also change the location that you spawn when you /zone into the zone for it to work.
 
Correction.

Had a correction to make for Brells Rest connections:

480=brellsrest "Brell's Rest"39,482,483,484,488,490,492

Did not link Brells Temple and Kernagir, The Shining City to Brells Rest, updated now.
 

Attachments

  • MQ2PiggyZone.ini
    90.2 KB · Views: 23
Last edited:
is this what we use to /zone? I have not used that in such a long time becasue i didnt know if you could use it for the Void and the zones off the void. If you dont mind can you please tell me if possible and i heard to zone into the new zones it is /zone force brellsrest? dont knowif this makes since but any help would be great. Thanks Im not that good with the computers haha :)