juan249 Administrador
Cantidad de envíos : 68 Fecha de inscripción : 08/01/2008
| Tema: [CODE] Magic Weapons Miér 09 Ene 2008, 00:42 | |
| Buscar en la funcion: - Código:
-
iClientMotion_Attack_Handler esto: - Código:
-
if (sOwner != NULL) { if ((wType != 0) && ((dwTime - m_pClientList[iClientH]->m_dwRecentAttackTime) > 100)) { if ((m_pClientList[iClientH]->m_pIsProcessingAllowed == FALSE) && (m_pClientList[iClientH]->m_bIsInsideOwnTown == FALSE)) { sItemIndex = m_pClientList[iClientH]->m_sItemEquipmentStatus[DEF_EQUIPPOS_TWOHAND]; if (sItemIndex != -1 && m_pClientList[iClientH]->m_pItemList[sItemIndex] != NULL) { Abajo de eso agregar: - Código:
-
/*************************************** ********** Magic Weapons ********** ***************************************/ sItemIndex = m_pClientList[iClientH]->m_sItemEquipmentStatus[ DEF_EQUIPPOS_TWOHAND ]; if (sItemIndex != -1 && m_pClientList[iClientH]->m_pItemList[sItemIndex] != NULL) { if ((m_pClientList[iClientH]->m_sAppr2 & 0xF000) != 0) { if(m_pClientList[iClientH]->m_pItemList[sItemIndex]->m_sIDnum == 1077) // Physical Sword { short sType; if(wType >= 20) // (ALT) Critical Attack { sType = 83; // Casting SendEventToNearClient_TypeB(MSGID_EVENT_COMMON, DEF_COMMONTYPE_MAGIC, m_pClientList[iClientH]->m_cMapIndex, sX, sY, sX, sY, (sType+100), m_pClientList[iClientH]->m_sType); sType = 82; // Mass-Fire SendEventToNearClient_TypeB(MSGID_EVENT_COMMON, DEF_COMMONTYPE_MAGIC, m_pClientList[iClientH]->m_cMapIndex, sX, sY, dX, dY, (sType+100), m_pClientList[iClientH]->m_sType); } else // Dash/Normal Attack { sType = 60; // Energy-Strike SendEventToNearClient_TypeB(MSGID_EVENT_COMMON, DEF_COMMONTYPE_MAGIC, m_pClientList[iClientH]->m_cMapIndex, sX, sY, dX, dY, (sType+100), m_pClientList[iClientH]->m_sType); } } } } /*************************************** ***************************************/ Agregar en item3.cfg : - Código:
-
Item = 1077 PhysicalSword 1 9 1 16 16 16 16 16 16 15000 0 1 17 -25000 15200 13 12 260 0 -3 2 8 1 5 Este code solo muestra el efecto de la magia, no causa daño y no gasta mana. by Dax. | |
|