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

    Script for online time.

    Ye, i was changing db.query to db.executeQuery and u posted again :P Now the code WORKS! But is adding only 1 point, the code are not adding more points when time restarts. I maded this to the code: function onThink(cid, interval) local time = 1*60*60 -- time to add points change to...
  2. 1268995

    Script for online time.

    Error on console: [29/07/2015 23:45:15] mysql_real_query(): UPDATE `accounts` SET `premium_points` = `premium_points` + 1 WHERE `id` = `12345as`; - MYSQL ERROR: Unknown column '12345as' in 'where clause' (1054) 12345as = player account If you think the code are right, i think the problem is...
  3. 1268995

    Script for online time.

    Error on console: [29/07/2015 23:37:41] mysql_store_result(): UPDATE `accounts` SET `premium_points` = `premium_points` + 1 WHERE `id` = 1607361; - MYSQL ERROR: (0)
  4. 1268995

    Script for online time.

    The same error appear on console: [29/07/2015 23:30:14] [Error - CreatureScript Interface] [29/07/2015 23:30:14] data/creaturescripts/scripts/addpointTimer.lua:onThink [29/07/2015 23:30:14] Description: [29/07/2015 23:30:14] data/creaturescripts/scripts/addpointTimer.lua:8: attempt to call...
  5. 1268995

    Script for online time.

    Lol.. and do u know how to make a checker with this onlinetime field?
  6. 1268995

    Script for online time.

    Appear this error on console: [29/07/2015 23:06:11] mysql_store_result(): UPDATE `accounts` SET `premium_points` = '105' WHERE `name` ='123456as' - MYSQL ERROR: (0) EDIT: I made this: local aid = getPlayerAccountId(cid) local query = db.getResult("SELECT `premium_points` FROM...
  7. 1268995

    Script for online time.

    Right. 1) Do not appear any message on console/to my online character about time ramaining; 2) Appear this error on console: [29/07/2015 22:59:41] [Error - CreatureScript Interface] [29/07/2015 22:59:41] data/creaturescripts/scripts/addpointTimer.lua:onThink [29/07/2015 22:59:41] Description...
  8. 1268995

    Script for online time.

    Now i got no errors on console ;DDDDDDDD But i dont know how to put the checkers. Also i dont know what this part of script do: local remaining = math.ceil(getPlayerStorageValue(cid, 455577) - os.time()) doPlayerSendDefaultCancel(cid, "Time before adding point: "..remaining..".") -- remove...
  9. 1268995

    Script for online time.

    New error: [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...
  10. 1268995

    Script for online time.

    Sorry for not mention my tfs and ot version on main post, my mistake. I will test the script now!! EDIT: Got a error on console: [29/07/2015 22:30:06] [Error - CreatureScript Interface] [29/07/2015 22:30:06] data/creaturescripts/scripts/addpointTimer.lua:onThink [29/07/2015 22:30:06]...
  11. 1268995

    Script for online time.

    login.lua local config = { loginMessage = getConfigValue('loginMessage'), useFragHandler = getBooleanFromString(getConfigValue('useFragHandler')) } function onLogin(cid) if (getPlayerLastLoginSaved(cid) == 0) then doTeleportThing(cid, {x=24,y=2235,z=8}) end if...
  12. 1268995

    Script for online time.

    Let me test! I will check the time (local time = 10) twice? On login.lua and on addpointTimer.lua ? And more, my login.lua does not have a function onLogin(player)
  13. 1268995

    Script for online time.

    I think i just need to know how to make the code to check player online time. Function GetPlayerOnlineTime or something like that exist on tfs 0.3.6 (8.6) ?
  14. 1268995

    Script for online time.

    I edited my last post with the lib function! Ye, the thing is i dont know how to make this checkers XD I will try do something.. if any1 got a idea, it will be very niceee
  15. 1268995

    Script for online time.

    I really dont know how to do the script, but i can help with some codes: local points = 1 local aid = getPlayerAccountId(cid) local query = db.getResult("SELECT `premium_points` FROM `accounts` WHERE `id`= "..aid..";") if query:getDataInt("premium_points") > 0 then...
  16. 1268995

    Script for online time.

    Ye, i already tought about this checker, but i dont know how to make a checker like: Ifplayeronlinetime = 1hour then Any ideas?
  17. 1268995

    Script for online time.

    Hello Guys. I need (please xD) a script that every 1 hour player are online he wins a premium point on gesior (that points used to buy itens on site) So if player stays 24h online on the server, he will win 24 points -> each hour online = 1 premium point. Ideas?
  18. 1268995

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

    As i said, all workeeeed goood, thank yaaa, SOLVED!!!!!!!!!!!!!!! <3333333333333333333333333333333333
  19. 1268995

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

    YEYYYYYY i love yaaaaaaaaaaaa, all workk gooooood <33333333333333 PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES -->>> what this means? group id > 4 ?
  20. 1268995

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

    IDK why, u script seems perfect, but dont work, god still cant use potions.
Back
Top