IsabelaFernandez Posted February 20, 2020 Group: Members Topic Count: 146 Topics Per Day: 0.06 Content Count: 355 Reputation: 8 Joined: 04/16/18 Last Seen: October 21, 2024 Share 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 Link to comment Share on other sites More sharing options...
0 LOOLP - OFF Posted February 20, 2020 Group: Members Topic Count: 12 Topics Per Day: 0.01 Content Count: 233 Reputation: 51 Joined: 12/20/18 Last Seen: March 10, 2021 Share 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 Link to comment Share on other sites More sharing options...
0 LOOLP - OFF Posted February 20, 2020 Group: Members Topic Count: 12 Topics Per Day: 0.01 Content Count: 233 Reputation: 51 Joined: 12/20/18 Last Seen: March 10, 2021 Share 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 Link to comment Share on other sites More sharing options...
0 IsabelaFernandez Posted February 20, 2020 Group: Members Topic Count: 146 Topics Per Day: 0.06 Content Count: 355 Reputation: 8 Joined: 04/16/18 Last Seen: October 21, 2024 Author Share 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 Link to comment Share on other sites More sharing options...
0 LOOLP - OFF Posted February 20, 2020 Group: Members Topic Count: 12 Topics Per Day: 0.01 Content Count: 233 Reputation: 51 Joined: 12/20/18 Last Seen: March 10, 2021 Share Posted February 20, 2020 But what I sent will not increase, it will recover your HP when you kill someone. Quote Link to comment Share on other sites More sharing options...
0 IsabelaFernandez Posted February 20, 2020 Group: Members Topic Count: 146 Topics Per Day: 0.06 Content Count: 355 Reputation: 8 Joined: 04/16/18 Last Seen: October 21, 2024 Author Share 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 Link to comment Share on other sites More sharing options...
0 LOOLP - OFF Posted February 20, 2020 Group: Members Topic Count: 12 Topics Per Day: 0.01 Content Count: 233 Reputation: 51 Joined: 12/20/18 Last Seen: March 10, 2021 Share Posted February 20, 2020 try to give a status [sc_start giving an HP Maximo when you kill someone] Quote Link to comment Share on other sites More sharing options...
0 IsabelaFernandez Posted February 21, 2020 Group: Members Topic Count: 146 Topics Per Day: 0.06 Content Count: 355 Reputation: 8 Joined: 04/16/18 Last Seen: October 21, 2024 Author Share Posted February 21, 2020 Anyone can help? Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted February 29, 2020 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 9 minutes ago Share 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 Link to comment Share on other sites More sharing options...
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 IsabelaFernandezLink to comment
Share on other sites
8 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.