The KGB Oracle
Serving the online gaming community since 1997
Visit www.the-kgb.com
For additional information

Join KGB DISCORD: http://discord.gg/KGB
 
KGB Information
Untitled 1

Visit KGB HQ
www.the-kgb.com

Who's Online Now
0 members (), 26 guests, and 26 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Today's Birthdays
There are no members with birthdays on this day.
Newest Members
Luckystrikes, Shingen, BillNyeCommieSpy, Lamp, AllenGlines
1,477 Registered Users
Forum Statistics
Forums53
Topics13,095
Posts116,357
Members1,477
Most Online276
Aug 3rd, 2023
Top Likes Received (30 Days)
None yet
Top Posters(30 Days)
Sini 1
Popular Topics(Views)
2,051,082 Trump card
1,346,923 Picture Thread
482,555 Romney
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 4 1 2 3 4
#52382 10/23/09 09:22 AM
Joined: Nov 2005
Posts: 1,876
Likes: 10
Arkh Offline OP
KGB Supreme Court Justice
KGB Supreme Knight
****
OP Offline
KGB Supreme Court Justice
KGB Supreme Knight
****
Joined: Nov 2005
Posts: 1,876
Likes: 10
As promised here is my current G13 config. I also put my script config cause it should work with a G15.

G4, G10, G11, G12 = ZQSD
G1 = loot
G2 = food
G3 = heal pot
G5 = sheath / unsheath
G6 = use
G7 = alternate use
G8 = spawn mount
G9 = stam pot
G13 = small AoE cycle (virtuous wrath, fireball, corrosive blast)
G14 = ray AoE cycle (holy flame, wall of fire, I must add acid rain)
G15 = shift
G16 = cycle situationnal debuff (exhaust, stam leech, burden)
G17 = cycle heal other (heal other, sacrifice)
G18 = cycle self heal (stam2health, witches brew, heal)
G19 = cycle utility spells (Wall of force, confusion, launch)
G20 = gank
G21 = mana2stam
G22 = cycle self buff (a shit-ton to list)
G23 = jump
G24 = crouch
Joystick :
Up = equip 2h weapon + ready whirlwind
Left = equip 1h weapon then shield
Down = equip staff + ready attack spell
Right = equip bow

Here is the script for cycling and looting. The problem with DFO is if you bind something to a key + modifier (ctrl or alt) they won't work if you are using the shift. That's why I have to detect it for some keys.

Code:
keyArray = {{}, -- 1
            {},
            {},
            {},
            {},
            {},
            {},
            {},
            {},
            {},
            {},
            {},
            {"F1", "F2", "F3"}, -- 13
            {"F11", "F12"}, -- 14
            {},
            {"lbracket", "rbracket", "backslash"},
            {"U", "V"},
            {"F5", "F6", "F7"}, -- 18
            {"F8", "F9", "F10"}, -- 19
            {},
            {},
            {"1", "2", "3", "4", "5", "6", "7", "8", "9", "0"}
            };
ctrlModifier = {{}, -- 1
                {},
                {},
                {},
                {},
                {},
                {},
                {},
                {},
                {},
                {},
                {},
                {}, -- 13
                {}, -- 14
                {},
                {},
                {},
                {}, -- 18
                {}, -- 19
                {},
                {},
                {1, 1, 1, 1, 1, 1, 1, 1, 1, 1}
                };
indexes = {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};
lastGkey = 0;
function OnEvent(event, arg)
    if (event=="G_PRESSED" and arg ~=1) then
        if(lastGkey > 0 and lastGkey == arg) then
            indexes[arg] = indexes[arg] + 1;
            if(indexes[arg] > table.getn(keyArray[arg])) then
                indexes[arg] = 1;
            end
        end
        isSprint = IsModifierPressed("shift");
        if(ctrlModifier[arg][indexes[arg]]) then
            if(isSprint) then
                ReleaseKey("lshift");             
            end
            PressKey("lctrl");
        end
        PressAndReleaseKey(keyArray[arg][indexes[arg]]);
        if(ctrlModifier[arg][indexes[arg]]) then
            if(isSprint) then
                PressKey("lshift");
            end
            ReleaseKey("lctrl");
        end
        lastGkey = arg;
    end


    if(event=="G_PRESSED" and arg==1) then
        x, y = GetMousePosition();
        PressMouseButton(1);
        Sleep(10);
        MoveMouseTo(26532, 48321);
        Sleep(10);
        ReleaseMouseButton(1);
        Sleep(10);
        MoveMouseTo(x, y);
    end
end

Last edited by Arkh; 10/23/09 09:40 AM.

