TeoBeack Posted October 9, 2020 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 8 Reputation: 1 Joined: 09/02/20 Last Seen: March 12, 2023 Share Posted October 9, 2020 Olá eu sou o TeoBeack eu tenho um script TXT de rank pvp ele é bem simples. Eu gostaria de saber se tinha como coloca uma opção de reseta o rank quando que quizer, pelo visto ele marca o rank pvp certinho mais não tem como reseta ele. PVP_Test.txt Quote Link to comment Share on other sites More sharing options...
0 hendrew Posted October 9, 2020 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 7 Reputation: 2 Joined: 06/22/16 Last Seen: 9 hours ago Share Posted October 9, 2020 sec_in01,169,180,5 script Reset_PvP 701,{ if (getgroupid() < 90) end; mes "Ola gostaria de reseta o rank pvp?"; if(select("Não:Sim")== 1) close; query_sql "TRUNCATE TABLE `pvpm_data`"; close; } 1 Quote Link to comment Share on other sites More sharing options...
0 TeoBeack Posted October 9, 2020 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 8 Reputation: 1 Joined: 09/02/20 Last Seen: March 12, 2023 Author Share Posted October 9, 2020 (edited) 26 minutes ago, hendrew said: sec_in01,169,180,5 script Reset_PvP 701,{ if (getgroupid() < 90) end; mes "Ola gostaria de reseta o rank pvp?"; if(select("Não:Sim")== 1) close; query_sql "TRUNCATE TABLE `pvpm_data`"; close; } Esse adicionei certinho mais quando falo com o npc não acontece nada, Lembrado que esse script é TXT ele não contem sql. Edited October 9, 2020 by TeoBeack Quote Link to comment Share on other sites More sharing options...
0 hendrew Posted October 9, 2020 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 7 Reputation: 2 Joined: 06/22/16 Last Seen: 9 hours ago Share Posted October 9, 2020 2 minutes ago, TeoBeack said: Esse adicionei certinho mais quando falo com o npc não acontece nada, Lembrado que esse script é TXT ele não contem sql. Certificou de não ter dado erro ao usar reloadscript? 1 Quote Link to comment Share on other sites More sharing options...
0 TeoBeack Posted October 9, 2020 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 8 Reputation: 1 Joined: 09/02/20 Last Seen: March 12, 2023 Author Share Posted October 9, 2020 Just now, hendrew said: Certificou de não ter dado erro ao usar reloadscript? Sim o que apareceu foi : DB error - Table 'ragnarok.pvpm_data' doesn't exist [Debug]: at script.cpp:16830 - TRUNCATE TABLE `pvpm_data` [Debug]: Source (NPC): Reset_PvP at sec_in01 (169,180) Quote Link to comment Share on other sites More sharing options...
0 AnnieRuru Posted October 9, 2020 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted October 9, 2020 (edited) wait wait wait this is MY script...https://annieruru.blogspot.com/2019/01/another-approach-to-write-pvp-ladder.html for some reason you are using TXT style pvp ladder, which is .... well its plug and play, but its actually difficult to modify a value or reset the ladder later on that's why most server use SQL pvp ladder, not only because its easy to modify a value, but also can output the result onto the website you are requesting to reset the ladder on a TXT style ladder, you have to set another server variable and compare with another player variable for this to work I already did this before on hercules forum thoughhttps://upaste.me/c8d12185033897498 -> topic Download: https://gist.github.com/AnnieRuru/2b21eccc7e04a4bd6fb39a42c612a511 btw, you are using hercules ? why you didn't change getcharid(CHAR_ID_ACCOUNT) into getcharid(3) and so on ? 59 minutes ago, TeoBeack said: Esse adicionei certinho mais quando falo com o npc não acontece nada, Lembrado que esse script é TXT ele não contem sql. Google translate (from Portugese): This I added more correctly when I talk to the npc nothing happens, Remembering that this script is TXT it does not contain sql. Exactly !! Edited October 9, 2020 by AnnieRuru 1 Quote Link to comment Share on other sites More sharing options...
0 TeoBeack Posted October 9, 2020 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 8 Reputation: 1 Joined: 09/02/20 Last Seen: March 12, 2023 Author Share Posted October 9, 2020 7 hours ago, AnnieRuru said: espere, espere, espere, este é o MEU script ... https://annieruru.blogspot.com/2019/01/another-approach-to-write-pvp-ladder.html por algum motivo, você está usando a escada pvp no estilo TXT, que é ... bem, é plug and play, mas é realmente difícil modificar um valor ou redefinir a escada mais tarde, é por isso que a maioria dos servidores usa a escada pvp SQL, não apenas porque é fácil de modificar um valor, mas também pode enviar o resultado para o site que você está solicitando para redefinir a escada em uma escada estilo TXT, você deve definir outra variável de servidor e comparar com outra variável de jogador para que isso funcione Eu já fiz isso antes no fórum hercules embora https://upaste.me/c8d12185033897498 -> tópico Download: https://gist.github.com/AnnieRuru/2b21eccc7e04a4bd6fb39a42c612a511 btw, você está usando hercules? por que você não alterou getcharid (CHAR_ID_ACCOUNT) em getcharid (3) e assim por diante? Google translate (do Português): Isso adicionei mais corretamente quando falo com o npc nada acontece, Lembrando que esse script é TXT ele não contém sql. Exatamente !! Sim eu peguei um script seu script no Hercules, pois estou tendo dificuldades para achar um PVP com rank, eu até achei um que não utilizar-se SQL, ele tinha loja e tudo, estava funcionando bem mais ele apresentava um erro ao comprar item na loja pvp tipo, dava pra comprar mais não estava gastando os pontos não tava gastando zeny resumindo não estava gastando nada, nem se quer estava ganhando pontos. O emulador que estou Utilizando é o rAthena. Quote Link to comment Share on other sites More sharing options...
0 AnnieRuru Posted October 9, 2020 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted October 9, 2020 3 minutes ago, TeoBeack said: Google Translate: Yes, I got a script of your script on Hercules, because I'm having trouble finding a PVP with rank, I even found one that didn't use SQL, it had a store and everything, it was working well but it had an error when buying item on pvp store like, you could buy more I wasn’t spending the points I wasn’t spending zeny in short I wasn’t spending anything, nor was I even earning points.The emulator I'm using is rAthena. so bascially you want 2 things, 1. you want a pvp store 2. you are using rAthena https://gist.github.com/AnnieRuru/2b21eccc7e04a4bd6fb39a42c612a511 introduce another player variable, and can be use in point shop this variable doesn't clash with points earn from ladder, and cannot be reset by GM 1 Quote Link to comment Share on other sites More sharing options...
0 TeoBeack Posted October 9, 2020 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 8 Reputation: 1 Joined: 09/02/20 Last Seen: March 12, 2023 Author Share Posted October 9, 2020 1 hour ago, AnnieRuru said: então basicamente você quer 2 coisas, 1. você quer uma loja PVP 2. você está usando rAthena https://gist.github.com/AnnieRuru/2b21eccc7e04a4bd6fb39a42c612a511 introduz outra variável de jogador e pode ser usada na loja de pontos, esta variável não entra em conflito com os pontos ganhos na escada e não pode ser redefinida pelo GM Ficou muito bom de verdade, fico muito agradecido. Só mais uma duvida. tem como eu reseta esse rank pvp ? Quote Link to comment Share on other sites More sharing options...
0 AnnieRuru Posted October 9, 2020 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted October 9, 2020 52 minutes ago, TeoBeack said: It was really good, I am very grateful. Just one more doubt. how do I reset this pvp rank? type `@resetladder`, the *bindatcmd script command does it, currently only GM can do it or you want something like weekly reset ladder, or monthly reset ladder ? 1 Quote Link to comment Share on other sites More sharing options...
0 TeoBeack Posted October 9, 2020 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 8 Reputation: 1 Joined: 09/02/20 Last Seen: March 12, 2023 Author Share Posted October 9, 2020 1 hour ago, AnnieRuru said: type `@resetladder`, the *bindatcmd script command does it, currently only GM can do it or you want something like weekly reset ladder, or monthly reset ladder ? Thank you so it was perfect! helped me a lot, sorry if I posted in the wrong corner is my first time on the Forum 1 Quote Link to comment Share on other sites More sharing options...
Question
TeoBeack
Olá eu sou o TeoBeack eu tenho um script TXT de rank pvp ele é bem simples.
Eu gostaria de saber se tinha como coloca uma opção de reseta o rank quando que quizer, pelo visto ele marca o rank pvp certinho mais não tem como reseta ele.
PVP_Test.txt
Link to comment
Share on other sites
10 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.