-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
35 lines (28 loc) · 1.02 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
from lib import GZL
from getpass import getpass
class Main:
def __init__(self):
self.GZL = GZL.GaiaZomgLib()
def Run(self):
while(self.GZL.login("TheManx2", getpass("Password: ")) == False):
pass ## While we can't login, fuck everything else and retry.
#print self.GZL.GSI.get_zomg_servers(self.GZL.GSid)
####
## This is what I want to be able to do. This friggin' easy.
####
self.GZL.startup()
# while(True):
# Pos = self.GZL.get_position()
# Sel_Mob = self.GZL.get_nearest_monster(Pos)
# self.GZL.attack(Sel_Mob)
####
## NO PACKET HANDLING IN MAIN CLASS MATT, BAD IDEA FUCKER
####
# self.GZL.PH.Send("<msg t='sys'><body action='verChk' r='0'><ver v='141' /></body></msg>" + chr(0))
# while(True):
# Packets = self.GZL.PH.TCP.GetReceivedPackets()
# if(len(Packets) != 0):
# print Packets
if(__name__=="__main__"):
M = Main()
M.Run()