Skip to content

Instantly share code, notes, and snippets.

View slawkens's full-sized avatar

Slawomir Boczek slawkens

View GitHub Profile
@slawkens
slawkens / generator.php
Last active October 14, 2023 10:41
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();
}
@slawkens
slawkens / events.php
Last active May 25, 2023 20:25
MyAAC Events Box (For tibiacom template)
<?php
/**
* Installation:
* 1) place this file into "templates/tibiacom/boxes/"
* 2) place events.png that can be found below this script, into "templates/tibiacom/images/themeboxes"
* 3) edit config.ini in tibiacom folder and add "events" into "boxes", so it looks like this:
* boxes = "highscores,newcomer,gallery,networks,poll,events"
*
* Original author: Rusherzin
* Found on: https://tibiaking.com/forums/topic/76526-widget-upcoming-events-para-tfs-12/?do=findComment&comment=429655
@slawkens
slawkens / auction.php
Created October 5, 2021 23:05
Character Auction for MyAAC
<?PHP
#################################################
### Scripted by Shadow_ ###
### All rights reserverd ###
### Do not use/distribute without permission! ###
### Contact: Discord: Carcoo#2914 ###
### asgardotteam@gmail.com ###
#################################################
/*
In MySQL: