how to consider a mob?

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

nolife
decaying skeleton
decaying skeleton
Posts: 9
Joined: Tue Apr 13, 2004 2:49 pm

how to consider a mob?

Post by nolife » Tue Apr 13, 2004 2:58 pm

ok .. my macro is very simple atm

mainchar = magician
Bot = enchanter

enchanter = puller/aggrocontrol


my biggest problem atm is how to consider the mob? .. i tried with level of the mob .. but that doesnt work

Code: Select all

       /if (n $target(level)>X && n $target(level)<Y {
            /if $char(mana,cur)>MINMANA {
                /keypress hot3 
            }
       }
ok so i thing mob dont have a real level because i tried with my lowleveltestchar .. a mob blue to level 5 was level 1

but i want my chanter to pull the mob only if he is blue or yellow ..

any ideas?

.. i tried the enchanter only as support for my magician, but he is a better puller because his pet can fight when he gets hit .. and then normaly i start nuking and fighting with the magician pets (i do this atm on a secound computer -- hehe but its hard to smoke and control 2 computers)

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Tue Apr 13, 2004 3:24 pm

I'll add con color to MQ2Data, but you wont be able to do it right in the old system since we're not actively updating it.
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

nolife
decaying skeleton
decaying skeleton
Posts: 9
Joined: Tue Apr 13, 2004 2:49 pm

Great!!

Post by nolife » Wed Apr 14, 2004 3:02 am

can you give me an example how i looks like then?

i am very "new" and i try using the manual on the hp :oops:

Preocts
a snow griffon
a snow griffon
Posts: 312
Joined: Thu Jan 29, 2004 1:02 pm

Post by Preocts » Wed Apr 14, 2004 5:55 am

Code: Select all

       /if (n $target(level)>[color=red]@[/color]X && n $target(level)<[color=red]@[/color]Y { 
            /if $char(mana,cur)>MINMANA { 
                /keypress hot3 
            } 
       } 
You want to only pull Blue to Yellow so it would be safe to assume any level mob 5 levels below you and 1 level above you. Druid logic there... never pull anything more than one level above you unless you know what the hell you are doing. sorry, lost my train of thought.

So, I don't see why your code won't work the way you have it. Just /varset X to be five less than your Magi's level and /varset Y to be one more than your magi's level.

Actually, by level 52 a MoB 10 levels under yours will still con blue. So you just set the range to reflect how much of a fight you want I guess.

Pardon if I completely misunderstood your question :wink:

nolife
decaying skeleton
decaying skeleton
Posts: 9
Joined: Tue Apr 13, 2004 2:49 pm

Post by nolife » Wed Apr 14, 2004 7:28 am

nah you are right

normaly it should work with my code ..

but i tested it with a level 5/6 testchar.

i told him that x = 4 and y = 7 but he didnt pull anything ..
then i told him to tell me the level of the mob .. and he told me 1 on all green and blue mobs ..

thats why i think using the color would be "safer" and i dont need to update my scripts on every levelup

Preocts
a snow griffon
a snow griffon
Posts: 312
Joined: Thu Jan 29, 2004 1:02 pm

Post by Preocts » Wed Apr 14, 2004 7:47 am

thats why i think using the color would be "safer" and i dont need to update my scripts on every levelup
Well, to each their own. Conditioning based on color con might seem 'safer' but if your syntax isn't right then both ways still won't work.

Code: Select all

/declare x local
/declare y local
/varset x $calc($char(level)-5)
/varset y $calc($char(level)+1)
and poof. No need to update it every level.

If your code was reporting ALL the mobs to be level 1 then double check the syntax you were using to find that number. I'll tell you now it is/was wrong.

btw, this is good and all but when mqData hit it won't work. So if you are just learning script code then I'd suggest learning the new system. :wink:

nolife
decaying skeleton
decaying skeleton
Posts: 9
Joined: Tue Apr 13, 2004 2:49 pm

Post by nolife » Wed Apr 14, 2004 2:04 pm

i think i couldnt do anything wrong at this point .. but i try it with the new way ...


anyone know when the "colour" system would be implemented?

Botmaker
orc pawn
orc pawn
Posts: 14
Joined: Mon Jan 26, 2004 11:46 am

Post by Botmaker » Thu Apr 15, 2004 11:56 am

actually, to take care of the first 5 levels ~

Code: Select all

/declare x local 
/declare y local 
/if n $char(level)<=5 {
    /varset x 1
} else {
    /varset x $calc($char(level)-5) 
}
/varset y $calc($char(level)+1)