Item = 336 SapphireRing...
-
- Loyal fan
- Posts: 216
- Joined: Wed Apr 19, 2006 12:19 am
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' />
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' />
for sapphire ring
find
then find
under that add
for platinum ring
find
under that add
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)
Code: Select all
if (sOwner != NULL) {
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) {
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);
}
}
}