[Linked Image from w3.the-kgb.com][Linked Image from w3.the-kgb.com]
Arkh #52386 10/23/09 11:26 PM
Joined: Apr 2003
Posts: 12,986
Likes: 44
(GM10) KGB High King
KGB Federal Faction
(F5) High Chancellor
KGB New World Faction
KGB Oracle Administrator
Founded KGB in 1997
****
Offline
(GM10) KGB High King
KGB Federal Faction
(F5) High Chancellor
KGB New World Faction
KGB Oracle Administrator
Founded KGB in 1997
****
Joined: Apr 2003
Posts: 12,986
Likes: 44
Very NICE. I might have to retire my Nostromos.


[Linked Image from w3.the-kgb.com][Linked Image from oracle.the-kgb.com]
Star Citizen Hanger:
RSI Javelin Destroyer, Hull E, RSI Constellation Pheonix, Aegis Dynamics Retaliator, Banu Merchantman
F7A Military Hornet Upgrade, F7C-S Hornet Ghost, F7C-R Hornet Tracker, Origin 325a Fighter
Joined: Mar 2009
Posts: 183
KGB Knight
*****
Offline
KGB Knight
*****
Joined: Mar 2009
Posts: 183
Ya looks great , im finally now putting it together.

Last edited by Bearrok; 10/25/09 03:22 AM.

[Linked Image]
Joined: Mar 2009
Posts: 183
KGB Knight
*****
Offline
KGB Knight
*****
Joined: Mar 2009
Posts: 183
Ok ya Im a noob, sorry iv not worked with scripts or macro's should I not bother? where do you insert the script smile to the hole thing or only on certain keys?

Last edited by Bearrok; 10/25/09 03:53 AM.

[Linked Image]
Joined: Nov 2005
Posts: 1,876
Likes: 10
Arkh Offline OP
KGB Supreme Court Justice
KGB Supreme Knight
****
OP Offline
KGB Supreme Court Justice
KGB Supreme Knight
****
Joined: Nov 2005
Posts: 1,876
Likes: 10
I affect the script only on the cycling and loot keys :

Last edited by Arkh; 10/25/09 04:12 AM.

[Linked Image from w3.the-kgb.com][Linked Image from w3.the-kgb.com]
Arkh #52409 10/25/09 03:43 PM
Joined: Mar 2009
Posts: 183
KGB Knight
*****
Offline
KGB Knight
*****
Joined: Mar 2009
Posts: 183
I hope I can catch you on vent cause I cant get this to work. I setup all your config and added script to loot and cycle keys and nothing happens. I tested everything in game and works but cycling and looting. Do I need to edit the script or something? If I get it working , ill owe you big time.

Last edited by Bearrok; 10/26/09 12:01 AM.

[Linked Image]
Joined: Nov 2005
Posts: 1,876
Likes: 10
Arkh Offline OP
KGB Supreme Court Justice
KGB Supreme Knight
****
OP Offline
KGB Supreme Court Justice
KGB Supreme Knight
****
Joined: Nov 2005
Posts: 1,876
Likes: 10
Did you bind dfo keys to your hotbar items ?
For the loot script, you may have to change the numbers of the line "MoveMouseTo(26532, 48321);" so it drops in your backpack.


[Linked Image from w3.the-kgb.com][Linked Image from w3.the-kgb.com]
Arkh #52423 10/26/09 10:25 AM
Joined: Nov 2005
Posts: 1,876
Likes: 10
Arkh Offline OP
KGB Supreme Court Justice
KGB Supreme Knight
****
OP Offline
KGB Supreme Court Justice
KGB Supreme Knight
****
Joined: Nov 2005
Posts: 1,876
Likes: 10
To get mouse position, replace this part
Code:
if(event=="G_PRESSED" and arg==1) then
        x, y = GetMousePosition();
        PressMouseButton(1);
        Sleep(10);
        MoveMouseTo(26532, 48321);
        Sleep(10);
        ReleaseMouseButton(1);
        Sleep(10);
        MoveMouseTo(x, y);
    end


by
Code:
if(event=="G_PRESSED" and arg==1) then
local x, y = GetMousePosition();
local sFmt = string.format("Mouse is at %d,%d\n", x, y);
OutputLCDMessage(sFmt);
    end





Code:
keyArray = {{}, -- 1
            {},
            {},
            {},
            {},
            {},
            {},
            {},
            {},
            {},
            {},
            {},
            {"F1", "F2", "F3", "F1", "F2"}, -- 13
            {"F11", "F12", "F3"}, -- 14
            {},
            {"lbracket", "rbracket", "backslash"},
            {"U", "V"},
            {"F5", "F6", "F7"}, -- 18
            {"F8", "F9", "F10"}, -- 19
            {},
            {},
            {"1", "2", "3", "4", "5", "6", "7", "8", "9", "0"}
            };
ctrlModifier = {{}, -- 1
                {},
                {},
                {},
                {},
                {},
                {},
                {},
                {},
                {},
                {},
                {},
                {0, 0, 0, 1, 1}, -- 13
                {0, 0, 1}, -- 14
                {},
                {},
                {},
                {}, -- 18
                {}, -- 19
                {},
                {},
                {1, 1, 1, 1, 1, 1, 1, 1, 1, 1}
                };
