• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[8.6/12X] [TFS1.3] Global + Source + Web + tools + Quest Reward System

How do I enable exp stages?
Does it have a market system?
 
Last edited:
How do i put stamina back? stamina is not lowering, already tried on login.lua and config.lua. Can u help-me please?
 
Hey, the server is crashing, who can i fix it? (why is it crashing?) there is another link that don't crash? the 8.6 link don't work
 
hey, which object builder you use to convert newest tibia outfits to 8.6 version? im using builder from yours github but its not compatible with client 12.51 :/
 
Found it myself. -Dunno how to delete a reply, plz delete this. Thanks.-
 
Last edited:
nice post, i have a question, how can i upgrade to the version 12.51? I am newbie about to create otserver
 
ERROR: Cannot find C:/Users/Casa/Desktop/OTServ/config.lua file. More info in system/logs/error.log

When i want to go to my website, i see this, how to fix it? I entered the code of my config.lua
 
hi i update a version compiled in Linux/Ubuntu... i think this version is more clean.

Post automatically merged:



View attachment 48181


in htdocs\system\libs\pot\OTS_Player

change
private $data = array('sex' => 0, 'vocation' => 0, 'experience' => 0, 'level' => 1, 'maglevel' => 0, 'health' => 100, 'healthmax' => 100, 'mana' => 100, 'manamax' => 100, 'manaspent' => 0, 'soul' => 0, 'lookbody' => 10, 'lookfeet' => 10, 'lookhead' => 10, 'looklegs' => 10, 'looktype' => 136, 'lookaddons' => 0, 'posx' => 0, 'posy' => 0, 'posz' => 0, 'cap' => 0, 'lastlogin' => 0, 'lastip' => 0, 'save' => true, 'skulltime' => 0, 'skull' => 0, 'balance' => 0, 'lastlogout' => 0, 'blessings' => 0, 'stamina' => 0, 'online' => 0, 'comment' => '', 'created' => 0, 'hidden' => 0);


to

private $data = array('sex' => 0, 'vocation' => 0, 'experience' => 0, 'level' => 1, 'maglevel' => 0, 'health' => 100, 'healthmax' => 100, 'mana' => 100, 'manamax' => 100, 'manaspent' => 0, 'soul' => 0, 'lookbody' => 10, 'lookfeet' => 10, 'lookhead' => 10, 'looklegs' => 10, 'looktype' => 136, 'lookaddons' => 0, 'posx' => 0, 'posy' => 0, 'posz' => 0, 'cap' => 0, 'lastlogin' => 0, 'lastip' => 0, 'save' => true, 'skulltime' => 0, 'skull' => 0, 'balance' => 0, 'lastlogout' => 0, 'blessings' => 0, 'stamina' => 0, 'online' => 0, 'comment' => '', 'created' => 0, 'hidden' => 0, 'QuestPoints' => 0);


and

// SELECT query on database
$this->data = $this->db->query('SELECT id, name, account_id, group_id, sex, vocation, experience, level, maglevel, health, healthmax, mana, manamax, manaspent, soul, lookbody, lookfeet, lookhead, looklegs, looktype' . ($this->db->hasColumn('players', 'lookaddons') ? ', lookaddons' : '') . ', posx, posy, posz, cap, lastlogin, lastlogout, lastip, save, conditions, ' . $__load['skull_time'] . ' as skulltime, ' . $__load['skull_type'] . ' as skull' . $__load['guild_info'] . ', town_id' . $__load['loss_experience'] . $__load['loss_items'] . ', balance' . ($__load['blessings'] ? ', blessings' : '') . ($__load['direction'] ? ', direction' : '') . ($__load['stamina'] ? ', stamina' : '') . ($__load['world_id'] ? ', world_id' : '') . ($__load['online'] ? ', online' : '') . ', ' . ($__load['deletion'] ? 'deletion' : 'deleted') . '' . ($__load['promotion'] ? ', promotion' : '') . ($__load['marriage'] ? ', marriage' : '') . ', comment, created, hidden FROM players WHERE id = ' . (int)$id)->fetch();


to

// SELECT query on database
$this->data = $this->db->query('SELECT id, name, account_id, group_id, sex, vocation, experience, level, maglevel, health, healthmax, mana, manamax, manaspent, soul, lookbody, lookfeet, lookhead, looklegs, looktype' . ($this->db->hasColumn('players', 'lookaddons') ? ', lookaddons' : '') . ', posx, posy, posz, cap, lastlogin, lastlogout, lastip, save, conditions, ' . $__load['skull_time'] . ' as skulltime, ' . $__load['skull_type'] . ' as skull' . $__load['guild_info'] . ', town_id' . $__load['loss_experience'] . $__load['loss_items'] . ', balance' . ($__load['blessings'] ? ', blessings' : '') . ($__load['direction'] ? ', direction' : '') . ($__load['stamina'] ? ', stamina' : '') . ($__load['world_id'] ? ', world_id' : '') . ($__load['online'] ? ', online' : '') . ', ' . ($__load['deletion'] ? 'deletion' : 'deleted') . '' . ($__load['promotion'] ? ', promotion' : '') . ($__load['marriage'] ? ', marriage' : '') . ', comment, created, hidden, QuestPoints FROM players WHERE id = ' . (int)$id)->fetch();


and add this function in some place
public function getQuestPoints()
{
return $this->data['QuestPoints'];
}


in
htdocs\system\templates\characters.html

change (Add the bold text below Residence)

{% set rows = rows + 1 %}
<tr bgcolor="{{ getStyle(rows) }}">
<td>Residence:</td>
<td>{{ town }}</td>
</tr>

to

{% set rows = rows + 1 %}
<tr bgcolor="{{ getStyle(rows) }}">
<td>Residence:</td>
<td>{{ town }}</td>
</tr>

{% set rows = rows + 1 %}
<tr bgcolor="{{ getStyle(rows) }}">
<td>Quest Points:</td>
<td>{{ player.getquestpoints() }}</td>
</tr>
I have do all what you said here but still don't have column QuestPoints in database.
Then code in SQL:
SQL:
ALTER TABLE `players` ADD `QuestPoints` int(11) NOT NULL default 0;
It adds me Column QuestPoints in databes correct.

But have error on website when looking any character profile:
Code:
Whoops something went wrong...
syntax error, unexpected ''QuestPoints'' (T_CONSTANT_ENCAPSED_STRING), expecting variable (T_VARIABLE)

Backtrace:
#0 [internal function]: POT->loadClass()
#1 /var/www/html/system/pages/characters.php(59): spl_autoload_call()
#2 /var/www/html/index.php(360): require('/var/www/html/s...')
#3 {main}

Can you upload these files or assist to correctly implement it.
Cannot find it in your files on github!

EDIT2:
Maybe i put:
Code:
public function getQuestPoints()
    {
       return $this->data['QuestPoints'];
    }
in wrong place??
 
Last edited:
If some one put the server online tell me to join the game jejej


Ill Quote you from a year ago, Just got back into opentibia, i downloaded all these files, took a few days a fucking around with but eventually got the server running, but the only problem is, it crashes.....You would not want too join a server that crashes often, now would you? Only thing i could notice is when the server save appraoches it lags TFS complete too crash, maybe it is triggering a raid at the same time as the server save?

I would invite you too this random project but it crashes often....

I read all 8 pages and seen other often state this problem. Did i miss something?
Ill give this a B+, Would be a A+/ " S " distribution if you would only tinker out the very few bugs

I could not find a tibia.spir or tibia.dat for tibia. 11 so i read in a previous post you stated too use the open tibia client, is that cuasing the crashes maybe perhaps?
 
Back
Top