Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from phBot import *
- import struct
- import threading
- EVENT_LEVEL_UP = 10 # data = new level
- def donate():
- inject_joymax(0x7258, struct.pack('I', 50), False)
- def handle_event(t, data):
- if t == EVENT_LEVEL_UP and get_locale() == 56:
- threading.Timer(2.0, donate).start()
- log('[%s] Loaded' % __name__)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement