MAGIA roba vida
Author Message ailyn
Silver 4
Earned by having 12 posts & comments.
Likes : 7#1 Subject: MAGIA roba vida 5/2/2017, 6:34 pm buenos dias, me gustaria saber si alguien podria ayudarme a hacer una magia que robe vida cuando le pegue a los npc seria posible eso?
Centuu.-
Diamond 1
Earned by having 144 posts & comments.
Civilian
Granted to members for high engagement.
Full Hero
Granted to members for great contributions.
Great Mentor
Granted to veteran members who exhibit helpful and sportsmanlike behavior.
Moderator
Earned by becoming a board moderator.
Likes : 17#2 Subject: Re: MAGIA roba vida 5/2/2017, 6:48 pm Ejemplo: case DEF_NPCTYPE: m_pNpcList[iNpcH]->m_iHP -= sValue; m_pClientList[iClientH]->m_iHP += sValue; break; Hacer una magia cualquiera y agregarle eso.
ailyn
Silver 4
Earned by having 12 posts & comments.
Likes : 7#3 Subject: Re: MAGIA roba vida 5/3/2017, 3:22 am si pero eso lo pongo donde? seria bueno saber si es en
Code: PlayerMagicHandler
se supone que deberia tener algo como esto, o me equivoco algo que identifique la magia exacta
Code: xxxxxxxxxxxxxxxx(iClientH, DEF_OWNERTYPE_PLAYER, i, DEF_OWNERTYPE_PLAYER, m_pMagicConfigList[sType]->m_sValue4, m_pMagicConfigList[sType]->m_sValue5, m_pMagicConfigList[sType]->m_sValue6);[size=12][/size] SendEventToNearClient_TypeB(MSGID_EVENT_COMMON, DEF_COMMONTYPE_MAGIC, m_pClientList[iClientH]->m_cMapIndex, m_pClientList[iClientH]->m_sX, m_pClientList[iClientH]->m_sY, m_pClientList[i]->m_sX, m_pClientList[i]->m_sY, (21 + 100), m_pClientList[i]->m_sType);
------------------------------------------------------------------------------------------------------------- Code: case DEF_MAGICTYPE_HPUP_SPOT_NPCTYPE:[size=12][/size] m_pMapList[m_pClientList[iClientH]->m_cMapIndex]->GetOwner(&sOwnerH, &cOwnerType, dX, dY);[size=12][/size] Effect_Damage_Spot(iClientH, DEF_OWNERTYPE_NPC, sOwnerH, cOwnerType, m_pMagicConfigList[sType]->m_sValue4, m_pMagicConfigList[sType]->m_sValue5, m_pMagicConfigList[sType]->m_sValue6 + iWhetherBonus, TRUE, iMagicAttr);[size=12][/size] Effect_HpUp_Spot(iClientH, DEF_OWNERTYPE_PLAYER, sOwnerH, cOwnerType, m_pMagicConfigList[sType]->m_sValue4, m_pMagicConfigList[sType]->m_sValue5, m_pMagicConfigList[sType]->m_sValue6);[size=12][/size] break;
Lo hice con este, pero un problema no la roba la hp sino que si te pego te quita vida y te la devuelve xd
Last edited by ailyn on 5/3/2017, 5:14 am; edited 1 time in total
Centuu.-
Diamond 1
Earned by having 144 posts & comments.
Civilian
Granted to members for high engagement.
Full Hero
Granted to members for great contributions.
Great Mentor
Granted to veteran members who exhibit helpful and sportsmanlike behavior.
Moderator
Earned by becoming a board moderator.
Likes : 17#4 Subject: Re: MAGIA roba vida 5/3/2017, 3:24 pm Porque tenés que saber qué es iClientH... puede ser iTargetH o iAttackerH... tenés que ver el parámetro, no uses el mismo en todos.
ailyn
Silver 4
Earned by having 12 posts & comments.
Likes : 7#5 Subject: Re: MAGIA roba vida 5/3/2017, 10:08 pm creo que desisto no consigo hacerla me he olvidado totalmente :( :/
LifeX
Diamond 1
Earned by having 144 posts & comments.
Civilian
Granted to members for high engagement.
Great Mentor
Granted to veteran members who exhibit helpful and sportsmanlike behavior.
Moderator
Earned by becoming a board moderator.
Likes : 26#6 Subject: Re: MAGIA roba vida 5/4/2017, 1:39 pm You want a magic that does damage to Target, and increase life to Attacker via magic?
ailyn
Silver 4
Earned by having 12 posts & comments.
Likes : 7#7 Subject: Re: MAGIA roba vida 5/4/2017, 9:07 pm LifeX wrote: You want a magic that does damage to Target, and increase life to Attacker via magic? ejemplo, si te pego con la magia, '' vampire gaze '' lo que deberia de hacer es quitarte vida, y devolverme vida a mi.
ejemplo te pago con la magia un golpe de 200 de vida para ti, de esos 200 de vida que te he sacado deberia recargar la mia con unos 40 puntos de vida.
segundo ejemplo, hay 10 npc juntos, le tiro la magia saco 200 de vida por cada uno que le pegue, quiere decir que yo regenero 400 de vida al instante.
no tengo video para mostrar pero intentare buscar un video aunque no sea mio.
Roa
Diamond 1
Earned by having 144 posts & comments.
10th Anniversary
Earned after being a member for 10 years.
Moderator
Earned by becoming a board moderator.
Likes : 26#8 Subject: Re: MAGIA roba vida 5/4/2017, 11:35 pm [You must be registered and logged in to see this link.] does not translate what he has written correctly because he is not using appropriate orthography. Here is the correct translation:
Traducción en Inglés wrote: If I hit you with the magic lets say "Vampire Gaze", what the magic should do is lower the health of the target and give me a percentage of health in return. For example; if my character attacks with magic, and your health decreases by 200, of the 200 health you lost, mine should recover with 40 health points. Second example; There are 10 monsters grouped together. If I use the magic on them and decrease their health by 200 for each of them, it means that I must instantly regenerate 400 health. [You must be registered and logged in to see this link.] wrote: You want a magic that does damage to Target, and increase life to Attacker via magic? Yes.
Sponsored content
#9 Subject: Re: MAGIA roba vida
MAGIA roba vida
Similar topics
Permissions in this forum: You can reply to topics in this forum
Latest topics »
[CODE] Fix Windows 8 - 10 9/18/2024, 10:07 pm by
Celestials »
New Helbreath 3D Project-HB: Reigns of Middleland 8/28/2024, 9:19 pm by
Roa »
Crear una nueva magia 8/9/2024, 9:21 am by
nicoprs »
Helbreath Clients to Download 7/26/2024, 8:54 pm by
Sabrina »
Files Src etc Helbreath Argentina 7/23/2024, 4:21 am by
nicoprs »
Helbreath Sources 7/22/2024, 5:19 pm by
Sabrina »
Problemas con el Visual C++ 6.0 en windows 7 x64 7/22/2024, 4:45 pm by
Sabrina »
Helbreath Korea 7/22/2024, 2:21 pm by
Sabrina »
Como banear cuenta / jugadores 7/22/2024, 8:29 am by
nicoprs »
Helbreath Ant Files + Src 7/21/2024, 7:47 am by
nicoprs
Marketplace recent topics 50 $ HB Necklace Of …
8/28/2024, 10:57 pm
GM4
Donation helbreath adven…
8/19/2020, 11:52 am
Apocalipsi
100 $ New Atribute
5/17/2020, 3:47 am
KenZoB
250 $ Teams vs Team E…
5/17/2020, 3:41 am
KenZoB
100 $ Stacked Items
4/9/2020, 3:41 pm
sleeq
100 $ Battlestaff
4/9/2020, 3:31 pm
sleeq
200 $ Linear spell da…
12/27/2019, 5:39 am
sleeq
500 $ Item grid sour…
12/17/2019, 2:58 pm
skyddr8512
888 $ New ~ Riding …
12/17/2019, 2:58 pm
skyddr8512
980 $ Hello ~ Riding…
12/13/2019, 4:32 pm
skyddr8512
Add an ad
View all ads