| 赞 | 0  | 
 
| VIP | 0 | 
 
| 好人卡 | 1 | 
 
| 积分 | 1 | 
 
| 经验 | 2849 | 
 
| 最后登录 | 2016-10-20 | 
 
| 在线时间 | 63 小时 | 
 
 
 
 
 
Lv1.梦旅人 
	- 梦石
 - 0 
 
        - 星屑
 - 50 
 
        - 在线时间
 - 63 小时
 
        - 注册时间
 - 2009-3-25
 
        - 帖子
 - 38
 
 
 
 | 
	
7楼
 
 
 楼主 |
发表于 2014-4-22 22:45:02
|
只看该作者
 
 
 
不好意思,又发现了一个问题。 
【商店基础】脚本里写的是: 
  #----------------------------------------------------------------------------- 
  # Returns a good, given a shop and an item. If the shop already has that good 
  # just return it. Otherwise, make a new good. If the price is negative, then 
  # the price is the default price. Otherwise, it is the specified price. 
  #----------------------------------------------------------------------------- 
  def self.get_good(shop, item, price=-1) 
    good = shop.shop_goods.detect {|good| good.item == item} 
    return good if good 
    good_id = shop.shop_goods.size + 1 
    type = item_type(item) 
    if price < 0 
      price_type = price = 0 
    else 
      price_type = 1 
    end 
    return Game_ShopGood.new(good_id, type, item.id, price_type, price) 
  end 
 
我理解的是,可以把商品卖回给商店,商品数量会增加,相应价格的金钱也会返回给玩家。 
但我测试的时候,商品卖回给商店后,在购买界面就看不到这个商品了,而且钱也没返还 TVT 
 
我就是在物品里默认的位置设置的价格,没什么妖蛾子…… 
 
请帮忙看看为什么卖回功能不起作用……谢谢! |   
 
 
 
 |