Jump to content
  • 0

bonus status on specific map


IsabelaFernandez

Question


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.07
  • Content Count:  354
  • Reputation:   8
  • Joined:  04/16/18
  • Last Seen:  

 

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
Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  233
  • Reputation:   49
  • Joined:  12/20/18
  • Last Seen:  

-	script	OnKill	-1,{

	OnPcKillEvent:
		if( strcharinfo(3) == "pvp_n_1-5" || strcharinfo(3) == "pvp_n_1-3") { // Os 2 mapas em questão
		percentheal 100,100; // Recupera HP e SP quando mata
		}
		end;
	
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  233
  • Reputation:   49
  • Joined:  12/20/18
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.07
  • Content Count:  354
  • Reputation:   8
  • Joined:  04/16/18
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  233
  • Reputation:   49
  • Joined:  12/20/18
  • Last Seen:  

 
But what I sent will not increase, it will recover your HP when you kill someone.
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.07
  • Content Count:  354
  • Reputation:   8
  • Joined:  04/16/18
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  233
  • Reputation:   49
  • Joined:  12/20/18
  • Last Seen:  

 
try to give a status [sc_start giving an HP Maximo when you kill someone]

 

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

-	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;
}

 

Link to comment
Share on other sites

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.

×
×
  • Create New...