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

    Lua [1.2] Adding skull to monster

    it randomly spawns monsters across the map based on a chance EDIT; well it will whenever i get it working lol
  2. Cornwallis

    Lua [1.2] Adding skull to monster

    Hello, so I'm trying to add a skull to different monsters with little luck. I've tried doing skull="white", skull="3", skull="SKULL_WHITE", flag_skull="SKULL_WHITE", etc,. and basically nothing in the monsters .xml file will work for me, so if someone knows how that'd be great. I looked in the...
  3. Cornwallis

    Lua [1.2] having trouble accessing subid with getCondition

    I can't figure out why this isn't working as intended. I want to charge so to speak, you use it 3 times and the effect is fully charged, but what is happening is after the first use it says it's fully charged. About 20 revisions or so ago I was able to make it stack twice, but I was doing...
  4. Cornwallis

    Lua [1.2] having trouble accessing subid with getCondition

    I'm trying to make it so that I can access the sub-id part of this function, but it's not seeming to work. creature:getCondition(conditionType[, conditionId = CONDITIONID_COMBAT[, subId = 0]]) This is what mine looks like: player:getCondition(CONDITION_ATTRIBUTES, CONDITIONID_DEFAULT, 1) Am...
  5. Cornwallis

    Compiling [TFS 1.2] Resist Condition

    yes sir, is it possible?
  6. Cornwallis

    Compiling [TFS 1.2] Using sub-id's to remove old conditions

    Hello, I'm trying to make it so that when you cast a spell that adds a condition, it checks the sub-id of the old condition and the sub-id of the new, and if the new condition has a sub-id that's >= the old sub-id then it adds then new condition, and otherwise returns false. Am I on the right...
  7. Cornwallis

    Compiling [TFS 1.2] Resist Condition

    bump, how do i get resistPercent to return 30 from condition:setParameter(COMBAT_PARAM_RESISTPERCENT, 30) in a spell
  8. Cornwallis

    Compiling [TFS 1.2] Resist Condition

    bump, all i need is to know how to point the resistPercent to the condition param
  9. Cornwallis

    Compiling [TFS 1.2] Resist Condition

    I'm struggling to accomplish a complete resistance condition, with param that I set in the spell file. What I don't understand is how to reference the param from the spell file so that I can incorporate it into the damage in game.cpp. So say I have in a spell...
  10. Cornwallis

    Compiling [TFS 1.2] Resist Condition

    Hello, I'm trying to add a resist condition that can be applied by spells and such. All I want to do is reference the param of the condition, like whether the character is recieving 10% resistance, or 20% resistance, and so on. I'm trying to put something like this in game.cpp: if...
  11. Cornwallis

    Compiling What's secondary damage?

    I'm trying to make a condition that alters the damage someone takes when they have the condition, but I don't understand secondary damage. EDIT: Nevermind, it would appear primary is base damage, and secondary damage is elemental damage.
  12. Cornwallis

    bug hotkay tfs 1.2

    please post your potions script
  13. Cornwallis

    HELP with phpmyadmin

    in config.lua change sqlite to mysql
  14. Cornwallis

    Kicks players when cast spells

    In my config i set: maxPacketsPerSecond = 150 and I haven't had problems even while running elfbot.
  15. Cornwallis

    Compiling [TFS 1.2] condition to abosrb damage

    Close, but no, basically it'll just stack, so if they have 30% protection from armor then get the condition for an additional 20% then they'll get 50% protection, or if they get -20% then they'll have 10% protection. So, my idea was to add something like: Condition* condition =...
  16. Cornwallis

    Compiling [TFS 1.2] condition to abosrb damage

    Hello, I want to make a condition to absorb damage -- and absorb less damage, but I don't know where all I should be looking. I'm thinking I should edit this to check if the condition is true, and if so then add it to the absorbPercent, which would be simple, and I know I have to add it in...
  17. Cornwallis

    Compiling [1.2] Soul Regen

    This works whenever I make new characters, which is no big deal, but not on existing characters, which is why I didn't catch it. It seems like any time I make changes to vocations.xml it doesn't load for older characters, would you know why that is? EDIT: If I login and I'm full then it doesn't...
  18. Cornwallis

    Compiling [1.2] Soul Regen

    I'm getting this error and I don't believe I've edited food.lua, and the food script is still working. Lua Script Error: [Action Interface] data/actions/scripts/other/food.lua:onUse data/lib/core/player.lua:14: attempt to index global 'vocation' (a nil value) stack traceback: [C]: in...
  19. Cornwallis

    Compiling [1.2] Soul Regen

    I already did it there, it isn't regenerating any soul but it's still regenerating health and mana
Back
Top