This is a new tutorial made by me.
*THIS IS FOR 1.5 SERVERS ONLY*
<-- What does this do? -->
when you added this and make a room ( put in the stage name [VAMP] )
now go play 1v1 battle with ur friend idc who!.
let the other guy hit you,
now you hit him and u got some of ur hp Restored.
1. Open
ZCharacter.cpp, look for the OnDamaged function, right in front of the call to
ZObject::OnDamaged add this:
- Code:
-
#define UPDATE_HEALTH_HPV 3
#define UPDATE_HEALTH_APV 1
if (strstr(ZGetGameClient()->GetStageName(), "[VAMP]") && pAttacker == ZGetGame()->m_pMyCharacter) {
float fpNewHP = (((ZCharacter *)pAttacker)->GetHP() + UPDATE_HEALTH_HPV),
fpNewAP = (((ZCharacter *)pAttacker)->GetAP() + UPDATE_HEALTH_APV);
if (fpNewHP <= (((ZCharacter *)pAttacker))->GetMaxHP()) {
((ZCharacter *)pAttacker)->SetHP(fpNewHP);
}
if (fpNewAP <= (((ZCharacter *)pAttacker))->GetMaxAP()) {
((ZCharacter *)pAttacker)->SetAP(fpNewAP);
}
}
- Code:
-
Credits :
xReflectiox : TuT / Fixed some lines to make it Operational!
Wizkid : Vampire Mode Source
~xReflectiox TuT`s :lol!: