def party_death_by_poison(): if (game.global_vars[958] == 6): game.global_vars[958] = 7 for pc in game.party: pc.critter_kill_by_effect() game.particles("sp-Poison", pc) return 1
def san_heartbeat(attachee, triggerer): if (attachee.name == 14618): attachee.destroy() if (game.global_flags[837] == 0): if (game.global_vars[758] == 0): game.particles("sp-Hold Person", attachee) if (game.global_vars[758] == 1): game.particles("sp-Bestow Curse", attachee) game.global_vars[758] = game.global_vars[758] + 1 if (game.global_vars[758] >= 13): game.global_vars[758] = 1 if (game.global_vars[726] == 0 and attachee.leader_get() == OBJ_HANDLE_NULL and not game.combat_is_active() and attachee.map == 5065): attachee.cast_spell(spell_endurance, attachee) attachee.spells_pending_to_memorized() if (game.global_vars[726] == 4 and attachee.leader_get() == OBJ_HANDLE_NULL and not game.combat_is_active() and attachee.map == 5065): attachee.cast_spell(spell_magic_circle_against_evil, attachee) attachee.spells_pending_to_memorized() if (game.global_vars[726] == 8 and attachee.leader_get() == OBJ_HANDLE_NULL and not game.combat_is_active() and attachee.map == 5065): attachee.cast_spell(spell_owls_wisdom, attachee) attachee.spells_pending_to_memorized() game.global_vars[726] = game.global_vars[726] + 1 return RUN_DEFAULT
def NighInvulnerable(): massabset(0, 24) necklace = game.obj_create(6239, game.party[0].location) sword1 = game.obj_create(4599, game.party[0].location) sword2 = game.obj_create(4599, game.party[0].location) helm = game.obj_create(6036, game.party[0].location) necklace.item_condition_add_with_args('Ring of freedom of movement', 0, 0) necklace.item_condition_add_with_args('Amulet of Mighty Fists', 5, 5) necklace.item_condition_add_with_args('Weapon Enhancement Bonus', 5, 0) # necklace.item_condition_add_with_args( 'Weapon Holy', 0, 0 ) # necklace.item_condition_add_with_args( 'Weapon Lawful', 0, 0 ) necklace.item_condition_add_with_args('Weapon Silver', 0, 0) # necklace.condition_add_with_args( 'Thieves Tools Masterwork', 0, 0) # sword.item_condition_add_with_args( 'Weapon Lawful', 0, 0 ) # sword.item_condition_add_with_args( 'Weapon Silver', 0, 0 ) game.party[0].item_get(necklace) game.party[0].item_get(sword1) game.party[0].item_get(sword2) game.party[0].item_get(helm) game.party[0].condition_add_with_args('Monster Regeneration 5', 0, 0) game.party[0].condition_add_with_args('Monster Subdual Immunity', 0, 0) game.party[0].condition_add_with_args('Monster Energy Immunity', 'Fire', 0) game.party[0].condition_add_with_args('Monster Energy Immunity', 'Cold', 0) game.party[0].condition_add_with_args('Monster Energy Immunity', 'Electricity', 0) game.party[0].condition_add_with_args('Monster Energy Immunity', 'Acid', 0) game.party[0].condition_add_with_args('Monster Confusion Immunity', 0, 0) game.party[0].condition_add_with_args('Monster Stable', 0, 0) game.party[0].condition_add_with_args('Monster Untripable', 0, 0) game.party[0].condition_add_with_args('Monster Plant', 0, 0) game.party[0].condition_add_with_args('Monster Poison Immunity', 0, 0) game.party[0].condition_add_with_args('Saving Throw Resistance Bonus', 0, 10) game.party[0].condition_add_with_args('Saving Throw Resistance Bonus', 1, 10) game.party[0].condition_add_with_args('Saving Throw Resistance Bonus', 2, 10) game.party[0].condition_add_with_args('Weapon Holy', 0, 0) game.party[0].condition_add_with_args('Weapon Lawful', 0, 0) game.party[0].condition_add_with_args('Weapon Silver', 0, 0) game.party[0].obj_set_int(obj_f_speed_run, 2) game.party[0].money_adj(+90000000) game.particles('Orb-Summon-Air-Elemental', game.party[0]) return
def create_spiders(attachee, triggerer): # added by ShiningTed # Modified by Sitra Achara - # Checks no. of troop casualties # If less than 5 - do not spawn spiders ggv401 = game.global_vars[401] troop_casualties = ((ggv401 >> 3) & 15) + ((ggv401 >> 7) & 15) if troop_casualties < 5: return spider1 = game.obj_create(14397, location_from_axis(474L, 535L)) game.particles("sp-summon monster I", spider1) game.sound(4033, 1) spider1.turn_towards(game.party[0]) spider2 = game.obj_create(14398, location_from_axis(481L, 536L)) game.particles("sp-summon monster I", spider2) spider2.turn_towards(game.party[0]) spider3 = game.obj_create(14398, location_from_axis(470L, 536L)) game.particles("sp-summon monster I", spider3) spider3.turn_towards(game.party[0]) spider4 = game.obj_create(14417, location_from_axis(529L, 544L)) spider5 = game.obj_create(14417, location_from_axis(532L, 555L)) return RUN_DEFAULT
def exEntangled_OnAdd(attachee, args, evt_obj): attachee.float_text_line("Entangled!", tf_red) partid = game.particles('sp-Web Hit', attachee) args.set_arg(3, partid) return 0
def san_start_combat(attachee, triggerer): while (attachee.item_find(8903) != OBJ_HANDLE_NULL): attachee.item_find(8903).destroy() #if (attachee.d20_query(Q_Is_BreakFree_Possible)): # workaround no longer necessary! # create_item_in_inventory( 8903, attachee ) if (attachee.name == 14328 and game.random_range(1, 100) <= 40): ## Bodak Death Gaze attachee.spells_pending_to_memorized() if (attachee.name == 14309 and game.random_range(1, 100) <= 25): ## Gorgon Breath Attack attachee.spells_pending_to_memorized() if (attachee.name == 14109 and game.random_range(1, 100) <= 25): ## Ice Lizard Breath Attack attachee.spells_pending_to_memorized() if (attachee.name == 14342 and attachee.has_wielded(4083)): ## Lamia attachee.item_find(4083).destroy() return RUN_DEFAULT if (attachee.name == 14342 and attachee.item_find(4083) == OBJ_HANDLE_NULL and game.random_range(1, 100) <= 50): create_item_in_inventory(4083, attachee) attachee.item_wield_best_all() if (attachee.name == 14295 and not attachee.d20_query(Q_Critter_Is_Blinded)): ## Basilisk attachee.spells_pending_to_memorized() if (attachee.name == 14258): ## Guardian Vrock game.global_vars[762] = game.global_vars[762] + 1 if (game.global_vars[762] >= 3): damage_dice = dice_new('1d8') game.particles('Mon-Vrock-Spores', attachee) for obj in game.obj_list_vicinity(attachee.location, OLC_CRITTERS): if (obj.distance_to(attachee) <= 10 and obj.name != 14258 and obj.name != 14361): obj.spell_damage(attachee, D20DT_POISON, damage_dice, D20DAP_UNSPECIFIED, D20A_CAST_SPELL, 261) game.particles('Mon-Vrock-Spores-Hit', obj) # damage_dice = dice_new( '1d8' ) # game.particles( 'Mon-Vrock-Spores', attachee) # for obj in game.obj_list_vicinity(attachee.location,OLC_CRITTERS): # if (obj.distance_to(attachee) <= 10 and obj.name != 14258): # obj.damage( OBJ_HANDLE_NULL, D20DT_POISON, damage_dice, D20DAP_NORMAL) # obj.spell_damage( attachee, D20DT_POISON, damage_dice, D20DAP_UNSPECIFIED, D20A_CAST_SPELL, 261 ) # obj.condition_add_with_args( "Poisoned", 273 , 10) # obj.condition_add_with_args( 'sp-Vrock Spores', 273, 10, 0) # game.particles( 'Mon-Vrock-Spores-Hit', obj ) # if ((attachee.name == 14259 or attachee.name == 14360) and game.random_range(1,3) <= 3): # create_item_in_inventory( 8909, attachee ) ################################# # Spiritual Weapon Shenanigens # ################################# Spiritual_Weapon_Begone(attachee) return RUN_DEFAULT
def hl(obj): #highlight the sucker game.particles('ef-minocloud', obj) return
def speedup(ec=1, file_override=-1): if file_override == -1: try: print 'reading from speedup.ini for speedup preference' f = open('modules\\ToEE\\speedup.ini', 'r') ec = f.readline() print ec ec = int(ec) f.close() except: print 'error, using default' ec = 1 print 'ec = ' + str(ec) elif file_override != -1: ec = file_override if ec == 0: # Vanilla - 106535216 for pc in game.party[0].group_list(): if pc.obj_get_int(obj_f_speed_run) != 1: pc.obj_set_int(obj_f_speed_run, 1) if game.global_flags[403] == 1: game.particles('Orb-Summon-Air-Elemental', pc) if ec == 1: print 'Setting speed to x2' # The old value - slightly faster than vanilla (which was 106535216) for pc in game.party[0].group_list(): if pc.obj_get_int(obj_f_speed_run) != 2: pc.obj_set_int(obj_f_speed_run, 2) if game.global_flags[403] == 1: game.particles('Orb-Summon-Air-Elemental', pc) if ec == 2: for pc in game.party[0].group_list(): if pc.obj_get_int(obj_f_speed_run) != 3: pc.obj_set_int(obj_f_speed_run, 3) if game.global_flags[403] == 1: game.particles('Orb-Summon-Air-Elemental', pc) if ec == 3: for pc in game.party[0].group_list(): if pc.obj_get_int(obj_f_speed_run) != 4: pc.obj_set_int(obj_f_speed_run, 4) if game.global_flags[403] == 1: game.particles('Orb-Summon-Air-Elemental', pc) if ec == 4: for pc in game.party[0].group_list(): if pc.obj_get_int(obj_f_speed_run) != 5: pc.obj_set_int(obj_f_speed_run, 5) if game.global_flags[403] == 1: game.particles('Orb-Summon-Air-Elemental', pc) if ec == 5: # Blazingly fast for pc in game.party[0].group_list(): if pc.obj_get_int(obj_f_speed_run) != 6: pc.obj_set_int(obj_f_speed_run, 6) if game.global_flags[403] == 1: game.particles('Orb-Summon-Air-Elemental', pc) if ec == 6: # Can you say speeding bullet? for pc in game.party[0].group_list(): if pc.obj_get_int(obj_f_speed_run) != 10: pc.obj_set_int(obj_f_speed_run, 10) if game.global_flags[403] == 1: game.particles('Orb-Summon-Air-Elemental', pc) return
def hl(obj): #highlight the sucker game.particles('ef-minocloud', obj) return