• 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. S

    Script for online time.

    [29/07/2015 22:40:23] [Error - CreatureScript Interface] [29/07/2015 22:40:24] data/creaturescripts/scripts/addpointTimer.lua:onThink [29/07/2015 22:40:24] Description: [29/07/2015 22:40:24] data/creaturescripts/scripts/addpointTimer.lua:6: attempt to compare boolean with number [29/07/2015...
  2. S

    Script for online time.

    You talk so much and you wont help. This is the only way i could make it work, if i remove creature from onThink it is not working. #edit see this: function onThink(interval) local time = 10 -- time to add points change to 1*60*60 after you test it local count = 1 -- how many points...
  3. S

    Script for online time.

    login.lua local config = { loginMessage = getConfigValue('loginMessage'), useFragHandler = getBooleanFromString(getConfigValue('useFragHandler')) } function onLogin(cid) local time = 10 -- time to add points set to 1*60*60 after you test it registerCreatureEvent(cid...
  4. S

    Script for online time.

    First onLogin makes script run, else it will not run its only to start it and does nothing else. Second script onThink counts.. show me your creaturescripts/scripts/login.lua
  5. S

    Script for online time.

    Hehe now im smartass. See this its tested. creaturescripts/creaturescripts.xml <event type="think" name="addpointTimer" script="addpointTimer.lua" /> creaturescripts/addpointTimer.lua function onThink(creature, interval) local player = Player(creature) local cid = Player(creature)...
  6. S

    Script for online time.

    Right after i writed idea i knew it was wrong after first reading and you just quoted it pfff xP So you will need a counter that starts after you login and globalevent checker that check if you have on timer 1*60*60 seconds
  7. S

    Script for online time.

    You should do it by globalevent every 1hour interval db query for all online.
  8. S

    Lua Help! [XML] Tibia 8.1 vocation manarune both scripts

    Sprawdź ten i zobacz czy wszystko ok. function onUse(cid, item, frompos, item2, topos) local level = getPlayerLevel(cid) local mlevel = getPlayerMagLevel(cid) local exhausted_seconds = 1 -- exhausted in seconds local exhausted_storagevalue = 759955 -- storage value to exhaust local manaMin =...
  9. S

    Lua Help! [XML] Tibia 8.1 vocation manarune both scripts

    Nawet jeśli nie ma exhausta?
  10. S

    Lua Help! [XML] Tibia 8.1 vocation manarune both scripts

    Ponieważ musisz ustawić na hotkeyu. Takie info jest jeśli z hotkeya używasz.
  11. S

    Lua Help! [XML] Tibia 8.1 vocation manarune both scripts

    Proszę: function onUse(cid, item, frompos, item2, topos) local level = getPlayerLevel(cid) local mlevel = getPlayerMagLevel(cid) local exhausted_seconds = 1 -- exhausted in seconds local exhausted_storagevalue = 759955 -- storage value to exhaust local manaMin = (level * 7) + (mlevel * 8)...
  12. S

    Lua Help! [XML] Tibia 8.1 vocation manarune both scripts

    function onUse(cid, item, frompos, item2, topos) local level = getPlayerLevel(cid) local mlevel = getPlayerMagLevel(cid) local exhausted_seconds = 1 -- exhausted in seconds local exhausted_storagevalue = 759955 -- storage value to exhaust local manaMin = (level * 7) + (mlevel * 8) local...
  13. S

    Lua Help! [XML] Tibia 8.1 vocation manarune both scripts

    function onUse(cid, item, frompos, item2, topos) local level = getPlayerLevel(cid) local mlevel = getPlayerMagLevel(cid) local exhausted_seconds = 1 -- exhausted in seconds local exhausted_storagevalue = 759955 -- storage value to exhaust local manaMin = (level * 7) + (mlevel * 8) local...
  14. S

    Lua Help! [XML] Tibia 8.1 vocation manarune both scripts

    To global, cokolwiek co posiada listę funkcji. Ten skrypt jest tak źle napisany, że aż boli :P
  15. S

    Lua Help! [XML] Tibia 8.1 vocation manarune both scripts

    Proszę wejdź na tę stronę i wklej tam cały luascript.cpp z src, pomoże mi to w wyszukaniu odpowiednich funkcji. http://wklej.to
  16. S

    Lua Help! [XML] Tibia 8.1 vocation manarune both scripts

    Do you want 2 items working on 1 script? Please say exactly what you want script to do and with what itemid. I need also your lines from actions.xml linked to this script. The first script is manarune for players, really bad scripted and i see double codes. Second script is normal potion for...
  17. S

    Lua Help! [XML] Tibia 8.1 vocation manarune both scripts

    I can help, please change thread title to [your TFS version] example [TFS 0.3.6] Voc Manarune or [8.6] Voc Manarune so ppl know which functions you use and then they will be able to help you. Good, please wait for my edit. scripting in progress.. :P
  18. S

    test server

    Whats the problem in testing npc in your main server? If you really need second you need to make second server with ip ="localhost" and probably switch word id. Im not sure if you need to change ports, probably not because i run tfs with tibia version 10.77 and 8.6 on global ip and localhost and...
  19. S

    Solved How can i remove potion 'on use' in this script

    Im glad to help others even if im not really good scripter. It's not end of my possibilities haha xD See this modification: -- script made by Sh4dowDan local config = { manaMin = 500, -- minimum mana add manaMax = 760, -- maximum mana add removeOnUse = false -- true / false }...
  20. S

    Solved How can i remove potion 'on use' in this script

    It's flag that your character has gamemaster privileges. See this page, maybe you will understand what flags are. http://ranisalt.github.io/flags-calculator/ You can edit your flags in data/XML/groups.xml <group id="4" name="Gamemaster" flags="3808558964575" customFlags="257215" access="3"...
Back
Top