Welcome Guest ( Log In | Register )

4 Pages V < 1 2 3 4 >  
Reply to this topicStart new topic
> HV Keybinds

 
post Nov 25 2012, 12:28
Post #41
n125



Elite Poster
*********
Group: Gold Star Club
Posts: 6,282
Joined: 23-May 08
Level 500 (Godslayer)


QUOTE(darkcuph @ Nov 25 2012, 02:06) *

Hello..

I'm trying to put Iris Strike into the script but still didn't work so far.

I am able to use Magic Missile by pressing M, but nothing happened when I cast Iris Strike (Shift + A). So far I only have these two:

Bind(KEY_M, Cast("Magic Missile"));
Bind(KEY_A, Shift, Cast("Iris Strike"));


Do you have enough Overcharge to use Iris Strike? If you don't, the script won't even select it. It also won't select it if it's cooling down.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 25 2012, 13:22
Post #42
darkcuph



Newcomer
*
Group: Recruits
Posts: 12
Joined: 18-November 12
Level 108 (Ascended)


QUOTE(n125 @ Nov 25 2012, 17:28) *

Do you have enough Overcharge to use Iris Strike? If you don't, the script won't even select it. It also won't select it if it's cooling down.


How stupid of me not paying attention into that..

Many thanks, it works now (IMG:[invalid] style_emoticons/default/biggrin.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 3 2012, 05:10
Post #43
dissu



Meh...
*****
Group: Members
Posts: 658
Joined: 21-November 09
Level 437 (Dovahkiin)


All the download links are dead. :'(
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 3 2012, 08:57
Post #44
varst



Peerless perverted long-hair-con of the Hentaiverse
***********
Group: Gold Star Club
Posts: 11,561
Joined: 30-March 10
Level 478 (Godslayer)


Thanks to the internet, here's a backup.

[docs.google.com] https://docs.google.com/open?id=0B6qhgHRgMeWVTzgwZzFrVWZtLVk
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 26 2012, 19:13
Post #45
varst



Peerless perverted long-hair-con of the Hentaiverse
***********
Group: Gold Star Club
Posts: 11,561
Joined: 30-March 10
Level 478 (Godslayer)


Adjusted the link.

[hentaiverse.forumer.com] http://hentaiverse.forumer.com/download/file.php?id=61779

This post has been edited by varst: Dec 26 2012, 19:19
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Feb 5 2013, 16:50
Post #46
aloc1234



Lurker
********
Group: Members
Posts: 2,876
Joined: 20-January 12
Level 351 (Godslayer)


QUOTE(varst @ Dec 26 2012, 19:13) *

Adjusted the link.

[hentaiverse.forumer.com] http://hentaiverse.forumer.com/download/file.php?id=61779


Thanks, I was just about to ask for a new link.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 24 2013, 16:14
Post #47
letmegitdat



Casual Poster
****
Group: Members
Posts: 279
Joined: 5-January 09
Level 347 (Godslayer)


nvm dind't see the rehost

This post has been edited by letmegitdat: Mar 24 2013, 16:15
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 31 2013, 12:46
Post #48
lolzerznijmniewdupe



Casual Poster
****
Group: Members
Posts: 278
Joined: 9-July 08
Level 223 (Godslayer)


Thank you so much for this script. It works perfectly Chrome with Tampermonkey. All three dual wielding skills work.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 31 2013, 21:28
Post #49
milkcannon



Casual Poster
***
Group: Members
Posts: 123
Joined: 5-September 12
Level 378 (Godslayer)


i think it is very useful
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 29 2013, 04:25
Post #50
wannaf



Active Poster
*******
Group: Catgirl Camarilla
Posts: 2,360
Joined: 15-December 11
Level 500 (Godslayer)


thanks for the script.
i am intrested on how to use the "Target" function.
like this,
Bind(KEY_A, Cast("Banish",Target1))
but it does'nt work.
:-(
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 29 2013, 04:37
Post #51
Lement



Lalalala la~ la la~!
********
Group: Members
Posts: 2,977
Joined: 28-February 12
Level 326 (Godslayer)


Heh. "Target" is just same as clicking on 1-9, just with another key. That what you listed is not a Valid Action.
However, you can do
Bind(KEY_A, Cast("Banish"));
Bind(Key_A, Shift, Target1));
or

Bind(KEY_A, Cast("Banish"));
Bind(Key_B, Target1));
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 29 2013, 14:20
Post #52
cybchaos



