| **TAddedAbility** | | | | --- | --- | --- | | **属性名称** | **功能** | **描述** | | AC:Int64; | 物理防御下限 | | | ACMax:Int64; | 物理防御上限 | | | AntiMagic:SmallInt; | 魔法躲避 | 每加1点代表1% | | AntiPoison:SmallInt; | 中毒躲避 | 每加1点代表1% | | AppendDamage:Int64; | 固定伤害 | | | AppendDamageDef:Int64; | 固定伤害抵抗 | | | CriticalHit:Int64; | 会心一击 | | | CriticalHitDef:Word; | 会心一击抵抗 | | | DamageAbsorb:SmallInt; | 伤害减免 | | | DamageAdd:Int64; | 伤害加成 | | | DC:Int64; | 物理攻击下限 | | | DCMax:Int64; | 物理攻击上限 | | | ExpRate:Integer; | 经验倍率 | 每加1点代表1% | | GoldRate:Integer; | 金币倍率 | 每加1点代表1% | | HealthRecover:SmallInt; | 体力恢复 | 每加1点代表1% | | HitPoint:SmallInt; | 准确 | | | HitSpeed:SmallInt; | 攻击速度 | | | HP:Int64; | HP上限 | | | ItemRate:Integer; | 打怪爆率倍率 | 每加1点代表1% | | Luck:SmallInt; | 幸运 | | | MAC:Int64; | 魔法防御下限 | | | MACMax:Int64; | 魔法防御上限 | | | MC:Int64; | 魔法攻击下限 | | | MCMax:Int64; | 魔法攻击上限 | | | MP:Int64; | MP上限 | | | PC:Int64; | 刺术攻击下限 | | | PCMax:Int64; | 刺术攻击上限 | | | PoisonRecover:SmallInt; | 中毒恢复 | 每加1点代表1% | | PunchHit:Int64; | 致命一击 | | | PunchHitDef:Word; | 致命一击抵抗 | | | Rebound:Int64; | 伤害反弹概率 | | | SC:Int64; | 道术攻击下限 | | | SCMax:Int64; | 道术攻击上限 | | | SpeedPoint:SmallInt; | 敏捷 | | | SpellRecover:SmallInt; | 魔法恢复 | 每加1点代表1% | | TC:Int64; | 射术攻击下限 | | | TCMax:Int64; | 射术攻击上限 | | | WC:Int64; | 武术攻击下限 | | | WCMax:Int64; | 武术攻击上限 | | 范例: ```pascal { 此处只是简单的一个范例 示例中根据VIP类型的不同,赋予角色不同的附加值 } Unit Q28; Interface Uses Classes, SysUtils; Procedure Main(Npc: TNormNpc; Player: TPlayObject; Args: TArgs); Implementation Procedure Main(Npc: TNormNpc; Player: TPlayObject; Args: TArgs); Begin Addability(Player); //传入角色 End; Procedure Addability(Player: TPlayObject); Begin //算出不同VIP攻防的加成 Case Player.MemberLevel Of 1: //白银VIP Begin Player.AddedAbility.AC := 5; Player.AddedAbility.ACMax := 10; Player.AddedAbility.MAC := 5; Player.AddedAbility.MACMax := 10; Player.AddedAbility.DC := 5; Player.AddedAbility.DCMax := 10; Player.AddedAbility.MC := 5; Player.AddedAbility.MCMax := 10; Player.AddedAbility.SC := 5; Player.AddedAbility.SCMax := 10; Player.AddedAbility.ExpRate := 20; Player.AddedAbility.GoldRate := 20; End; 2: //黄金VIP Begin Player.AddedAbility.AC := 5; Player.AddedAbility.ACMax := 20; Player.AddedAbility.MAC := 5; Player.AddedAbility.MACMax := 20; Player.AddedAbility.DC := 5; Player.AddedAbility.DCMax := 20; Player.AddedAbility.MC := 5; Player.AddedAbility.MCMax := 20; Player.AddedAbility.SC := 5; Player.AddedAbility.SCMax := 20; Player.AddedAbility.ExpRate := 30; Player.AddedAbility.GoldRate := 30; End; 3: //至尊VIP Begin Player.AddedAbility.AC := 15; Player.AddedAbility.ACMax := 30; Player.AddedAbility.MAC := 15; Player.AddedAbility.MACMax := 30; Player.AddedAbility.DC := 15; Player.AddedAbility.DCMax := 30; Player.AddedAbility.MC := 15; Player.AddedAbility.MCMax := 30; Player.AddedAbility.SC := 15; Player.AddedAbility.SCMax := 30; Player.AddedAbility.ExpRate := 50; Player.AddedAbility.GoldRate := 50; End; End; End; End. ```