-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
139 lines (124 loc) · 3.74 KB
/
main.py
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
import base64
import pyperclip
import keyboard
import pygetwindow
import time
from elevate import elevate
import webview
# elevate(show_console=False)
#defining various killing proof
fractal = "4f3f0100"
#w1
vale = "892f0100"
gorseval = "b72f0100"
sabetha = "a02f0100"
#w2
sloth = "8a2f0100"
matthias = "6f2f0100"
#w3
kc = "36340100"
xera = "5e340100"
#w4
carin = "ef3a0100"
Murssat = "8d390100"
samarog = "d7380100"
demios = "9e3a0100"
#w5
desmina = "e94f0100"
statue = "284f0100"
dhuum = "814e0100"
#w6
ca = "df590100"
twin = "1c5b0100"
qadim = "455a0100"
#w7
sabir = "86640100"
adina = "6e640100"
qadim2 = "27640100"
li = "f62d0100"
def paste():
keyboard.press_and_release('enter')
keyboard.press('ctrl+v')
time.sleep(0.2)
keyboard.release('ctrl+v')
keyboard.press_and_release('enter')
def getCode(n,kp):
li_hexed = "02"+str(n)+kp
chat_code = base64.b64encode(bytes.fromhex(li_hexed)).decode()
chat_code = pyperclip.copy("[&"+str(chat_code)+"]")
def generate(kp, amount, pings):
try:
amount = int(amount)
pings = int(pings)
except:
window.evaluate_js('alerting(content = "please enter a number between 1 - 250!")')
return
if amount > 250 or amount < 1:
window.evaluate_js(('alerting("please enter a number between 1 - 250!")'))
return
if amount <16:
hexed = "0" + str(hex(amount).lstrip("0x").rstrip("L"))
else:
hexed = hex(amount).lstrip("0x").rstrip("L")
# li_hexed = "02"+str(hexed)+"f62d0100"
# chat_code = base64.b64encode(bytes.fromhex(li_hexed)).decode()
# chat_code = pyperclip.copy("[&"+str(chat_code)+"]")
toPing = str(kp)
if toPing == "Legendary Insight":
getCode(hexed, li)
if toPing == "W1 Vale Gurdian":
getCode(hexed, vale)
if toPing == "W1 Gorseval":
getCode(hexed, gorseval)
if toPing == "W1 Sabetha":
getCode(hexed, sabetha)
if toPing == "W2 Sloth":
getCode(hexed, sloth)
if toPing == "W2 Matthaias":
getCode(hexed, matthias)
if toPing == "W3 KC":
getCode(hexed, kc)
if toPing == "W3 Xera":
getCode(hexed, xera)
if toPing == "W4 Carin":
getCode(hexed, carin)
if toPing == "W4 Murssat":
getCode(hexed, Murssat)
if toPing == "W4 Samarog":
getCode(hexed, samarog)
if toPing == "W4 Demios":
getCode(hexed, demios)
if toPing == "W5 Desmina":
getCode(hexed, desmina)
if toPing == "W5 Statue":
getCode(hexed, statue)
if toPing == "W5 Dhuum":
getCode(hexed, dhuum)
if toPing == "W6 CA":
getCode(hexed, ca)
if toPing == "W6 Twin":
getCode(hexed, twin)
if toPing == "W6 Qadim":
getCode(hexed, qadim)
if toPing == "W7 Sabir":
getCode(hexed, sabir)
if toPing == "W7 Adina":
getCode(hexed, adina)
if toPing == "W7 Quadim":
getCode(hexed, qadim2)
if toPing == "Fractal of the Mist CM":
getCode(hexed, fractal)
try:
gw2 = pygetwindow.getWindowsWithTitle("Guild Wars 2")[0]
except:
window.evaluate_js("alerting('It seems like Guild wars 2 is not running!')")
gw2.activate()
time.sleep(0.5)
keyboard.press_and_release('esc')
for _ in range(pings):
paste()
window.evaluate_js('alerting("Success!")')
return
window = webview.create_window("GW2Proof",url='web/main.html',width=600, height=550, resizable=False, easy_drag=False)
window.expose(generate)
webview.start(gui="mshtml")