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

    7.6 Help to remember map

    I remember it was possible to dupe any stackable item and get two of the same item whit the same amount on both items, making it possible to get tons of gold back on the 7.5-7.6(?) Mrsheen or something was the distro name i think. That distor was also running the YurOTS map The trick was to be...
  2. Mummrik

    Lua Block action item in Protection Zone

    function onUse(cid, item, fromPosition, itemEx, toPosition) if item.itemid == 4850 then if getTilePzInfo(getPlayerPosition(cid)) == true then doSendMagicEffect(getPlayerPosition(cid),CONST_ME_POFF) doPlayerSendCancel(cid, "Sorry, you can't use this item in...
  3. Mummrik

    Magic Lock

    Not sure what you want the script to do but this should do the trick function onLogin(cid) local magicLevel = 9 -- magic level you want the character to get if getPlayerMagLevel(cid) < magicLevel then doPlayerAddSpentMana(cid, getPlayerRequiredMana(cid, magicLevel)) end...
  4. Mummrik

    TFS 1.X+ Why area/wave spells are not working but target spells works fine

    Thats why i thought it was running for infinty. But it make sense it should not get stuck in a infinty loop since it only got 4 elements in the dir table. Anyways it help me improve my coding seeing your code, and studying it. :D
  5. Mummrik

    TFS 1.X+ Why area/wave spells are not working but target spells works fine

    That explains alot of my confusion, since the script is sending the effect to 4 tiles infront of the player. And also revoke my suspicion of the for loop doing something fishy.
  6. Mummrik

    TFS 1.X+ Why area/wave spells are not working but target spells works fine

    You should use @bayview 's script as its better constructed code. Its hard to tell by the screenshot whats happening, but it might be that the for loop is running all the time and construct the combat table as fast as it can? Test whit an print("test") inside the for loop, then check the consol...
  7. Mummrik

    TFS 1.X+ Why area/wave spells are not working but target spells works fine

    I dont know if its more configurable, but it sure is less repetive and clean code :)
  8. Mummrik

    how to print toPosition?

    That is the position. I remember that 65535 was the x position when i was checking an items position inside the backpack. I think there is some thread explaining more on the subject, you have to search since i dont have a link to it.
  9. Mummrik

    TFS 1.X+ Why area/wave spells are not working but target spells works fine

    Im not to familiar whit TFS 1.x but i think this should work, and you should get different dmg type and spell effect depending on your direction. Whitout the use of events local combatNorth = Combat() combatNorth:setParameter(COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)...
  10. Mummrik

    TFS 1.X+ Why area/wave spells are not working but target spells works fine

    The reason is that the onCastSpell function is incomplete. function onCastSpell(cid, var) if isCreature(cid) == 1 then addEvent(ka,0,cid) end end You are making an event out of it, and that event use "ka" (function) thats why mackerel asked for the other function but since you say you...
  11. Mummrik

    Possible or not? Creatures

    I remember when i was going to add those spells to my monsters i had no clue how to make it. But i did manage to get it to work, and also make it possible to teach someone else. :) Since most classic TFS servers dont have debuff spells on monsters, that actually add alot to the gameplay. I know...
  12. Mummrik

    Lua Login.lua help!

    Go to data/XML/outfits.lua and then look what outfits you have to chose from. test different lookTypes. replace 520 whit an new lookType id This is what is throwing the error doCreatureChangeOutfit(cid, 520)
  13. Mummrik

    Lua Login.lua help!

    You should use the [.code=lua][/code] tags instead of quote tags when posting code. Anyways test this login.lua replace the current one you use, it should work whit your server local config = { loginMessage = getConfigValue('loginMessage'), useFragHandler =...
  14. Mummrik

    Lua Login.lua help!

    What TFS version is the server based on? You should be able to put that anywhere in the login.lua file aslong your server support the functions, those functions all work for 0.x TFS servers
  15. Mummrik

    Lua Login.lua help!

    Thats is correct, but during testing thats not really necessary. And even when the server is live to the public its fine to use the ingame account maker. :) But you should never mix the 2 of them, i mean if you plan on using a website then you should setup that before you launch the server to...
  16. Mummrik

    Lua Login.lua help!

    He is using the in engine account maker, its located inside the source code so there is no lua file for it. Seems like the new characters use an outfit that has been removed, you can fix this by force change outfit while loging for the first time and then assign an storage id to make sure it...
  17. Mummrik

    Lua Login.lua help!

    It has to do whit some pokeballs, it seems you are running a pokémon server? The error occurs at line 196, 198 or 200. And it seems your player is missing ultrapotions pokeballs or ultraballs. Since pokemon servers are running some custom stuff whit bags and such im not sure how its working. Im...
  18. Mummrik

    Possible or not? Creatures

    Here is an example how to reduce a players melee and shielding skills for 4 seconds (ice golem spell) Its made for 0.3.6 but should also work for 0.4 But you should be able to change it to magic level and other conditions, im not sure if hp reduce is possible but dont quote me on that. You have...
  19. Mummrik

    Multi Conditions?

    Im sure there is a way to make that happen, but nothing im in the mind to challange today. :p Edit: Here is an updated version of the script. Let me know if its working or not @LaggyNoob Script v1.1 local poisonbow = 5108 local firebow = 5109 local combatpoison = createCombatObject()...
  20. Mummrik

    Multi Conditions?

    Im glad i could guide you in the right direction :) It's easy going blind when coding sometimes :p
Back
Top