當前位置:編程學習大全網 - 編程語言 - c語言編程 不知道怎麽做

c語言編程 不知道怎麽做

要多多嘗試,這東西是壹點壹點熟悉的

這些基本是總結前人,然後根據自己的實際情況進行小小變動的~~

1,近戰宏:

/施放 猛禽壹擊()

/施放 反擊()

/施放 貓鼬撕咬()

/script local T; for i=0,15,1 do T=UnitDebuff("target", i); if (T and string.find (T,"Trip")) then break; end; end; if (T and string.find (T,"Trip")) then CastSpellByName("摔絆(等級 1)"); else CastSpellByName("摔絆()"); end

<壹鍵囊括所有近戰技能,只要不停按就行了~~對方身上有摔絆效果的話,就會使用1級的,省藍>

[PK推薦使用]

2,釘刺的智能判斷

/script if (UnitMana("target")>120) then CastSpellByName("蝰蛇釘刺()") else CastSpellByName("毒蠍釘刺()"); end;

<比那個判斷職業的好,對方藍大於120使用蟒蛇,否則使用毒蠍>

[PK,RAID皆可使用]

3,多重射擊

/script UseInventoryItem(13);

/script if (UnitIsPlayer("target")) then CastSpellByName("多重射擊()") else CastSpellByName("多重射擊(等級 1)");end;

<目標為人型時,用最高級多重,並開第壹個飾品,否則使用1級多重>

[RAID可使用,省藍專用。PK不需要]

4,瞄準宏:

/script UseInventoryItem(13);

/script SpellStopCasting();

/施放 急速射擊

/script SpellStopCasting();

/施放 瞄準射擊()

急速射擊的同時開第壹個飾品,不想開飾品的話把/script UseInventoryItem(13);去掉就行了

[PK,RAID皆實用]

5,標記照明宏:

/script if(UnitIsEnemy("player","target"))then CastSpellByName("獵人印記") else CastSpellByName("照明彈");end;

<當目標為敵對時,使用標記。否則(包括無目標/友好目標)使用照明彈>這個宏有個問題,就是對於不主動攻擊的怪物標記不了,希望有達人能夠修改壹下

[PK推薦使用]

6,守護切換:

/script for i=1,16,1 do if (UnitBuff("player",i)~=nil) then if (string.find(UnitBuff("player",i),"Raven")~=nil) then CastSpellByName("獵豹守護");break;end end if(i==16) then CastSpellByName("雄鷹守護()");end end

<第壹下是鷹守,第2下是豹守,然後循環~>

7,靈猴威懾宏

/script for i=1,16,1 do if (UnitBuff("player",i)~=nil) then if (string.find(UnitBuff("player",i),"Mon")~=nil) then CastSpellByName("威懾");break;end end if(i==16) then CastSpellByName("靈猴守護");end end

<自己沒靈猴時先開靈猴,有靈猴時開威懾~>

[PK,RAID皆實用。RAID時可以救命的,PK時結合第1個近砍宏壹起用]

8,假死陷阱宏

/script ClearTarget()

/script CastPetAction(10) if(UnitAffectingCombat("player")==1) then CastSpellByName("假死") else CastSpellByName("冰凍陷阱") end

/script TargetLastEnemy()

戰鬥狀態中按壹下是假死,在按壹下就放陷阱了,不過當然得速度快點,如果是戰鬥狀態外的話,按他就是放冰凍陷阱

9驅散射擊

/施放 驅散射擊

/script CastPetAction(10)

這個的意思是驅散射擊的同時,讓寵物跟隨,雖然現在寵物被動狀態下的話不會打,但是難保有的時候妳在打怪把寵物設成了防禦狀態等特殊情況,所以還是比較有用的

另1:將“TAB”的最遠距離改為50碼 (最大是50)

/console SET targetNearestDistance "50"

另2:用TAB選擇身後的目標最遠設為50碼 (默認是10碼)

/console SET targetNearestDistanceRadius "50"

能修改TAB距離 感覺還不錯 只需要運行1次

有了他點亂蹦的侏儒小FS 輕松好多~~

/script CastPetAction(1) 這個是寵物攻擊的命令

/script CastPetAction(10) 這個則是寵物跟隨的命令

上邊2個妳可以自己加在其他宏裏邊壹起使用

裏邊的東西都是從各個地方搜集來的。

  • 上一篇:C++模板類和類模板
  • 下一篇:地球自身的引力是怎麽產生的?
  • copyright 2024編程學習大全網