Jump to content

Brian

Members
  • Posts

    2223
  • Joined

  • Last visited

  • Days Won

    24

Posts posted by Brian

  1. Yes, your "Ragnarok" database is named ragnarok

    Do you have the MySQL command-line client installed on your computer?

    It might be in a folder like C:\Program Files\MySQL\bin\mysql.exe

    You'd have to 'cd' into that folder, then type

    mysql -h myip -u myuser -p ragnarok < C:\Desktop\trunk\sql-files\mob_skill_db.sql
    • Upvote 1
  2. The first error "#1062 - Duplicate entry '1' for key 'PRIMARY'"

    is probably because you are importing main.sql again.

    When you imported main.sql the first time, it already created the server account with account_id = 1.

    If you want to re-import main.sql, you should delete all the tables from your Ragnarok database first.

    The second error -- you can fix this by using the 'mysql' command-line client instead of phpMyAdmin.

    To import a file:

    mysql -h 127.0.0.1 -u USER -p DATABASE < /path/to/rathena/sql-files/mob_skill_db.sql
    - replace 127.0.0.1 with your MySQL server's IP

    - replace USER with your MySQL username

    - replace DATABASE with your Ragnarok database name

    - when prompted, enter your MySQL password.

    • Upvote 2
  3. Connect to your MySQL database, then use the REPAIR TABLE query.

    Ex:

    REPAIR TABLE `char`;
    If you use a MySQL client GUI program, it probably has a tool where you can "Select All" tables and click Repair.
  4. oops I forgot we have to change it to clif_broadcast() so we can include the player's bl.

    Find (that same line):

    		intif_broadcast(message,strlen(message)+1,0);
    Replace with:
    		clif_broadcast(&sd->bl, message, (int)strlen(message)+1, 3, SELF);
    Save, recompile, and that should work.

    PS: to make the rare_drop_announce trigger sooner, you could temporarily set it higher

    @setbattleflag rare_drop_announce 9000

  5. Hm,

    Until someone figures something out, I was thinking maybe I should just unload the NPC that gives acces to the TB room...

    (Can anyone please tell me where to find the concerned NPC, thanks)

    They are located in the individual guild scripts.

    For example: trunk/npc/guild/aldeg_cas01.txt you would commend out this NPC

    // Guild Treasure Spawns
    //============================================================
    aldeg_cas01,118,223,0	duplicate(Gld_Trea_Spawn)	Treasure#aldeg_cas01	-1
  6. File Name: Stylist with autoscroll

    File Submitter: Brian

    File Submitted: 13 Jun 2013

    File Category: Utilities

    Content Author: Brian, Euphy

    This is a modified version of the rAthena Stylist (trunk/npc/custom/stylist.txt)

    It adds 2 new menu options "Next autoscroll" and "Previous autoscroll". When a player picks these options, after they close the NPC message box, the script will begin scrolling through palettes with a 1-second progressbar delay. To stop scrolling, just move your character and interrupt the progressbar.

    Other changes from the original rAthena Stylist:

    • after selecting "Previous", then Previous appears before Next in the menu
    • starts at your current palette instead of always starting at #1
    • the first menu (Cloth color, Hairstyle, Hair color) displays your current palette numbers

    Click here to download this file

    • Upvote 2
×
×
  • Create New...