
广告
该方法是为了解决合击版本使用盘古的脚本触发时,英雄普攻和技能会造成m2内存地址冲突的BUG,但是加上去就算无效也不会有影响。
脚本如下:
procedure MagicAttack(VictimName:string;IsPlayer:Boolean;SkillID:Integer); begin if This_Player.GetActivePoint > 0 then begin //魔法触发的所有代码复制至该处 end; end; procedure Attack(VictimName:string;IsPlayer:Boolean); begin if This_Player.GetActivePoint > 0 then begin //攻击触发的所有代码复制至该处 end; end; procedure OnKill(KillerName ,MapDesc:string); begin if This_Player.GetActivePoint > 0 then begin //击杀触发的所有代码复制至该处 end; end; procedure OnDie(); begin if This_Player.GetActivePoint > 0 then begin //死亡触发的所有代码复制至该处 end; end;