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

    Lua Making script work for more than one item.

    I don't understand it either but the item is not found 0 0 0 0 0
  2. A

    Lua Making script work for more than one item.

    It doesn't work, if I have declared item equiped or not the damge is always caluclated according to this line: local damage = {more_dmg = 0, more_dmg_spell = 0} If I set there for example 20 then every damge in game is increased about 20%
  3. A

    Lua Making script work for more than one item.

    start statschange execution searchExtraDamage Damage not > 0 start statschange execution searchExtraDamage Damage not > 0 I think that extra damage isn't added at searchExtraDamage function @Edit The mistake is here: local damage = {more_dmg = 0, more_dmg_spell = 0} If I change the values here...
  4. A

    Lua Making script work for more than one item.

    It find the item now but I get the error: [15:28:45.020] [Error - CreatureScript Interface] [15:28:45.038] data/creaturescripts/scripts/MoreDMG.lua:onStatsChange [15:28:45.040] Description: [15:28:45.042] data/creaturescripts/scripts/MoreDMG.lua:36: attempt to index local 'k' (a nil value)...
  5. A

    Lua Making script work for more than one item.

    Hello guys, Thanks to Static_ and Xikini it was finally possible to create the script which increase damge dealt by the item at tfs 0.3.6. I wanted to make it work for x declared items ,not only for one, so I was trying to create a table. Unfortunately it des not work but I am sure that the...
  6. A

    Lua Increase Damage dealt

    Works prefect , thank you guys, especially you Static_ and Xikini , all credits for you :D
  7. A

    Lua Increase Damage dealt

    If I change doTargetCombatHealth(cid, attacker instead of the other way around, then the player which is attacking receives the dmg by otself but only the damage from the weapon like sword ,wand etc., spells does no dmg in any way.
  8. A

    Lua Increase Damage dealt

    Still doesn't work :( I added this print thing: And the console says: statement 1 passed checking damage increase statement 2 passed statement 3 passed physical damage statement 1 passed checking damage increase statement 2 passed end execution // return false end execution // return false
  9. A

    Lua Increase Damage dealt

    It is no necessary to work it against monsters, i was just testing it on it ,because I thought it is no diffrence. I get now this error and any damage is aplied for the monster. start statschange execution end execution // return true start statschange execution end execution // return true...
  10. A

    Lua Increase Damage dealt

    hmm start statschange execution end execution // return true
  11. A

    Lua Increase Damage dealt

    Still the same, So instead of storage 815869 I use storage 5011 (just to see if it is working) which is constantly set to 1 for my character, because this function from movements doesn't work for me. So I attack a monk with the exori spell (which is physical damage), having in my left...
  12. A

    Lua Increase Damage dealt

    Manarune and potions works normally but the script does not work. I added this line to find out more but when damage is aplied any message is sent to the player. doPlayerSendTextMessage(attacker,MESSAGE_EVENT_DEFAULT, getCreatureName(cid).. " dealt " ..correct.. " damage to the creature.!")
  13. A

    Lua Increase Damage dealt

    Still the same and in addition: [15:59:04.108] [Error - CreatureEvent::executeStatsChange] Call stack overflow. I have another script which can help us to find the problem: This one is the opposite to main script, it is about reduction: local reduction = 10 --this means that the damage is...
  14. A

    Lua Increase Damage dealt

    It is not about the manarune.I've just noticed that when script is loaded to the server, monsters make no damage and any potions gives any health or mana.
  15. A

    Lua Increase Damage dealt

    When the script is active whether item is equiped or not the players are unable to use manarune and staff like this. And still ,no damage increased. I've checked the script Item 2400 and it doesn't work either. When I used a storage which is already set to check wheter script increase the...
  16. A

    Lua Increase Damage dealt

    Hello guys, I am trying to make the specific item to increase all damage dealt. I have the following script: I use the storage ,because I was getting a stack overflow all over again. The storage is set in movements: The problem is that I get no errors but the script is no working for...
  17. A

    Lua Respawn - more than one place.

    Thank you very much. It works perfect !
  18. A

    Lua Respawn - more than one place.

    Ok, I would really apreciated it :)
  19. A

    Lua Respawn - more than one place.

    [20:23:12.700] [Error - CreatureScript Interface] [20:23:12.700] In a timer event called from: [20:23:12.700] data/creaturescripts/scripts/RespawnEvilMastermind.lua:onKill [20:23:12.700] Description: [20:23:12.700] ...ta/creaturescripts/scripts/RespawnEvilMastermind.lua:17: attempt to call...
  20. A

    Lua Respawn - more than one place.

    Hi quys, I have the following script: It works great for me but I am just wondering is it possible to make the boss to respawn at one of three declared places.Let's call them: local pos1 ={x=x1 ,y=y1 ,z=z1} local pos2 ={x=x2 ,y=y2 ,z=z2} local pos3 ={x=x3 ,y=y3 ,z=z3} The final result which I...
Back
Top