Author Topic: Self-Heal..  (Read 5541 times)

0 Members and 1 Guest are viewing this topic.

Offline Darkness

  • Wiseguy
  • **
  • Posts: 53
    • View Profile
Self-Heal..
« on: March 22, 2009, 12:58:04 am »
hi , i want self-heal when hp drops ... example:

When 50 HP Heal To 100 with scripts ...

i want to GUS please .

(P.D):Sorry my bad english , i from argentina :D

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: Self-Heal..
« Reply #1 on: March 22, 2009, 01:31:28 am »
eeeh?? If i understand it right, U want to auto-heal when a player's healt get below 50?
with the new DLL U can just use the player.health.change signal ;)
With the old one, U need an timer

Offline Darkness

  • Wiseguy
  • **
  • Posts: 53
    • View Profile
Re: Self-Heal..
« Reply #2 on: March 22, 2009, 09:14:32 pm »
where can i get the new dll ?

and can u give me this command? please

thanks

Offline Amenine

  • Street Thug
  • *
  • Posts: 47
  • [UCG]Clan Leader -Scripter/Fighter/XE MoD-
    • View Profile
    • UCG
Re: Self-Heal..
« Reply #3 on: March 23, 2009, 01:26:58 pm »
1)With new DLL u need to convert your whole GUS..which i think not possible for u..
2)No need of that command unless u convert your GUS script..

Regards
Amenine

Offline Darkness

  • Wiseguy
  • **
  • Posts: 53
    • View Profile
Re: Self-Heal..
« Reply #4 on: March 24, 2009, 01:21:48 am »
and where i paste this :

Code: [Select]
.timer 1 30 vcmp.setheal %id 100?

please help me XD

Offline Skirmant

  • Made Man
  • ***
  • Posts: 134
    • View Profile
Re: Self-Heal..
« Reply #5 on: August 09, 2009, 04:32:52 pm »
Just Make an alias like this:

Code: [Select]
alias vcmp.autoheal {
  If ($vcmp.hp($1) =< 50) vcmp.sethp $1 100
}

And put:

Code: [Select]
.timer 0 30 vcmp.autoheal Id%  

In the join signal.

That's all :)

Offline [XT]ariel[X]

  • Wiseguy
  • **
  • Posts: 58
  • Hi all!!
    • View Profile
    • American Server
Re: Self-Heal..
« Reply #6 on: August 30, 2009, 03:34:48 pm »
Hi all ;D

      
but if I want for my WSV can.
« Last Edit: August 30, 2009, 03:50:13 pm by [XT]ariel[X] »
Clic in image from enter in my web :D

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: Self-Heal..
« Reply #7 on: August 31, 2009, 02:10:55 pm »
Just add this in ur healthchange signal:
Code: [Select]
on *:SIGNAL:vcmp.player.healthchange:{
if ($4 <= 50) {
WSV.sethealth $2 100
}
}

Offline [XT]ariel[X]

  • Wiseguy
  • **
  • Posts: 58
  • Hi all!!
    • View Profile
    • American Server
Re: Self-Heal..
« Reply #8 on: September 02, 2009, 12:05:53 am »
tranks man :).
Clic in image from enter in my web :D

Offline [XT]ariel[X]

  • Wiseguy
  • **
  • Posts: 58
  • Hi all!!
    • View Profile
    • American Server
Re: Self-Heal..
« Reply #9 on: September 02, 2009, 12:47:49 am »
one last question which I paste: s
Clic in image from enter in my web :D

Offline Obito

  • Street Thug
  • *
  • Posts: 7
    • View Profile
Re: Self-Heal..
« Reply #10 on: September 07, 2009, 04:42:50 am »
Code: [Select]
on *:SIGNAL:vcmp.player.healthchange: vcmp.sethealth $2 100just that lol
« Last Edit: September 13, 2009, 06:33:00 am by Obito »

Offline [XT]ariel[X]

  • Wiseguy
  • **
  • Posts: 58
  • Hi all!!
    • View Profile
    • American Server
Re: Self-Heal..
« Reply #11 on: September 07, 2009, 06:28:34 pm »
tranks :).
Clic in image from enter in my web :D

Offline [XT]ariel[X]

  • Wiseguy
  • **
  • Posts: 58
  • Hi all!!
    • View Profile
    • American Server
Re: Self-Heal..
« Reply #12 on: October 21, 2009, 03:38:13 am »
modify the SIGNAL:

Code: (SIGNAL Replace) [Select]
on *:SIGNAL:vcmp.player.healthchange:{
Code: (SIGNAL a Change) [Select]
on *:SIGNAL:vcmp.player.healthchange:{ WSV.sethealth $2 100
Tranks all!! :D

Clic in image from enter in my web :D