- 好友
- 5
- 在线时间
- 0 小时
- 最后登录
- 2024-11-18
见习骑士
- UID
- 3225805
- 第纳尔
- 1483
- 精华
- 0
- 互助
- 37
- 荣誉
- 0
- 贡献
- 0
- 魅力
- 256
- 注册时间
- 2021-3-14
鲜花( 48) 鸡蛋( 0)
|
代码如下
["equilibrium_sect_merchant", "Merchant","{!}Merchant", tf_hero|tf_randomize_face|tf_is_merchant, scn_town_6_tavern|entry(5),0, fac_equilibrium_sect, [itm_coarse_tunic, itm_leather_boots],def_attrib|level(2),wp(20),knows_inventory_management_10, man_face_young_1, man_face_older_2], ["black_roses_merchant", "Merchant","{!}Merchant", tf_hero|tf_randomize_face|tf_is_merchant, scn_town_6_tavern|entry(6),0, fac_black_roses, [itm_coarse_tunic, itm_leather_boots ],def_attrib|level(2),wp(20),knows_inventory_management_10, man_face_young_1, man_face_older_2], ["the_shadow_merchant", "Merchant","{!}Merchant", tf_hero|tf_randomize_face|tf_is_merchant, scn_town_6_tavern|entry(7),0, fac_the_shadow, [itm_coarse_tunic, itm_leather_boots ],def_attrib|level(2),wp(20),knows_inventory_management_10, man_face_young_1, man_face_older_2], ["winter_claws_merchant", "Merchant","{!}Merchant", tf_hero|tf_randomize_face|tf_is_merchant, scn_town_6_tavern|entry(8),0, fac_winter_claws, [itm_coarse_tunic, itm_leather_boots ],def_attrib|level(2),wp(20),knows_inventory_management_10, man_face_young_1, man_face_older_2], [trp_black_roses_merchant, "start", [
],
"Good day {sir/madam}", "black_talk", []],
[anyone|plyr, "black_talk", [], "Yes. Show me what you have for sale.", "black_buy", []],
[trp_black_roses_merchant,"black_buy", [], "Of course {sir/madam}.", "black_1",[[change_screen_trade]]],
[trp_black_roses_merchant,"black_1", [], "Anything else?", "black_talk",[]],
[anyone|plyr,"black_talk", [], "Nothing. Thanks.", "close_window",[]], (0.0, 0, 168.0, [],
[
(call_script, "script_black_Rose_merchant"),
]),
("black_Rose_merchant",
[
(reset_item_probabilities, 100), #刷新商品概率
(set_merchandise_modifier_quality, 150), #商品质量
(try_for_range,":shangren",new_merchants_begin, new_merchants_end), #循环新的商人
(troop_clear_inventory, ":shangren"), #清除商人物品栏
(store_troop_faction,":culture",":shangren"), #储存商人阵营
(troop_add_merchandise_with_faction, ":shangren", ":culture", itp_type_horse, 5), #添加商品 检测阵营是否有此商品
(troop_add_merchandise_with_faction, ":shangren", ":culture", itp_type_one_handed_wpn, 5),
(troop_add_merchandise_with_faction, ":shangren", ":culture", itp_type_two_handed_wpn, 5),
(troop_add_merchandise_with_faction, ":shangren", ":culture", itp_type_polearm, 5),
(troop_add_merchandise_with_faction, ":shangren", ":culture", itp_type_body_armor, 5),
(troop_add_merchandise_with_faction, ":shangren", ":culture", itp_type_foot_armor, 5),
(troop_add_merchandise_with_faction, ":shangren", ":culture", itp_type_head_armor, 5),
(troop_add_merchandise_with_faction, ":shangren", ":culture", itp_type_hand_armor, 5),
(troop_add_merchandise_with_faction, ":shangren", ":culture", itp_type_bow, 5),
(troop_add_merchandise_with_faction, ":shangren", ":culture", itp_type_goods, 1),
(troop_add_merchandise_with_faction, ":shangren", ":culture", itp_type_book, 1),
(troop_ensure_inventory_space, ":shangren", 65), #商人物品栏空间必须有65
(troop_sort_inventory, ":shangren"), #给商人物品栏按照价格排序
(store_troop_gold, ":gold", ":shangren"), #储存商人的钱
(lt, ":gold", 5000), #如果小于5000
(store_random_in_range, ":new_gold", 10000, 20000), #取随机数
(call_script, "script_troop_add_gold", ":shangren", ":new_gold"), #添加随机数的钱
(try_end),
]),
new_merchants_begin = "trp_equilibrium_sect_merchant" new_merchants_end = "trp_winter_claws_merchant"
|
|