• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Search results

  1. P

    Bug When Die!

    Are you sure you installed all war system tables and columns? This error mean that you have to add in table 'player_deaths' new column with name 'time', type: INT, lenght: 11, default = 0
  2. P

    Potion

    local hpMin = 2500 local hpMax = 10000 local HPmultiLvl = 6.0 local HPmultiMaglvl = 1.0 local HPplus = 1000 local hpValues = {0.8, 1.2} -- random range local reqLevel = 250 local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS...
  3. P

    Spell Solaris

    Replace in all arrays arrX: 2 with: 3 and it will hit target.
  4. P

    MoveEvent VIP Tiles & Teleports

    Shorter, some bugs fixed. 1. --Function by Frankit0-- function onStepIn(cid, item, frompos, item2, topos) if(getCreatureStorage(cid,11551) >= 1) then doPlayerSendTextMessage(cid, 19, "You are VIP, you are allowed to pass.") else doPlayerSendTextMessage(cid, 19, "You are not VIP, you can't...
  5. P

    TalkAction Rainbow outfit

    Rainbow outfit. Like when you use bot ;) Players use: !rain GM/CM/GOD can use: !rain 1234 to set outfit color change time to 1234 seconds. local default_time = 30 -- time in seconds local fr = 5 -- frequency, changes per second local access_to_change_time = 3 -- access needed to set own...
  6. P

    CreatureEvent Logins counter

    Very simple script, but someone PMed me that he can't find it on forum :huh: local loginsCounterStorage = 12345 function onLogin(cid) local loginsCount = getCreatureStorage(cid, loginsCounterStorage) if loginsCount == -1 then doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, "first...
  7. P

    Website Problem or wehre? Player can Enter game but not Website why? Port is open!

    If you configure your router via website (web browser) - router block port 80 [good routers in 'advanced configuration' has option to change port of router website, then you have to enter for example: http://192.168.1.1:60 [if you set port 60]). Players can't enter website, because it's not...
  8. P

    NPC - No Response

    I dont know how on 0.4, but on 0.3 with Jiddo (default) npc system you have to define what function is callback for messages to make it work (paste it below function 'end'): npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, giveAbility) and at end of every NPC script is (it make NPC add/remove...
  9. P

    Help with a lua script

    What ots is it? 7.6 or what? This doesn't look like LUA script..
  10. P

    Shop.lua (solved)

    I use TFS 0.3.6pl1 and this script: -- ### 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 ### function onThink(interval...
  11. P

    [Talkaction] + [Globalevent] /save command and auto save script. (Simple).

    ALL SCRIPTS FROM THIS THREAD DO NOT WORK [TESTED!] Why? int32_t LuaScriptInterface::luaDoSaveServer(lua_State* L) { //doSaveServer([shallow]) bool shallow = false; if(lua_gettop(L) > 0) shallow = popNumber(L)...
  12. P

    Action City gates [for ex. yalahar]

    You can add 1 or more switches to add/remove gates. Switches must have ActionID (map editor) same as actionid in actions.xml and UniqueID (map editor) like in script config (for ex. 11536). Parameter fromPos must have z and stackpos (for most of gate items it's 1) parameters. Script...
  13. P

    Remove Item

    Did you answer and copy code + modify or wrote it Cyko? :D If item exist now (when onThink execute) there is no reason to check UID when it execute doRemoveItem.
  14. P

    [LIB] getGuildLeader(GuildName)

    Version with one query to mysql and E S C A P E S T R I N G!! (without db.escapeString and with your talkaction it's possible to hack database [add in name ' and then your modified query] on some wrong configured servers [90% servers :( ]) function getGuildLeaderGUID(GuildName) local leader =...
  15. P

    Remove Item

    local pos = {x=1,y=1,z=1} local item_id = 1234 function onThink() doBroadcast("10 min left") addEvent(doBroadcast, 5 * 60 * 1000, "5 min left") addEvent(doRemoveItem, 10 * 60 * 1000, getTileItemById(pos, item_id).uid) addEvent(doCreateItem, 20 * 60 * 1000, item_id, 1, pos) return true end
  16. P

    Remove Item

    Item ID based. local pos = {x=1,y=1,z=1} local item_id = 1234 function onThink() local item = getTileItemById(pos, item_id) doRemoveItem(item.uid) addEvent(doCreateItem, 10 * 60 * 1000, item_id, 1, pos) return true end
  17. P

    TalkAction New! RAINBOW SYSTEM with config by Dubler :D

    Shorter version. You don't need anything in 'data/lib'. Only this script: --config ## Script By Dubler from otland.net , update by P~ ## local t = 5 -- time in seconds local fr = 4 -- frequency, changes per second --endconfig ## Script By Dubler from otland.net , update by P~ ## local...
  18. P

    Configuration [FAQ] Gesior acc. maker for TFS

    Download Notepad+ (search in google), open config.lua in it and remove all green texts (comments) and it will work.
  19. P

    doScanContainer(item, tables)

    for i = 0, getContainerSize(item.uid) do change it with: for i = getContainerSize(item.uid), 0 do or player will get items in wrong order. There is already in TFS function that copy item/container. It can also copy items action IDs ;) function doCopyItem(item, attributes) local attributes...
  20. P

    Some informations about spells damage for newbies

    TFS 0.3.6 and 0.4 ################################ I wrote it ~month ago to explain my friend how to make spells :p You can use 4 or more parameters. Param order: setCombatFormula(combat, type, mina, minb, maxa, maxb[, minl, maxl[, minm, maxm[, minc[, maxc]]]]) How TFS calculate it: min =...
Back
Top