- 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:
Add:
Propitem.txt
find:
Remove the 999999999 from the DST_HP value, Change it to 0
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