You have to bind the mouse click to a key, then you can bind the "pseudo key click" to aionscript.
have shortcut key finction in script?
Re: have shortcut key finction in script?
Two things: I actually rewrote the entire framework for that function so, check your PMs - your not VIP, this is a one off. Secondly:
Use the files below and replace them with the originals, it should do what you need to. I've skimmed the script to it's basic concept, which is a start/stop grind shortcut key.
OfficialGrinderFramework.lua:
Code: Select all
http://lpaste.net/81206866515853312
Code: Select all
http://lpaste.net/7542220304173498368
Code: Select all
-- Settings
-- Check the key codes here (Member Name): http://msdn.microsoft.com/en-us/library/system.windows.input.key.aspx
Register( "AttackHandle", "Oem8" );
Register( "UIModHandle", "Insert" );
Register( "BuffHandle", "Home" );
Register( "AttackSPDCheckEntity", "End" );
-- End Settings
So when you press ¬, this function is called:
Code: Select all
function AttackHandle()
if _AttackStarted ~= nil then
_AttackStarted = nil;
Write("0verkill Mode: DISABLED!");
else
_AttackStarted = true;
Write("0verkill Mode: DISABLED!");
end
end
Code: Select all
function OnRun()
if _AttackStarted ~= nil and Player:GetTargetID() ~= 0 then
local Entity = EntityList:GetEntity( Player:GetTargetId());
if Player:IsDead() then
return false;
end
if EntityList:GetEntity( Player:GetTargetId()):IsDead() then
local AggroEntity = Helper:FindTarget( true, Player:GetPosition());
if AggroEntity ~= nil then
Player:SetTarget( AggroEntity );
Player:SetMove( nil );
end
return false;
end
if Entity:IsGatherable() or Entity:IsPet() or Entity:IsFriendly() or Entity:IsObject() then
if AggroEntity ~= nil then
Player:SetTarget( AggroEntity );
Player:SetMove( nil );
end
return false;
end
if Entity:IsHostile() or Entity:IsMonster() or Entity:GetTargetID() == Player:GetID() then
if not Player:IsMoving() and Helper:CheckAvailable( "Attack" ) and (Player:GetPosition():DistanceToPosition( Entity:GetPosition()) <= 35 and Player:GetPosition():DistanceToPosition( Entity:GetPosition()) >= 5) then
PlayerInput:Ability( "Attack" );
elseif Player:GetPosition():DistanceToPosition( Entity:GetPosition()) <= 5 then
return Controller:Attack( Entity, Entity:GetPosition():DistanceToPosition( Player:GetPosition()), Stunned, true );
end
end
end
end
NOW you can bind the ¬ key to your mouse key! This whole procedure is what's necessary to do what you asked. Sorry for the details, just thought I'd use the chance to write up a little LUA HOWTO for anyone who's interested.
Who is online
Users browsing this forum: No registered users and 1 guest