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

Recent content by Xikini

  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
Back
Top