| 
 
| 赞 | 0 |  
| VIP | 77 |  
| 好人卡 | 306 |  
| 积分 | 1 |  
| 经验 | 85662 |  
| 最后登录 | 2023-11-23 |  
| 在线时间 | 1782 小时 |  
 Lv1.梦旅人 虱子 
	梦石0 星屑121 在线时间1782 小时注册时间2010-6-19帖子3597 | 
| 这种?复制代码# ▼▲▼ XRXS36. ショップ・変動相場 ▼▲▼
# by 和希成纳 、桜雅在土
# 翻译:柳柳
# ——————————————————————————————————————
# 本脚本来自www.66rpg.com,如果你没有单独得到和希或桜雅的允许,最好不要转载。
# 如需转载,也请保留此信息。
# ——————————————————————————————————————
#==============================================================================
# ■ Interpreter
#==============================================================================
class Interpreter
  #--------------------------------------------------------------------------
  # ◇ 更改物品价格百分比
  #--------------------------------------------------------------------------
  def command_物品定价(id, percent)
    $data_items[id].quotation_percent = percent
  end
  #--------------------------------------------------------------------------
  # ◇ 更改武器价格百分比
  #--------------------------------------------------------------------------
  def command_武器定价(id, percent)
    $data_weapons[id].quotation_percent = percent
  end
  #--------------------------------------------------------------------------
  # ◇ 更改防具价格百分比
  #--------------------------------------------------------------------------
  def command_防具定价(id, percent)
    $data_armors[id].quotation_percent = percent
  end
end
# ——————————————————————————————————————
# 本脚本来自www.66rpg.com,如果你没有单独得到和希或桜雅的允许,最好不要转载。
# 如需转载,也请保留此信息。
# ——————————————————————————————————————
module RPG
  #==============================================================================
  # ■ RPG::Item
  #==============================================================================
  class Item
    attr_accessor :quotation_percent
    #--------------------------------------------------------------------------
    # ● 数值更改
    #--------------------------------------------------------------------------
    def price
      # 如果百分比未定义,则返回原价格
      @quotation_percent = 100 if @quotation_percent.nil?
      # 返回价格
      return @price * @quotation_percent / 100
    end
  end
  #==============================================================================
  # ■ RPG::Weapon
  #==============================================================================
  class Weapon
    attr_accessor :quotation_percent
    #--------------------------------------------------------------------------
    # ● 数值更改
    #--------------------------------------------------------------------------
    def price
      # 如果百分比未定义,则返回原价格
      @quotation_percent = 100 if @quotation_percent.nil?
      # 返回价格
      return @price * @quotation_percent / 100
    end
  end
  #==============================================================================
  # ■ RPG::Armor
  #==============================================================================
  class Armor
    attr_accessor :quotation_percent
    #--------------------------------------------------------------------------
    # ● 値段
    #--------------------------------------------------------------------------
    def price
      # 如果百分比未定义,则返回原价格
      @quotation_percent = 100 if @quotation_percent.nil?
      # 返回价格
      return @price * @quotation_percent / 100
    end
  end
end
 | 
 |