I want to do something like that
I see big bad orc.
and have table like this:
OrcGuild = {
{describe1 = "big bad orc", describe2 = "pink bad orc", describe3 = "yellow bad orc", name1 = "Brain", name2 = "Brain", name3 = "Brain"},
{describe1 = "small bad orc", describe2 = "green bad orc", describe3 = "red bad orc", name1 = "Pinky", name2 = "Pinky", name3 = "Pinky"},
}
so if i meet "big bad orc" from descibe1 i want to automatly bind F1 to describe2 "kill pink bad ork"
edit: Also i can meet Brain from name1 then i want to "kill brain" from name2
How to do it?
Tables and Autoatack
-
- Posts: 97
- Joined: Wed Jul 25, 2012 12:35 pm
Tables and Autoatack
English is not my native language. If you don't understand what im writing ask.
Ubuntu 17.04, Mudlet 3.1
Ubuntu 17.04, Mudlet 3.1
-
- Posts: 97
- Joined: Wed Jul 25, 2012 12:35 pm
Re: Tables and Autoatack
Help please!
If something is incomprehensible i can explain.
In return. Music from youtube.
If something is incomprehensible i can explain.
In return. Music from youtube.
English is not my native language. If you don't understand what im writing ask.
Ubuntu 17.04, Mudlet 3.1
Ubuntu 17.04, Mudlet 3.1
-
- Posts: 97
- Joined: Wed Jul 25, 2012 12:35 pm
Re: Tables and Autoatack
English is not my native language. If you don't understand what im writing ask.
Ubuntu 17.04, Mudlet 3.1
Ubuntu 17.04, Mudlet 3.1
Re: Tables and Autoatack
Who could resist Puss in Boots? Anyway, what kept me from helping you with this is the fact you aren't very clear on what you want.
What do you mean by 'meet big bad orc'? What are you triggering off of?
My advice: set a variable for the F1 macro and when you meet 'big bad orc', just set the variable to 'pink bad orc'.
Then in your macro: send("kill " .. f1)
What do you mean by 'meet big bad orc'? What are you triggering off of?
My advice: set a variable for the F1 macro and when you meet 'big bad orc', just set the variable to 'pink bad orc'.
Then in your macro: send("kill " .. f1)
-
- Posts: 97
- Joined: Wed Jul 25, 2012 12:35 pm
Re: Tables and Autoatack
I can do it by triggers like:
Pattern: (big bad orc|Pinky)
desc1 = "pink bad orc"
desc2 = "yellow bad orc"
nam1 = "Brain"
nam2 = "Brainer"
and f2 -> send("kill " .. desc1 ,false)
and f3 -> send("kill " .. desc2 ,false)
but i want to do that in table because is to many orcs in orc guild to be efective that way.
I have trigger like that:
=================================================================
So i want change table to something like this:
And find "describe1" OR "name1". Because i don't know all names of my enemies
than if i see describe1 do
bind f2 - to kill .. describe2
bind f3 - to kick .. describe3
OR IF find name1 then
bind f2 - to kill .. name2
bind f3 - to kick .. name3
I'm clear?
Pattern: (big bad orc|Pinky)
desc1 = "pink bad orc"
desc2 = "yellow bad orc"
nam1 = "Brain"
nam2 = "Brainer"
and f2 -> send("kill " .. desc1 ,false)
and f3 -> send("kill " .. desc2 ,false)
but i want to do that in table because is to many orcs in orc guild to be efective that way.
I have trigger like that:
----------------------------------------------------------------
And that gives me nothing...
=================================================================
So i want change table to something like this:
And find "describe1" OR "name1". Because i don't know all names of my enemies
than if i see describe1 do
bind f2 - to kill .. describe2
bind f3 - to kick .. describe3
OR IF find name1 then
bind f2 - to kill .. name2
bind f3 - to kick .. name3
I'm clear?
English is not my native language. If you don't understand what im writing ask.
Ubuntu 17.04, Mudlet 3.1
Ubuntu 17.04, Mudlet 3.1
Re: Tables and Autoatack
Hmm... Would this not do it for you?
-
- Posts: 97
- Joined: Wed Jul 25, 2012 12:35 pm
Re: Tables and Autoatack
It works after few modifications!!! B_I_G T_H_A_N_K_S
In return:
https://www.youtube.com/watch?v=FHCYHldJi_g
In return:
https://www.youtube.com/watch?v=FHCYHldJi_g
English is not my native language. If you don't understand what im writing ask.
Ubuntu 17.04, Mudlet 3.1
Ubuntu 17.04, Mudlet 3.1