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

    Spell Storage Target - Help [TFS 0.4]

    local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING) setCombatParam(combat, COMBAT_PARAM_EFFECT, 31) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, true) setCombatParam(combat, COMBAT_PARAM_TARGETPLAYERSORSUMMONS, true) local area =...
  2. psychonaut

    Spell Storage Target - Help [TFS 0.4]

    Sorry, i misread it, if it's an area spell maybe you can try setCombatCallBack(combat, key, function) ? And set the storage in the specified function
  3. psychonaut

    Spell Storage Target - Help [TFS 0.4]

    Put it in the function function onCastSpell(cid, var) local target = getCreatureTarget(cid) setPlayerStorageValue(target, 8888, 1) return doCombat(cid, combat, var), addEvent(setPlayerStorageValue, 5 * 1000, target, 8888, 0) end
  4. psychonaut

    Psychonaut's Free Scripting Service [TFS 1.x]

    It's alone, should check if a player is already in that level? And what do you mean by more damage?
  5. psychonaut

    Psychonaut's Free Scripting Service [TFS 1.x]

    Like Xikini i'm only gonna take quick scripts and i don't wanna do spells, weapons, raids or monster scripts, websites edits and database queries. Source edits need to be a really small thing(would be very boring to keep cloning TFS repo to test each one). Post in the topic too, no dm. I wanna...
  6. psychonaut

    The Oracle give mission storage

    Set the storages when the player go to mainland?
  7. psychonaut

    Promotion money

    Have the function? The parseInfo gets the price from getBlessingsCost and the pvp one, would be used to display the msg and it doesn't seems to work, idk how you are using the pvp bless. I did a sample code for the getBlessingsCost function: local function getBlessingsCost(level) local...
  8. psychonaut

    Promotion money

    Do you have getBlessingsCost and getPvpBlessingCost functions? You should use them in the script to get the money that you wanna remove and put in player:removeMoneyNpc(money) If you'll use from the function you can use the cost parameter just as a default value or something. Otherwise you...
  9. psychonaut

    Promotion money

    Can you post the bless module here? You can try the default one too and change on it: forgottenserver/modules.lua at master · otland/forgottenserver · GitHub
  10. psychonaut

    Promotion money

    That's weird, it's supposed to work, check if your bless npc is using the module that you changed for bless.
  11. psychonaut

    Solved Gesior can't add samples

    See: GitHub - gesior/Gesior2012: Gesior 2012 - Account Maker [website] for OTSes, account maker you can find in BRANCHES. Select 'branch'. and check if you picked the correct branch. You can create the missing columns in phpmyadmin by selecting your db, table and adding it in structure or...
  12. psychonaut

    Promotion money

    As i thought you already had it before, i'm sure that the boat npc is using the same function, for future readers, this removeMoneyNpc will not work for everyone, i looked for it and found: NPC working with balance. Way better than the example code.
  13. psychonaut

    Promotion money

    You can create it as a function and put in a lib or something to make it easier to use, you should already have that(as a function or not) as the boat NPC is doing the same thing, so you can change the function doPlayerRemoveMoney from the promotion npc to something similar to what is happening...
  14. psychonaut

    Monster Arena

    You can change droploot.lua to check the tile, use player:getPosition() to get the position and return true if the player is on that tile. Tile(position):hasFlag(TILESTATE_PVPZONE)
  15. psychonaut

    Solved creature interval and os.time [TFS 1.2]

    The onThink function repeats with a set interval, so without the line if ((os.time()) - last_interval) > 25 then it will execute a lot of times in that set interval. You changed the interval to 1 and removed the check to test, but you need to change the unregisterEvent too, without the check...
Back
Top