Item = 336 SapphireRing...

All Helbreath Server Source Discussion here.
Post Reply
xmukox
Member
Posts: 175
Joined: Sun Sep 11, 2005 9:53 am

Post by xmukox »

hi i have some problems in hbmoonrite if you use sapphire ring and any one hit u he gat illusions... meby some have that code?:F to fix it?:F
ADDKiD
<3 bd long time
Posts: 967
Joined: Tue Jul 12, 2005 8:07 pm
Location: Washington, USA
Contact:

Post by ADDKiD »

Thats how HBMoonrite has it setup. I believe, I don't know how to change it XD
BlueChristmas
Loyal fan
Posts: 216
Joined: Wed Apr 19, 2006 12:19 am

Post by BlueChristmas »

look in their source, it's in there should be commented
<img src='http://img114.imageshack.us/img114/8618 ... 2dy3lx.jpg' border='0' alt='user posted image' />
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

Prolly EquipItemHandler
<img src='http://www.hot.ee/carvanho/taavi.png' border='0' alt='user posted image' /><br><br><img src='http://www.hot.ee/carvanho/Elvine.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/LieroX.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/Football.png' border='0' alt='user posted image' />
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

for sapphire ring

find

Code: Select all

int CGame::iClientMotion_Attack_Handler(int iClientH, short sX, short sY, short dX, short dY, short wType, char cDir, WORD wTargetObjectID, BOOL bResponse, BOOL bIsDash)
then find

Code: Select all

