• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[Source] Disable Remantis in Arena

Status
Not open for further replies.
Junior Spellweaver
Joined
Mar 15, 2010
Messages
151
Reaction score
77
Very Basic Release, So I'll get to the point.

This will alter Remantis so the HP Increase value is source code based (not propitem.txt based), then will refuse usage of the item if you're on the arena map.



MoverSkill.cpp

After:
Code:
// IK2_FOOD / IK2_REFRESHER
BOOL	CMover::DoUseItemFood( ItemProp *pItemProp, CItemElem* pItemElem )
{
#ifdef __WORLDSERVER


Add:
Code:
	CWorld* pWorld	= GetWorld();

	if( pItemProp->dwID == II_CHR_FOO_COO_REMANTIS)
	{
		if(  pWorld && pWorld->IsArena() == FALSE )
		{
			SetPointParam( DST_HP, GetMaxHitPoint() );
			return TRUE;
		}
		else
		{
			((CUser*)this)->AddText("Remantis Have been Disabled in the Arena.");
			return FALSE;
		}

	}


Propitem.txt

find:

Code:
6	II_CHR_FOO_COO_REMANTIS	IDS_PROPITEM_TXT_004466	1	9999	IK1_CHARGED	IK2_FOOD	IK3_COOKING	=	=	1	=	0	=	=	=	=	=	=	=	0	=	=	1	=	=	1	1	=	=	=	=	_NONE	0	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	DST_HP	=	=	999999999	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	XI_CHR_CURE01	=	=	=	=	=	=	WUI_NOW	=	=	=	=	=	=	=	=	=	0	0	0	0	0	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	"""Itm_ChrFooCooRemant.dds"""	0	""""""	IDS_PROPITEM_TXT_004467


Remove the 999999999 from the DST_HP value, Change it to 0

Code:
6	II_CHR_FOO_COO_REMANTIS	IDS_PROPITEM_TXT_004466	1	9999	IK1_CHARGED	IK2_FOOD	IK3_COOKING	=	=	1	=	0	=	=	=	=	=	=	=	0	=	=	1	=	=	1	1	=	=	=	=	_NONE	0	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	DST_HP	=	=	0	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	XI_CHR_CURE01	=	=	=	=	=	=	WUI_NOW	=	=	=	=	=	=	=	=	=	0	0	0	0	0	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=	"""Itm_ChrFooCooRemant.dds"""	0	""""""	IDS_PROPITEM_TXT_004467
 
i sell platypus
Loyal Member
Joined
Jun 26, 2009
Messages
2,640
Reaction score
1,326
GetMaxHitPoint also looks a lot better than 999999.

Mind if I merge with the snippet thread?
 
i sell platypus
Loyal Member
Joined
Jun 26, 2009
Messages
2,640
Reaction score
1,326
Added to the Snippet thread. Very simple function yet very neat!

closed.
 
Status
Not open for further replies.
Back
Top