Jump to content

solid2005

Members
  • Posts

    145
  • Joined

  • Last visited

Posts posted by solid2005

  1. It had bug with newest rathena with this feature:

     

    // Autotrade persistency (Note 1)

    // Should vendors that used @autotrade be restored after a restart?

    feature.autotrade: on

     

    Need to fix

    SQL

    CREATE TABLE IF NOT EXISTS `vending_items` (
      `vending_id` int(10) unsigned NOT NULL,
      `index` smallint(5) unsigned NOT NULL,
      `cartinventory_id` int(10) unsigned NOT NULL,
      `amount` smallint(5) unsigned NOT NULL,
      `price` int(10) unsigned NOT NULL
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
    
    need add `type` int(10) unsigned NOT NULL for item you vend.

    Vending.c

    if( Sql_Query( mmysql_handle, "INSERT INTO `%s`(`vending_id`,`index`,`cartinventory_id`,`amount`,`price`) VALUES( %d, %d, %d, %d, %d );", vending_items_db, sd->vender_id, i, sd->status.cart[sd->vending[i].index].id, sd->vending[i].amount, sd->vending[i].value ) != SQL_SUCCESS ){
    
    need to get item type that you vend to insert to the database.

    void vending_reopen( struct map_session_data* sd ){
    
    need add variable item type that you vend.

    if you want to fix this faster, help each other.

  2. /******************************************************************************
     ************* Entry structure ************************************************
     ******************************************************************************
    {
    	// =================== Mandatory fields ===============================
    	Id: ID                        (int)
    	AegisName: "Aegis_Name"       (string, optional if Inherit: true)
    	Name: "Item Name"             (string, optional if Inherit: true)
    	// =================== Optional fields ================================
    	Type: Item Type               (int, defaults to 3 = etc item)
    	Buy: Buy Price                (int, defaults to Sell * 2)
    	Sell: Sell Price              (int, defaults to Buy / 2)
    	Weight: Item Weight           (int, defaults to 0)
    	Atk: Attack                   (int, defaults to 0)
    	Matk: Magical Attack          (int, defaults to 0, ignored in pre-re)
    	Def: Defense                  (int, defaults to 0)
    	Range: Attack Range           (int, defaults to 0)
    	Slots: Slots                  (int, defaults to 0)
    	Job: Job mask                 (int, defaults to all jobs = 0xFFFFFFFF)
    	Upper: Upper mask             (int, defaults to any = 0x3f)
    	Gender: Gender                (int, defaults to both = 2)
    	Loc: Equip location           (int, required value for equipment)
    	WeaponLv: Weapon Level        (int, defaults to 0)
    	EquipLv: Equip required level (int, defaults to 0)
    	EquipLv: [min, max]           (alternative syntax with min / max level)
    	Refine: Refineable            (boolean, defaults to true)
    	View: View ID                 (int, defaults to 0)
    	Script: <"
    		Script
    		(it can be multi-line)
    	">
    	OnEquipScript: <" OnEquip Script (can also be multi-line) ">
    	OnUnequipScript: <" OnUnequip Script (can also be multi-line) ">
    	// =================== Optional fields (item_db2 only) ================
    	Inherit: true/false           (boolean, if true, inherit the values
    	                              that weren't specified, from item_db.conf,
    	                              else override it and use default values)
    },
    ******************************************************************************/
    

    can we have this for our item_db.txt and item_db2.txt?

    it can see clearly for avoid comma misplacing.

×
×
  • Create New...