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

    Lua GuildMaster for TFS 0.3.6

    Post your luaDoPlayerCreateGuild c++ function and I'll help you, you probably forgot to define creature. Ignazio
  2. I

    GMP/HP/SMP

    It didn't work? Lol I give up, if it ain't even printin I'm guessing the script is not the problem. Ignazio
  3. I

    GMP/HP/SMP

    After: function onUse(cid, item, fromPosition, itemEx, toPosition) .. try to write this: print(item.itemid) Ignazio
  4. I

    Lua invencible

    Not perfectly certain how it works, but there is a creature event called "healthchange", you could try something like this: function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin) if (creature:getStorageValue(1000) == 1) then) return...
  5. I

    GMP/HP/SMP

    That seems weird, what does it say in the console when you /reload actions? Ignazio
  6. I

    Lua invencible

    It would be super easy in the source, might just work with LUA. What server version are you using? Ignazio
  7. I

    GMP/HP/SMP

    It's not giving any mana at all? Try to add this: print(manaGiven) after this: if (manaGiven[3] ~= nil) then manaGiven = manaGiven + getPlayerMagLevel(cid) * manaGiven[3] end and see what the console says
  8. I

    GMP/HP/SMP

    How much mana are you given with magic level 100?
  9. I

    create acc with same IP

    That depends on if you're using account creation through website or in game. It would be rendered quite simple through websites, simply adding a field called IP address, counting the client's IP address and checking it's count in the database table. It would require some php experience. Here's...
  10. I

    console error

    Could you show us the edits you made? What server are you using? Ignazio
  11. I

    Solved Fire-Storm event

    Try to go to the database and execute this query: DROP TABLE IF EXISTS `events`; CREATE TABLE IF NOT EXISTS `events` ( `event_name` varchar(255) NOT NULL, `winner_name` varchar(255) NOT NULL, `won_item` varchar(255) NOT NULL, `time_win` bigint(20) NOT NULL ) ENGINE=InnoDB DEFAULT...
  12. I

    GMP/HP/SMP

    I haven't tested it out, but I made a few changes that might make it work in a way that you enter a third parameter in the mana object to input a modifer for how heavy the magic level should weight in the formula. local config = { removeOnUse = "yes", usableOnTarget = "yes", --...
  13. I

    GMP/HP/SMP

    Those were just examples I posted, they surely won't work by importing directly in yours. If you would post the whole potions.lua script here so that more people can help you. Ignazio
  14. I

    GMP/HP/SMP

    How would you like the formula to be? For instance: 200 mana + (1.2 * maglvl); This would heal 320 mana at magic level 100 and 201 mana at magic level for instance. You could implement an addition in the mana object for each potion object in this fashion: [7590] = { mana = { base...
  15. I

    GMP/HP/SMP

    There should be a file called potions.lua in data/actions/scripts If you are completely new to scripting, it might be wise to study some LUA. Ignazio
  16. I

    GMP/HP/SMP

    Did you have an exact formula in mind? You could locate those files and paste them here. Ignazio
  17. I

    Solved Fire-Storm event

    Line 200: doAddCondition(cid, createConditionObject(CONDITION_INFIGHT, -1)) You shouldn't create condition objects within functions, create the condition object outside of the onSay-function and reference to it's variable, e.g: local condition = createConditionObject(CONDITION_INFIGHT, -1)...
  18. I

    Solved [TFS 1.1] Help to edit stamina regeneration time.

    Spontaneously I would reduce the offlineTime required to 60 for instance, 180 equals 3 minutes. So if you'd want one stamina point per minute instead, try this: if (offlineTime < 60) { return; } Ignazio
  19. I

    Solved Need spell

    Granted, although this method is underrated, if you wish to execute two different combats at the same time. Ignazio
  20. I

    Memory allocation failed : couldn't allocate a new input stream

    I just saw now that the items file failed as well, does this happen every time or infrequently? Is your memory usage full or nearly full? Ignazio
Back
Top