db_state=c.execute("SELECT battle_id, reflector_primary member_id FROM pankration_arena WHERE battle_status = 'waiting';").fetchall()
iftarget_member_id:
db_state=c.execute("SELECT battle_id, reflector_primary FROM pankration_arena WHERE battle_status = 'waiting' AND direct_challenge = ?;",(member_id,)).fetchall()
else:
db_state=c.execute("SELECT battle_id, reflector_primary FROM pankration_arena WHERE battle_status = 'waiting' AND direct_challenge = 0;").fetchall()
ifnotdb_state:
log("No battles available: {}".format(idx,))
iftarget_member_id:
c.execute("""INSERT INTO pankration_arena(primary_member_id, reflector_primary, direct_challenge)
**!assignskill <reflector number> <skill num>** - Assigns a skill to a reflector. Each skill is worth a certain amount of feral points, each monster has a maximum of feral points available.
**!setreflectorname <reflector number> <name>** - This will rename a monster in your collection to a custom name.
*Arena Battle:*
**!registerbattle <reflector number>** - Adds your reflector to the queue in the arena. When the arena is available your monster will be paired with either another players monster or a similarly matched arena monster.
send_message(client,message.channel,"Your *{} level {}* has been registered for battle with {}. The battle will begin when the arena is availble with the next challenger".format(reflectors[reflector_num].monster_type,reflectors[reflector_num].level,user))
send_message(client,message.channel,"Your *{} level {}* has been registered for battle with {}. The battle will begin when the arena is availble with the next challenger".format(reflectors[reflector_num].get_monster_name(),reflectors[reflector_num].level,username))
else:
send_message(client,message.channel,"There was a problem looking up that user.")
send_message(client,message.channel,"Your *{} level {}* has been registered for battle. The battle will begin when the arena is availble with the next challenger".format(reflectors[reflector_num].monster_type,reflectors[reflector_num].level))
send_message(client,message.channel,"Your *{} level {}* has been registered for battle. The battle will begin when the arena is availble with the next challenger".format(reflectors[reflector_num].get_monster_name(),reflectors[reflector_num].level))
else:
send_message(client,message.channel,'You have no available reflectors. You can get reflectors by converting soul plates with !convertplate')
return
...
...
@@ -1221,15 +1249,15 @@ def check_arena():
send_message(client,arena_channel,"Ladies and gentlemen!\nFor our next match...")
time.sleep(5)
send_message(client,arena_channel,"In the red corner we have...\n **{}**!".format(monster.monster_type))
send_message(client,arena_channel,"In the red corner we have...\n **{}**!".format(monster.get_monster_name()))
time.sleep(5)
send_message(client,arena_channel,"Hmmm... This monster seems {} and {}.".format(monster.get_current_posture()["name"],monster.get_current_attitude()["name"]))
time.sleep(5)
send_message(client,arena_channel,"And in the blue corner is...\n **{}**!".format(monster2.monster_type))
send_message(client,arena_channel,"And in the blue corner is...\n **{}**!".format(monster2.get_monster_name()))
time.sleep(5)
send_message(client,arena_channel,"Hmmm... This monster seems {} and {}.".format(monster2.get_current_posture()["name"],monster2.get_current_attitude()["name"]))
time.sleep(5)
send_message(client,arena_channel,"Alright, Pankration fans, the match is about to begin!\n *Chaaaaaarge!*".format(monster2.monster_type))
send_message(client,arena_channel,"Alright, Pankration fans, the match is about to begin!\n *Chaaaaaarge!*".format(monster2.get_monster_name()))