English claws of vampires

3 replies
Goto Page
To the start Previous 1 Next To the start
29.12.11 10:42:03 pm
Up
Xlucam14X
User
Offline Off
I need a script that makes the claw suck the life enemy.
29.12.11 11:24:46 pm
Up
Bobakrome
User
Offline Off
Your meaning of "Drain" not "Suck".Rectify that please!
30.12.11 12:10:19 am
Up
Cure Pikachu
User
Offline Off
Well, at least I can get what he meant.
Code:
1
2
3
4
5
6
7
addhook("hit","drain")
function drain(id,src,wpn,hpdmg)
     if wpn == 78 then
          local rec = hpdmg/2 -- This makes the claw drain half of the damage dealt in HP
          parse("sethealth "..src.." "..player(src,"health")+rec)
     end
end
edited 1×, last 01.12.15 05:29:48 am
IMG:https://i.imgur.com/uUrye71.png
IMG:https://i.imgur.com/xpsyQRX.png
30.12.11 02:42:41 pm
Up
Xlucam14X
User
Offline Off
user Cure Pikachu has written:
Well, at least I can get what he meant.
Code:
1
2
3
4
5
6
7
addhook("hit","drain")
function drain(id,src,wpn,hpdmg)
     if wpn == 78 then
          local rec = hpdmg/2 -- This makes the claw drain half of the damage dealt in HP
          parse("sethealth "..src.." "..player(id,"health")+rec)
     end
end


thank you
To the start Previous 1 Next To the start