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

    Lua Timer on Teleportscroll

    function onUse(cid, item) local compareTime = 60 * 60 * 1000 local scroll = 1959 local currentValue = getPlayerStorageValue(cid, 9897) if currentValue == -1 then currentValue = os.time() end if hasCondition(cid, CONDITION_INFIGHT) == TRUE and item.itemid ==...
  2. mpa

    Lua Timer on Teleportscroll

    This timer on the teleportscroll isn't working. When I use it i only get the cancelmessage "You can only use this scroll once every hour." What's wrong with the timer? function onUse(cid, item) local compareTime = 60 * 60 * 1000 local scroll = 1959 local currentValue =...
  3. mpa

    luaGetPlayerStorageValue(). Player not found

    w00ps :p thanks
  4. mpa

    Whats wrong with this actions?

    Put actionid 1002 on the level tile? Level Tile 1000 + Required LevelAnd use this? function onStepIn(cid, item, frompos, item2, topos) if getPlayerLookDir(cid) == 0 then newdir = 2 elseif getPlayerLookDir(cid) == 1 then newdir = 3 elseif...
  5. mpa

    luaGetPlayerStorageValue(). Player not found

    What is wrong? error: luaGetPlayerStorageValue(). Player not foundlocal compareTime = 60 * 60 * 1000 local scroll = 1959 local currentValue = getPlayerStorageValue(cid, 9798) if currentValue == -1 then currentValue = os.time() end function onUse(cid, item) if...
  6. mpa

    Action Extra exp rate scroll

    This is my first (working) script! I've tested it and it works. When you use poweritem you will get 5x extra exprate. local poweritem = 1958 local rate = 5 function onUse(cid, item) if doPlayerRemoveItem(cid, poweritem, 1) == 1 then...
  7. mpa

    Will this work?

    Perfect! My first 2 scripts <3 :wub: What more types of scripts can I do to practise?
  8. mpa

    Will this work?

    Thanks man! Gonna try it soon :p rep ++ to you :D What about my other script?
  9. mpa

    Will this work?

    It would be great if someone would like to test this. I don't have access to my server atm.
  10. mpa

    Spell

    Do you get any errors?
  11. mpa

    Will this work?

    I also made this script, what do you think? local pos = getCreaturePosition(cid) local effect = 29 function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerLevel(cid) >= 50 then setPlayerExtraExpRate(cid, 5) doSendAnimatedText(getThingPos(cid)...
  12. mpa

    Will this work?

    So it should be something like this? function teleportTimer(cid) doTeleportThing(cid, town, 1) addEvent(teleportTimer, (time * 1000)I'm sure this is totally wrong, lol :) Edit: I have changed the script a bit, here it is now: local item = 2263 local time = 10 local town =...
  13. mpa

    Will this work?

    Oh, Didn't think about that. So this is the only error? I thought it would be more :O I will see if i can figure this out. :thumbup: Edit: I edited the script in my first post. Will it work now? :wub: I would also like to know how you can put a cooldown on this (like in wow).
  14. mpa

    Will this work?

    I have just started with lua and I have no idea if this will work (it is my first): dofile(getDataDir() .. "lib/exhaustion.lua") local item = 2263 local time = 10 local town = getPlayerMasterPos(cid) local exhausttime = 60 * 60 * 1000 local storevalue = 4850 function...
  15. mpa

    [Request] Lua school

    I just started to learn lua. You learn alot by reading tutorials and shit but you learn even better if you do like in real school. A teacher that gives you homework! So it would be very fun if a luaPro here on otland became a teacher. He would give us like 1 homework / week or whatever he...
  16. mpa

    [Solved}TFS 0.3 quest system not working

    Write it here then please
  17. mpa

    About the multiworld-system

    Great!
  18. mpa

    CreatureEvent Frag reward

    Good question :blink:
  19. mpa

    Spell Project: Real Tibia Spell Formulas v1.0.0

    Please answer my question... :(
  20. mpa

    LeaseWeb Username

    Port Froward 3389 oooooh geeeeez poooort fooooorward huahuehuaheuaheuaheuh
Back
Top