Jump to content

cook1e

Members
  • Posts

    129
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by cook1e

  1. Here is an example.

    db/item_db.yml
     

    # This file is a part of rAthena.
    #   Copyright(C) 2021 rAthena Development Team
    #   https://rathena.org - https://github.com/rathena
    #
    # This program is free software: you can redistribute it and/or modify
    # it under the terms of the GNU General Public License as published by
    # the Free Software Foundation, either version 3 of the License, or
    # (at your option) any later version.
    #
    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    # GNU General Public License for more details.
    #
    # You should have received a copy of the GNU General Public License
    # along with this program. If not, see <http://www.gnu.org/licenses/>.
    #
    ###########################################################################
    # Item Database
    ###########################################################################
    #
    # Item Settings
    #
    ###########################################################################
    # - Id                      Item ID.
    #   AegisName               Server name to reference the item in scripts and lookups, should use no spaces.
    #   Name                    Name in English for displaying as output.
    #   Type                    Item type. (Default: Etc)
    #   SubType                 Weapon or Ammo type. (Default: 0)
    #   Buy                     Buying price. When not specified, becomes double the sell price. (Default: 0)
    #   Sell                    Selling price. When not specified, becomes half the buy price. (Default: 0)
    #   Weight                  Item weight. Each 10 is 1 weight. (Default: 0)
    #   Attack                  Weapon's attack. (Default: 0)
    #   MagicAttack             Weapon's magic attack. (Default: 0)
    #   Defense                 Armor's defense. (Default: 0)
    #   Range                   Weapon's attack range. (Default: 0)
    #   Slots                   Available slots in item. (Default: 0)
    #   Jobs                    Jobs that can equip the item. (Map default is 'All: true')
    #   Classes                 Upper class types that can equip the item. (Map default is 'All: true')
    #   Gender                  Gender that can equip the item. (Default: Both)
    #   Locations               Equipment's placement. (Default: None)
    #   WeaponLevel             Weapon level. (Default: 0)
    #   EquipLevelMin           Minimum required level to equip. (Default: 0)
    #   EquipLevelMax           Maximum level that can equip. (Default: 0)
    #   Refineable              If the item can be refined. (Default: false)
    #   View                    View sprite of an item. (Default: 0)
    #   AliasName               Another item's AegisName that will be sent to the client instead of this item's AegisName. (Default: null)
    #   Flags:                  Item flags. (Default: null)
    #     BuyingStore           If the item is available for Buyingstores. (Default: false)
    #     DeadBranch            If the item is a Dead Branch. (Default: false)
    #     Container             If the item is part of a container. (Default: false)
    #     UniqueId              If the item is a unique stack. (Default: false)
    #     BindOnEquip           If the item is bound to the character upon equipping. (Default: false)
    #     DropAnnounce          If the item has a special announcement to self on drop. (Default: false)
    #     NoConsume             If the item is consumed on use. (Default: false)
    #     DropEffect            If the item has a special effect on the ground when dropped by a monster. (Default: None)
    #   Delay:                  Item use delay. (Default: null)
    #     Duration              Duration of delay in seconds.
    #     Status                Status Change used to track delay. (Default: None)
    #   Stack:                  Item stack amount. (Default: null)
    #     Amount                Maximum amount that can be stacked.
    #     Inventory             If the stack is applied to player's inventory. (Default: true)
    #     Cart                  If the stack is applied to the player's cart. (Default: false)
    #     Storage               If the stack is applied to the player's storage. (Default: false)
    #     GuildStorage          If the stack is applied to the player's guild storage. (Default: false)
    #   NoUse:                  Conditions when the item is unusable. (Default: null)
    #     Override              Group level to override these conditions.
    #     Sitting               If the item can not be used while sitting. (Default: false)
    #   Trade:                  Trade restrictions. (Default: null)
    #     Override              Group level to override these conditions.
    #     NoDrop                If the item can not be dropped. (Default: false)
    #     NoTrade               If the item can not be traded. (Default: false)
    #     TradePartner          If the item can not be traded to the player's partner. (Default: false)
    #     NoSell                If the item can not be sold. (Default: false)
    #     NoCart                If the item can not be put in a cart. (Default: false)
    #     NoStorage             If the item can not be put in a storage. (Default: false)
    #     NoGuildStorage        If the item can not be put in a guild storage. (Default: false)
    #     NoMail                If the item can not be put in a mail. (Default: false)
    #     NoAuction             If the item can not be put in an auction. (Default: false)
    #   Script                  Script to execute when the item is used/equipped. (Default: null)
    #   EquipScript             Script to execute when the item is equipped. (Default: null)
    #   UnEquipScript           Script to execute when the item is unequipped or when a rental item expires. (Default: null)
    ###########################################################################
    
    Header:
      Type: ITEM_DB
      Version: 1
    
    Footer:
      Imports:
      - Path: db/pre-re/item_db.yml
        Mode: Prerenewal
      - Path: db/re/item_db.yml
        Mode: Prerenewal
      - Path: db/re/item_db.yml
        Mode: Renewal
      - Path: db/import/item_db.yml

     

  2. You have some SC_ from Hercules and they don't exist on rAthena...
     

    sc_start SC_ATTHASTE_POTION1,1800000,4;
    sc_start SC_ATTHASTE_POTION2,1800000,6;
    sc_start SC_PLUSATTACKPOWER,60000,20;
    sc_start SC_PLUSMAGICPOWER,60000,20;
    sc_start SC_MOVHASTE_INFINITY,5000,0;
    sc_start SC_GENTLETOUCH_REVITALIZE,240000,3;



    If you are getting petrified is because they don't exist and the server turns NULL SC_ to Stone_Curse

  3. I still don't know exactly what you want but these are the changes i did.

    from
     

    	unitwarp getnpcid(0),.map$,[email protected],[email protected];
    	debugmes "[Event]: npc is at: "[email protected]+" & "[email protected];

    to

    	unitwarp getnpcid(0),.map$,[email protected],[email protected];
    	if (.debugMode)
    		debugmes "[Event]: npc is at: "+.map$+" "[email protected]+" & "[email protected];


    To enable or disable debug.

    .debugMode = 0; // 1 = enabled // 0 = disabled



     

    find_gm_1.0.1.txt

    • Love 1
  4.   - Id: 13 
        Group: Group_Robe
        Slots:
          - Slot: 1
            Options:
              - Option: RECOVER_HP_KILL_TARGET
                MinValue: 1
                MaxValue: 16
                Chance: 1000
              - Option: RECOVER_HP_KILL_TARGET
                MinValue: 20
                MaxValue: 80
                Chance: 1000
              - Option: VAR_MAXHPAMOUNT
                MinValue: 1
                MaxValue: 300
                Chance: 1000
              - Option: VAR_MAXSPAMOUNT
                MinValue: 10
                MaxValue: 150
                Chance: 1000
          - Slot: 2
            Options:
              - Option: VAR_MAXHPPERCENT
                MinValue: 1
                MaxValue: 5
                Chance: 1000
              - Option: VAR_MAXSPPERCENT
                MinValue: 1
                MaxValue: 5
                Chance: 1000
              - Option: VAR_PLUSAVOIDSUCCESSVALUE
                MinValue: 1
                MaxValue: 5
                Chance: 1000
          - Slot: 3
            Options:
              - Option: CLASS_DAMAGE_NORMAL_USER
                MinValue: 1
                MaxValue: 5
                Chance: 100
              - Option: CLASS_DAMAGE_BOSS_USER
                MinValue: 1
                MaxValue: 5
                Chance: 100
              - Option: VAR_STRAMOUNT
                MinValue: 1
                MaxValue: 3
                Chance: 100
              - Option: VAR_AGIAMOUNT
                MinValue: 1
                MaxValue: 3
                Chance: 100
              - Option: VAR_INTAMOUNT
                MinValue: 1
                MaxValue: 3
                Chance: 100
              - Option: VAR_DEXAMOUNT
                MinValue: 1
                MaxValue: 3
                Chance: 100
              - Option: VAR_LUKAMOUNT
                MinValue: 1
                MaxValue: 3
                Chance: 100
              - Option: VAR_VITAMOUNT
                MinValue: 1
                MaxValue: 3
                Chance: 100

    Hello, what is the correct format? with this configuration i always get 3 bonus even if the chances are very low (1%) for example.

    Can't figure how to make it to be with these chances (  First Slot 100% ) - ( Second Slot 40% ) - ( Third Slot 20% ).

  5. apt-get dist-upgrade
    apt-get install mysql-server
    mysql -u root -p  (si no tienes contraseña, en la terminal solo presiona enter)
    CREATE DATABASE ragnarok;
    CREATE DATABASE log;
    GRANT ALL ON ragnarok.* TO [email protected] IDENTIFIED BY "tucontraseña";
    GRANT ALL ON log.* TO [email protected];
    quit
    cd /ubicacion/rathena/sql-files
    mysql -u ragnarok -ptucontraseña ragnarok < main.sql
    mysql -u ragnarok -ptucontraseña log < logs.sql

     

  6. Para configurar tu base de datos, te dejo está pequeña guia.
     

    sudo apt update && sudo apt upgrade
    sudo apt install libmariadb-dev libmariadb-dev-compat
    mysql -u root -p  (si no tienes contraseña, en la terminal solo presiona enter)
    CREATE DATABASE ragnarok;
    CREATE DATABASE log;
    GRANT ALL ON ragnarok.* TO [email protected] IDENTIFIED BY "tucontraseña";
    GRANT ALL ON log.* TO [email protected];
    quit
    cd /ubicacion/rathena/sql-files
    mysql -u ragnarok -ptucontraseña ragnarok < main.sql
    mysql -u ragnarok -ptucontraseña log < logs.sql

    Si quieres acceder a tu base de datos desde tu navegador, puedes instalar phpmyadmin.
     

    sudo apt install phpmyadmin php-mbstring php-gettext
    
    En el proceso de instalación te dara a elegir 2 opciones, elige apache2, luego te dirá si quieres usar dbconfig-common, elige YES.
    
    sudo phpenmod mbstring
    
    y finalmente, reinicia apache2 > sudo systemctl restart apache2
    
    Para iniciar sesión seria el nombre de tu base de datos y la contraseña que utilizaste para la base de datos.
    
    
    


    Si necesitas más ayuda no dudes en escribir nuevamente por acá.

  7. Si utilizas OVH puedes cambiar el sistema operativo de tu VPS a Ubuntu 18.04 o el que gustes pero es recomendable Ubuntu, guarda tu emulador en tu PC.

    NOTA: si cambias de sistema operativo tu VPS se reseteará y perderás lo que este dentro por eso te digo que guardes tu emulador en tu PC para luego volver a subirlo.

    Igual el error que tienes 0xc00007b puede ser solucionado instalando esta actualización de microsoft. Descargar acá

  8.   - Id: 1086
        AegisName: GOLDEN_BUG
        Name: Golden Thief Bug
        Level: 65
        Hp: 222750
        BaseExp: 102060
        JobExp: 77760
        MvpExp: 97200
        Attack: 952
        Attack2: 843
        Defense: 159
        MagicDefense: 81
        Str: 71
        Agi: 77
        Vit: 80
        Int: 62
        Dex: 140
        Luk: 76
        AttackRange: 1
        SkillRange: 10
        ChaseRange: 12
        Size: Large
        Race: Insect
        Element: Fire
        ElementLevel: 2
        WalkSpeed: 100
        AttackDelay: 768
        AttackMotion: 768
        DamageMotion: 480
        DamageTaken: 10
        Ai: 07
        Class: Boss
        Modes:
          Mvp: true
        MvpDrops:
          - Item: Gold_Ring
            Rate: 2000
          - Item: Ora_Ora
            Rate: 1000
        Drops:
          - Item: Gold
            Rate: 500
          - Item: Golden_Mace
            Rate: 75
          - Item: Golden_Gear
            Rate: 125
          - Item: Golden_Bell
            Rate: 250
          - Item: Emperium
            Rate: 150
          - Item: Elunium
            Rate: 1000
          - Item: Oridecon
            Rate: 750
          - Item: Golden_Bug_Card
            Rate: 1
            StealProtected: true

    Debes quitar la siguiente linea.
    DamageTaken: 10

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.