• 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!

Search results

  1. Xikini

    Lua Shovel

    local groundIds = {354, 355} -- pick usable ground local lava = { Position(2023, 2078, 11), Position(2024, 2078, 11), Position(2028, 2075, 11) } local pick_whitelist = {2016, 2017, 2018, 2019, 2020, 2021, 2025, 2026, 2027, 2028, 2029, 2030} -- itemIds that will be ignored, and pick...
  2. Xikini

    RevScripts Modal window using aid?

    uhh, can you try a super simple test script, like.. below, to see that it works? Cuz I'm not seeing anything obvious in the code that would account for that error local test = Action() function test.onUse(player, item, fromPosition, target, toPosition, isHotkey) print("actionId trigger is...
  3. Xikini

    RevScripts Modal window using aid?

    adding on, there is a slightly outdated wiki page for revscripts, which shows 99% of the stuff you can register https://github.com/otland/forgottenserver/wiki/Revscriptsys Can you add a print into the first line of onUse, to verify it's being triggered?
  4. Xikini

    Lua Xikini's Free Scripting Service TFS 1.4.2

    The original idea as far as I can remember, was to have hidden evolutions for weapons for the players to find. It was a very rpg server. But yes, it's built that only a single transformation can take place, per item.
  5. Xikini

    Lua Xikini's Free Scripting Service TFS 1.4.2

    correct.
  6. Xikini

    Lua Xikini's Free Scripting Service TFS 1.4.2

    That would be tough, since each weapon can evolve in multiple different ways, depending on the monsters you are hunting.. mm alright, I think got something cooking. Untested. Put into same file. local talkaction = TalkAction("!checkEvolution") function talkaction.onSay(player, words, param...
  7. Xikini

    Lua GlobalStorage dont save

    show current script you're testing it with
  8. Xikini

    Lua Xikini's Free Scripting Service TFS 1.4.2

    change (x2 in script) if attacker:isMonster() then to if attacker and attacker:isMonster() then or just go and recopy script from above. I edited it with the fix.
  9. Xikini

    Lua Xikini's Free Scripting Service TFS 1.4.2

    The onHealthChange is only registered to players (via onLogin), so creature in this instance can only ever be the player. xP
  10. Xikini

    Lua GlobalStorage dont save

    You actually have to use the function for it to work. lol anywhere you are using Game.getStorageValue or Game.setStorageValue you'd have to replace with getGlobalStorageValue or setGlobalStorageValue
  11. Xikini

    Lua Xikini's Free Scripting Service TFS 1.4.2

    Good point. Should do onManaChange as well, since there is magical attacks, and mana shield. lol Technically yes.. But what monsters are casting healing onto players?
  12. Xikini

    Lua Xikini's Free Scripting Service TFS 1.4.2

    Put it into data/scripts local critical_monsters = { ["dragon"] = {multiplier = 2.0, chance = 5}, -- 2x dmg, 5% chance ["make sure the monster names are lowercase"] = {multiplier = 2.0, chance = 5} } local healthChange = CreatureEvent("onHealthChange_Critical_Monsters") function...
  13. Xikini

    Lua Xikini's Free Scripting Service TFS 1.4.2

    Can you be more specific?
  14. Xikini

    Lua Shovel

    at top of script, add shovel_whitelist = {1111, 2222, 3333} -- itemIds that will be ignored, and shovel can pass through above local ground = tile:getGround() add local topVisible = tile:getTopVisibleThing(player) if not topVisible:isItem() then return false end if not...
  15. Xikini

    Lua Shovel

    above local ground = tile:getGround() add if tile:getCreatureCount() > 0 then return false end if tile:getItemCount() > 0 then return false end
  16. Xikini

    talkaction mana train tfs 0.4

    You can find most functions in luascript.cpp I've only used the functions, don't really know how they are made in source. Try searching for partial, like MaxMana it might be like getPlayerMaxMana in older distro's. doCreatureCastSpell will probably be hard to find, as it wasn't included in...
  17. Xikini

    Lua Get list of item by item id, then get item uid of items in list

    Untested.. but try this. It will attempt to find the first item on the player that matches the itemId you chose. I'm uncertain if you need to return item or item.uid, so play around with it a bit? local blank = findItemOnPlayer(cid, itemId) if blank == 0 then -- unable to find a blank...
  18. Xikini

    Lua How can I get it to NOT remove the item already got MAX slots?

    move this if getSlotCount(nam) < conf.maxSlotCount then above this local number = math.random(0,10)
  19. Xikini

    Gatekeeping

    I don't know what I expected by following this thread and reading this far.. lmao I knew from the get go this was a waste of time.. yet I still had to see it through. Everyone who made it this far, let's crash and burn together. ❤️ Our time certainly has.
  20. Xikini

    Lua Xikini's Free Scripting Service TFS 1.4.2

    As far as I know, this is only possible if you simulate the death via script. I kind of explained it here, but it's too complicated for me.
Back
Top