引用 | 編輯
segeyi
2006-06-12 02:24 |
樓主
|
||
x0
=============================================================顯示自己目前血量法力%的巨集 /script TargetUnit("player"); th=UnitHealth("Target")/UnitHealthMax("Target")*100; tm=UnitMana("Target")/UnitManaMax("Target")*100; SendChatMessage(format("救命啊...我被怪打,我的血量只剩:%d%% 我的法力只剩:%d%% 危險~危險!!", th, tm), "yell"); ============================================================= 自我繃帶 /*使用快捷列第22個、當目標是空或是敵人選擇自己//*自動標示下一個目標*/ /script UseAction(22);if(SpellIsTargeting()) then SpellTargetUnit("Player");end;TargetLastEnemy(); ============================================================= 解除詛咒 /*若是選到敵人,則選回自己*/ /script if(UnitExists("target") and UnitInParty("target")) then SendChatMessage("【%T】別怕..我幫你解咒囉...","SAY");SpellStopCasting();CastSpellByName("解除次級詛咒");TargetLastEnemy();end; ============================================================= 喝水吃麵包 /*判斷血與魔少 90% 的時候喝水或是回魔,要是沒有麵包或是晶水,則自動製作*/ /e 刈包、豆漿 元氣! /script gc=GetActionCount;c=CastSpellByName;u=UseAction;p="player";if(gc(23)==0)then c("造食術");end;if(gc(24)==0)then c("造水術");end;if((UnitHealth(p)/UnitHealthMax(p)*100)<90)then u(23);end;if((UnitMana(p)/UnitManaMax(p)*100)<90)then u(24);end; ============================================================= 法師變形術 /*當對象是敵對的時候,變羊並說出怪物的等級名字*/ /script t="target";if (UnitExists(t) and UnitIsEnemy("player",t)) then SendChatMessage(" 把﹝" .. UnitLevel(t) .. "級﹞的【%T】變羊!","SAY");SpellStopCasting();CastSpellByName("變形術");TargetLastEnemy();end; ============================================================= 魔法反制巨集 /*當對象是敵對的時候,取消你正在施放的魔法,立即使用魔法反制並說出怪物的等級名字*/ /script t="target";if (UnitExists(t) and UnitIsEnemy("player",t)) then SendChatMessage("把﹝" .. UnitLevel(t) .. "級﹞的【%T】法術反制,引牠回來囉","SAY");SpellStopCasting();CastSpellByName("法術反制");end; ============================================================= 魔暴術 /*魔暴很花魔又容易死所以我另外加了一個可以回魔回血的判斷*/ /施放 魔爆術 /SCRIPT if(UnitMana("player")<=390) then if not(IsUsableAction(21)==0) then UseAction(21);else UseAction(20);end;end; /SCRIPT if(UnitHealth("player")<=1000) then if not(IsUsableAction(19)==0) then UseAction(19);else UseAction(18);end;end; ============================================================= 關於 UseAction(XX); 使用第幾欄位的物品 ( 快速鍵上的欄位喔 ) 我的放置物品 ( 配合目前巨集 ) 18 極效治療石 ( 1200 ) 19 極效治療石 ( 1440 ) 20 法力寶石 ( 次級 ) 21 法力寶石 ( 最高級 ) 22 繃帶 23 麵包 24 魔晶水 第一列 快速鍵 1~12 第二列 快速鍵 13~24 ........ 依此列推 聲明:此文章為作者 segeyi 創作,並分享於數位男女論壇;如需轉載請加註此聲明 x1
|