kessiler / azureEmulator

Private Habbo Hotel Emulator
3 stars 0 forks source link

Change bots System #153

Closed ovflowd closed 8 years ago

ovflowd commented 8 years ago
  1. Add on database: catalog_bots (This table will be similar of catalog_clothings, were you will set the "bot name", (bot_1), bot public name "ex: Yakisoba", bot look. (The bot_name, is the type of bot)
  2. Add on database: bots_commands (This table will have something like: type: (bot_name ex: bot_1), speech_input (what the user need to say), speech_output (what the boot will say), action (action = command, like, :handitem, :credits, any command can be used), action_args (is the arguments of the command, like: :handitem 23), Remember: the action will be effected in the USER and not in the bot.
  3. Change table bots to bots_data, and will add bot_type, remove some unneccessary columns, and optimize imports.

This changes will optimize, dynamize, and improve the bot system. Something like that will be maked with pets (pets_commands, (pets_speeches already exists) - pets_commands is only: pet_type, input_speech (user command), output_speech (what pet says, can also be someone from pets_speeches), action (is the command in the emulator, like: sleep, follow, sit, etc.), level_progress (how many points this command gives to the pet), hungry_points (how much take from pets energy), sadly_points (how much takes from pets happynes).. something like that.

OBS: the speeches of the bot will be in table bots_speeches (with: speech_id (can be used on bots_commands), bot_id (linked with bots_data), input_speech (can be null, and only used for database defined speeches), output_speech, speech_type (user defined (in the bot tools on the room) or database defined))