this server sucks as well lol that's the biggest shit I've ever seen!!
TFS 0.3.2 is the best distro atm lol
* Premium account time fix (thanks Faramir)
* Teleport summon fix
* 'hidename', 'hidehealth' flags for monsters & npcs (Used in flamethrowers etc.)
* Fixes to click & turn teleport (Debug prevent, and you can't enter house)
* Client version displaying onLook
* Deprecated getPlayerGroupName(cid), use getGroupInfo(id).name
* New configurable: premiumDaysToFormGuild (Default: 0)
* New configurable: pushCreatureDelay (how fast players moves creatures) (Default: 2 * 1000)
* New configurable: confirmOutdatedVersion (Allowing you to use older versions, without confirmation)
* New configurable: deathContainerId, its a default container added afer player death
* New functions: setPlayerPZLocked(cid, locked), getCreatureLastPosition(cid), getWaypointsList()
* Display more detailed time in banishment info (at login etc)
* lastLogin param to onLogin
* executeLogout optional parameter in doRemoveCreature, e.g. usable for disabling MC logging
* new creature events: onFollow(cid, target) and onTarget(cid, target)
* few additional things displayed onLook, like decayTo and ghost activated
* doCreateItem fix. Count is OPTIONAL
* Few fixes with vocation multipliers
* '*Ghost Mode*' text for invisible gamemasters onLook
* Temporary crashbug fix with Monster::pushCreatures
* Compiler error with __EXCEPTION_TRACER__
* Added missing chat channels reloading to GUI
* outfits.xml 'access' param, and attributes fix (invisible, manaShield etc)
* You can now use in outfits.xml, same outfit for both sex, just use sex="0;1"
* Warning about registered monster with same name
* Ghost login fix, notifyLogin/out displayed propertly
* Updated money script (more user friendly when adding new coins xP)
* Possiblity to use id="1;2;3" or id="1-3" in stages.xml to set same stage on more worlds
* Fixed vocation magDamage/magHealingDamage multipliers for spells which was using onGetFormulaValues callback
* !deathlist configurable display limit (prevent debug)
* GUI disappearing ..
* config: 'dataDirectory' not fully supported
* And more..
bool IOBan::isIpBanished(uint32_t ip, uint32_t mask/* = 0xFFFFFFFF*/) const
{
if(ip == 0)
return false;
Database* db = Database::getInstance();
DBResult* result;
DBQuery query;
query << "SELECT `id`, `value`, `param`, `expires` FROM `bans` WHERE `type` = " << BANTYPE_IP_BANISHMENT << " AND `active` = 1;";
if(!(result = db->storeQuery(query.str())))
return false;
bool banned = false;
do
{
uint32_t value = result->getDataInt("value"), param = result->getDataInt("param");
if((ip & mask & param) == (value & param & mask))
{
if(result->getDataLong("expires") <= 0 || result->getDataLong("expires") > (int64_t)time(NULL))
{
banned = true;
break;
}
removeIpBanishment(value, param);
}
}
while(result->next());
result->free();
return banned;
}
Posting it again.. As I see no one is looking for 345345 thread pages to find it..
The Forgotten Server
Version: 0.3.4 (Crying Damson)
Patch release 1
All issues should be fixed.
Changes:
Code:* Premium account time fix (thanks Faramir) * Teleport summon fix * 'hidename', 'hidehealth' flags for monsters & npcs (Used in flamethrowers etc.) * Fixes to click & turn teleport (Debug prevent, and you can't enter house) * Client version displaying onLook * Deprecated getPlayerGroupName(cid), use getGroupInfo(id).name * New configurable: premiumDaysToFormGuild (Default: 0) * New configurable: pushCreatureDelay (how fast players moves creatures) (Default: 2 * 1000) * New configurable: confirmOutdatedVersion (Allowing you to use older versions, without confirmation) * New configurable: deathContainerId, its a default container added afer player death * New functions: setPlayerPZLocked(cid, locked), getCreatureLastPosition(cid), getWaypointsList() * Display more detailed time in banishment info (at login etc) * lastLogin param to onLogin * executeLogout optional parameter in doRemoveCreature, e.g. usable for disabling MC logging * new creature events: onFollow(cid, target) and onTarget(cid, target) * few additional things displayed onLook, like decayTo and ghost activated * doCreateItem fix. Count is OPTIONAL * Few fixes with vocation multipliers * '*Ghost Mode*' text for invisible gamemasters onLook * Temporary crashbug fix with Monster::pushCreatures * Compiler error with __EXCEPTION_TRACER__ * Added missing chat channels reloading to GUI * outfits.xml 'access' param, and attributes fix (invisible, manaShield etc) * You can now use in outfits.xml, same outfit for both sex, just use sex="0;1" * Warning about registered monster with same name * Ghost login fix, notifyLogin/out displayed propertly * Updated money script (more user friendly when adding new coins xP) * Possiblity to use id="1;2;3" or id="1-3" in stages.xml to set same stage on more worlds * Fixed vocation magDamage/magHealingDamage multipliers for spells which was using onGetFormulaValues callback * !deathlist configurable display limit (prevent debug) * GUI disappearing .. * config: 'dataDirectory' not fully supported * And more..
Download:
* Console
* GUI
* Sources