indexes = {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};
lastGkey = 0;
function OnEvent(event, arg)
    if (event=="G_PRESSED" and arg ~=1) then
        if(lastGkey > 0 and lastGkey == arg) then
            indexes[arg] = indexes[arg] + 1;
            if(indexes[arg] > table.getn(keyArray[arg])) then
                indexes[arg] = 1;
            end
        end
        isSprint = IsModifierPressed("shift");
        if(ctrlModifier[arg][indexes[arg]] == 1) then
            if(isSprint) then
                ReleaseKey("lshift");             
            end
            PressKey("lctrl");
        end
        PressAndReleaseKey(keyArray[arg][indexes[arg]]);
        if(ctrlModifier[arg][indexes[arg]] == 1) then
            if(isSprint) then
                PressKey("lshift");
            end
            ReleaseKey("lctrl");
        end
        lastGkey = arg;
    end


    if(event=="G_PRESSED" and arg==1) then
local x, y = GetMousePosition();
local sFmt = string.format("Mouse is at %d,%d\n", x, y);
OutputLCDMessage(sFmt);
    end
end

Last edited by Arkh; 10/26/09 10:46 AM.

[Linked Image from w3.the-kgb.com][Linked Image from w3.the-kgb.com]
Arkh #53633 11/28/09 05:56 AM
Joined: Nov 2005
Posts: 1,876
Likes: 10
Arkh Offline OP
KGB Supreme Court Justice
KGB Supreme Knight
****
OP Offline
KGB Supreme Court Justice
KGB Supreme Knight
****
Joined: Nov 2005
Posts: 1,876
Likes: 10
My current one, for ehwol
Code:
keyArray = {{}, -- 1
            {},
            {},
            {},
            {},
            {},
            {},
            {},
            {},
            {},
            {},
            {},
            {"F1", "F2", "F3", "F1", "F2"}, -- 13
            {"F11", "F12", "F3"}, -- 14
            {},
            {"lbracket", "rbracket", "backslash"},
            {"U", "V"},
            {"F5", "F6", "F7"}, -- 18
            {"F8", "F9", "F10"}, -- 19
            {},
            {},
            {"1", "2", "3", "4", "5", "6", "7", "8", "9", "0"}
            };
ctrlModifier = {{}, -- 1
                {},
                {},
                {},
                {},
                {},
                {},
                {},
                {},
                {},
                {},
                {},
                {0, 0, 0, 1, 1}, -- 13
                {0, 0, 1}, -- 14
                {},
                {},
                {},
                {}, -- 18
                {}, -- 19
                {},
                {},
                {1, 1, 1, 1, 1, 1, 1, 1, 1, 1}
                };
indexes = {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};
lastGkey = 0;
function OnEvent(event, arg)
    if (event=="G_PRESSED" and arg ~=1) then
        if(lastGkey > 0 and lastGkey == arg) then
            indexes[arg] = indexes[arg] + 1;
            if(indexes[arg] > table.getn(keyArray[arg])) then
                indexes[arg] = 1;
            end
        end
        isSprint = IsModifierPressed("shift");
        if(ctrlModifier[arg][indexes[arg]] == 1) then
            if(isSprint) then
                ReleaseKey("lshift");             
            end
            PressKey("lctrl");
        end
        PressAndReleaseKey(keyArray[arg][indexes[arg]]);
        if(ctrlModifier[arg][indexes[arg]] == 1) then
            if(isSprint) then
                PressKey("lshift");
            end
            ReleaseKey("lctrl");
        end
        lastGkey = arg;
    end


    if(event=="G_PRESSED" and arg==1) then
       x, y = GetMousePosition();
        PressMouseButton(1);
        Sleep(10);
        MoveMouseTo(26532, 48321);
        Sleep(10);
        ReleaseMouseButton(1);
        Sleep(10);
        MoveMouseTo(x, y);

    end
end


[Linked Image from w3.the-kgb.com][Linked Image from w3.the-kgb.com]
Arkh #53705 11/29/09 11:47 AM
Joined: Dec 2005
Posts: 4,115
Likes: 13
(GM5) KGB King
KGB Federal Faction
****
Offline
(GM5) KGB King
KGB Federal Faction
****
Joined: Dec 2005
Posts: 4,115
Likes: 13
I'm going to have to give the loot script a try as well.
Currently do not have that on my G13 layout.


[Linked Image from w3.the-kgb.com][Linked Image from w3.the-kgb.com][Linked Image from w3.the-kgb.com][Linked Image from w3.the-kgb.com]
[Linked Image from the-kgb.com][Linked Image from oracle.the-kgb.com]
Page 1 of 4 1 2 3 4

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5