QUOTE(SourBoutLife @ Aug 22 2014, 18:47)

[Shield-19]
Exquisite Force Shield of Wardingcod me this one please
QUOTE(Veince @ Aug 24 2014, 22:55)

WTB
rapier15
shade61
shade19
shade34
COD please!
Sent,thanks (IMG:[
invalid]
style_emoticons/default/smile.gif)
QUOTE(Veince @ Aug 23 2014, 03:05)

My current profile is
Num : Health Gem;Mana Gem;Spirit Gem; Fimbulvetr; Blizzard; Freeze
Click : Weaken
mClick : Cure; Full-Cure; Defend
rClick : Imperil
Hover : $HP>45;$MP>15;Health Gem;Mana Gem;Spirit Gem; Fimbulvetr; Blizzard; Freeze
1. Shift also disable rClick.While holding shift, rClick will give me a dropdown menu list instead of using Imperil. This seem to happen 10 out of 10 time.
2. Hover spell spam reactivate after mClick, lClick spell spam.I think I might have found the cause of this.
This seem to be the cause since it doesn't happen anymore after I remove that line.
I found out that while adding
CODE
e.stopPropagation();
allow me to stop numkey spell spam when condition failed, a couple bugs occur.
Another bug I found when adding that line is that I can't use F1-F12 for hotkey potions anymore.
This happen only for
CODE
e.stopPropagation();
if (spell && number >= 0 && number < 10) {
CODE
if (profile.mode.click && e.button === 0 && !e.altKey && !e.ctrlKey && isEnabled) {
e.stopPropagation();
Currently I'm working around the shift key by having another profile with the same spell but disable hover so it's not a big deal (IMG:[
invalid]
style_emoticons/default/smile.gif)
BTW I did test the first bug with a new clean script straight from download without editting anything, in case that confuse you.
1. Cannot reproduce the 1st one. Though, just to make sure, is Imperil on cooldown by any chance, cos that's also condition fail, and the script will not stop the default behavior (context menu). If that's not the case, can you open CTRL+SHIFT+J and copy out the content of the new Window so I can debug?
2. If condition fails, the script will resume the default behavior (normal attack). That's kinda intentional, though it's bad design, I guess (IMG:[
invalid]
style_emoticons/default/heh.gif)
I will address the F1-F12 below
QUOTE(Colman @ Aug 25 2014, 03:32)

This work well , thank (IMG:[
invalid]
style_emoticons/default/smile.gif)
The only problem is that it also disable the F1-F12 key for pots completely.
Another issue,
my setting=
CODE
mode: {num: true, click: true, mclick: false, rclick: true, hover: false},
spell: {num: "$HP>49; Health Gem; Mana Gem; Spirit Gem; Mystic Gem; Paradise; Banishment; Smite", click: "Imperil", mclick: "Cure", rclick: "Heroic Mana Potion", hover: ""}
It never use
Health Gem.
Well the correct fix should be
CODE
if (number >= 0 && number < 10) {
e.stopPropagation();
if (spell){
//code here
}
}
You make an exra block of code so you need to have that closing }. It's kinda confusing
Alternatively you can do something like this
CODE
if (number >= 0 && number < 10&& !e.stopPropagation() && spell){
But that's kinda hack-ish since I'm assuming the browser implementation of stopPropagation to not return anything. And good coding practice (and IRL) dictates to never assume anything. (IMG:[
invalid]
style_emoticons/default/wink.gif)
Yeha the second bug is because my regexp overlooks trailing white space.
I will fix that and implement that 2 stopPropagation fix in 1-2 days, when I get away from Skyrim (IMG:[
invalid]
style_emoticons/default/tongue.gif) For now, deleting the white space before Health Gem like Veince suggested or replace this
CODE
var checkedName = name.replace(/\s*([^,;]*\$[^,;]+)\s*[,;]*/g, function(match, cond) {
with
CODE
var checkedName = name.replace(/\s*([^,;]*\$[^,;]+)\s*[,;]*\s*/g, function(match, cond) {
3 characters (IMG:[
invalid]
style_emoticons/default/heh.gif)
This post has been edited by holy_demon: Aug 25 2014, 10:58