IsabelaFernandez Posted February 20, 2020 Posted February 20, 2020 (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 February 20, 2020 by IsabelaFernandez Quote
0 LOOLP - OFF Posted February 20, 2020 Posted February 20, 2020 - 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; } Quote
0 LOOLP - OFF Posted February 20, 2020 Posted February 20, 2020 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. 1 Quote
0 IsabelaFernandez Posted February 20, 2020 Author Posted February 20, 2020 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 Quote
0 LOOLP - OFF Posted February 20, 2020 Posted February 20, 2020 But what I sent will not increase, it will recover your HP when you kill someone. Quote
0 IsabelaFernandez Posted February 20, 2020 Author Posted February 20, 2020 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 Quote
0 LOOLP - OFF Posted February 20, 2020 Posted February 20, 2020 try to give a status [sc_start giving an HP Maximo when you kill someone] Quote
0 Emistry Posted February 29, 2020 Posted February 29, 2020 - 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; } Quote
Question
IsabelaFernandez
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 IsabelaFernandez8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.