Casual Poster
***
Group: Members
Posts: 147
Joined: 11-March 10
Level 314 (Godslayer)


Using Firefox 24, the script is quite resource-hungry.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 29 2013, 14:23
Post #53
Lement



Lalalala la~ la la~!
********
Group: Members
Posts: 2,977
Joined: 28-February 12
Level 326 (Godslayer)


Yes, yes it is. It is not very efficient or fast(it searches the page on every page load for every bind), but very durable, versatile and pretty :3
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 3 2013, 08:04
Post #54
wannaf



Active Poster
*******
Group: Catgirl Camarilla
Posts: 2,360
Joined: 15-December 11
Level 500 (Godslayer)


QUOTE(Lement @ Apr 29 2013, 04:37) *

Heh. "Target" is just same as clicking on 1-9, just with another key. That what you listed is not a Valid Action.
However, you can do
Bind(KEY_A, Cast("Banish"));
Bind(Key_A, Shift, Target1));
or

Bind(KEY_A, Cast("Banish"));
Bind(Key_B, Target1));


not a valid action
T_T
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 19 2013, 15:59
Post #55
qazzy5



Veteran Poster
********
Group: Members
Posts: 2,791
Joined: 2-April 11
Level 475 (Godslayer)


Is it possible to update this to work with 0.76?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 20 2013, 09:37
Post #56
战导防御系



Casual Poster
****
Group: Members
Posts: 309
Joined: 23-April 11
Level 315 (Dovahkiin)


update pls orz
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 20 2013, 10:17
Post #57
Haanhduy



Casual Poster
****
Group: Members
Posts: 346
Joined: 9-February 13
Level 294 (Godslayer)


// ==UserScript==
// @name HV Keybinds
// @namespace HVKEYBIND
// @version 2.4.1
// @description Adds customized keybinding to HV
// @match http://hentaiverse.org/*
// @include http://hentaiverse.org/*
// ==/UserScript==

var bindings = new Array();
var KEY_A = 65, KEY_B = 66, KEY_C = 67, KEY_D = 68, KEY_E = 69, KEY_F = 70, KEY_G = 71, KEY_H = 72, KEY_I = 73, KEY_J = 74, KEY_K = 75, KEY_L = 76, KEY_M = 77;
var KEY_N = 78, KEY_O = 79, KEY_P = 80, KEY_Q = 81, KEY_R = 82, KEY_S = 83, KEY_T = 84, KEY_U = 85, KEY_V = 86, KEY_W = 87, KEY_X = 88, KEY_Y = 89, KEY_Z = 90;
var KEY_1 = 49, KEY_2 = 50, KEY_3 = 51, KEY_4 = 52, KEY_5 = 53, KEY_6 = 54, KEY_7 = 55, KEY_8 = 56, KEY_9 = 57, KEY_0 = 48;
var KEY_SPACE = 32, KEY_ENTER = 13, KEY_PAGEUP = 33, KEY_PAGEDOWN = 34, KEY_END = 35, KEY_HOME = 36, KEY_UP = 37, KEY_UP = 38, KEY_RIGHT = 39, KEY_DOWN = 40;
var KEY_F1 = 112, KEY_F2 = 113, KEY_F3 = 114, KEY_F4 = 115, KEY_F5 = 116, KEY_F6 = 117, KEY_F7 = 118, KEY_F8 = 119, KEY_F9 = 120, KEY_F10 = 121, KEY_F11 = 122, KEY_F12 = 123;
var KEY_COMMA = 188, KEY_PERIOD = 190, KEY_SLASH = 191, KEY_FORWARDSLASH = 191, KEY_GRAVE = 192, KEY_TILDE = 192, KEY_LBRACKET = 219, KEY_BACKSLASH = 220;
var KEY_SEMI = 186, KEY_RBRACKET = 221, KEY_APOSTROPHE = 222;

