-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0xPvP.lua
99 lines (87 loc) · 3.19 KB
/
0xPvP.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
-------------------------------------------------------------
-- 0xPvP_E 2.1 --
-------------------------------------------------------------
-- --
-- This script uses 0verX framework -
-- it is a tweaked version of OfficialGrinderFramework --
-- so keep in mind the settings you have there. --
-- --
-- --
-- AionScript (c) 2011, Script By JotaC --
-- 0verkill LUA Script (c) 2015, Script By 0x00.NiNJA --
-- --
-------------------------------------------------------------
function OnLoad()
-- Settings
-- Check the key codes here (Member Name): http://msdn.microsoft.com/en-us/library/system.windows.input.key.aspx
Register( "AttackHandle", "Oem8" );
Register( "SetHideDetection", "Insert" );
Register( "BuffHandle", "Home" );
Register( "AttackSPDCheckEntity", "End" );
-- End Settings
Settings = Include( "0verX/config.lua" );
Helper = Include( "0verX/functions.lua" );
Framework = Include( "0verX/cns.lua" );
Framework:OnLoad();
Write("The 0xPvP_e Script 2.1");
Write("Don't forget to edit CustomCFG/Example.lua");
Write("and rename Example.lua to your char!");
Write(" DELETE - Auto-Roll / Loot");
Write("¬ (OEM Key) - AutoAttack / AutoReact");
Write("Insert - Enhance Vision - view hidden chars!");
end
function OnFrame()
--Player:SetAttackSpeed(299);
if Player:GetTargetId() ~= 0 then
Framework:OnRun();
end
end
function OnRun()
if not Player:IsMoving() and not Player:IsBusy() then
OnFrame();
Framework:OnRun();
end
end
function AttackHandle()
if _AttackStarted ~= nil then
_AttackStarted = nil;
Player:SetHideDetectionLevel(0)
DialogList:GetDialog( "radar_dialog" ):SetVisible( true );
--DialogList:GetDialog( "chat_dialog" ):SetVisible( true );
DialogList:GetDialog( "subzone_name_dialog" ):SetVisible( true );
DialogList:GetDialog( "start_dialog" ):SetVisible( true );
Write("0verkill Mode: DISABLED!");
PlayerInput:Console("/w " .. PlayerWhisperName .. " 0verkill mode DISABLED!");
else
_AttackStarted = true;
Player:SetHideDetectionLevel(2);
DialogList:GetDialog( "radar_dialog" ):SetVisible( false );
--DialogList:GetDialog( "chat_dialog" ):SetVisible( false );
DialogList:GetDialog( "subzone_name_dialog" ):SetVisible( false );
DialogList:GetDialog( "start_dialog" ):SetVisible( false );
Write("0verkill Mode: ENABLED!");
PlayerInput:Console("/w " .. PlayerWhisperName .. " 0verkill mode ENABLED!");
end
end
function SetHideDetection()
if _SetHideStarted ~= nil then
Write("ENHANCHED VISION : disabled!");
Player:SetHideDetectionLevel(0);
_SetHideStarted = nil;
else
Write("ENHANCHED VISION : ENABLED!");
Player:SetHideDetectionLevel(2);
_SetHideStarted = true;
end
end
function UIModHandle()
if _UIModStarted == nil then
_UIModStarted = true;
DialogList:GetDialog( "radar_dialog" ):SetVisible( false );
DialogList:GetDialog( "subzone_name_dialog" ):SetVisible( false );
else
_UIModStarted = nil;
DialogList:GetDialog( "radar_dialog" ):SetVisible( true );
DialogList:GetDialog( "subzone_name_dialog" ):SetVisible( true );
end
end