if (sOwner != NULL) {
under that add

Code: Select all

//mag-en00b added 28.08.05 to make "Sapphire Ring/336" work (mim attacker with target wears it)
  if (cOwnerType == DEF_OWNERTYPE_PLAYER) if (m_pClientList[sOwner] != NULL) {
  	int iItemIndex;
  	iItemIndex = m_pClientList[sOwner]->m_sItemEquipmentStatus[DEF_EQUIPPOS_RFINGER];
  	if (iItemIndex != -1) if (m_pClientList[sOwner]->m_pItemList[iItemIndex]->m_sIDnum == 336) {

    if (m_pClientList[iClientH]->m_cMagicEffectStatus[DEF_MAGICTYPE_CONFUSE] == 0) {
    	m_pClientList[iClientH]->m_cMagicEffectStatus[DEF_MAGICTYPE_CONFUSE] = 3;//illusion
    	SetIllusionFlag(iClientH, DEF_OWNERTYPE_PLAYER, TRUE);
    	bRegisterDelayEvent(DEF_DELAYEVENTTYPE_MAGICRELEASE,DEF_MAGICTYPE_CONFUSE,
      dwTime+10000, //10sec
      iClientH,DEF_OWNERTYPE_PLAYER,NULL,NULL,NULL,3/*illusion*/,NULL,NULL);
    	SendNotifyMsg(NULL,iClientH,DEF_NOTIFY_MAGICEFFECTON,DEF_MAGICTYPE_CONFUSE,
      3/*illusion*/,sOwner, NULL);

    	m_pClientList[sOwner]->m_pItemList[iItemIndex]->m_wCurLifeSpan -= 1;
    }

    if (m_pClientList[sOwner]->m_pItemList[iItemIndex]->m_wCurLifeSpan < 1) {
    	ItemDepleteHandler(sOwner,iItemIndex,FALSE);
    }
  	}
  }
  //------------------------------------------------------------------------






for platinum ring

find



Code: Select all

if (m_pMagicConfigList[sType]->m_dwDelayTime == 0) {
under that add

Code: Select all

//added by mag-en00b 27.08.05 to make platinum ring strip all stuff from you when
  	//spell is cast if the attacker has platinum ring equipped in right finger
  	int iTemp, iTempItem; //"platinum ring" addon 27.08.05
  	if (cOwnerType == DEF_OWNERTYPE_PLAYER)
    if (m_pMagicConfigList[sType]->m_sType == DEF_MAGICTYPE_DAMAGE_AREA_ARMOR_BREAK)
     if (m_pClientList[iClientH] != NULL) {
    iTempItem = m_pClientList[iClientH]->m_sItemEquipmentStatus[DEF_EQUIPPOS_RFINGER];
    if (iTempItem != -1) if (m_pClientList[iClientH]->m_pItemList[iTempItem]->m_sIDnum == 333) {

    	//-------------------------------------------------------------------------------
    	/*iTemp = m_pClientList[sOwnerH]->m_sItemEquipmentStatus[DEF_EQUIPPOS_RELEASEALL];
    	if (iTemp != -1) ReleaseItemHandler(sOwnerH, iTemp, TRUE);*/
    	//---
    	iTemp = m_pClientList[sOwnerH]->m_sItemEquipmentStatus[DEF_EQUIPPOS_HEAD];
    	if (iTemp != -1) {
      ReleaseItemHandler(sOwnerH, iTemp, TRUE);
      SendNotifyMsg(NULL,sOwnerH,DEF_NOTIFY_ITEMRELEASED,DEF_EQUIPPOS_HEAD,iTemp,NULL,NULL);
    	}
    	//---
    	iTemp = m_pClientList[sOwnerH]->m_sItemEquipmentStatus[DEF_EQUIPPOS_BODY];
    	if (iTemp != -1) {
      ReleaseItemHandler(sOwnerH, iTemp, TRUE);
      SendNotifyMsg(NULL,sOwnerH,DEF_NOTIFY_ITEMRELEASED,DEF_EQUIPPOS_BODY,iTemp,NULL,NULL);
    	}
    	//---
    	iTemp = m_pClientList[sOwnerH]->m_sItemEquipmentStatus[DEF_EQUIPPOS_ARMS];
    	if (iTemp != -1) {
      ReleaseItemHandler(sOwnerH, iTemp, TRUE);
      SendNotifyMsg(NULL,sOwnerH,DEF_NOTIFY_ITEMRELEASED,DEF_EQUIPPOS_ARMS,iTemp,NULL,NULL);
    	}
    	//---
    	iTemp = m_pClientList[sOwnerH]->m_sItemEquipmentStatus[DEF_EQUIPPOS_LEGGINGS];
    	if (iTemp != -1) {
      ReleaseItemHandler(sOwnerH, iTemp, TRUE);
      SendNotifyMsg(NULL,sOwnerH,DEF_NOTIFY_ITEMRELEASED,DEF_EQUIPPOS_LEGGINGS,iTemp,NULL,NULL);
    	}
    	//---
    	iTemp = m_pClientList[sOwnerH]->m_sItemEquipmentStatus[DEF_EQUIPPOS_PANTS];
    	if (iTemp != -1) {
      ReleaseItemHandler(sOwnerH, iTemp, TRUE);
      SendNotifyMsg(NULL,sOwnerH,DEF_NOTIFY_ITEMRELEASED,DEF_EQUIPPOS_PANTS,iTemp,NULL,NULL);
    	}
    	//---
    	iTemp = m_pClientList[sOwnerH]->m_sItemEquipmentStatus[DEF_EQUIPPOS_NECK];
    	if (iTemp != -1) {
      ReleaseItemHandler(sOwnerH, iTemp, TRUE);
      SendNotifyMsg(NULL,sOwnerH,DEF_NOTIFY_ITEMRELEASED,DEF_EQUIPPOS_NECK,iTemp,NULL,NULL);
    	}
    	//---
    	iTemp = m_pClientList[sOwnerH]->m_sItemEquipmentStatus[DEF_EQUIPPOS_RFINGER];
    	if (iTemp != -1) {
      ReleaseItemHandler(sOwnerH, iTemp, TRUE);
      SendNotifyMsg(NULL,sOwnerH,DEF_NOTIFY_ITEMRELEASED,DEF_EQUIPPOS_RFINGER,iTemp,NULL,NULL);
    	}
    	iTemp = m_pClientList[sOwnerH]->m_sItemEquipmentStatus[DEF_EQUIPPOS_BACK];
    	if (iTemp != -1) {
      ReleaseItemHandler(sOwnerH, iTemp, TRUE);
      SendNotifyMsg(NULL,sOwnerH,DEF_NOTIFY_ITEMRELEASED,DEF_EQUIPPOS_BACK,iTemp,NULL,NULL);
    	}
    	//-------------------------------------------------------------------------------

    	m_pClientList[iClientH]->m_pItemList[iTempItem]->m_wCurLifeSpan -= 1;

    	if (m_pClientList[iClientH]->m_pItemList[iTempItem]->m_wCurLifeSpan < 1) {
      ItemDepleteHandler(iClientH,iTempItem,FALSE);
    	}
    }
  	}
projectx
Loyal fan
Posts: 201
Joined: Sun Jul 16, 2006 12:01 pm

Post by projectx »

Fucking code copyer's get you own code's :P
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

projectx wrote: Fucking code copyer's get you own code's :P
i took it from the hbmoonrite source, i didn't make the codes as you can see god
Post Reply