var NextRound = function() {} //dummy function

//For keycodes: [www.javascripter.net] http://www.javascripter.net/faq/keycodes.htm
// or: [www.cambiaresearch.com] http://www.cambiaresearch.com/articles/15/...codes-key-codes
// or: Use above codes for most keys.

// Just add this for as many bindings as you want:
// Bind(KeyCode, Modifier, Action);
// KeyCode = From links above
// Modifier = This is OPTIONAL. Valid mods are NoMod, Shift, Ctrl, Alt, CtrlShift, AltShift, CtrlAlt, CtrlAltShift
// Action = Valid actions:
// Cast("Spell Name")
// Spell Name or Item Name, except for potions.
// UseNext(ItemType)
// (Currently) Valid ItemTypes are HealthPotion, ManaPotion, SpiritPotion. These will be used in the order they appear in your item list.
// Nothing
// Use this to unbind a default key
// Target1 - Target10
// Targets the specified monster.
// PowerupGem
// Uses the powerup gem.
// NextRound
// Enters next round. Using this overrides both Space and Enter for next round. If you still want to use one of those, add it manually.
//
// Examples:
// Bind(KEY_M, Shift, UseNext(ManaPotion)); -- Shift + M = Use next mana potion
// Bind(KEY_LBRACKET, Cast("WRATH OF THOR")); -- Case insensitive. Key [ = cast Wrath of Thor
// Bind(KEY_A, Nothing); -- You can unbind a default key
// Bind(KEY_I, Cast("Infusion of Storms"); -- I uses Infusion of Storms

Bind(KEY_X, Cast("Corruption"));
Bind(KEY_S, Cast("Disintegrate"));
Bind(KEY_Q, Cast("Imperil"));
Bind(KEY_Z, Cast("Smite"));
Bind(KEY_A, Cast("Banishment"));
Bind(KEY_W, Cast("Weaken"));
Bind(KEY_C, Cast("Cure"));
Bind(KEY_D, Cast("Paradise Lost"));
Bind(KEY_F, Cast("Ragnarok"));
Bind(KEY_O, Use("Mana"));
Bind(KEY_P, Use("Spirit"));
// Don't edit anything below. Unless you want to.

if (document.getElementById('togpane_log')) {
var overriddenKeyDown = document.onkeydown;
document.onkeydown = function(e) {
var didKeybind = false;
var roundEndHasOverride = false;
var roundEnded = (document.querySelector("#mainpane form > div.btt > div.btcp > div.btcd > img") || document.getElementById("ckey_continue"));
if (!roundEnded) {
for (i = 0; i < bindings.length ; i++) {
var bind = bindings[i];
if (e.keyCode == bind.keyCode && bind.modifier(e)) {
bind.action();
didKeybind = true;
return true;
}
}
} else {
for (i = 0; i < bindings.length ; i++) {
var bind = bindings[i];
if (bind.action === NextRound) {
roundEndHasOverride = true;
if (e.keyCode == bind.keyCode && bind.modifier(e)) {
roundEnded.onclick();
e.preventDefault();
return false;
}
}
}
}
if (roundEndHasOverride) {
e.preventDefault();
return false;
}

if (!didKeybind) {
return overriddenKeyDown(e);
} else {
e.preventDefault();
return false;
}
}
}

function Bind(key, mod, command) {
if (!command) {
command = mod;
mod = NoMod;
}
if (!command) return;
addKeybind(key, mod, command);
}

