交易、市场、仓库和公会
经济系统的社交部分来了:玩家之间的直接交易、卖家离线也能用的市场、每个账号一个的仓库,以及带有自己仓库和聊天的公会。
为什么
不流通的物品形成不了经济。但交易做不好就会变成诈骗,所以我们定的规则是:客户端只负责提出请求,检查和移动一切的是服务器。
怎么运作
交易时,在城镇里点另一个玩家就会发出邀请。双方各自摆出自己的报价,任何改动都会让双方解除锁定。双方都锁定之后,有 3 秒的复核时间,这期间按钮不可用,之后双方才能确认。两个账号会一起写入:要么整笔交易完成,要么什么都不变。所有记录会保留 90 天。经验典籍、星辰精华和正在使用的装备不能交易,账号不满 24 小时或者没有 20 级角色的,也不能交易,用来挡住 bot。
在“市场”建筑里,你可以挂出一件定价固定的物品。物品会被扣留,买家即使你离线也能付款,金币到账时已经扣掉了 5% 的手续费。
仓库每个账号有 100 格,花金币最多可以扩到 300 格,是在你自己的几个角色之间转移物品的办法。存进去的装备在取出之前不能穿戴、锻造或出售。
创建公会要花 1 万金币,需要名字和缩写。最多容纳 30 名成员,分为会长、官员和成员。有邀请、每日消息、公会仓库(所有人都能存,只有会长和官员能取),以及用 /gu 的聊天。
下一步
等有了美术,就在城镇地面上做真正的摊位。
变更
- feat(server): phase 2 systems behind one service hub
Room instances: a full room opens a new instance (rid#n) and empty extra instances are dropped; matchmaking fills groups first. New room kinds: farm (wild animals that respawn, gather nodes, team revives instead of failing), legend (weekly boss, needs 2 players and a level, phases with summons and flooding, linked roots, aura cycling with reflect, damage only from given reactions) and explore (Wednesday and Sunday, 10 waves of 10 elites per rotating theme, 20 s pause with free swap, reward per wave, 10x chest capped at 2 per opening, ranking and a global announcement). Two more dungeons (Caverna Gelida, Bosque Uivante), four legends and the explore themes, all in data with their mobs, loot and portals. Modules: Cooking (farm gathering with personal regrowth, recipes, shop, food that buffs both characters for 30 min), Gacha (six banners with their own pity at 30, no 50/50, fragments, cosmetic visuals), Storage, TradeSession (two locks, 3 s review, atomic two-account update, 90-day log), Market (escrow, 5% fee, offline payout) and Guilds (ranks, invites, storage, message of the day, guild chat). Net exposes them through rq_op/panel_rpc. Protocol 12.
- feat(client): farm, legends, explore and city service panels
Farm room: zones, gather nodes with personal regrowth, tap a node to walk and gather, orange exit back to town. Legend and explore overlays: waiting for players, phase banners, flooding tint, roots, wave and pause with free swap. City: Taverna, Loja, Armazem and Mercado open their panels with F or a tap; tapping another player offers a trade; Gacha, Guilda and Incursao buttons at the top. New panels for cooking, storage, market, trade, gacha and guild, all talking to the server through Net.op. Food is eaten from the bag. Guild chat with /gu. Gacha cosmetics recolor the outfit, armor and weapon layers, and wings, mounts and pets show as a tag under the name. Mob sprites for the new monsters and the farm animals. Integration test covers farm gathering, cooking, food in the room, storage, gacha pulls, guild chat, legend gating, market eligibility and an explore wave. Version 0.2.0.