Ticket #314 (new task)

Opened 3 months ago

Last modified 1 month ago

Pubbot module: move idle players to ?go afk

Reported by: Maverick Assigned to: nobody
Priority: normal Component: Bots - PubHub/PubBot
Version: Latest version from repository Severity: minor
Keywords: Cc:

Description

Task:
Create a pubbot module (pubbot-module only, an empty pubhub module will suffice) which moves idle players from a public arena to ?go afk arena.

For moving players you can use the *sendto command:
*sendto [IP],[Port],[Arena] (Sysop only)
Note: Using a incorrect syntax for this command will crash the zone. Because of this, testing this new module must be done on a local server.

A player is idle if he is a spectator and hasn't talked for a set amount of time. This amount of time must be settable in either the source code or the .cfg file.

For determining if a player is idle, I would recommend recording when a spectator has talked for the last time. Then every 5 minutes a TimerTask would run to check if the spectators haven't talked for x amount of minutes, after which the player will be moved by using the *sendto command.

Attachments

Change History

10/12/08 14:17:24 changed by milosh

Sounds good to me. A few specifications I've learned by positive and negative experiences with *sendto:

  • Incorrect syntax of the command will not crash the zone as long as the command is private.
  • The command sent publicly(with or without correct syntax) will crash the zone.
  • If the command is sent to players who are currently downloading the arena it will crash the continuum client and boot them off.

So keep those things in consideration while you are creating this module. Perhaps players should be allowed extra idle time upon entry in case they are downloading a large map and have a slow connection. Make sure the bot does not move other bots(use the isBotExact() boolean condition from OperatorList) Make sure the bot never… ever… EVER uses this command in public chat(I personally have crashed a zone doing this _). It would be beneficial to send players a message(or possibly even a warning prior to the move) that notifies them of what is happening. If you're new to the team and are feeling intimidated by this project just ASK QUESTIONS!!!

10/15/08 19:00:38 changed by hectic

  • owner changed from nobody to hectic.
  • status changed from new to assigned.

11/30/08 08:50:10 changed by hectic

  • owner changed from hectic to nobody.
  • status changed from assigned to new.

Add/Change #314 (Pubbot module: move idle players to ?go afk)




Change Properties
Action