• 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

    Item with duration

    What is that for? Maybe you can do it other way.
  2. S

    [tfs 1.2] Summon based in dice roll, with prize for monsters killed

    You make a request. You want someone to make script for you and it is forbidden. If you really want that script you should try to make this step by step, show script with code tags (not spoiler or pastebin) and show errors, im pretty sure someone will answer and help you fix errors.
  3. S

    Using a spell crashes server

    Yes, answer is here. When your bicycle wheel is broken. You gonna ask question: My bicycle is broken any ideas how to fix it? Possible answer: Get new one. or My bicycle wheel is broken, bicycle name: Procaliber SL Possible answer: You can buy new bicycle wheel in shop_name or go to...
  4. S

    Lua Why my fishing.lua dont work?

    Im really bad with loops at this moment but you have not working this line, it can't specify what item to give. Someone need to correct this whole loop. for i = 1, #skillLevels do if fishingSkill >= skillLevels[i][1] and fishingSkill < skillLevels[i][2] then ITEM =...
  5. S

    Lua Why my fishing.lua dont work?

    Try this. Say if it works, if not what happens. local items = { [1] = {item = 2670, desc = "itemname"}, [2] = {item = 2667, desc = "itemname"}, [3] = {item = 7159, desc = "itemname"}, [4] = {item = 7158, desc = "itemname"}, [5] = {item = 2669, desc = "itemname"}, [6]...
  6. S

    Help fast Vocations.xml

    Player is saved when log out so you need to /closeserver then go to database SQL and write command: UPDATE `players` SET `conditions` = ''; You are welcome.
  7. S

    Script for online time.

    What do you mean? Do you have to speak with language that only you understand? If you want show something do it by example and explain how it works, its the only way someone can understand this. example look like this: I see your post I know what is compat and userdata value, but i dont know...
  8. S

    Script for online time.

    hide/show timer in bottom of screen
  9. S

    Script for online time.

    Really? Then i use magic. function onThink(player, interval) local cid = player local time = 1*60*60 -- 1s*60s = 60s * 60s = 60min local count = 1 -- points to add if getPlayerStorageValue(cid, 455577) < os.time() then db.query("UPDATE `accounts` SET `premium_points` =...
  10. S

    Script for online time.

    Yeah its ok if you made high prices :p I upgraded script for you. creaturescripts/creaturescripts.xml <event type="think" name="addpointTimer" event="script" value="addpointTimer.lua"/> creaturescripts/scripts/addpointTimer.lua function onThink(cid, interval) local time = 1*60*60 --...
  11. S

    Script for online time.

    If someone login on mc 5 characters it will be: 1h = 5 24h (1day) = 120 168h (7 days) = 840 instead of: 1h = 1 24h = 24 168h = 168 Its huge difference if you look on it like this, thats the only thing i could imagine about abusing (mc).
  12. S

    Script for online time.

    If he dies it will be restarted too. It is stopped instantly when you logout.
  13. S

    Script for online time.

    1 yes 2 yes 3 i dont see bugs Thank you! xD Oh boys.. Look: function onThink(cid, interval) woot not only interval and lastExecution =D
  14. S

    Script for online time.

    test it and if works change time = 5 to time = 1*60*60 in login.lua and addpointtimer.lua creaturescripts/creaturescripts.xml <event type="think" name="addpointTimer" script="addpointTimer.lua" /> creaturescripts/addpointTimer.lua function onThink(cid, interval) local time = 5 -- time to...
  15. S

    Script for online time.

    No its about query command This must work: function onThink(cid, interval) local time = 10 -- time to add points change to 1*60*60 after you test it local count = 1 -- how many points to add if getPlayerStorageValue(cid, 455577) < os.time() then db.executeQuery("UPDATE...
  16. S

    Script for online time.

    creaturescripts/creaturescripts.xml <event type="think" name="addpointTimer" script="addpointTimer.lua" /> creaturescripts/addpointTimer.lua function onThink(cid, interval) local time = 10 -- time to add points change to 1*60*60 after you test it local count = 1 -- how many points to...
  17. S

    Script for online time.

    omg.. misstype function onThink(cid, interval) --local getAccPoints = db.storeQuery("SELECT * FROM `accounts` WHERE `name` ='"..player:getAccount().."'") local time = 10 -- time to add points change to 1*60*60 after you test it local count = 1 -- how many points to add if...
  18. S

    Script for online time.

    This should work: function onThink(cid, interval) --local getAccPoints = db.storeQuery("SELECT * FROM `accounts` WHERE `name` ='"..player:getAccount().."'") local time = 10 -- time to add points change to 1*60*60 after you test it local count = 1 -- how many points to add...
  19. S

    Script for online time.

    Try this: function onThink(cid, interval) local time = 10 -- time to add points change to 1*60*60 after you test it local count = 1 -- how many points to add if getPlayerStorageValue(cid, 455577) < os.time() then db.storeQuery("UPDATE `accounts` SET `premium_points` =...
  20. S

    Script for online time.

    counts time local remaining = math.ceil(getPlayerStorageValue(cid, 455577) - os.time()) this is message to show you that script is working well doPlayerSendDefaultCancel(cid, "Time before adding point: "..remaining..".") -- remove this line its for testing to see if it works message you can...
Back
Top