I'm trying to write an alias set for combat so I can cycle through frenzy or claw and be able to pull my whispers off a list/table so that I can hit the alias and cycle my whispers without having to have 50 aliases for combat.
Done a number of things and only been able to get the primary attack to fire, so I ripped it all out and am starting fresh. Any assistance would be greatly appreciated.
0
Comments
the way she tells me I'm hers and she is mine
open hand or closed fist would be fine
blood as rare and sweet as cherry wine
I'm attempting to make an alias that will look, similar to this, but work.
local nextWhisper = getNextPriority("whisper", 2)
send("claw " ..target)
send("dwhisper " "..whisper[1].." " ..whisper[2].. " ..target)
send("qe contemplate " ..target)
Claw works, contemplate won't fire and I can't get the whispers to work properly.
send("claw " ..target)
send("dwhisper " "..nextWhisper[1].." " ..nextWhisper[2].. " ..target)
send("qe contemplate " ..target)
nextWhisper is the array you made, not whisper. Because of that, contemplate won't fire - mudlet scripts freak out when you try to use a non-existing value.
Lua syntax error:[string "function alias568()..."]:4 ')' expected near '"..nextWhisper[1].."'
local nextWhisper = getNextPriority("whisper", 2)
send("claw " ..target)
send("dwhisper " "..nextWhisper[1].." "..nextWhisper[2].." ..target)
send("qe contemplate " ..target)
also, table is
pvp.priority.whisper.fallback = "normal"
pvp.priority.whisper.normal = {
"Seduction",
"Temptation",
"Impatience",
"Confusion",
"Epilepsy",
"Loneliness",
"Recklessness",
"Stupidity",
"Masochism",
"Dementia",
"Peace",
}
Edit:
Got it to claw but still not getting whispers or contemplate to fire.
send("claw " ..target)
send("dwhisper " "..nextWhisper[1].." "..nextWhisper[2].." "..target)
send("qe contemplate " ..target)
You missed a " on the second to last line - I missed it too the first time over. That's where that error was coming from. Not sure what you're at now/what you've done.
local nextWhisper = getNextPriority("whisper", 2)
send("claw " ..target)
send("dwhisper " "..nextWhisper[1].." "..nextWhisper[2].." "..target)
send("qe contemplate " ..target)
table
pvp.priority.whisper = pvp.priority.whisper or {}
pvp.priority.whisper.fallback = "normal"
pvp.priority.whisper.normal = {
"Seduction",
"Temptation",
"Impatience",
"Confusion",
"Epilepsy",
"Loneliness",
"Recklessness",
"Stupidity",
"Masochism",
"Dementia",
"Peace",
}
should be
send("dwhisper "..nextWhisper[1].." "..nextWhisper[2].." "..target)
If you get that error or one like it again, check your quotation marks first, then make sure variables exist.
If I want to set up a list for venoms and have an active one would I have to rename the whisper list to match or should it use that primary list as a fall back since I have no others?
You have:
pvp.priority.whisper = pvp.priority.whisper or {}
pvp.priority.whisper.fallback = "normal"
pvp.priority.whisper.normal = {
"Seduction",
"Temptation",
"Impatience",
"Confusion",
"Epilepsy",
"Loneliness",
"Recklessness",
"Stupidity",
"Masochism",
"Dementia",
"Peace",
}
So make:
pvp.priority.venom = pvp.priority.venom or {}
pvp.priority.venom.fallback = "normal"
pvp.priority.venom.normal = {
"your",
"venoms",
"here",
}
So long as you make a matching pair for each mode, you'll be fine.
local nextVenom = getNextPriority("venom",1)
local nextWhisper = getNextPriority("whisper", 2)
send("slash " ..target " with " ..nextVenom[1])
send("dwhisper " ..nextWhisper[1].." "..nextWhisper[2].." "..target)
send("qe contemplate " ..target)
but otherwise, yeah, looks fine.