Yo i wonder if its possible lets say i want this to press f5 if hppc = 60 and press f6 if hppc 80 and if hppc 40 press f4
possible ?
Printable View
Yo i wonder if its possible lets say i want this to press f5 if hppc = 60 and press f6 if hppc 80 and if hppc 40 press f4
possible ?
@terje
If Hppc what? I'm guessing its for some healer but... Yeah this is possible using WB Hotkeys.
yes its for some healer, but if HP goes below like 60% press f5, etrc etc etc
Not CAST exura gran, but press that hotkey
wb hotkeys????
Code:auto(10)
if $hppc < 70 then
wait(10,30)
keyevent('F5')
elseif $hppc > 90 then
wait(10,30)
keyevent('F4')
end
Like this, But when pressing F4, it shouldnt spam f4. it shouldnt spam at all thies hotkeys, only press once IF the hppc is under, or over, but it keeps spamming. suggestions?
bump!
F5 = energy ring with equip, and F4 = might ring i tried to make a energy ring script like this, but it keeps spamming the F4 the might ring like crazy
@terje
Oh yes that's fully possible. I understand now. I can make you something like this, that isn't hard. Let me finish what I was doing first though.
@terje
This should work.... Although a bit unsure if itemid("might ring") returns the same id as an equipped might ring. Same with energy ring.
init start
local Keys = {
Key1 = "F1",
Key1minHP = 1, -- In percentages.
Key1maxHP = 89,
Key1equip = "might ring", -- Item
Key2 = "F2",
Key2minHP = 90,
Key2maxHP = 99,
Key2equip = "energy ring"
}
init end
auto(400)
if ($hppc >= Keys.Key1minHP) and ($hppc <= Keys.Key1maxHP) and ($finger.id ~= itemid(Keys.Key1equip)) then
keyevent(Keys.Key1)
end
if ($hppc >= Keys.Key2minHP) and ($hppc <= Keys.Key2maxHP) and ($finger.id ~= itemid(Keys.Key2equip)) then
keyevent(Keys.Key2)
end
@Riku
it puts on the energy ring, but it doesnt switch to might ring if above up
cuz i want it to for example
If HP% under 60 ENERGY RING instantly, ( press key F5 )
and HP% over 90% put Might ring ( INSTANTLY with hotkeys press F4. )
:O
@Raphael @Riku @Lucas Terra @Leonardo @Garkstal
We need Backup ! whats your toughts about this, you are probleby the best scripters here on forums =)
@terje
Just switch the two items.
gonna test, nah just figure out if maybe they know and can help im gonna test now
@Riku it takes on the energy ring, but above the HP to equip might ring again it doesnt switch off the energy ring again it just keeps the energy ring on
PHP Code:
init start
local Keys = {
Key1 = "F1",
Key1minHP = 1, -- In percentages.
Key1maxHP = 60,
Key1equip = "energy ring", -- Item
Key2 = "F2",
Key2minHP = 61,
Key2maxHP = 100,
Key2equip = "might ring"
}
init end
auto(400)
if ($hppc >= Keys.Key1minHP) and ($hppc <= Keys.Key1maxHP) and ($finger.id ~= itemid(Keys.Key1equip)) then
keyevent(Keys.Key1)
end
if ($hppc >= Keys.Key2minHP) and ($hppc <= Keys.Key2maxHP) and ($finger.id ~= itemid(Keys.Key2equip)) then
keyevent(Keys.Key2)
end
switched from 99 to 100, at the equip might ring ~~
but when i switvched it to 100, the character laggs, and is hard to move, cuz it tries to move the energy ring and it presses f2 all the time :O
maybe there is a way to make it press like only once, or press until the might ring is actually at PLACE ?
@terje
Oh well that's not what you asked me to put in (atleast not what I understood).. Here you go.
@RikuPHP Code:
error in Hotkey script energyring scruipt:
["if (Keys.Key1equip:lower() == "e..."]:energyring scruipt:17 attempt to index field 'Key1equip' (a number value)
That's what it does though, and hence why I put the Max HP% to 99. You could put it to 100. But this one should ONLY "spam" it every 0.4 seconds if the ring is not in your finger slot.
EDIT: Can you print the ring ID of Might Ring in use? Is it the same? Put in a persistent and enable, and press CTRL + E with WindBot open.
auto(1000)
print($finger.id)
Yeah, noticed it just spammed when it was at 100, but when its on 99 it didnt switch back but i dont know now tho,
Still getting error when i tries it now :O
@terje
Until you find out what ID the might ring is equipped use this... If it doesn't work i'm done.
yes its the same ID 3048 ur last post ^ works it puts energy ring once its under 60% EZ
The only thing is to make it pull up a Might ring if its above 90%, or something, and switches once below 60% again, etc etc
and pulls the might ring back on only once, ofc
sry if im unclear, i got big time problems explaining myself hehe and sry for being a noob -.- xd
EDIT;
THIS one i havent get the chance to try yet, as it comes with a error when i trys to run it, prolly maybe a miss spell i cant see :O? or ?PHP Code:
-- 3088 equipped E-ring
-- 3051 unequipped E-ring
init start
local Keys = {
Key1 = "F5",
Key1minHP = 1, -- In percentages.
Key1maxHP = 60,
Key1equip = "energy ring", -- Item name
Key2 = "F4",
Key2minHP = 61,
Key2maxHP = 99,
Key2equip = "might ring"
}
init end
auto(400)
if (Keys.Key1equip:lower() == "energy ring") then
Keys.Key1equip = 3088
end
if ($hppc >= Keys.Key1minHP) and ($hppc <= Keys.Key1maxHP) and ($finger.id ~= itemid(Keys.Key1equip)) then
keyevent(Keys.Key1)
elseif ($hppc > Keys.Key1maxHP) and ($finger.id == itemid(Keys.Key1equip)) then
keyevent(Keys.Key1)
end
if ($hppc >= Keys.Key2minHP) and ($hppc <= Keys.Key2maxHP) and ($finger.id ~= itemid(Keys.Key2equip)) then
keyevent(Keys.Key2)
elseif ($hppc > Keys.Key2maxHP) and ($finger.id == itemid(Keys.Key2equip)) then
keyevent(Keys.Key2)
end
Error message :
PHP Code:
error in Hotkey script energyring scruipt:
["if (Keys.Key1equip:lower() == "e..."]:energyring scruipt:17 attempt to index field 'Key1equip' (a number value)
@terje
Ok.. this should work...
init start
local Keys = {
Key1 = "F1",
Key1minHP = 1, -- In percentages.
Key1maxHP = 60,
Key1equip = 3088, -- ITEM ID: 3088 equipped E-ring
Key2 = "F2",
Key2minHP = 61,
Key2maxHP = 99,
Key2equip = 3048 -- ITEM ID: 3048 Might ring (Same unequipped as equipped)
}
init end
auto(400)
if ($hppc >= Keys.Key1minHP) and ($hppc <= Keys.Key1maxHP) and ($finger.id ~= Keys.Key1equip) then
keyevent(Keys.Key1)
elseif ($hppc > Keys.Key1maxHP) and ($finger.id == Keys.Key1equip) then
keyevent(Keys.Key1)
end
if ($hppc >= Keys.Key2minHP) and ($hppc <= Keys.Key2maxHP) and ($finger.id ~= Keys.Key2equip) then
keyevent(Keys.Key2)
elseif ($hppc > Keys.Key2maxHP) and ($finger.id == Keys.Key2equip) then
keyevent(Keys.Key2)
end
WORKS! ++++++++++++++REP!
Hah u should see my .text documents i've been copy pasting to try make this work roflmao
nice work man! +++ rep @Riku
@Riku Yeah I believe you're right, worn ring ID's are different than normal ring ID's.