Jump to content
  • 0

Erro de script sql


maciel

Question


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  78
  • Reputation:   3
  • Joined:  06/27/20
  • Last Seen:  

Good evening everyone, I'm trying to put a pvp rank npc script, but I don't know how to put this SQL file, can anyone help me?

image.thumb.png.0dd512ee9fb039eb818dc6e2d4f15b26.png

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.01
  • Content Count:  70
  • Reputation:   8
  • Joined:  06/11/23
  • Last Seen:  

1 hour ago, maciel said:
Good evening everyone, I'm trying to put a pvp rank npc script, but I don't know how to put this SQL file, can anyone help me?

image.thumb.png.0dd512ee9fb039eb818dc6e2d4f15b26.png

input ni mysql use phpmyadmin or other

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  78
  • Reputation:   3
  • Joined:  06/27/20
  • Last Seen:  

That's the problem friend, I don't know how to do this, could you tell me how to configure NPC in the database?
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  59
  • Topics Per Day:  0.01
  • Content Count:  1286
  • Reputation:   170
  • Joined:  06/12/12
  • Last Seen:  

7 hours ago, maciel said:
That's the problem friend, I don't know how to do this, could you tell me how to configure NPC in the database?

check in the npc script are there have sql script, if exist run it at your sql database.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  78
  • Reputation:   3
  • Joined:  06/27/20
  • Last Seen:  

4 hours ago, hendra814 said:

verifique no script npc se há script sql, se houver execute-o no seu banco de dados sql.

This npc script is the one that already comes in the emulator when downloaded from the official rathena, I didn't find any sql file bro, I only have this file below

pvp_kyo.txt

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  59
  • Topics Per Day:  0.01
  • Content Count:  1286
  • Reputation:   170
  • Joined:  06/12/12
  • Last Seen:  

10 hours ago, maciel said:
This npc script is the one that already comes in the emulator when downloaded from the official rathena, I didn't find any sql file bro, I only have this file below

pvp_kyo.txt 3.86 kB · 1 download

found it at this page 

insert this sql script into your sql database

ALTER TABLE `char` ADD `pvp_kill` INT(11) UNSIGNED NOT NULL DEFAULT '0'  AFTER `fame`;

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  78
  • Reputation:   3
  • Joined:  06/27/20
  • Last Seen:  

18 hours ago, hendra814 said:

achei nessa pagina 

insira este script sql em seu banco de dados sql

 

Good afternoon friends, resolved, for those who don't know or don't understand, it's very simple, put I enter my paid phpmyadmin database or vertrigo or whatever you use, you look for the line called "char" you click on it to open, it will open all your acc's = user accounts, don't mess with that, at the top there is a file called "SQL" you click on it and it will open a screen in which you can put lines of SQL commands, well I don't know anything about scripting or programming I went to chatgpt and it even generated a compatible file for me to put there in the "write SQL" option 

 ALTER TABLE `char` ADD `pvp_kill` INT(11) NOT NULL DEFAULT 0;

This file is responsible for creating the column 
"pvp_kill"

in your database because initially it doesn't exist, after that you click on execute, ready if you go to the "char" tab, open it and go to the second column option there a column will be created with the name "pvp_kill" it is responsible for counting player kills. I hope I helped with details for new people who are after this, because I don't understand anything I had a lot of difficulty, thanks to the guy above my post, you made me go back until I resolved it.


Apparently everything worked correctly, although a message "nothing found in the selected map" is appearing, I still don't know the reason but without any errors in the emulator so far.

 

image.thumb.png.57eda26bbedfd88382cd60054220c8a3.png

  • Like 1
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...