Skip to content

Instantly share code, notes, and snippets.

@slawkens
Last active October 14, 2023 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slawkens/6c3311cb9338455a22d9b32f0d6bdebb to your computer and use it in GitHub Desktop.
Save slawkens/6c3311cb9338455a22d9b32f0d6bdebb to your computer and use it in GitHub Desktop.
Generate random X players in MyAAC, may be used for performance testing. Save in system/pages, then go to http://localhost/?p=generator It may take a while to load. You may also want to adjust account id
<?php
for ($i = 0; $i <= 5500; $i++) {
$player = new OTS_Player();
$player->setName(generateRandomString(10));
$player->setAccountId(1);
$player->setGroupId(1);
$player->save();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment