lulekozoid
Junior Member
Posts: 9 Likes: 0
Currently Offline
Last Online: May 22, 2022 10:24:47 GMT
View Profile
Registered On: Feb 2, 2018 8:29:36 GMT
|
Post by lulekozoid on Dec 24, 2021 12:37:41 GMT
Hello, can the bot detect that I am missing e.g. 5% for the next level?
I would like to have a script that if 5% is missing for the next level, it uses the item X.
I would be grateful <3
|
|
firstemperor
Member
Posts: 13 Likes: 6
Currently Offline
Last Online: Mar 7, 2024 17:26:42 GMT
View Profile
Registered On: Nov 25, 2021 9:39:18 GMT
|
Post by firstemperor on Dec 28, 2021 21:00:05 GMT
Hello, can the bot detect that I am missing e.g. 5% for the next level? I would like to have a script that if 5% is missing for the next level, it uses the item X. I would be grateful <3 I don't think there is an elfbot variable for level percentage but only for skills. You could use $exptnl (exp to next level)Actionif [$exptnl <= 165187] { useitem ID } If you need less than 165.187 exp for next level, it will use X item. Edit it according to what fits better to you.
|
|
lulekozoid
Junior Member
Posts: 9 Likes: 0
Currently Offline
Last Online: May 22, 2022 10:24:47 GMT
View Profile
Registered On: Feb 2, 2018 8:29:36 GMT
|
Post by lulekozoid on Dec 29, 2021 22:18:26 GMT
i need last 5% of the next level :/
|
|
Hiresk
Senior Member
Posts: 30 Likes: 3
Currently Offline
Last Online: Jan 25, 2024 5:58:41 GMT
View Profile
Registered On: Oct 1, 2022 4:09:16 GMT
|
Post by Hiresk on Oct 1, 2022 4:52:36 GMT
mira, ahora mismo se me ocurrio una manera, quizas mañana te ayude seguramente lo unico que se necesita es saber tu xp actual (que si es posible) y tu xp maxima para el siguiente nivel (que es lo que no se si existe o no) y luego hacer una multiplicacion de xp actual y xp maxima y division (XPACTUAL*XPMAX/100) (creo que era asi, no estoy seguro) y representarlo en una variable nueva
|
|