xJohn Posted June 13, 2023 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 19 Reputation: 4 Joined: 04/18/23 Last Seen: February 4, 2024 Share Posted June 13, 2023 Gostaria de adicionar alguns buff's... quando um jogador mata o outro no PVP ele ganha um buff aleatório toda vez que ele mata outro player no PVP.. e que quando receber essa ação o jogardor ser notificado: percentheal 100,100; -----> dispbottom "HP/SP totalmente restaurado."; skilleffect 67,0; sc_start SC_SUFFRAGIUM,10000,3; -----> dispbottom "Você recebeu Suffragium"; Quote - script pvpheal -1,{ OnPCKillEvent: if(strcharinfo(3) == "guild_01" || strcharinfo(3) == "guild_02"){ percentheal 100,100; skilleffect 383,0; sc_start SC_WINDWALK,370000,5; skilleffect 33,0; sc_start SC_ANGELUS,300000,10; skilleffect 74,0; sc_start SC_MAGNIFICAT,90000,5; skilleffect 75,0; sc_start SC_GLORIA,30000,5; skilleffect 66,0; sc_start SC_IMPOSITIO,60000,5; skilleffect 34,0; sc_start SC_BLESSING,240000,10; skilleffect 29,0; sc_start SC_INCREASEAGI,240000,10; skilleffect 67,0; sc_start SC_SUFFRAGIUM,10000,3; skilleffect 361,0; sc_start SC_ASSUMPTIO,100000,5; skilleffect 73,0; sc_start SC_KYRIE,120000,10; end; } end; } Alguém poderia me ajudar? Grato! :') Quote Link to comment Share on other sites More sharing options...
Hyoru Posted June 13, 2023 Group: Members Topic Count: 45 Topics Per Day: 0.01 Content Count: 122 Reputation: 11 Joined: 01/30/12 Last Seen: Wednesday at 01:12 AM Share Posted June 13, 2023 (edited) - script pvpheal -1,{ OnPCKillEvent: if(strcharinfo(3) == "guild_01" || strcharinfo(3) == "guild_02"){ percentheal 100,100; dispbottom "HP/SP totalmente restaurado."; .@r = rand(1,10); if (.@r == 1) { skilleffect 383,0; sc_start SC_WINDWALK,370000,5; dispbottom "skill x"; } else if (.@r == 2){ skilleffect 33,0; sc_start SC_ANGELUS,300000,10; dispbottom "skill x"; } else if (.@r == 3){ skilleffect 74,0; sc_start SC_MAGNIFICAT,90000,5; dispbottom "skill x"; } else if (.@r == 4){ skilleffect 75,0; sc_start SC_GLORIA,30000,5; dispbottom "skill x"; } else if (.@r == 5){ skilleffect 66,0; sc_start SC_IMPOSITIO,60000,5; dispbottom "skill x"; } else if (.@r == 6){ skilleffect 34,0; sc_start SC_BLESSING,240000,10; dispbottom "skill x"; } else if (.@r == 7){ skilleffect 29,0; sc_start SC_INCREASEAGI,240000,10; dispbottom "skill x"; } else if (.@r == 8){ skilleffect 67,0; sc_start SC_SUFFRAGIUM,10000,3; dispbottom "skill x"; } else if (.@r == 9){ skilleffect 361,0; sc_start SC_ASSUMPTIO,100000,5; dispbottom "skill x"; } else if (.@r == 10){ skilleffect 73,0; sc_start SC_KYRIE,120000,10; dispbottom "skill x"; } } end; } Edited June 13, 2023 by Hyoru 1 Quote Link to comment Share on other sites More sharing options...
xJohn Posted June 14, 2023 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 19 Reputation: 4 Joined: 04/18/23 Last Seen: February 4, 2024 Author Share Posted June 14, 2023 (edited) @Hyoru Muito obrigado... funcionou perfeitamente.. você é God!!! Como ficou: Spoiler /* AdobeRO ________________ ______ ________ ___ |_____ /________ /______ ___ __ \_____ __ /| | __ /_ __ \_ __ \ _ \ __ /_/ / __ \ _ ___ / /_/ / / /_/ / /_/ / __/ _ _, _// /_/ / /_/ |_\__,_/ \____//_.___/\___/ /_/ |_| \____/ By: Hyoru (rAthena) */ - script KillToBuff -1,{ OnPCKillEvent: if(strcharinfo(3) == "guild_vs1" || strcharinfo(3) == "guild_vs3" || strcharinfo(3) == "guild_vs4"){ //percentheal 100,100; //dispbottom "HP/SP totalmente restaurado."; percentheal 10,10; dispbottom "Você ganho 10% HP/SP"; .@r = rand(1,10); if (.@r == 1) { skilleffect 383,0; sc_start SC_WINDWALK,370000,5; dispbottom "Você ganhou buff: Wind Walk"; } else if (.@r == 2){ skilleffect 33,0; sc_start SC_ANGELUS,300000,10; dispbottom "Você ganhou buff: Angelus"; } else if (.@r == 3){ skilleffect 74,0; sc_start SC_MAGNIFICAT,90000,5; dispbottom "Você ganhou buff: Magnificat"; } else if (.@r == 4){ skilleffect 75,0; sc_start SC_GLORIA,30000,5; dispbottom "Você ganhou buff: Gloria"; } else if (.@r == 5){ skilleffect 66,0; sc_start SC_IMPOSITIO,60000,5; dispbottom "Você ganhou buff: Impositio Manus"; } else if (.@r == 6){ skilleffect 34,0; sc_start SC_BLESSING,240000,10; dispbottom "Você ganhou buff: Blessing"; } else if (.@r == 7){ skilleffect 29,0; sc_start SC_INCREASEAGI,240000,10; dispbottom "Você ganhou buff: Increase Agility"; } else if (.@r == 8){ skilleffect 67,0; sc_start SC_SUFFRAGIUM,10000,3; dispbottom "Você ganhou buff: Suffragium"; } else if (.@r == 9){ skilleffect 361,0; sc_start SC_ASSUMPTIO,100000,5; dispbottom "Você ganhou buff: Assumptio"; } else if (.@r == 10){ skilleffect 73,0; sc_start SC_KYRIE,120000,10; dispbottom "Você ganhou buff: Kyrie Eleison"; } } end; } Edited June 14, 2023 by xJohn 1 Quote Link to comment Share on other sites More sharing options...
Orce Posted July 6, 2023 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 5 Reputation: 1 Joined: 06/13/13 Last Seen: February 28, 2024 Share Posted July 6, 2023 - script pvpheal -1,{ OnPCKillEvent: if(strcharinfo(3) == "guild_01" || strcharinfo(3) == "guild_02") { percentheal 100,100; dispbottom "HP/SP totalmente restaurado."; switch(rand(1,10)) { case 1: skilleffect 383,0; sc_start SC_WINDWALK,370000,5; dispbottom "skill x"; break; case 2: skilleffect 33,0; sc_start SC_ANGELUS,300000,10; dispbottom "skill x"; break; case 3: skilleffect 74,0; sc_start SC_MAGNIFICAT,90000,5; dispbottom "skill x"; break; case 4: skilleffect 75,0; sc_start SC_GLORIA,30000,5; dispbottom "skill x"; break; case 5: skilleffect 66,0; sc_start SC_IMPOSITIO,60000,5; dispbottom "skill x"; break; case 6: skilleffect 34,0; sc_start SC_BLESSING,240000,10; dispbottom "skill x"; break; case 7: skilleffect 29,0; sc_start SC_INCREASEAGI,240000,10; dispbottom "skill x"; break; case 8: skilleffect 67,0; sc_start SC_SUFFRAGIUM,10000,3; dispbottom "skill x"; break; case 9: skilleffect 361,0; sc_start SC_ASSUMPTIO,100000,5; dispbottom "skill x"; break; case 10: skilleffect 73,0; sc_start SC_KYRIE,120000,10; dispbottom "skill x"; break; } } end; } Só uma otimização. 1 Quote Link to comment Share on other sites More sharing options...
xJohn Posted July 10, 2023 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 19 Reputation: 4 Joined: 04/18/23 Last Seen: February 4, 2024 Author Share Posted July 10, 2023 Muito Obrigado @Orce tambem funciona bem! Quote Link to comment Share on other sites More sharing options...
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.