This plugin will auto donate 50 GP each time your character levels up. It requires 25.4.9 or newer for the level up event.
It has not been tested.
from phBot import *
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__)