1 import packets
, configuration
, nil
.thread
, craw
8 ('Cyclone Armor', 0xeb),
11 class auto_cast_handler_class
:
15 def process_bytes(self
, bytes
):
16 if packets
.entering_game(bytes
):
19 if self
.entering
and packets
.load_complete(bytes
):
24 nil
.thread
.create_thread(self
.auto_cast_thread
)
26 def auto_cast_thread(self
):
27 for name
, skill
in auto_cast_skills
:
28 level
= craw
.get_skill_level(skill
)
29 if level
== None or level
== 0:
32 print 'Casting %s level %d' % (name
, level
)
33 packets
.perform_cast(skill
, configuration
.auto_cast_switch_delay
, configuration
.auto_cast_cast_delay
)