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

    Bigger damage vs monsters

    @Xikini no, you are right if you don't change the flag then it is an infinite loop.
  2. 496815

    Bigger damage vs monsters

    @Xikini oh right I forgot the return false, woops. Funny because I mentioned it on my first post and forgot to include it.
  3. 496815

    Bigger damage vs monsters

    TFS version? Also make sure your player has storage value 15600 = 1. add another print to check if it's running: function onStatsChange(cid, attacker, type, combat, value) if isPlayer(attacker) and isMonster(cid) and type == STATSCHANGE_HEALTHLOSS then print("x") if...
  4. 496815

    Lua Custom Ring doesn't sit in ring slot

    Edit: Nevermind, I'm honestly not even sure anymore. Try removing the function bit from movements.xml perhaps? <movevent event="Equip" itemid="2127" slot="ring" script="chaosbangle.lua"/> <movevent event="DeEquip" itemid="2127" slot="ring" script="chaosbangle.lua"/>
  5. 496815

    Lua Custom Ring doesn't sit in ring slot

    Should be like this, tested on 8.6 and it worked. -- >> Small config section -- local outfitMale = { lookType = 12, lookHead = 19, lookBody = 79, lookLegs = 3, lookFeet = 81, lookAddons = 0 } local outfitFemale = { lookType = 12, lookHead = 19, lookBody = 53, lookLegs = 92, lookFeet = 79...
  6. 496815

    mapArea iterator

    @Colandus I actually did appreciate your old function and have used it a lot, I did modify it a bit though. Regarding monsters / items: I'd just make new functions for those to be honest, seems messy enough as it is.
  7. 496815

    Bigger damage vs monsters

    Good to know, I should recode a few of my old scripts for the newer versions.
  8. 496815

    Bigger damage vs monsters

    I'm not sure if this still exists in later versions but I used to use the onStatsChange creature script to do all kinds of crazy stuff. function onStatsChange(cid, attacker, type, combat, value) To put it simply the 'value' field here is the total damage done in any attack so you can easily...
  9. 496815

    npc+backpack system trade

    I could try something with unmoveable backpacks or other containers, but with NPCs it seems unlikely. Sorry for the double post.
  10. 496815

    npc+backpack system trade

    I actually just now noticed that from the video, very interesting. I assume the only way to do that is to edit the source though.
  11. 496815

    Chest that requires items to open

    Edit: He was getting that error because he placed player as the 2nd argument of the interface which is supposed to be item. So he was basically trying to do item:getItemCount() which doesn't exist. Just tested it on 1.0 and it worked, I forgot to remove the items though.
  12. 496815

    Chest that requires items to open

    Edit: Removes items now. local config = { storageValue = 1234, checkItems = { [1] = {item = 5919, count = 1}, [2] = {item = 5877, count = 50}, [3] = {item = 5948, count = 50}, [4] = {item = 7399, count = 1} }, rewards = { [1] = {item =...
  13. 496815

    Chest that requires items to open

    Change: function onUse(player, item, fromPosition, itemEx, toPosition) To: function onUse(cid, item, fromPosition, itemEx, toPosition) local player = Player(cid) ... That usually does the trick.
  14. 496815

    npc+backpack system trade

    Tested on TFS 1.0. Add to data/events/scripts/player.lua local buyableItems = { --[itemid] = price [2595] = 15, [1988] = 20 } Replace onLook Event in data/events/scripts/player.lua self:sendTextMessage(MESSAGE_INFO_DESCR, description) For: local price = buyableItems[thing:getId()] if...
  15. 496815

    Compiling [Sources] How can I decrease melee damage ?

    Melee damage in general? Knight's damage? Monster's damage? Melee formula? What exactly are you trying to achieve?
  16. 496815

    Lua Custom Ring doesn't sit in ring slot

    Did you place the return true correctly? Example: function onEquip(cid, item, slot) ... return true end function onDeEquip(cid, item, slot) ... return true end
  17. 496815

    Exeta res

    A way to achieve this is creating melee-only variants and summoning them with the current monster's health, so it's going to take a little bit of work from your part. Spell: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED) local area =...
  18. 496815

    Scripter PAY JOB 10 Euro Simpel one script

    Replace: local tp = doCreateItem(1387, 1, createpos) With: local tp = doCreateTeleport(1387, topos, createpos)
  19. 496815

    Ignore if storage xx

    if player:getStorageValue(81262) ~= 1 then player:teleportTo(pos) end
Back
Top