Originally Posted by
Iwouldli****knowhowtocode
Hello everyone!
Great tool, worthy successor of PE.
Here is my problem: how can I use an option from a dropdown type of the GUI as condiction?
The codes in specific:
GUI
Code:
{
type = "dropdown",
text = "Main Defense",
key = "shield",
list = {
{
text = "Ironfur",
key = "ironfur",
},
{
text = "Mark of Ursol",
key = "markofursol",
},
},
default = "ironfur",
desc = "Used ASAP"
},
And the code in the rotation
Code:
{"Ironfur", (function() return UI(shield) == "ironfur" end), "player"},
tried also:
Code:
{"Ironfur", "UI(shield) == ironfur", "player"},
It's not casting Ironfur.
Help please, thk.
Have u tried something like this?
Code:
{
type = "dropdown",
text = "Main Defense",
key = "shield",
list = {
{
text = "Ironfur",
key = 1,
},
{
text = "Mark of Ursol",
key = 2,
},
},
default = 1,
desc = "Used ASAP"
}
{"Ironfur", "UI(shield)=1"},
{"Mark of Ursol", "UI(shield)=2 & player.buff(Mark of Ursol).duration < 1"},