一.item类型
itp_type_horse = 0x0000000000000001 马匹 itp_type_one_handed_wpn = 0x0000000000000002 单手武器 itp_type_two_handed_wpn = 0x0000000000000003 双手武器 itp_type_polearm = 0x0000000000000004 长杆武器 itp_type_arrows = 0x0000000000000005 箭矢 itp_type_bolts = 0x0000000000000006 弩矢 itp_type_shield = 0x0000000000000007 盾牌 itp_type_bow = 0x0000000000000008 弓箭 itp_type_crossbow = 0x0000000000000009 猎弩 itp_type_thrown = 0x000000000000000a 投掷 itp_type_goods = 0x000000000000000b 货物 itp_type_head_armor = 0x000000000000000c 头部盔甲 itp_type_body_armor = 0x000000000000000d 身体盔甲 itp_type_foot_armor = 0x000000000000000e 腿部盔甲 itp_type_hand_armor = 0x000000000000000f 手部盔甲 itp_type_pistol = 0x0000000000000010 手枪 itp_type_musket = 0x0000000000000011 步枪 itp_type_bullets = 0x0000000000000012 子弹 itp_type_animal = 0x0000000000000013 动物 itp_type_book = 0x0000000000000014 书籍 itp_force_attach_left_hand = 0x0000000000000100 itp_force_attach_right_hand = 0x0000000000000200 itp_force_attach_left_forearm = 0x0000000000000300 itp_attach_armature = 0x0000000000000f00 itp_attachment_mask = 0x0000000000000f00 itp_unique = 0x0000000000001000 itp_always_loot = 0x0000000000002000 itp_no_parry = 0x0000000000004000 无格挡 itp_default_ammo = 0x0000000000008000 默认弹药装填量 itp_merchandise = 0x0000000000010000 商品 itp_wooden_attack = 0x0000000000020000 钝伤 itp_wooden_parry = 0x0000000000040000 格挡钝伤 itp_food = 0x0000000000080000 食物 itp_cant_reload_on_horseback = 0x0000000000 itp_two_handed = 0x0000000000 itp_primary = 0x0000000000 主武器 itp_secondary = 0x0000000000 服务器 itp_covers_legs = 0x000000000 itp_doesnt_cover_hair = 0x000000000 itp_can_penetrate_shield = 0x000000000 击穿盾牌 itp_consumable = 0x000000000 itp_bonus_against_shield = 0x000000000 itp_penalty_with_shield = 0x000000000 itp_cant_use_on_horseback = 0x00000000 itp_civilian = 0x00000000 itp_next_item_as_melee = 0x00000000 itp_fit_to_head = 0x00000000 itp_offset_lance = 0x00000000 itp_covers_head = 0x00000000 itp_couchable = 0x00000000 itp_crush_through = 0x0000000 itp_remove_item_on_use = 0x0000000 itp_unbalanced = 0x0000000 itp_covers_beard = 0x000000 itp_no_pick_up_from_ground = 0x000000 itp_can_knock_down = 0x000000 itp_covers_hair = 0x000000 itp_force_show_body = 0x00000 itp_force_show_left_hand = 0x00000 itp_force_show_right_hand = 0x00000 itp_covers_hair_partially = 0x00000 itp_extra_penetration = 0x00000 itp_has_bayonet = 0x00000 itp_cant_reload_while_moving = 0x00000 itp_ignore_gravity = 0x00000 itp_ignore_friction = 0x00000 itp_is_pike = 0x00000 itp_offset_musket = 0x00000 itp_no_blur = 0x00000 itp_cant_reload_while_moving_mounted = 0x00000 itp_has_upper_stab = 0x00000 itp_disable_agent_sounds = 0x00000 itp_kill_info_mask = 0x00000 itp_kill_info_bits = 56
讯享网
二.item能力(架枪/装填等基本动作)
讯享网# Item capabilities: itcf_thrust_onehanded = 0x0000000000000001 itcf_overswing_onehanded = 0x0000000000000002 itcf_slashright_onehanded = 0x0000000000000004 itcf_slashleft_onehanded = 0x0000000000000008 itcf_thrust_twohanded = 0x0000000000000010 itcf_overswing_twohanded = 0x0000000000000020 itcf_slashright_twohanded = 0x0000000000000040 itcf_slashleft_twohanded = 0x0000000000000080 itcf_thrust_polearm = 0x0000000000000100 itcf_overswing_polearm = 0x0000000000000200 itcf_slashright_polearm = 0x0000000000000400 itcf_slashleft_polearm = 0x0000000000000800 itcf_shoot_bow = 0x0000000000001000 拉弓动作 itcf_shoot_javelin = 0x0000000000002000 投掷标枪动作 itcf_shoot_crossbow = 0x0000000000004000 猎弩发射动作 itcf_throw_stone = 0x0000000000010000 itcf_throw_knife = 0x0000000000020000 itcf_throw_axe = 0x0000000000030000 itcf_throw_javelin = 0x0000000000040000 itcf_shoot_pistol = 0x0000000000070000 itcf_shoot_musket = 0x0000000000080000 itcf_shoot_mask = 0x00000000000ff000 itcf_horseback_thrust_onehanded = 0x0000000000 itcf_horseback_overswing_right_onehanded = 0x0000000000 itcf_horseback_overswing_left_onehanded = 0x0000000000 itcf_horseback_slashright_onehanded = 0x0000000000 itcf_horseback_slashleft_onehanded = 0x000000000 itcf_thrust_onehanded_lance = 0x000000000 itcf_thrust_onehanded_lance_horseback = 0x000000000 itcf_carry_mask = 0x00000007f0000000 itcf_carry_sword_left_hip = 0x00000000 itcf_carry_axe_left_hip = 0x00000000 itcf_carry_dagger_front_left = 0x00000000 itcf_carry_dagger_front_right = 0x00000000 itcf_carry_quiver_front_right = 0x00000000 itcf_carry_quiver_back_right = 0x00000000 itcf_carry_quiver_right_vertical = 0x00000000 itcf_carry_quiver_back = 0x00000000 itcf_carry_revolver_right = 0x00000000 itcf_carry_pistol_front_left = 0x00000000a0000000 itcf_carry_bowcase_left = 0x00000000b0000000 itcf_carry_mace_left_hip = 0x00000000c0000000 itcf_carry_axe_back = 0x0000000 itcf_carry_sword_back = 0x0000000 itcf_carry_kite_shield = 0x0000000 itcf_carry_round_shield = 0x0000000 itcf_carry_buckler_left = 0x0000000 itcf_carry_crossbow_back = 0x0000000 itcf_carry_bow_back = 0x0000000 itcf_carry_spear = 0x0000000 itcf_carry_board_shield = 0x0000000 itcf_carry_katana = 0x0000000 itcf_carry_wakizashi = 0x0000000 itcf_show_holster_when_drawn = 0x0000000 itcf_reload_pistol = 0x000000 itcf_reload_musket = 0x000000 itcf_reload_mask = 0x000000f000000000 itcf_parry_forward_onehanded = 0x00000 itcf_parry_up_onehanded = 0x00000 itcf_parry_right_onehanded = 0x00000 itcf_parry_left_onehanded = 0x00000 itcf_parry_forward_twohanded = 0x00000 itcf_parry_up_twohanded = 0x00000 itcf_parry_right_twohanded = 0x00000 itcf_parry_left_twohanded = 0x00000 itcf_parry_forward_polearm = 0x00000 itcf_parry_up_polearm = 0x00000 itcf_parry_right_polearm = 0x00000 itcf_parry_left_polearm = 0x00000 itcf_horseback_slash_polearm = 0x00000 itcf_overswing_spear = 0x00000 itcf_overswing_musket = 0x00000 itcf_thrust_musket = 0x00000 itcf_force_64_bits = 0x00000
三.item数值(购买价格/重量/长度/伤害)
#重量 def weight(x): a = int(4.0 * x) a = ibf_armor_mask & a return (((bignum | a) & ibf_armor_mask) << ibf_weight_bits) def get_weight(y): a = (y >> ibf_weight_bits) & ibf_armor_mask return 0.25 * a def head_armor(x): return (((bignum | x) & ibf_armor_mask) << ibf_head_armor_bits) def get_head_armor(y): return (y >> ibf_head_armor_bits) & ibf_armor_mask def body_armor(x): return (((bignum | x) & ibf_armor_mask) << ibf_body_armor_bits) def get_body_armor(y): return (y >> ibf_body_armor_bits) & ibf_armor_mask def leg_armor(x): return (((bignum | x) & ibf_armor_mask) << ibf_leg_armor_bits) def get_leg_armor(y): return (y >> ibf_leg_armor_bits) & ibf_armor_mask def difficulty(x): return (((bignum | x) & ibf_armor_mask) << ibf_difficulty_bits) def get_difficulty(y): return (y >> ibf_difficulty_bits) & ibf_armor_mask def hit_points(x): return (((bignum | x) & ibf_hitpoints_mask) << ibf_hitpoints_bits) def get_hit_points(y): return (y >> ibf_hitpoints_bits) & ibf_hitpoints_mask #射击速度 def spd_rtng(x): return (((bignum | x) & ibf_armor_mask) << iwf_speed_rating_bits) def get_speed_rating(y): return (y >> iwf_speed_rating_bits) & ibf_armor_mask #弓箭飞行速度 def shoot_speed(x): return (((bignum | x) & ibf_10bit_mask) << iwf_shoot_speed_bits) def get_missile_speed(y): return (y >> iwf_shoot_speed_bits) & ibf_10bit_mask def horse_scale(x): return (((bignum | x) & ibf_10bit_mask) << iwf_weapon_length_bits) #攻击距离 def weapon_length(x): return (((bignum | x) & ibf_10bit_mask) << iwf_weapon_length_bits) #盾牌宽度 def shield_width(x): return weapon_length(x) #盾牌高度 def shield_height(x): return shoot_speed(x) def get_weapon_length(y): return ((y >> iwf_weapon_length_bits) & ibf_10bit_mask) #最大装填量 def max_ammo(x): return (((bignum | x) & ibf_armor_mask) << iwf_max_ammo_bits) def get_max_ammo(y): return (y >> iwf_max_ammo_bits) & ibf_armor_mask def swing_damage(damage,damage_type): x = ((damage_type << iwf_damage_type_bits) | (damage & ibf_armor_mask)) return (((bignum | x) & ibf_damage_mask) << iwf_swing_damage_bits) def get_swing_damage(y): return (y >> iwf_swing_damage_bits) & ibf_damage_mask def thrust_damage(damage,damage_type): x = ((damage_type << iwf_damage_type_bits) | (damage & ibf_armor_mask)) return (((bignum | x) & ibf_damage_mask) << iwf_thrust_damage_bits) def get_thrust_damage(y): return (y >> iwf_thrust_damage_bits) & ibf_damage_mask #马速 def horse_speed(x): return shoot_speed(x) #操纵 def horse_maneuver(x): return spd_rtng(x) #冲撞 def horse_charge(x): return thrust_damage(x,0) def food_quality(x): return head_armor(x) def abundance(x): return (((bignum | x) & ibf_armor_mask) << iwf_abundance_bits) def get_abundance(y): abnd = (y >> iwf_abundance_bits) & ibf_armor_mask if (abnd == 0): abnd = 100 return abnd #精度 def accuracy(x): return leg_armor(x) def custom_kill_info(x): # you have to add ico_custom_x (where x is a number between 1 and 7) mesh in order to display it correctly. return (((bignum | x) & (itp_kill_info_mask >> itp_kill_info_bits)) << itp_kill_info_bits)
四.item回调事件
讯享网#装备初始化 ti_on_init_item = -50.0 #can only be used in module_items triggers #武器命中 ti_on_weapon_attack = -51.0 #can only be used in module_items triggers # Trigger Param 1: attacker agent id # Position Register 1: Weapon Item Position #弓箭命中 ti_on_missile_hit = -52.0 #can only be used in module_items triggers # Position Register 1: Missile Position # Trigger Param 1: shooter agent id #捡起装备 ti_on_item_picked_up = -53.0 #can only be used in module_mission_templates triggers # Trigger Param 1: agent id # Trigger Param 2: item id # Trigger Param 3: scene prop id (will be deleted after this trigger) #扔掉装备 ti_on_item_dropped = -54.0 #can only be used in module_mission_templates triggers # Trigger Param 1: agent id # Trigger Param 2: item id # Trigger Param 3: scene prop id #武器挥舞 ti_on_item_wielded = -57.0 #can only be used in module_mission_templates triggers # Trigger Param 1: agent id # Trigger Param 2: item id #武器取消挥舞 ti_on_item_unwielded = -58.0 #can only be used in module_mission_templates triggers # Trigger Param 1: agent id # Trigger Param 2: item id #盾牌被击中 ti_on_shield_hit = -80.0 # can only be used in module_items triggers # Trigger Param 1: receiver agent no # Trigger Param 2: dealer agent no # Trigger Param 3: inflicted damage # Trigger Param 4: item kind no # Trigger Param 5: missile item kind no # Trigger Result: if set, damage dealt to shield

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/86136.html