Register for your free account! | Forgot your password?

You last visited: Today at 01:38

  • Please register to post and access all features, it's quick, easy and FREE!

 

If then in mAcro

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2005
Posts: 40
Received Thanks: 0
Hallo,
ich versuche ein Heilmakro zu schreiben, das entscheidet welcher Rang genommen werden muss. irgendwie funzt das aber net. Kann mir einer helfen. das habe ich im moment.

/target NAME
/script local s,t="Healing Touch(Rank 3)",UnitHealthMax(NAME)-UnitHealth(NAME) if (t>=800) then s="Healing Touch(Rank 6)" elseif (t>=400) then s="Healing Touch(Rank 4)" end CastSpellByName(s);

Habe addon damit ich bis zu 1000 Zeichen verwenden kann.



gecko67 is offline  
Old   #2
 
elite*gold: 0
Join Date: Nov 2004
Posts: 811
Received Thanks: 26
du willst, dass es den rang vom skill dem level vom ziel anpasst?

wenn ja, teste mal das hier.. habs grad in einem forum gefunden. sollte gehen, wenn ich da nichts verwechselt hab.

/script pr="Healing Touch(Rang " if (UnitLevel("target") ~= nil and UnitIsFriend("player","target"))then for i=60,X,-X do if (UnitLevel("target") >= (i-10) and UnitLevel("player") >= i) then CastSpellByName(pr..(i/6)..")") break end end end

für X solltest du den wert einsetzen, in welchen level schritten von 60 runter gezählt werden soll.


over is offline  
Old   #3
 
elite*gold: 0
Join Date: May 2005
Posts: 40
Received Thanks: 0
Nein sorry, ich versuche die Differenz zwischen HealthMax und Health auszurechnen und danach den Rang zu bestimmen.

Aber wenn da steht "player" und "target", muss ich da meinen namen hineinschreiben oder sind das Variablen?

danke
gecko67 is offline  
Old   #4
 
elite*gold: 0
Join Date: Mar 2005
Posts: 460
Received Thanks: 1
"player" und "target" sollten variablen sein


rocstar is offline  
Old   #5
 
elite*gold: 0
Join Date: Nov 2004
Posts: 811
Received Thanks: 26
schonmal damit probiert?

/script local t=UnitHealthMax("target")-UnitHealth("target");
/script if (t>=400) then CastSpellByName ("Healing Touch(Rank 4)")
elseif (t>=800) then CastSpellByName ("Healing Touch(Rank 6)");
end;

müsstest natürlich die (liste) komplett machen und das ganze etwas ändern, da ich sicher etwas falsch gemacht hab, aber vielleicht klappt es ja.

falls du die deutsche version verwendest musst du sowieso die spellnamen ändern sowie Rank in Rang ändern.


over is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
[Release]Macro Files for Macro Manager (AKA BOT)
@all FYI its not a cheat its just a macro file that enables you to run dungeon so you can do other choirs like mussicca said...!! Contents ...
16 Replies - Grand Chase Hacks, Bots, Cheats & Exploits
[Macro] Making an assist Macro
This will tell you how to make an assist macro in the Warhammer Online game. This is a very useful macro that can be used in very busy surroundings...
1 Replies - General Gaming Releases
Macro Express (Help with Macro at Basilisk)
O.K guys, so i have made a few macro's using macro express before. Now that my archer is level 128, i started making waters to plvl at basilisk....
4 Replies - CO2 Main - Discussions / Questions
Macro Express re-log macro help
I use Co Partner but the re-log in feature in copartner SUCKS, as some of you know. So i use macro express... what my macro does is closes the...
3 Replies - CO2 Main - Discussions / Questions



All times are GMT +1. The time now is 01:38.


Powered by vBulletin®
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy
Copyright ©2016 elitepvpers All Rights Reserved.