• 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!

creaturescript

  1. F

    Help with Error in Dodge and Critical System tfs 1.3

    Hello guys, I came here to ask for your help. i am a very layman in open tibia and i am learning now! I was wondering if you could help me with the following mistake !. follow my login.lua:
  2. DukeeH

    Lua Monster of the day (Group)

    Hello, I'm using TFS 0.3.7/OTX2. I'm trying to change a code by @buchaLL He made a monster of the day code, but on my server I have a few dragon lords, I want that if the monster of the day is dragon lord, it affects all the ones in the group. I wasn't able to use a table for this. Monster...
  3. thegood

    attempt to call global 'getCastleConfig' (a nil value)

    I need help with this Castle War script, all works good, but when the event finish, i recive this message: And have this error: This is my castlekill.lua: function onDeath(cid, corpse, killer) if (getCreatureName(cid) == getCastleConfig("monster")) then Castle_endEvent(true...
  4. miguelshta

    Lua help online guild bonus exp

    hello i need help i want to add 20% extra experience to all guilds with more than > 5 players online and no double ip allowed using tfs 1.3
  5. diarmaint

    someone help Critical system error

    This system should use the skill club as a basis for critical, but I have this error tfs 0.4 8.60 local SKILL_ID = 3 -- id skill... local multiplier = 1.5 local percentual = 0.3 function onStatsChange(cid, attacker, type, combat, value) if isPlayer(attacker) and (not (attacker == cid))...
  6. Lurk

    TFS 0.X how can I check if the player causing damage with a weapon

    I'm trying to mess around with onStatsChange and I need to check if the damage that the player is causing is being caused by a weapon (since the player can deal damage with runes, spells, fire field and what not) I know I can getPlayerSlotItem but that will only tell me that he has a weapon equiped
  7. Ns Sparkz

    Lua attempt to index local 'target' <a nil value>

    am trying to fix firestorm event this : Firestorm Event | Tfs 1.2 (https://otland.net/threads/firestorm-event-tfs-1-2.237061/) am getting these errors Lua Script Error: [Main Interface] in a timer event called from: <Unkown scriptfile> data/firestorm_event.lua:66:in function 'dostartfirestorm'...
  8. M

    Spamming Error Creature not found

    [Error - CreatureScript Interface] data/creaturescripts/scripts/reflect.lua:eek:nStatsChange Description: (luaDoTargetCombatHealth) Creature not found [Error - CreatureScript Interface] data/creaturescripts/scripts/reflect.lua:eek:nStatsChange Description: (luaDoTargetCombatHealth) Creature not...
  9. H

    !pvp on/off

    Good evening, can anyone help me? I'm in need of a script for the player to choose whether it wants to be PVP or NOPVP. I tried to use this one ---> TalkAction - !pvp - own world type! : ) (https://otland.net/threads/pvp-own-world-type.31889/) , but it is giving this error: INVALID EVENT...
  10. H

    Lua Help with Script Skill Points.

    Hello, how are you? So I am using this script for every lvl that upa earns "Skills Points" I am with 2 doubt. 1st I wanted that when the upa character appeared a message on the screen something like "+1 Skill Points!" I saw that in Script there is a message area, but it is not working...
  11. Kodak

    Lua Equipment from Level Advance

    So I wrote this script using some info I found here on the forums. In theory, it should work as, If Level 20 & No storage value then If Knight/Elite Knight then If Axe > then Sword & Club, give axe weapon Else if Sword > Axe & Club then give sword weapon Else if Club > Sword & Axe then give...
  12. LightTenshimaru

    TFS 1.X+ [Lua]AutoGold Exchange

    Hello, i've got this code to change Gold Coin into Platinum Coin automatically, but there's no console error and the gold it's not changing. function onThink(creature, interval) local player = creature:getPlayer() if not player then return false end if...
  13. LightTenshimaru

    Lua Gain X% Attributes When Equiped.[Creaturescript]

    I'm making a script that when equipping [Wand + Shield], [Sword, Axe, Mace + Shield], [Crossbow] have an attribute bonus in [ML], [SWORD, AXE, MACE], [DISTANCE] respectively. But I have a lot of problems, the first is that activation message creature: say ("Damage Bonus", TALKTYPE_MONSTER_SAY...
  14. Lucas Primo

    [Jobs System] NPC + Look + Function

    Hello people !!! I wonder if you can help me create a simple WORK system. How would that work? There will be 1 NPC for each JOB. The crafting systems I already have. I need the NPC to WORK, enlist the player to work based on their level, giving a simple mission to get him from the JOB. A basic...
  15. K

    Unmovable monster?

    Hello! I´m working on a little project, a 7.6 server (XML - it´s old, I know, but usually simple, just for a few friends and I.), and monsters can move diagonally, is it possible to make 1 specific monster/creature unmovable so it just stands still wherever it is placed in its spawn? Thanks, in...
  16. L

    CreatureEvent Critical/Dodge System based on weaponSkill/speed TFS 1.2

    Updated 05/08/2017 So this is my first "contribuition" it's a critical system based on the weapon that you use and a dodge system based on the player speed and free cap. It has effects and texts for melee and ranged attacks. Wands/spells have only texts. Monsters can crit/dodge and everything...
  17. GhostWD

    Lua CreatureScripts error spam

    @@EDIT Have done little research and now i know that it's fault of script idle.lua which kicks after specified amount of time is any possible solution on this? maybe before kick removing of onThink statement in my script? idk ;/ Hello OTLanders i need your help ! I've scripts(3) which send...
  18. Crixpx

    Lua add tibia coins every hour by charge

    Hello :D I have edited this script so that every one of the characters connect you to a load every 1 hour with a limit of 5 loads "5 hours" to complete the 5 hours of as a reward 25 coins and the time will be saved even when disconnected so that Continue running the time when you connect and...
  19. Aled

    [TFS 1.x] Monster pick up item and throw

    Just a little fun: Monster picks up item from ground and throws it at the player. Put <script> <event name="rockthrow"/> </script> in the monster xml and in creaturescripts.xml <event type="think" name="rockthrow" script="rockthrow.lua" /> and in rockthrow.lua local rockid = 1285 function...
  20. 115820

    !Stats COMMAND 1.2

    Hii, I need a script, when i use command "!stats" show : Payer LEVEL and RESET (STORAGE 500); Player MAGICLEVEL; PlayerMANA/MAXMANA ; PlayerHealth/MAXHEALTH . TFS 1.2 Ot : 10.99
Back
Top