PDA

View Full Version : Perfect Paladin Script *ot*



Terrorism
02-22-2016, 04:48 PM
except I want it to run off me saying "Exeta Res" so if I say "Exeta Res" it tries to use "Exori Fura" if thats in cool down it will automatically try "Exori Gran Con" if that is in cool down it will try "Exori Snare" but as soon as "Exori Fura" or "Exori Gran Con" are no longer in cool down it uses them instead of "Exori Snare"

The Basic Idea is I want to be able to put "exeta res" on f3 and use that to cycle through my skills... Thank you hopefully we can figure this out <3 Nemo

Heres a Kind of elfbot/windbot type format if $attacked.id ~= 0 then if cooldown('exori gran con') == 0 then cast('exori gran con') elseif cooldown('exori fura') == 0 then cast('exori fura') end end if $attacked.id ~= 0 then useoncreature(itemid('3186'), $target) end

But I want it to run off me typing "Exeta Res" and should cycle the 3 spells in this order "Exori Fura" "Exori Gran Con" "Exori Snare"

MrTrala
02-22-2016, 09:56 PM
Archlight online right?

You can't do it far as I know. You can do it with "words" tho. Ex; leader says "startc" then start to cycle the combo.

The reason that you can't do it the way you want is because in Archlight the spells are in "orange" and you can't read them with speechproxy (i'm not 100% sure, correct me if I'm wrong) and is 10.77 so there's not "hotkey" function, hum, you proly can take that function from the new .lua file tho.

Elvang
02-22-2016, 10:10 PM
lmao.. botting on Nicks server when he already makes it so easy for you..

Fatality
02-23-2016, 11:56 PM
except I want it to run off me saying "Exeta Res" so if I say "Exeta Res" it tries to use "Exori Fura" if thats in cool down it will automatically try "Exori Gran Con" if that is in cool down it will try "Exori Snare" but as soon as "Exori Fura" or "Exori Gran Con" are no longer in cool down it uses them instead of "Exori Snare"

The Basic Idea is I want to be able to put "exeta res" on f3 and use that to cycle through my skills... Thank you hopefully we can figure this out <3 Nemo

Heres a Kind of elfbot/windbot type format if $attacked.id ~= 0 then if cooldown('exori gran con') == 0 then cast('exori gran con') elseif cooldown('exori fura') == 0 then cast('exori fura') end end if $attacked.id ~= 0 then useoncreature(itemid('3186'), $target) end

But I want it to run off me typing "Exeta Res" and should cycle the 3 spells in this order "Exori Fura" "Exori Gran Con" "Exori Snare"

I can do this. I just need some information, PM me on the forums with your skype name

Jontor
02-24-2016, 07:39 AM
Terrorism
Your explanation was really bad, but this is what I made


local spells = {"exori fura", "exori gran con", "exori snare"}

GenericTextMessageProxy.OnReceive("combo", function(proxy, message)
if (string.find(string.lower(message), "exeta res") and getSelfTargetID() > 0) then
for i = 1, #spells do
while (getSelfSpellCooldown(spells[i]) == 0) then
Self.Say(spells[i])
end
end
end
end)


No idea if it will catch 'orange' spell messages tho, might need use the EffectMessageProxy for it

Terrorism
02-24-2016, 03:37 PM
Thank you guys, but I figured it out xD


local SpeLL = "Your vocation cannot use this spell."
local RuneID = 3155 -- your sd rune id

ErrorMessageProxy.OnReceive("My Proxys Name", function(proxy, message)
if message == SpeLL then
if Self.CanCastSpell("exori gran con") == true then
Self.Say("exori gran con")
elseif Self.CanCastSpell("exori fura") == true then
Self.Say("exori fura")
end
Self.UseItemWithTarget(RuneID)
end
end)

Jontor
02-24-2016, 03:59 PM
Thank you guys, but I figured it out xD

Damn, I didn't notice there was only one char needed :facepalm: