void CKanturuMaya::KanturuMayaAct_Hands() { int TickCount = GetTickCount() - this->m_iMayaSkillTime; if ( TickCount < 20000 ) return; this->m_iMayaSkillTime = GetTickCount(); if ( this->m_iMayaObjIndex < 0 || this->m_iMayaObjIndex > OBJMAX ) // #errot change to OBJMAX-1 return; for ( int iCount=OBJ_STARTUSERINDEX;iCount < OBJMAX;iCount++) { if ( gObj[iCount].Type == OBJ_USER && gObjIsConnected(iCount) && gObj[iCount].MapNumber == MAP_INDEX_KANTURU_BOSS ) { KANTURU_UTIL.NotifyKanturuWideAreaAttack(this->m_iMayaObjIndex, iCount, 1); TMonsterSkillManager::UseMonsterSkill(this->m_iMayaObjIndex, iCount, 1,-1,0); if ( gObj[iCount].pInventory[10].m_Type == ITEMGET(13,38) && gObj[iCount].pInventory[10].m_Durability != 0.0f ) { continue; } if ( gObj[iCount].pInventory[11].m_Type == ITEMGET(13,38) && gObj[iCount].pInventory[11].m_Durability != 0.0f ) { continue; } if ( gObj[iCount].MapNumber == MAP_INDEX_KANTURU_BOSS ) // #warning unuseful if { LPOBJ lpMayaHandObj = &gObj[this->m_iMayaObjIndex]; gObj[iCount].Life = 0; gObjLifeCheck(&gObj[iCount], lpMayaHandObj, (int)gObj[iCount].Life, 0, 0, 0, 0, 0); LogAddTD("[ KANTURU ][ BrokenShower ] [%s][%s] User Dying cause NOT wearing MoonStone Pandent", gObj[iCount].AccountID, gObj[iCount].Name); } } } LogAddTD("[ KANTURU ][ BrokenShower ] Skill Using : Index(%d) %s", this->m_iMayaObjIndex, gObj[this->m_iMayaObjIndex].Name); }
void CKanturuMaya::KanturuMayaAct_IceStorm(int iSkillUsingRate) { if ( (rand()%10000) > iSkillUsingRate ) return; if ( this->m_iMayaObjIndex < 0 || this->m_iMayaObjIndex >= OBJMAX ) // #errot change to OBJMAX-1 return; for ( int iCount=OBJ_STARTUSERINDEX;iCount < OBJMAX;iCount++) { if ( gObj[iCount].Type == OBJ_USER && gObjIsConnected(iCount) && gObj[iCount].MapNumber == MAP_INDEX_KANTURU_BOSS ) { KANTURU_UTIL.NotifyKanturuWideAreaAttack(this->m_iMayaObjIndex, iCount, 0); TMonsterSkillManager::UseMonsterSkill(this->m_iMayaObjIndex, iCount, 31,-1,0); this->m_iIceStormCount++; } } LogAddTD("[ KANTURU ][ IceStorm ] Skill Using(%d) : Index(%d) %s", this->m_iIceStormCount, this->m_iMayaObjIndex, gObj[this->m_iMayaObjIndex].Name); }