function addKeybind(key, mod, command) {
bindings.push(new Keybind(key,mod,command));
}

function getSpell(name){
return document.querySelector('.bts>div[onmouseover *= "'+name+'"]');
}

function Cast(name) {
var spell = getSpell(name);
if(spell.id > 1000){
return function(){
if(document.querySelector('#togpane_magico[style="display:none"]')){
document.querySelector('.btpm2>img[onclick]').onclick();
}
spell.onmouseover();
spell.onclick();
}
}else{
return function(){
if(document.querySelector('#togpane_magict[style="display:none"]')){
document.querySelector('.btpm3>img[onclick]').onclick();
}
spell.onmouseover();
spell.onclick();
}
}
return null;
}

function Use(name){
return function(){
var item_list = document.querySelectorAll('.bti3>div');
for(var i=0; i<item_list.length; i++){
var item = item_list[i];
if(item.onmouseover && item.onmouseover.toString().match(name)){
item.onclick();
break;
}
}
}
}

function Keybind(key, mod, action) {
this.keyCode = key;
this.modifier = mod;
this.action = action;
}

function NoMod(e) { return !e.shiftKey && !e.altKey && !e.ctrlKey; }
function CtrlAltShift(e) { return e.shiftKey && e.altKey && e.ctrlKey; }
function CtrlShift(e) { return !e.altKey && e.shiftKey && e.ctrlKey; }
function AltShift(e) { return !e.ctrlKey && e.altKey && e.shiftKey; }
function CtrlAlt(e) { return !e.shiftKey && e.ctrlKey && e.altKey; }
function Ctrl(e) { return e.ctrlKey && !e.shiftKey && !e.altKey; }
function Shift(e) { return e.shiftKey && !e.ctrlKey && !e.altKey; }
function Alt(e) { return e.altKey && !e.shiftKey && !e.ctrlKey; }

function Nothing() {} //for unbinding default keys

function TargetMonster(num) {
var monster = document.getElementById("mkey_"+num);
if (monster) {
monster.onclick();
}
}

function Target1() { TargetMonster(1) }
function Target2() { TargetMonster(2) }
function Target3() { TargetMonster(3) }
function Target4() { TargetMonster(4) }
function Target5() { TargetMonster(5) }
function Target6() { TargetMonster(6) }
function Target7() { TargetMonster(7) }
function Target8() { TargetMonster(8) }
function Target9() { TargetMonster(9) }
function Target10() { TargetMonster(0) }

function PowerupGem() {
var pgem = document.getElementById("ikey_p");
if (pgem) {
pgem.onclick();
}
}
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 20 2013, 10:18
Post #58
Haanhduy



Casual Poster
****
Group: Members
Posts: 346
Joined: 9-February 13
Level 294 (Godslayer)


I could use that in the 0.76, I dont remember where the heck that I copied it from, just to make clear that I dont write this scrip (IMG:[invalid] style_emoticons/default/biggrin.gif)

This post has been edited by Haanhduy: May 20 2013, 10:24
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 20 2013, 13:47
Post #59
战导防御系



Casual Poster
****
Group: Members
Posts: 309
Joined: 23-April 11
Level 315 (Dovahkiin)


bump
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 21 2013, 07:31
Post #60
PowerOfTwo32



Newcomer
*
Group: Members
Posts: 46
Joined: 14-October 11
Level 316 (Godslayer)


I'm slowly working on getting something that works together. HV Keybinds seemed pretty inefficient for what it was before the patch.

My main goal is to scan the skills all at once and add their names, and IDs to some sort of local storage in the form of abilities[name] = id. I'd then check every key press to see if the list is there through a variable or something.

Well that was fixed elegantly by whoever fixed it.

This post has been edited by PowerOfTwo32: May 21 2013, 07:50
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


4 Pages V < 1 2 3 4 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 8th June 2025 - 19:25