• 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!

Search results

  1. Lurk

    AAC znote most powerful guilds

    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...
  2. Lurk

    TFS 0.X player getting extra health and mana per level depending on storage

    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...
  3. Lurk

    TFS 0.X how can I check if the player causing damage with a weapon

    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
  4. Lurk

    TFS 0.X add description to znote shop items

    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 ###...
  5. Lurk

    TFS 0.X server crash

    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...
  6. Lurk

    TFS 0.X Why is this statsChange calling stack overflow?

    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...
  7. Lurk

    TFS 0.X playerGetPing is very imprecise

    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...
  8. Lurk

    TFS 0.X Block moveItem fromContainer to ground if player has storage

    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...
  9. Lurk

    TFS 0.X player isn't getting frag if the attacked fight back

    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...
  10. Lurk

    TFS 0.X help with this null value

    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` = " ...
  11. Lurk

    TFS 0.X Save pet health for 2 minutes

    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...
  12. Lurk

    AAC [ZnoteACC] Help-me optimize my isMarried on characterprofile

    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...
  13. Lurk

    AAC ignore css in a specific <tr>

    I have this tr <tr style="background-color:'.($count % 2 ? 'rgba(241, 224, 198, 0.6)' : 'rgba(212, 192, 161, 0.6)').';" > but the colors don't apply ever because on my css table tr th, table tr td { background: #555555; /*color: #FFF; */ color: skyblue; padding: 7px 4px; text-align...
  14. Lurk

    GlobalEvent [0.4] Click Up event

    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...
  15. Lurk

    AAC [ZnoteAcc] convert this gesior top 5 players to znote

    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"...
  16. Lurk

    TFS 0.X block vocations on account manager

    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...
  17. Lurk

    AAC ZnoteACC add reset number to player profile

    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...
  18. Lurk

    TFS 0.X ZnoteACC Auction system payment types

    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...
  19. Lurk

    [BRAZIL] [8.60] UnclearOT Custom baiak high exp

    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...
  20. Lurk

    Lua how to get accountId using lua

    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..'\'')...
Back
Top