Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[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