Search results

  1. Xikini

    Help with working script

    ---------------------------------------- ---------------------------------------- replace your code with mine. data/actions/scripts/regeboost.lua local config = { storage = 12412, -- exhaust recovery_amount = 50, -- HPs by second timer = 3600 -- seconds } local function...
  2. Xikini

    Lua Block action item in Protection Zone

    function onUse(cid, item, fromPosition, itemEx, toPosition) if getTileInfo(getThingPos(cid)).protection or getTileInfo(getThingPos(itemEx.uid)).protection then doPlayerSendCancel(cid, "You can't use this item in Protection Zone.") return true end if item.itemid ==...
  3. Xikini

    Help with working script

    Could use a storage to hold the 'seconds' value, and if that value is above 0, then regen will continue when person logs back in.
  4. Xikini

    healing system

    local healing_base_value = 100 local healing_multiplier = getPlayerStorageValue(cid, 45001) local heal_amount = healing_multiplier * healing_base_value 100 * 5 = 500 100 * 10 = 1000
  5. Xikini

    onlook script

    Can you give us a video? I don't think we are fully understanding. -- below is a tabbed version of the script posted at the start of this thread. No other alterations were made. function onLook(cid, thing, position, lookDistance) if isPlayer(thing.uid) and thing.uid ~= cid then...
  6. Xikini

    Summoning monster on level

    My friend had something of a same issue. Using 'locals' with the same name, in two separate scripts would somehow fuse together, but only in spells or weapons. I think it has something to do with how the Lua environment is created in these area's. Basically the way you fix it, is to make sure...
  7. Xikini

    Lua [0.4] open door (id 5283) cant be triggered by item.

    add me on discord again. I got like 20 questions. lmao
  8. Xikini

    Lua [0.4] open door (id 5283) cant be triggered by item.

    I agree with above. but just in case it's something simple you've overlooked.. print(itemEx.itemid) if itemEx.itemid == 5283 then print("Itemid is correct.") doTransformItem(itemEx.uid, 5277) doSendMagicEffect(toPosition, CONST_ME_POFF) else print("Itemid is not correct.") end
  9. Xikini

    Lua [0.4] open door (id 5283) cant be triggered by item.

    I've never seen getStackPos before.. but I assume itemEx wouldn't work? itemEx.uid is usually what you want to use.
  10. Xikini

    Lua function onPrepareDeath error

    When a player reaches the 'PrepareDeath' stage, the character is already dead. If you return false, it will keep the character in-game, but the character won't be alive. If you are wanting to 'revive' the player without killing them, use 'onStatsChange' and check the damage being applied to the...
  11. Xikini

    Lua [0.4] Deconstruct kit.

    aid shouldn't be required. Just deconstruct the items back into the normal construction kits.
  12. Xikini

    Action Upgrade System Maybe the best Tfs 0.4,Otx 2.5s and All 0.x Versions

    I don't care that you re-released the script after making necessary changes for it to work on your server version. I care that you removed all forms of credit to the original creator thereby attempting to pass it off as your own.
  13. Xikini

    Action Upgrade System Maybe the best Tfs 0.4,Otx 2.5s and All 0.x Versions

    No. Bad. Don't give him praise for someone else's work. Diff Checker (https://www.diffchecker.com/h2r45Tz5)
  14. Xikini

    Action Upgrade System Maybe the best Tfs 0.4,Otx 2.5s and All 0.x Versions

    Definitely not Mock the Bears item upgrade system. I mean, what's the chances that someone would alter a few things, and post his code with the same green text? haha. Good job man. So proud of you. Keep up the good work.
  15. Xikini

    Lua array of sqm help

    local getTile = getThingfromPos(gatepos) "gatepos" isn't grabbing a value from the table. You'd need to use gatepos[1] , for example, in order to check the first position you've listed in the table.
  16. Xikini

    Bosses room

    Then you didn't change both lines, or you didn't save / reload correctly.
  17. Xikini

    Bosses room

    hmm alright. Change 2 lines with if #creatures > 0 then to this if creatures ~= nil then
  18. Xikini

    TFS 0.X Action script is passing through walls

    isSightClear(fromPos, toPos, floorCheck)
  19. Xikini

    Summoning monster on level

    you've added extra parameters to doSummonCreature doSummonCreature(name, pos) -------- Change this local clone = doSummonCreature(cid, cloneName, pos) to this local clone = doSummonCreature(cloneName, pos)
Top