烟已淡无味 发表于 2014-4-1 22:17:59

求大神gengxxx帮忙

求一个函数!!!!!顺便求收留
0-1层奥冲debuff一定读奥冲
2-3层奥冲debuff,2层飞弹读飞弹,否则读奥冲
4层奥冲debuff,1层飞弹,3-4层2T16buff读奥冲,2层2T16buff、99%蓝以上读奥冲,否则继续飞弹

4层奥冲debuff,飞弹打完后
0层2T16buff,96%蓝以上奥冲,96%蓝以下弹幕
1层2T16buff,92%蓝以上奥冲,92%蓝以下弹幕
2层或更高:继续奥冲


gengxxx 发表于 2014-4-1 23:28:23

本帖最后由 gengxxx 于 2014-4-1 23:29 编辑

只是单纯按照你文字说明给出的代码, 不保证优先级正确

--不打断施法
ifampb("隐形术") > 0 or amac("player")=="唤醒" or amac("player")=="奥术飞弹" or amac("player")=="暴风雪" then return;end

if ampdbn("奥术充能") < 2 then amrun("奥术冲击","target") end
if ampdbn("奥术充能") < 4 and ampbn("奥术飞弹!") == 2 then amrun("奥术飞弹","target") end
if ampdbn("奥术充能") < 4 and ampbn("奥术飞弹!") == 1 then amrun("奥术冲击","target") end
if ampdbn("奥术充能") == 4 and ampbn("奥术飞弹!") > 0 then
   if ampbn("法力高超") > 2 then amrun("奥术冲击","target") end
   if ampbn("法力高超") <= 2 and ampbn("法力高超") >0 then
         ifBeeUnitMana("player","%",0) >= 99 then amrun("奥术冲击","target")
         else amrun("奥术飞弹","target") end
   end
end

if ampdbn("奥术充能") == 4 and ampbn("奥术飞弹!") < 1 then
   if ampbn("法力高超") ==0 then
         if BeeUnitMana("player","%",0) >= 96 then amrun("奥术冲击","target")
      elseamrun("奥术弹幕","target")end
   end
   if ampbn("法力高超") ==1 then
         if BeeUnitMana("player","%",0) >= 92 then amrun("奥术冲击","target")
      elseamrun("奥术弹幕","target")end
         if ampbn("法力高超") >1 then amrun("奥术冲击","target") end
   end
end

anyoer* 发表于 2014-4-2 09:48:19

XXX这是要变成代码王的节奏?!

hellokittylol 发表于 2014-4-2 09:53:23

:)大神真有爱阿!!

小红猫 发表于 2014-4-4 12:10:08

膜拜!:loveliness::loveliness::loveliness:

一枝花 发表于 2014-4-5 18:42:09

g大好称职的说~
页: [1]
查看完整版本: 求大神gengxxx帮忙