Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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!
I'm using [Znote AAC] Most powerful guilds (TFS 0.3/4 and 1.0) (https://otland.net/threads/znote-aac-most-powerful-guilds-tfs-0-3-4-and-1-0.209045/) (no table design) and tfs 0.4
the select query is
SELECT `g`.`id` AS `id`, `g`.`name` AS `name`, COUNT(`g`.`name`) as `frags` FROM `killers` k...
I'm using tfs 0.4 rev 3777 (Fir3element/3777 (https://github.com/Fir3element/3777)) and I'd like to know how I can make it so a player gets extra hp and health based on a storage value
for example:
Knights gain 5 mana and 20 health per level (just like in vocations.xml) if the storage value is...
I'm trying to mess around with onStatsChange and I need to check if the damage that the player is causing is being caused by a weapon (since the player can deal damage with runes, spells, fire field and what not)
I know I can getPlayerSlotItem but that will only tell me that he has a weapon equiped
Hello, I found this script for the globalevent gesior shop item
-- ### CONFIG ###
-- message send to player by script "type" (types you can check in "global.lua")
SHOP_MSG_TYPE = 19
-- time (in seconds) between connections to SQL database by shop script
SQL_interval = 30
-- ### END OF CONFIG ###...
Using tfs 0.4 rev 3777. I have doOpenChannel on my server so whenever a player close a channel that I don't want them to close it is reopened and it works fine most of the times, but if I'm online and someone logs into my char (that will kick me), that other person will log in without any...
I'm using tfs 0.4, rev 3777
I'm trying to use this script to increase damage by each player reset and it also has a chance to crit but it always returns a lot of errors in console even tho the values are fine
here's the script
function onStatsChange(cid, attacker, type, combat, value)
if...
Hi, I'm using tfs 0.4 and this getPlayerPing from mock adapted but it is very imprecise, when I ping my server with cmd it says that my ping is over 100, but this function says I'm at 20 something ping, any idea how I can improve it?
Here's the 0.4 version
int32_t...
Hello, I'm using tfs 0.4 and I have this 2 functions on my source
onMoveItem(moveItem, frompos, position, cid)
onMoveItem2(cid, item, count, toContainer, fromContainer, fromPos, toPos)
I want to block the player from trowing the items let's 2160, 2161, 2162 (an array of items) to the ground IF...
Hello, I'm using tfs 0.4 Fir3element/3777 (https://github.com/Fir3element/3777) and I'm having this problem with my frag system
If a player kills another without the attacked fighting back, the injust kill works just fine and the player (attacker) get the frag
If let's say I get attack...
Helo, I have this script that allows players to use their website points in tradow windows with other players
I have this on my libs
function getAccountPoints(cid)
local Points = 0
local Result = db.getResult("SELECT `points` FROM `znote_accounts` WHERE `account_id` = " ...
Hello, I have a pet system and I have this problem:
You summon your pet and it spawns full life, as intented. You can also at any time unspawn it by using the item again;
If my pet loses let's say 80% of it's health, I can simply use my item again to unspawn and then use again to spawn it full...
Helo, I just added this to my server NPC - Marriage system 8.6+ [Fixed] (https://otland.net/threads/marriage-system-8-6-fixed.161590/) and I wanted to show on my website who the characters were married to and I managed to do it but the code is so ugly it makes me sad :( can anyone help? here's...
Hello everyone, I love tibia and this community has given me a lot and I finally feel like I have something to give back, this code can be improved a lot (if you do improve it please comment here so we can all improve together). The idea behind this event is that I head the name Click up in a...
I'm using this template (by default it doesn't come with top 5 players) and I was messing a bit and got to this code (which I added to htdocs/layout/rightside.php)
<!-- TOP PLAYERS -->
<div class="Themebox">
<div class="panel-heading"...
Hello, I have some custom vocations and they're available on my account manager. I know that's why I have my fromvoc with the same id of the vocation, but I want set on my iologindata.cpp which vocations id are available for everyone. I didn't found a good way to do this but on the sources and I...
I'd like to show the amount of resets the player has on his character profile, under the level field would be the best place I guess. My reset is storage based (378378)
my characterprofile.php on pastebin because the code was too big to be posted here [PHP] characterprofile - Pastebin.com...
Helo, I'm using this auction system and it works perfectly, but I want to add an option for the seller to decide if he'll charge event coins (id 10558), premium points (id 12597) or regular money (which the system already does) and to show on the php page which currency that offer asks
here's...
Hello, I'm here to present to you a high exp, reset based server on a fully edited baiak map
Reset system (as well as custom vocations along the way)
New Vocations and spells for each one as well as bonus attack speed
War system with shields -> type !war to know more
Daily events (castle, dota...
Hello, I have this code
function getAccountPoints(cid)
local id = db.getResult("SELECT `account_id` FROM `players` WHERE `name` = '" ..getPlayerName(cid).. "';")
print("id: " ..id.. "")
local res = db.getResult('select `points` from `znote_accounts` where `account_id` = \''..id..'\'')...