forked from pokepark/PokemonRaidBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25a642e
commit e678e59
Showing
28 changed files
with
851 additions
and
449 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
/** | ||
* Get pokedex_id and pokemon_form_id with id from database. | ||
* @param $pokemon_table_id | ||
* @return array | ||
*/ | ||
function get_pokemon_by_table_id($pokemon_table_id) { | ||
$q = my_query(" | ||
SELECT pokedex_id, | ||
pokemon_form_id | ||
FROM pokemon | ||
WHERE id = {$pokemon_table_id} | ||
LIMIT 1 | ||
"); | ||
$return = $q->fetch(); | ||
return $return; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
/** | ||
* Event keys. | ||
* @param $gym_id_plus_letter | ||
* @param $action | ||
* @return array | ||
*/ | ||
function event_keys($gym_id_plus_letter, $action) { | ||
$q = my_query(" | ||
SELECT id, | ||
name | ||
FROM | ||
events | ||
"); | ||
while($event = $q->fetch()) { | ||
$keys[] = array( | ||
'text' => $event['name'], | ||
'callback_data' => $gym_id_plus_letter . ':' . $action . ':' . $event['id'] | ||
); | ||
} | ||
$keys[] = array( | ||
'text' => getTranslation("Xstars"), | ||
'callback_data' => $gym_id_plus_letter . ':' . $action . ':X' | ||
); | ||
// Get the inline key array. | ||
$keys = inline_key_array($keys, 1); | ||
|
||
return $keys; | ||
} | ||
?> |
Oops, something went wrong.