View Full Version : Addon in progress
blackfang
04-27-2011, 06:37 AM
I am working on an addon and I am curiouse if its possible to check the spellbook if a spell exists or not in the spellbook?
if the epic spell isin spellbook
then if its not, check if the one below is in spellbook.
Ex.
if enigmatic veil isin spellbook then cast
if not, if supreme fade isin spellbook then cast
if not, if superior fade isin spellbook then cast
and so on.
I have managed to make a buffup addon for mentalists, but it only works when you have all epic/cc spells. Would be nice to be able to combine so it checks if another spell is available in spellbook if the better one isnt.
yneos
04-27-2011, 09:01 AM
i do not believe there is a way to check if a spell is in a spell book. the easiest way would to be just have people personalize it for them self.
if checkSelfEffect("what the icon says") = false then
cast("what buff you want")
else
status ("Buff is on you nub")
endif
blackfang
04-27-2011, 01:26 PM
Okay.
Would be alot easier if there was a way to check if you had like "Lesser Fade" or "Superior Fade". So that, if you have "superior" it doesnt cast the "lesser" one. But I guess I have to try and see what fits.
Maybe it works if you do like
cast("Clairvoyance")
cast("Supreme Fade")
cast("Superior Fade")
cast("Lesser Fade")
?
I have lvl 50 account so I doubt I will be able to make it work.. lol
blackfang
04-27-2011, 02:00 PM
addChatCommand("buff");
function chatcmd_buff(text)
-- MENTAL
if text == "blue" or text == "mental" then
cast("Enigmatic Veil")
cast("Supreme Fade")
cast("Superior Fade")
cast("Fade")
cast("Lesser Fade")
cast("Initate Fade")
schedule("cast", 1500, "Consort of Clairvoyance")
schedule("cast", 1500, "Clairvoyance")
schedule("cast", 1500, "Supreme Mind Expansion")
schedule("cast", 1500, "Superior Mind Expansion")
schedule("cast", 1500, "Mind Expansion")
schedule("cast", 1500, "Lesser Mind Expansion")
schedule("cast", 1500, "Initate Mind Expansion")
schedule("cast", 8000, "Consort of Celerity")
schedule("cast", 8000, "Celerity")
schedule("cast", 8000, "Supreme Haste")
-- NATURE
elseif text == "green" then
cast("Morgandy's skin")
schedule("cast", 2000, "Replenishing Boon")
schedule("cast", 4500, "Spirit of the Cheetah")
schedule("cast", 4500, "Spirit of the fox")
-- FIRE
elseif text == "red" then
cast("Force of Flames")
schedule("cast", 5500, "Hell shield")
-- LIGHT
elseif text == "white" then
cast("Force of Light")
else
cast(text)
end
end
It SEEMS to work, but I have not tested on someone who is low lvl and who doesnt have only like "Lesser Fade"
yneos
04-27-2011, 07:14 PM
it could work. i personally hate the schedule crap in this game how 1500 and another line of 1500 and a 3rd line of 1500 is still 1500, not to mention the lag. but i guess your way could work, because than lesser spells dont over ride higher spells. but for the force of flames one you should defiantly do my idea, no point on doing it if you dont have to xD.
doom_machine7
04-27-2011, 10:41 PM
Use your spell book and put it on your bar when you scribe it. Don't be a lazy ****.
blackfang
04-28-2011, 02:10 PM
Is there a function like cast() to click on surton items you have?
Like, Town Portal (Helmstead) ??
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.