Ejemplo n.º 1
0
def toggle_selfishness(line, time, backrefs):
	if player.defences['selfishness']:
		player.keepup['selfishness'] = False
		action_queue.add('unselfishness', 'generosity', 1, True)
		input.run_events(time)
	else:
		player.keepup['selfishness'] = True
		input.run_events(time)
Ejemplo n.º 2
0
def toggle_vault(line, time, backrefs):
	if player.keepup['riding']:
		player.keepup['riding'] = False
		free_queue.add('riding', 'dismount;order ' + player.mount + ' follow me')
		action_queue.remove_by_name('riding')
	else:
		player.keepup['riding'] = True
		core.enable_trigger('ondef_riding', 'ondef')
	input.run_events(time)
Ejemplo n.º 3
0
def combat(line, time, backrefs):
	core.echo('Combat Defences Mode')
	player.mode = 'combat'
	player.moss_health_percentage = core.config['combat_moss_health_percentage']
	player.moss_mana_percentage = core.config['combat_moss_mana_percentage']
	player.keepup = player.keepup_combat
	for defence in player.combat:
		if player.basic[defence] is True and player.keepup[defence] is False:
			if player.defences[defence] == 0:
				defences.load_def(defence)
	input.run_events(time)
Ejemplo n.º 4
0
def basic(line, time, backrefs):
	core.echo('Basic Defences Mode')
	player.mode = 'basic'
	player.moss_health_percentage = core.config['basic_moss_health_percentage']
	player.moss_mana_percentage = core.config['basic_moss_mana_percentage']
	player.keepup = player.keepup_basic
	for defence in player.basic:
		if player.basic[defence] is True and player.keepup[defence] is False:
			if player.defences[defence] == 0:
				defences.load_def(defence)
	input.run_events(time)
Ejemplo n.º 5
0
def simultaneity(line, time, backrefs):
	if player.combat_class not in ('magi', 'priest'):
		return

	core.enable_trigger('ondef_air', 'ondef')
	core.enable_trigger('ondef_water', 'ondef')
	core.enable_trigger('ondef_fire', 'ondef')
	core.enable_trigger('ondef_earth', 'ondef')

	if player.combat_class == 'priest':
		core.enable_trigger('ondef_spirit', 'ondef')
	action_queue.add('simultaneity', 'simultaneity', 387)

	input.run_events(time)
Ejemplo n.º 6
0
def ssh(line, time, backrefs):
	core.enable_trigger('ondef_shield', 'ondef')
	if action_queue.get_index('shield') == -1:
		action_queue.add('shield', 'touch shield', 406)
	if player.balance and player.equilibrium:
		input.run_events(time)
Ejemplo n.º 7
0
def fitness_handling(line, time, backrefs):
	player.fitness_attempt = False
	action_queue.remove_by_name('fitnessing_out')
	input.run_events(time)
	cures.cure('asthma')
	core.disable_trigger('cures_fitness_asthma', 'cures')
Ejemplo n.º 8
0
def herbsout(line, time, backrefs):
	for herb in herbs.herbs:
		herbs.herbs[herb].wait_for_outr = False
		herbs.herbs[herb].keep_out = core.config['herbsout'][herb]
	input.run_events(time)