Jump to content
  • 0

Question

Posted (edited)

 

hello community, i would like a simple script with the bonus: bonus bMaxHPrate, 100; on the maps pvp_n_1-5 and pvp_n_1-3.

and when killing any player in that arena, the HP and SP of the player who killed was recovered by 100%

 I tried to use OnPCLoadMapEvent:

but I was not successful, I thank anyone who can help me.

Edited by IsabelaFernandez

8 answers to this question

Recommended Posts

  • 0
Posted

Para o caso de dar um HP Máximo, quando estiver em um determinado mapa é um pouco mais chato, pois deve tratar tanto quando esta no mapa, assim como sair.
Então, não tenho condições no momento de testar e dar um códido valido.

 
For the case of giving a maximum HP, when you are on a certain map it is a little more boring, as you must treat both when you are on the map, as well as leaving.
So, I am not able to test and give a valid code.

 
  • Upvote 1
  • 0
Posted
2 minutes ago, dev LOOLP said:

Para o caso de dar um HP Máximo, quando estiver em um determinado mapa é um pouco mais chato, pois deve tratar tanto quando esta no mapa, assim como sair.
Então, não tenho condições no momento de testar e dar um códido valido.

 

For the case of giving a maximum HP, when you are on a certain map it is a little more boring, as you must treat both when you are on the map, as well as leaving.
So, I am not able to test and give a valid code.


 

 

OnPCLoadMapEvent:
if(strcharinfo(3) == "pvp_n_1-1") {
	bonus_script "{ bonus bStr,5; }", 10000, 1;
}
end;

 

I don't know if it will help, but it was something I found that talked about what you mentioned, does it help? and unfortunately the script did not increase the HP

  • 0
Posted
3 minutes ago, dev LOOLP said:
 

But what I sent will not increase, it will recover your HP when you kill someone.
yes, and it worked perfectly, I just thought it would be useful in some way to increase the HP on a given map, but thanks anyway friend
  • 0
Posted
-	script	sample	-1,{
	OnPCStatCalcEvent:
		if (strcharinfo(3) == "pvp_n_1-3" || strcharinfo(3) == "pvp_n_1-5") {
			bonus bMaxHPrate, 100;
			percentheal 100, 100;
		}
		end;
		
	OnPCKillEvent:
		if (strcharinfo(3) == "pvp_n_1-3" || strcharinfo(3) == "pvp_n_1-5") {
			percentheal 100, 100;
		}
		end;
}

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...